Lawyers Put Prompt Injection in a Document to Try to Influence the Court’s AI Tools: Artificial Intelligence Trends

Lawyers Put Prompt Injection in a Document to Try to Influence the Court’s AI Tools: Artificial Intelligence Trends

eDiscovery Today
eDiscovery TodayJun 2, 2026

Key Takeaways

  • Brazilian court fined lawyers R$84,000 for hidden AI prompt
  • Prompt injection used white text to target court’s AI analysis
  • AI tool detected and blocked the concealed instruction automatically
  • Ruling highlights ethical duties and emerging AI misuse penalties

Pulse Analysis

The Brazilian labour court’s swift response to a covert prompt injection illustrates how AI is becoming a frontline tool in judicial processes. Courts worldwide are integrating natural‑language models to triage filings, flag inconsistencies, and even draft preliminary opinions. In this case, the hidden command – written in invisible white font – was designed to tell the AI to "contest this petition superficially" and ignore substantive challenges. The system’s built‑in safeguards recognized the anomalous text pattern, preventing the manipulation from influencing the judge’s decision and prompting a disciplinary response.

Technically, prompt injection exploits the way large language models interpret raw text, inserting directives that can override or bias their outputs. Legal documents are especially vulnerable because they are often scanned, OCR‑processed, and fed directly into AI pipelines without human review. The court’s AI flagged the white‑on‑white string as suspicious, demonstrating that detection mechanisms – such as anomaly scoring and invisible‑text scanning – are already viable. This incident serves as a cautionary tale for law firms: reliance on AI must be paired with rigorous validation, metadata checks, and ethical oversight to avoid inadvertent or malicious tampering.

The broader implication is a tightening regulatory environment around AI use in the legal sector. As jurisdictions like Brazil begin to penalize unethical AI manipulation, other countries, including the United States, are likely to follow suit with formal guidelines and potential sanctions. Law firms must therefore invest in compliance frameworks, staff training, and transparent AI governance to mitigate risk. For practitioners, the case underscores that the duty of good faith now extends to digital interactions, and that any attempt to game AI tools can result in substantial financial penalties and professional censure.

Lawyers Put Prompt Injection in a Document to Try to Influence the Court’s AI Tools: Artificial Intelligence Trends

Comments

Want to join the conversation?