I've written a lot about ARTEX, the autonomous pentesting framework criminals have been pointing at real organizations since the summer (background here). Today's story is a nice change of pace: three research teams looked at it from the other side and found that the attacking agent can be tricked into running code chosen by the target.
What We Know
Per The Hacker News, which summarized the three teams' work:
- NebuSec built seven decoy services ("ArtexPot") and ran unmodified ARTEX against them. Across the first six decoys, the decoy got code running inside the agent's environment in 33 of 36 runs, the fastest in 27 seconds. A public honeypot it deployed on November 15 recorded five reverse-shell sessions, two of which it attributes to ARTEX.
- Baldur Security planted a lookalike subdomain and a fake leaked key. The agent first refused to pipe a remote script into a shell, then ran it after the server returned misleading errors, handing back a reverse shell in the ARTEX container.
- Café Security Research did a code review only: ARTEX skips its engine's approval step for every agent, enforces scope on its own records rather than on the commands agents run, and by default lets agent commands read the operator's model keys and database password.
- What didn't work: blunt prompt injection. Of eight direct injection prompts in the decoys, the agent downloaded seven and ran none. What worked was ordinary-looking content: a repo to clone, a backup to load, a helper package to install.
- Limits: nobody showed a break-out onto the operator's actual host, and The Hacker News points out the 33-of-36 number came from scenarios NebuSec chose. No CVE, no fix.
Why It Matters
Two takeaways, and only one of them is about criminals.
First, these agents are not magic. They're software with the same weaknesses as any other software that trusts what it reads. Deception (decoy services, fake credentials, canary files) works against an automated attacker at least as well as against a human, and arguably better, because the agent is in a hurry and doesn't get suspicious.
Second, and more important for most of us: this is the exact failure mode of the AI agents you're deploying internally. An agent that clones a repo, opens a file or installs a package can be steered by whoever wrote that content. The researchers found the agent's runtime was a weaker boundary than its reasoning. That's true of a lot of legitimate agent setups too.
Disclosure: I work at Zscaler, and we sell deception and AI security products, so I'm biased toward both. The defenses below apply no matter what you run.
What To Do
- For defenders: plant decoys. Fake admin panels, canary credentials in places an attacker would look, decoy repos. An automated attacker that touches one tells you it's there. Watching is fine. Reaching back into someone else's infrastructure is a legal question, so leave that to law enforcement.
- For anyone running AI agents (yours, not theirs):
- Run the part that touches untrusted content in a throwaway, least-privilege sandbox, separate from the secrets and the console.
- Never let agent commands read model keys, database passwords or cloud credentials from the same environment.
- Enforce scope outside the model. Network egress rules and allow-lists, not a sentence in the system prompt.
- Keep a human approval step for anything that executes downloaded code or installs packages.
Update, December 3: ARTEX 0.7.1 is out (December 1) with a fix for the prompt injection flaw Endor Labs disclosed, tracked as advisory GHSA-9fqx-7xv3-gj58 (no CVE). Per CASRAI, the fix runs each task's commands in disposable containers with a read-only root filesystem and without the server's keys or database. That's pretty much the sandboxing advice above, applied by the tool's own maintainers. (CASRAI)
Bottom Line
The AI attack tool turned out to have the same weakness as every AI agent: it trusts what it reads. That's good news for defenders who use deception, and a useful reminder to sandbox your own agents the way you'd want an attacker's sandboxed.
Source: The Hacker News