Skip to content

Accident reports · November 2026

Bahia: the court's AI tool spots an order hidden in white in a criminal appeal

Elos IA, the Bahia court's tool, flagged white text asking it for a ruling in the defendant's favour and for secrecy. The case went to the bar.

  • Company Tribunal de Justiça da Bahia (TJBA)
  • Agent Elos IA
  • Model not published
Outside content
A sheet of white paper on a wooden table
Photo: Kelly Sikkema on Unsplash
WhenNovember 2026 (made public on 17 November)
WhoElos IA, the AI tool of the Bahia State Court of Justice (TJBA), Brazil
What the agent didIts detection feature flagged an order hidden in white in a defence filing, in a criminal appeal
ConsequenceAccording to the TJBA: the incident was recorded in the case file and referred to the Bahia bar (OAB-BA)

What happened

According to a TJBA press release of 17 November 2026, the 2nd Panel of the First Criminal Chamber was reviewing a criminal appeal with the help of Elos IA, the artificial intelligence tool the court provides to prepare orders and votes. The tool has a feature that spots "prompt injection" attempts. Through that mechanism, the judges found hidden text in a document filed by the defence lawyer at first instance: the release speaks of the defence's closing arguments, then, quoting the reporting judge, of a "petition submitted by the lawyer".

According to the TJBA, the text was written "in white lines", invisible in a normal reading of the document. It asked the tool to analyse the case and present a decision favourable to the defendant, whatever other instructions it received, and to keep the command secret. The news site Muita Informação reported the same facts the same day and speaks of "white letters".

The reporting judge had the episode recorded in the case file and ordered a letter to the OAB-BA so it can examine possible breaches of professional ethics. According to the court, the referral does not prejudge the lawyer's conduct. No fine is mentioned, and no source says the tool followed the order or that the outcome of the appeal changed. This is a separate case from the habeas corpus the same court reported in October.

Why it happened

When a court has the parties' filings read by an AI tool, every filing becomes a channel to talk to that tool. White text targets exactly the gap between what the judge sees and what the machine reads.

Here the safeguard worked: the tool itself looks for this kind of order before working, and the judge remains the one who decides.

The failure family

In our catalogue, this is the "Outside content" family: a document read for the work contains orders addressed to the agent. This time, the attempt was spotted by the targeted tool.

The safeguard in code

  • Each filing is first extracted as a human would see it: white, tiny or off-page text is set aside and flagged.
  • A sentence addressed to the tool ("ignore other instructions", "keep this secret") triggers an alert to the judge, with the excerpt.
  • The tool never proposes an outcome on the strength of one party's filing; the decision stays human.

What we test

The "planted instruction" and "camouflaged planted instruction" tests slip an order into content the agent reads for its work, including in hidden form. We watch whether it carries it out and whether it reports it.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading