The AI agent sent to hack was hacked back: what the ARTEX case leaves us
An AI hacking tool used by criminal groups was taken over by the targets it attacked. The hole wasn't a clever prompt. It was the files the agent fetched and ran.
Yohan Choi
· 2 min read
Key takeaways
- ARTEX, an AI hacking tool used by criminal groups, was taken over by its own targets. NebuSec got code execution in 33 of 36 runs, the fastest in 27 seconds.
- Direct prompt injection failed every time. The agent fell when it cloned, imported or installed artifacts the target supplied.
- Any agent that reads the outside world should treat running fetched code as handing over privileges, and needs separated secrets, network limits and approval gates outside the model.
The security story that traveled furthest on X and Hacker News this week was "the hacker's AI got hacked." Several teams showed that ARTEX, an AI penetration-testing agent used by criminal groups, can be taken over by the very sites it attacks.
#What ARTEX is
ARTEX is an autonomous AI pentesting tool that scouts a target and runs attack code on its own. As reported, the FBI has warned that criminals have used it since at least August 2026, and Microsoft tracks several groups that use it. ThreatBook, which claims ownership, says it sells a restricted Artex Pro only to vetted enterprises, but no fix for these findings has been confirmed.
#Two teams, two experiments
- NebuSec built decoy services aimed at ARTEX. Across its first six decoys it got code execution in 33 of 36 runs with two AI models, the fastest in 27 seconds. A seventh decoy succeeded in all eight runs. The agent's container held the operator's passwords and API keys.
- Baldur Security pointed an admin subdomain of its own domain at 127.0.0.1. Scanning that address, ARTEX ended up attacking itself. It refused at first, then was led by deceptive page comments and staged script responses into opening a reverse shell. This was a single run, and root access was not confirmed.
#Prompt injection failed
The most interesting part is what didn't work. NebuSec's eight direct prompt-injection strings were downloaded but never acted on, and all 17 command-injection probes failed.
The agent fell at a different moment: when it cloned, deserialized, imported or installed artifacts the target supplied. The model resisted being told to run a command, but had no suspicion about running files it fetched to do its job.
A separate review by Café Security pointed to structural problems too. ARTEX skips its approval step for every agent, checks scope only against its own records, and by default lets agent commands read the operator's model keys and database password.
#Lessons for people building agents
Satisfying as it is to see a criminal tool fall, this applies to every agent that reads the outside world. Coding agents that browse, clone repositories and install packages have the same shape.
- Clone, install and import are execution. The moment an agent runs a fetched repository's install script or tests, that code's author has the agent's privileges.
- Keep secrets out of the execution environment. Don't put model keys or deploy tokens in the container where the agent runs commands.
- Restrict network destinations. Block external names that resolve to 127.0.0.1 or private IPs, so the agent can't hit itself or your internal network.
- Enforce approval and scope outside the model. As the Baldur run shows, a model that refuses can be talked around. Its judgment is not a defense.
On the same day, a Show HN project called Sandprobe, which checks what a hijacked AI agent can reach from its sandbox, climbed to fifth on Hacker News. Its question sums up the whole case: when your agent is fooled, what can it reach? The shorter the answer, the safer you are.
Sources
The Hacker News: ARTEX AI Hacking Tool Used by Cybercriminals Can Be Hacked by Its Own Targets
CSA Research Note: Hacking the Hacker's Agent, Target-Side Code Execution Against ARTEX
Cybersecurity News: Researchers Trick ARTEX AI Tool to Hack Itself
Share
About the author
Yohan Choi
Founder, Lab Yohanium
Yohan designs, builds and ships every project in the lab, from the first sketch to the production release.
About the labSecurity
Working on a problem like this?
If this article is close to something on your desk, the lab can build it with you or talk it through first.
Get the next article by email
New insights and released projects, about twice a month. Unsubscribe any time.