In June 2026 a security team called Tenet published an attack it named “agentjacking”. One fake error report, sent to a project’s publicly reachable error-tracking endpoint, was enough to make AI coding agents run attacker-controlled code when asked to fix the error. Claude Code, Cursor and Codex were all affected, with a reported 85% success rate (Vibe Coding Weekly #36).
Figures and claims about other companies are as reported at the time and summarised by Vibe Coding Weekly; check the original announcement before relying on them.
Why it works
An agent asked to “fix the latest error” reads the error message and acts on it. If the message contains instructions or a “fix” that downloads something, the agent may follow it. Every step looks legitimate, so normal security tools do not notice.
Where this shows up on WordPress
- Error and uptime monitoring that accepts reports from browsers.
- Debug logs that include visitor input (URLs, form fields, user agents).
- Support tickets and form messages an agent is asked to “resolve”.
Protections
- Treat logs as untrusted data. Tell agents never to run commands or install packages suggested inside error messages or logs.
- Keep permission prompts on for shell commands, downloads and package installs. See Agent guardrails and permissions.
- Separate reading from acting: one agent summarises errors; a person or a restricted agent fixes them.
- Protect error endpoints: rate limits and filtering on public reporting keys.
- Work on staging when fixing errors with an agent, not on the live server.
Agentjacking is a cousin of prompt injection; see Prompt injection through comments and forms.
Source: Vibe Coding Weekly #36. This article is our own take for WordPress and Bricks builders; it does not reproduce the newsletter.
