Skip to content

Accident reports · June 2026

Brazil: the CNJ warns that instructions hidden in filings can hijack the courts' AI

A technical note of 9 June 2026 lays out the risks: distorted summaries, leaked credentials or information under judicial secrecy. It asks every court to treat filings as untrusted data.

  • Company Conselho Nacional de Justiça (CNJ)
  • Model not published
Outside content
A magnifying glass on a light table, next to a laptop
Photo: MJ Duford on Unsplash
WhenJune 2026 (technical note approved on 9 June by the CNJ plenary)
WhoBrazil's National Council of Justice (CNJ), on a proposal from its national AI committee (CNIAJ)
What is at stakeThe courts' AI tools that read case documents: instructions hidden in a filing can hijack their work
ConsequenceA preventive note: no successful leak is reported, but every court is asked to protect itself

What happened

On 9 June 2026, the plenary of Brazil's National Council of Justice (CNJ) unanimously approved a technical note on "prompt injection" and attacks on the judiciary's AI systems, according to the article published the next day by the Brazilian Bar Association (OAB). The text of the note, circulated by the federal courts of Minas Gerais, is dated 9 June 2026.

The note describes the method: instructions slipped into the body of a petition, an attachment, hidden text, file metadata, a comment, an invisible layer, an image read by character recognition, or a knowledge base the tool consults. The model may take that content as orders.

The consequences the note foresees: a distorted summary, omitted arguments, a favoured thesis, a changed priority, a simulated conclusion, and the compromise of restricted-access information. Among what an output filter must block, it lists credentials and integration keys, sensitive personal data and information covered by judicial secrecy. These are risks to prevent, not leaks that happened.

According to the rapporteur's vote, two real attempts came before the note: the labour courts' Galileu system spotted hidden commands in a petition in Parauapebas (Pará) and blocked their processing, and the Superior Court of Justice (STJ) reported petitions containing this kind of injection.

Why it happened

Brazilian courts use more and more AI tools to read, summarise and sort case files. But those files are partly written by the parties themselves. A filed document then becomes a channel to talk to the judge's tool, and what a human sees is not necessarily what the machine reads.

The note says so itself: filtering the answers is necessary but not sufficient against manipulation that changes the meaning of a summary without leaving a visible trace.

The failure family

In our catalogue, this is the "Outside content" family: a document read for the job contains orders addressed to the agent. Here, it is the oversight body describing the risk before it does damage.

The safeguard in code

  • Filings, attachments, metadata and character-recognition text are treated as untrusted data, wrapped and labelled before they reach the model (the note's recommendation).
  • Suspicious content (tiny font, white on white, hidden layer, unusual metadata) is set aside, logged and flagged, never silently dropped.
  • An output filter outside the model blocks credentials, information under judicial secrecy and wording that mimics a ruling, and every run leaves a verifiable trail.

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, whether it lets out information it should not give, 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