Encrypted AI “Reasoning Process” Hacked: Weaker Models Reveal Secrets | heise online

Encrypted AI “Reasoning Process” Hacked: Weaker Models Reveal Secrets

Security flaw allows AI reasoning logs (GPT-5, Claude) to be read in plain text via smaller models from same provider.

listen Print view
Futuristic Data Matrix

(Image: Color4260 / Shutterstock.com)

3 min. read

Leading AI providers advertise security mechanisms intended to prevent language models from revealing confidential data or dangerous knowledge. However, an international research team has uncovered an architectural vulnerability in this process: via a workaround, the encrypted reasoning logs of powerful AI models can be read out completely in plain text – and precisely by utilizing smaller sibling models from the same manufacturer.

Novel AI systems process an internal thought process, the so-called Chain of Thought, before outputting a response. To protect computational steps, operators do not send these logs back in plain text. Instead, the internal monologues are encrypted on the server side and transmitted to the client as data packets (encrypted reasoning blocks). For follow-up questions, the application sends this block back to the server to maintain context.

It is precisely this practice that now proves to be an Achilles’ heel. According to a study now published, scientists from MATS Research, the Max Planck Institute for Intelligent Systems, the Ellis Institute Tübingen, the University of Tübingen, and Snyk have tracked down a design problem: OpenAI (ChatGPT), Anthropic with Claude, and Google (Gemini) apparently use global encryption keys for their model families. An encrypted reasoning block is therefore not tied to a specific user, session, or concrete model.

The researchers exploit this compatibility for their attack. Flagship models like Claude Opus or GPT-5 are strictly trained never to reveal their reasoning. Smaller variants like Claude Haiku or smaller GPT derivatives lack these security barriers. The scientists fed the encrypted reasoning block of a top model into a request to the cheaper model and instructed it to read out the content. The weaker model thus acted as a decryption aid and output the complete reasoning process verbatim.

The researchers explain: “By submitting an encrypted reasoning block, attackers completely bypass the flagship model’s alignment. They simply use the weaker model as an unwitting decryption oracle.”

Videos by heise

The team proved that this is not just a theoretical problem through an investigation with real data. In publicly accessible source code repositories and log files, the experts found a total of 315,320 encrypted reasoning blocks that developers had unintentionally shared. Because the creators thought the data blocks were unreadable gibberish, they felt a false sense of security.

Decryption revealed an alarming amount of sensitive information. This included 367 personally identifiable information, 182 access credentials, 62 API keys, 33 plain text passwords, and 30 private email addresses. In numerous cases, the hidden reasoning processes even contained significantly more sensitive details than the actual final response of the AI system.

The implications go beyond the espionage of access credentials: prepared reasoning blocks can also be used to realize covert prompt injections, where malicious code is embedded invisibly for human reviewers into the AI context, or to clone model capabilities without authorization. The experts informed the affected companies about their findings in advance, allowing the providers to implement initial countermeasures. Nevertheless, the incident teaches us: as long as encryptions are not strictly tied to a specific session, mere unreadability for the end-user offers no real protection.

(wpl)

Don't miss any news – follow us on Facebook, LinkedIn or Mastodon.

This article was originally published in German. It was translated with technical assistance and editorially reviewed before publication.