An adaptive attacker got hidden instructions past Opus 5.5's safeguards in 36 of 40 coding tests
Anthropic says any agent that reads untrusted text, holds private data and can act is exposed. A finance researcher's agent reads papers and filings, holds licensed data and keys, and runs code.
Anthropic’s system card for Claude Opus 5.5, dated 22 September 2026, describes the attack in one paragraph. “An attacker hides an instruction within content an agent will process during a task.” The agent reads the text while doing what the user asked, and if the attack works it obeys the attacker as if the user had asked. “Any agent that is exposed to untrusted data, and can both read private data and take action on the user’s behalf, is exposed.”
Anthropic’s own tests show the gap between fixed and adaptive attacks
| Test, Claude Opus 5.5 | Result |
|---|---|
| Fixed attacks, Gray Swan benchmark, 15 attempts | A 1.0% chance of success. Highest in computer use (2.8%), lowest in coding (0.5%) and tool use (0.4%) |
| Adaptive attacker in coding, 200 attempts per scenario, no safeguards | 54.61% of attempts succeeded. 37 of 40 scenarios broken at least once |
| The same, with Anthropic’s injection probes on | 11.13% of attempts. 36 of 40 scenarios broken at least once |
| Instructions planted in text the user pasted | Early snapshots followed them, “including harmful instructions and those hidden in characters that are not visible on screen”. Anthropic says the final model and product changes mitigated this |
Anthropic calls the adaptive test “a deliberately permissive threat model”: the attacker trains against the exact scenarios and gets many tries, which a real attacker usually cannot. It also warns that fixed test sets “can provide a false sense of security.” Opus 5.5 is Anthropic’s most robust Opus model on these tests. The 36 of 40 is Anthropic’s newest Opus model, with Anthropic’s own probes on, against someone who keeps trying.
A finance researcher’s agent meets all three conditions
| Condition | In a finance project |
|---|---|
| Untrusted text | Working papers and referee packets as PDFs, SEC filings, earnings call transcripts, web pages, forum threads, READMEs of the packages it installs |
| Private data | Licensed rows from CRSP or Compustat, unpublished results and drafts, a WRDS password the wrds package stores in .pgpass in your home folder, model API keys, a GitHub token |
| The power to act | A shell, git, network requests, and in auto mode no prompt for routine commands |
Journals already treat planted text as real: the Review of Finance bans manuscript files that hide text or embed instructions meant to manipulate automated systems, at the cost of a year’s submissions. A referee who hands such a file to an agent hands it the attacker’s sentence.
Guards that hold when the model is fooled
The model’s resistance is one layer. Claude Code adds others that work whether or not the model obeys the planted sentence.
| Guard | What it stops | Where it is set |
|---|---|---|
| Auto mode classifier | Sending sensitive data to outside endpoints, curl piped to a shell, printing a live credential into the transcript, force pushes. Tool results are stripped from what it sees, “so hostile content in a file or web page can’t manipulate the classifier directly” |
On by default for most users. Name your licensed folders as sensitive data locations in autoMode.environment in ~/.claude/settings.json |
| Sandbox network allowlist | Any connection from a shell command to a host you did not list. The list starts empty | sandbox.network.allowedDomains |
| Sandbox credential rules | Commands reading ~/.ssh, cloud credentials or token variables |
sandbox.credentials |
| Read deny rules | The agent’s own tools reading .env or the licensed data folder |
permissions.deny |
The documentation is plain about the limits. Auto mode “does not guarantee safety,” the sandbox is off until you turn it on, and inside it commands can read “most of the machine, including credential files such as ~/.ssh and ~/.aws/credentials” unless you deny them. Its own advice for untrusted content includes: “Avoid piping untrusted content directly to Claude.”
A starting point for the project’s .claude/settings.json, using the documented keys. Add the hosts your own pipeline needs to the list.
{
"permissions": {
"deny": ["Read(./.env)", "Read(./data/licensed/**)", "Edit(./tests/**)"]
},
"sandbox": {
"enabled": true,
"network": {
"allowedDomains": [
"pypi.org", "files.pythonhosted.org",
"api.openalex.org", "api.crossref.org",
"data.sec.gov", "www.sec.gov"
]
},
"credentials": {
"files": [
{ "path": "~/.ssh", "mode": "deny" },
{ "path": "~/.aws/credentials", "mode": "deny" }
],
"envVars": [
{ "name": "GITHUB_TOKEN", "mode": "deny" },
{ "name": "OPENAI_API_KEY", "mode": "deny" }
]
}
}
}
The WRDS pull connects to wrds-pgdata.wharton.upenn.edu on port 9737, the default in the wrds package. If the pull will not run inside the sandbox, run that one script yourself in another terminal rather than widening the sandbox for every command. The auto mode entry goes in ~/.claude/settings.json, because the classifier ignores autoMode in project settings:
{
"autoMode": {
"environment": [
"$defaults",
"Sensitive data locations: any data/licensed folder under ~/research holds CRSP and Compustat rows licensed through WRDS.",
"Audience for that data: this machine only. It may not be sent to any external host, pasted into a prompt or committed."
]
}
}
Three habits for every session
Black October showed what attackers wanted from developers’ machines last month. A finance researcher’s laptop now holds the same keys, plus data a vendor licensed to the whole campus.
Sources
- Anthropic, Claude Opus 5.5 System Card www-cdn.anthropic.com
- Claude Code documentation, security code.claude.com
- Claude Code documentation, sandboxing code.claude.com
- Claude Code documentation, permission modes code.claude.com
- Claude Code documentation, configure auto mode code.claude.com
- LiteLLM, canonical incident record docs.litellm.ai
- WRDS, policy on generative AI tools wrds-www.wharton.upenn.edu
- wrds, Python package pypi.org