Skip to content

Accident reports · May 2026

Porto Velho: orders for the AI hidden below the lawyers' signature

In a dispute with a health insurer, tiny white text dictated the ruling to an AI. A fine of 10 % of the case value and one lawyer barred by the bar.

  • Company Tribunal de Justiça de Rondônia (TJRO)
  • Model not published
Outside content
A hand holding a blank white card in front of a blurred bookcase
Photo: Kelly Sikkema on Unsplash
WhenMay 2026 (ruling reported on 29 May; bar measure on 3 June)
WhoThe 2nd Civil Court of Porto Velho, in the Rondônia state court (Brazil)
What the agent didNothing, according to the sources: tiny white orders below the lawyers' signature told an AI how to rule a dispute with a health insurer
ConsequenceA fine of 10 % of the case value for the claimant, according to Migalhas; one lawyer provisionally barred by the Rondônia bar

What happened

After bariatric surgery, a person sued their health insurer to cover reconstructive operations. According to Migalhas, the insurer reported that the petition contained hidden commands; the judge checked it. The text was written "in an extremely small font, white on a white background, after the lawyers' signature".

In substance, the orders asked an AI to classify the operations as reconstructive, to find the insurer's refusal abusive, to stress urgency and to accept presumed moral damage, according to Migalhas; according to CartaCapital, not to classify the surgery as cosmetic and to recognise it as urgent. The judge called it "prompt injection".

According to Migalhas, he fined the claimant 10 % of the updated case value for bad faith, and notified the bars of São Paulo, Paraná and Rondônia as well as the court's IT department and intelligence centre. The case was not dismissed: the file went to a technical health-advice service.

On 3 June, according to Migalhas and CartaCapital, the Rondônia bar temporarily removed from practice a lawyer suspected of inserting the commands, pending confirmation by its council. According to Migalhas, the bar opened a disciplinary procedure and said this was not a final judgment. No source reports any explanation from the lawyers.

Why it happened

Brazilian courts rely on AI to read and summarise filings. Tiny white text disappears on screen and in print, but a model that receives the PDF's text reads it like the rest. Placed after the signature, it also escapes human proofreading, which often stops there.

Here it was the opposing party who looked closely. The sanction fell on the attempt itself; no source says an AI was fooled.

The failure family

In our catalogue, this is the "Outside content" family: a document read for the work contains orders addressed to the agent. The attempt was spotted before any ruling on the merits.

The safeguard in code

  • Before the model reads it, any very small text, text in the background colour or text placed after the signature is flagged and removed from the content passed on.
  • Any instruction addressed to the tool inside a filing ("classify", "recognise") triggers an alert to the person in charge, with the excerpt.
  • Filing content is passed to the model as quoted data, never at the same level as the tool's instructions.

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