A chat summary put an attacker account in agent policy in 91% of tests
When an AI agent makes a long chat short, the summary can show text of an attacker as the words of the user.
Researchers looked at Claude Code and Codex, two AI coding tools. In each automatic compaction that they saw, the tool put a summary that a model wrote into the chat as a message from the user. In one payment test, a policy from the summary of a frontier model gave access to the account of the attacker in 91% of tests. A policy from the words of the user did this in none.
How it works
An authorizer is software that sets the limits of an agent from the words of the user. Compaction makes a long chat short with a summary. The tool shows that summary as a message from the user.
The numbers
The user told the agent to make the rent payment. A notice from an attacker gave a different account as data only. The policy from the summary gave access to that account in 91% of tests. The repair gives the policy only the words of the user, which the tool checks when they come in and keeps as they are. In 40 tests with attacks and the repair, no step of the attack was done.
What is not known
The authors used one authorizer, Progent, and one test set. The summary gives no results for other tools. With the repair, the agent continues to read the summary. An attacker can stop the policy but cannot change it.
Insight: A permission is only as good as the record of who spoke
AWS tells that an agent in AWS Context can see only the data that its user can see. This paper shows that a summary can speak as that user. This reads as a weak point: if a summary can speak as the user, each permission from the user does not work. Tell each vendor to show how it keeps user words apart from summaries.
Sources
Posted