This incident marks a significant escalation in the ongoing tension between law and technology. While previous headlines regarding AI in the courtroom have largely focused on "hallucinations"—instances where lawyers unknowingly submitted filings containing fake case citations generated by tools like ChatGPT—the Brazilian case is fundamentally different. This was not a matter of negligence or a lack of technical literacy; rather, it was a deliberate, technologically informed attempt to commit fraud. As Professor Aras noted in his commentary, this type of manipulation is arguably much worse than simply failing to check the output of an AI-generated document. It involves using technology to actively deceive the court’s own infrastructure.
The use of the Galileu system in the 8th Region is part of a broader trend across the Brazilian judiciary, which has been a global leader in adopting AI to handle its massive backlog of cases. These AI tools are designed to categorize lawsuits, summarize claims, and even suggest draft rulings based on established precedent. However, the efficiency gained by these systems also introduces new vulnerabilities. If a judge relies on an AI-generated summary to understand a complex case, and that summary has been compromised by a hidden prompt injection, the very foundation of the judicial decision-making process is at risk. The Brazilian court’s discovery of this tactic highlights the need for robust "adversarial testing" of judicial AI to ensure that systems can distinguish between legitimate legal arguments and malicious hidden code.
The technical execution of the deception—using white text on a white background—is a classic technique from the early days of search engine optimization, where webmasters would hide keywords to trick search algorithms into ranking their pages higher. In the context of modern LLMs, which process text as a series of tokens regardless of their visual rendering, the technique is remarkably effective. Most document processing software extracts all text layers from a PDF or Word file before feeding them into an AI model. Because the AI does not "see" the document in the way a human does, it does not distinguish between what is visible and what is hidden. It simply follows the instructions it finds in the data stream.
The fallout from this case is likely to prompt a review of how legal documents are submitted and processed in Brazil and beyond. Legal experts have already begun to call for the implementation of "sanitization" protocols, where court systems automatically strip hidden text or metadata from filings before they are analyzed by any AI tool. There is also an increasing demand for transparency regarding how these judicial AI tools function. If lawyers know that a specific tool like Galileu is being used, they may be tempted to reverse-engineer its prompts to find weaknesses, much like the lawyers in this case attempted to do.
