The agent security kit (the attacker uses your stack)
The short version
The Wall Street Journal reported that three security researchers, working with ordinary AI coding subscriptions, got into an OpenAI employee's ChatGPT account and read private company data. OpenAI paid them a 6,500 dollar bounty and thanked them. Anthropic's own threat report says the same thing from the other side: attackers are running phishing and malware operations out of the same agent skills the rest of us use to ship apps.
So there is no special hacker toolchain any more. The attacker has your stack, your subscription and your prompts. The thing you have to secure is not a server, it is the path untrusted text takes into an agent that can act on your behalf.
Copy these prompts
Paste them into Claude Code (or any AI that can read your project), in this order. The first one is the one that usually changes someone's afternoon.
1. Map where untrusted text reaches an agent
List every place in this project where text I did not write ends up inside a model prompt: web pages, emails, support tickets, pull request bodies, file uploads, database rows written by users. For each one, tell me what the agent is allowed to do after it reads that text. Report only, do not change code.
2. Cut what the agent is allowed to do
Show me every tool, command, API key and account my agent can reach. Propose the smallest set it actually needs for its job, with an explicit allowlist, no shell that can run arbitrary commands, and secrets kept out of the prompt entirely. Tell me what breaks if I apply it.
3. Close the account door the researchers walked through
Give me a 10 minute account hardening checklist for a small team using AI tools: which third party apps and connectors can currently read our data, how to revoke old sessions and tokens, where to force two factor auth, and how I would notice if someone else was logged in as me right now.
The reason this reads differently from normal security advice is the shape of the attack. Nobody needed a zero day. A model with permission to read and permission to act is a confused deputy: it cannot tell the difference between an instruction from you and an instruction that arrived inside the content it was asked to summarise.
The kit
- Treat every fetched page, email and ticket as hostile input. Not because most of it is, but because the one that is costs you everything the agent can touch. The text your agent reads is code it may execute.
- Separate read from act. An agent that browses should not be the same agent that holds write credentials. Two agents with a human sentence between them is a boring, effective control.
- Approve the side effects, not the plan. Reading a plan is pleasant and proves nothing. Gate the actual writes: sending mail, moving money, deleting rows, pushing code, opening network calls to a new host.
- Keep secrets out of context. If a key is in the prompt, it is in the transcript, the logs and anything that can persuade the model to repeat it. Inject credentials at the tool boundary instead.
- Pin your skills and extensions. An agent skill is executable content from the internet. Read it before you install it, pin the version, and review what changed before you take an update. This is where the Anthropic report says attackers now live.
- Assume the account is the target, not the code. The researchers went at a person's logged in session, not a repository. Two factor auth everywhere, short sessions, and a periodic sweep of every connector with access to your mail and chat.
- Log what the agent did, in one place you actually read. Prompt, tool call, result, timestamp. Without it you cannot answer the only question that matters after an incident: what did it touch.
- Rehearse the revoke. Know how to kill every token and session for your team in under five minutes, and try it once while nothing is on fire.
The uncomfortable lesson
Three people with consumer subscriptions did this and got thanked for it. Everyone else doing the same thing is not filing a bounty report. The gap between those two groups is entirely in what the agent was allowed to do after it read something it should not have trusted.
Steal this for your app
- Write the agent's permission list down as a list. If you cannot write it down, it is not a permission model, it is a hope.
- Any feature described as "it reads the user's content and then does something" needs a human between the reading and the doing until you can prove otherwise.
- Budget for the boring half: two factor auth, connector review, token rotation. It is the half that caught this one.
Run this on your codebase
Paste this into a session in your repo:
Audit this repo for agent security. Report before fixing:
1. Every path where untrusted text (web, email, tickets, uploads, user rows) reaches a model prompt.
2. Every tool or credential an agent can use, and whether a human approves the side effects.
3. Any secret that is passed inside prompt text rather than at the tool boundary.
4. Installed agent skills, plugins or extensions, with their source and whether the version is pinned.
5. Whether agent tool calls are logged with enough detail to reconstruct an incident.
Rank the findings by what an attacker gets if that single path is abused.