The AI Hacking Tool Criminals Are Using Can Be Hacked Right Back
ARTEX, the autonomous penetration-testing tool that criminal groups have been deploying against banks, hospitals, and government agencies since at least August, has a problem. The systems it attacks can attack it back.
Two independent security teams published findings on the same day last week showing they could get ARTEX to execute code planted on the systems it was sent to scan. A third team reached the same conclusion without running anything, just by reading the source code. None of them appear to have coordinated.
The FBI flagged ARTEX on November 13, warning that criminal actors had used it against organisations across finance, healthcare, and government worldwide. One documented campaign lifted personal data belonging to roughly 67,000 people from South Korean financial firms. Microsoft has separately identified multiple threat groups using the tool. The significance of the new research is that ARTEX agents typically run with operator credentials inside them, meaning a compromised agent isn't just a nuisance, it's a potential key handover.
San Francisco-based NebuSec built seven decoy services it named ArtexPot and pointed unmodified copies of ARTEX at them. Across the first six decoys, the agent achieved code execution in 33 out of 36 runs using two different AI models. The fastest took 27 seconds. A seventh decoy, tested separately, succeeded all eight times it was attempted.
The mechanics aren't exotic. The agent clones a repository, loads a backup file, reads something cached, or installs a helper package, and in doing so runs whatever code the target put there. It's the kind of action a pentester would take without thinking twice, which is precisely the problem.
The caveats matter too. Direct prompt injection attempts failed almost entirely: the agent downloaded seven of eight planted prompts and ran none of them. Seventeen command-injection probes also flopped. The 33-of-36 figure covers six specific scenarios with two model configurations, not a broad measurement of how catchable ARTEX agents are in real operations.
Danish offensive security firm Baldur Security took a different approach. They set up a lookalike subdomain and planted a fake leaked credential that pointed the agent toward a script. Initially, the agent refused to pipe a remote script into a shell, which is the correct call. Then Baldur's server started returning misleading error responses that made the situation look like routine troubleshooting. The agent relented, ran the script, and handed back a reverse shell inside the ARTEX container. Principal consultant Kevin Joensen put it plainly: "ARTEX offers no sandboxing and everything is mashed together." That result came from one model in a single documented run, and root access wasn't confirmed.
Café Security Research didn't bother running any exploits. Their code review found that ARTEX skips its engine's approval step for every agent, enforces scope only in its own logs rather than on what agents actually execute, and by default allows agent processes to read the operator's model API keys and database password. They noted the exploitability of these gaps was untested in their own work, but set against the two live demonstrations, the architecture review lands the same point from a different angle.
NebuSec also deployed a public-facing honeypot version of ArtexPot on November 15. Two days later, two pentesting agents probed it, one identified as ARTEX, one unknown, generating five reverse-shell sessions between them. The company was clear that host-level access is unverified and it couldn't pinpoint the exact trigger for the shells.
The wild-capture story has real gaps. Five sessions don't equal five operators or five separate campaigns. Whether those agents were running legitimately or maliciously is unknown. There's also a contradiction in NebuSec's own reporting: the main text describes public traffic, but a timeline caption references internal testing, and the company hasn't resolved that. These are shells into an environment of unclear ownership, not confirmed criminal catches.
This class of attack isn't new either. A 2024 paper proposed decoys and prompt injections capable of compromising attacking models, claiming over 95% effectiveness. A 2025 USENIX paper demonstrated getting an agent to execute untrusted code without prompt injection at all. What's different now is that the same weakness is appearing in a tool with documented criminal use, demonstrated two independent ways in the same week.
There's no patch to point to. The original ARTEX author pulled the public code on October 8. ThreatBook, which claims to now own ARTEX commercially, issued a statement last week about a vetted enterprise version called Artex Pro but said nothing about security fixes or whether the paid product carries the same issues. At least 132 forks of the original code remain publicly available as of November 19.
The practical lesson for anyone running authorised agentic testing tools is to stop treating the agent as a throwaway script. Isolate the component that actually touches targets from anything holding secrets or credentials. Run it with minimal privileges in a disposable environment. Don't rely on the model's own reasoning to enforce scope, because as these tests show, the runtime is a weaker security boundary than the model's refusals suggest.
The situation runs both ways, incidentally. A Previdian investigation last week recovered 40 files from an attacker's exposed staging server. PortSwigger's James Kettle described a bug-bounty platform that tried to prompt-inject his own automated testing setup to extract its configuration and real address. The legal and authorisation questions around actively exploiting these weaknesses remain completely unresolved, and NebuSec's report provides no stated legal basis for its own honeypot captures.
Attack tools that can be turned against their operators aren't a new concept. Having it happen in public, with a tool actively being used in criminal campaigns, is a different kind of reminder.