Your agent can be compromised by what it reads, before it executes anything.
Nobody needs to hack the model. It is enough to put the right words where agents look: a docs page, a README, a search result. The attack is on the information the agent decides from.
| LAYER | THE QUESTION | WHAT IT TAKES | WHERE THIS SITE STANDS |
|---|---|---|---|
| Source | What content is the agent relying on? | Who published it, and can it be trusted? | Not what agent-check does. A source's address is not its identity. |
| Exposure | What did the agent actually receive? | Evidence of what was read, run, and returned. | This is agent-check: what was attempted, what succeeded, what came back. |
| Execution | May the action it now asks for happen? | A decision before the action, by a rule a person set. | Enforcement. Not a free tool reading history after the fact. |
What happens, what your history shows, what it cannot prove.
These are not attacks agent-check detects. They are a map of where its view ends. Each verdict below was computed by the published rules from the session's log.
| SCENARIO | WHAT HAPPENS | WHAT AGENT-CHECK RECORDS | WHAT IT CANNOT PROVE |
|---|---|---|---|
| The docs site that changed owners | A lapsed docs domain is re-registered and serves a changed install line. | No event for any of its 3 calls | Who controlled the domain when the agent read it. |
| The README written for the agent | A README addresses the agent and asks it to read a credential file. | 1 of 2 calls: credential_file | Whether the text is what made the agent act. |
| The search result that named the wrong package | A search result names a look-alike package, and the agent installs it. | No event for any of its 2 calls | Whether the result, or the package, could be trusted. |
| The page that looks different to the agent | A page serves the agent a version with a hidden instruction. | No event for any of its 2 calls | What a person would have seen at the same moment. |
- A small open-source project stops renewing its docs domain.
- Someone else registers it and serves the same pages, with one line changed: the install command.
- Agents still find the old address in search results and older answers.
- The agent reads the page and runs the install line.
Nothing. None of these calls is in a category the check counts.
Both the page the agent read and the command it ran are in the transcript, word for word. Nothing in it says the domain changed owners.
LOOK FOR IT YOURSELFgrep -rlE 'curl [^"]*[|] *(ba)?sh' ~/.claude/projectsLists the sessions where an agent piped a download into a shell. Then read what the agent fetched just before. For Codex, search ~/.codex/sessions the same way.
- A domain name is not an identity. The same address can belong to someone else tomorrow.
- Nothing in the history records who owned the domain when the agent read it.
- agent-check counts categories; installing from the web is none of them.
Visibility shows what happened. Enforcement controls what can happen next.
Measurements of how often search results carry malicious content will appear here only after we have read the primary study, with its method, scope and limits. We do not build on secondary quotes. The scenarios above use example domains and invented package names.