Threat intel5 min read
ARTEX AI attack agent can be made to run its targets' code
Lab tests got the ARTEX attack agent to run decoy code as root inside its own container in 33 of 36 runs. Its operators' keys and passwords sit in that same container.
4Tify Team

ARTEX, the AI attack framework that criminals have used against banks, hospitals and government bodies since the summer, will run code planted by the systems it is pointed at. Two lab tests published at the end of November got the agent to execute attacker-chosen code inside its own container, and a review of the source code points to the same weak spot.
What happened
In the first test, a security company built seven decoy web services and aimed unmodified copies of ARTEX 0.3.15 at them, using two different AI models. Across the first six decoys the agent ended up running the decoy's code in 33 of 36 runs, as root inside the ARTEX container. The fastest run took 27 seconds. A seventh decoy, added later, worked in all 8 of its runs.
The agent was not fooled by plain instructions. Eight direct prompt-injection attempts led to no code execution (the agent downloaded seven of the scripts to inspect them and ran none), and 17 command-injection probes failed too. What worked were ordinary steps of a test: cloning a repository it found, restoring a backup, loading cached bytecode or installing a helper package. Each of those runs code the target controls.
A Danish consultancy reached the same result another way. It pointed an admin subdomain at the agent's own machine with a fake DNS record and left page comments linking to a script. The agent first refused to pipe the script into a shell. After a few staged error messages that made it look like routine troubleshooting, it ran it and opened a reverse shell inside the ARTEX container. That was a single documented run, and root access was not confirmed.
A third team read the source of ARTEX 0.3.15 and 0.3.30 without running anything. It found that the approval step can be skipped, that scope is checked against the tool's own records rather than the commands the agents run, and that by default those commands can read the operator's model API keys and database password. Whether a target could exploit this was not tested.
Who is affected
The people exposed here are whoever runs ARTEX: the operator's console, data store, API keys and signing key share one container with the workers that touch targets. Nobody has shown an escape from that container to the host.
The test company also put a public decoy on its website on 15 November. At the end of the month two automated pentest agents probed it, one of them ARTEX, and the listener recorded five reverse-shell sessions (two from ARTEX, three from the other tool), all without root. Who ran those agents, and whether they were criminals or authorised testers, is not known. Host-level access was not verified.
The FBI's FLASH alert of 13 November says criminals have used ARTEX since at least August, including attacks on South Korean financial firms that exposed data on about 67,000 people. The original repository was taken down in October, but copies and forks are still in circulation and no security fix has been announced.
Why it matters
For defenders, these results are threat intelligence. Hacking back is another matter: running code on someone else's machine without permission is illegal in many countries, even when that machine is attacking you. Decoys that record what an agent does, without executing anything on its side, carry no such risk.
For any team that runs an AI testing agent, the lesson is broader. The model may refuse an obvious trap and still run hostile code hidden in a normal task. The agent's runtime is a separate security boundary from the model's judgement, and in ARTEX it is the weaker one.
What to do now
If you run AI agents against systems you do not fully trust, including your own authorised tests:
- Assume the target can execute code where the agent works. Keep model keys, database passwords, signing keys and client credentials out of the worker's environment.
- Separate the workers that touch targets from the console, the planner and the data store. Run each worker in a disposable, unprivileged sandbox.
- Limit outbound traffic to the authorised scope and the model endpoint. Enforce scope at the network layer after DNS resolution, because a hostname can be pointed anywhere.
- Treat everything a target hands over as untrusted code: clone with hooks disabled, never unpickle or load target bytecode, install target packages only in a throwaway environment.
- If a credential has been inside an agent container that worked against untrusted targets, rotate it.
To defend against ARTEX and similar tools, follow CISA's guidance on agentic offensive frameworks: close unneeded exposure, patch the riskiest flaws first and watch outbound traffic.
If your own team uses AI agents with access to keys and internal systems, our penetration testing service can assess that setup the way a hostile target would, with planted files and lookalike hosts, and check what the agent's container can reach.
