ARTEX: the AI Hacking Tool That Its Own Targets Can Hack Back
ARTEX, the AI pentest agent criminals point at your network, runs attacker-planted code in its own container. A Danish firm pointed it at a honeypot and got a shell.
Published by Zero Hunt, an autonomous AI red team on an on-premise appliance running private AI: automated penetration testing for networks and infrastructure, black-box or gray-box, with a human approving every step that matters.
ARTEX — the open-source agentic penetration-testing framework that went from a GitHub upload in July to a staple of state-aligned and criminal crews by November — has a problem its operators did not price in: the targets it is pointed at can run code inside it. A Danish offensive-security firm set up a decoy, let ARTEX attack it, and walked away with a reverse shell on the machine driving the attack. The same property that makes an autonomous attack agent dangerous — it reads whatever a target serves and acts on it with a real shell — is the property that lets a target reach back through it.
Developing story — first published 19:50 CET (18:50 UTC), December 1, 2026. Updated as the researchers and others publish more.
What the researchers demonstrated
The write-up is from Baldur, a Danish offensive-security outfit, published November 28 by principal security consultant Kevin Joensen under the title "ARTEX: Go Hack Yourself" and picked up by The Register on November 30. The scenario is the one every defender now has to assume: a threat actor fires ARTEX at your organization. Baldur's question was whether you can turn it around.
The chain, in order:
- Scope drift. Baldur pointed an admin subdomain of its own domain at
127.0.0.1— "because surely they will sanity check for 127.0.0.1 right?" ARTEX did not. It enumerated domains, found the loopback subdomain, and started building tooling to scan it. As Joensen put it, "Now ARTEX is attacking itself and the precious tokens are wasted." - The bait. Baldur added a block of fake developer comments to the top of its index page, describing an "encrypted debug key" that an admin could decrypt by piping a script from an internal server straight into a shell — "a developer having a very bad day."
- The first refusal. ARTEX fetched the referenced script, checked it, and declined to run it — the model "correctly concluded that piping a remote script straight into bash is a bad idea." This is the part that matters: the agent's safety reasoning worked, at first.
- The bypass. Baldur stood up a small server that, for the first several requests, returned a harmless error telling the agent the key was "timing-bound" and had to be fetched a specific way; after a counter rolled over, it served a Perl one-liner that opened a reverse shell. ARTEX, in Joensen's account, eventually reasoned "actually let me just try the flow" and ran it.
- The result. "Congratulations threat actor. I now have a reverse shell on your machine."
The shell landed inside ARTEX's own container — and in the tested install, as Joensen notes, "everything is in the same container." A filesystem listing showed the operator's keys, data, and artex directories and a jwt.key right there, which is why he argues an attacker in that position could "just kill the panel, read secrets, exfiltrate data" and "forge login tokens using the jwt signing key."
Why an AI pentest agent can be hacked by its own target
This is not prompt injection in the usual sense, and that is the interesting part. The malicious payload did not arrive as an instruction ("ignore your rules and…"). It sat in ordinary task artifacts — a comment on a web page, a referenced script, a staged error response — exactly the material an autonomous pentester is built to read, reason about, and act on. ARTEX's worker agents, per Microsoft's defender guide published November 25, "execute [intents] with a real shell and real offensive tools." A real shell that acts on untrusted content is the definition of a user-execution and command-execution surface — only here the "user" being tricked is the attacker's own agent.
The agent refused the obvious trap, then talked itself into the dressed-up version of the same trap. That is the whole attack. You do not need a model jailbreak when the model will reason its way to "worth the risk" if you stage the social engineering across a few requests.
Baldur's structural point is the one to keep: "Sandboxing is a basic 101 when you are doing offensive operations, which seems to be missing from ARTEX." An offensive tool is supposed to assume everything it touches is hostile, because everything it touches is hostile — it is attacking hostile infrastructure by definition. Running the agent, its control panel, its signing keys and its operator secrets in one shared container inverts that: the most hostile input in the engagement gets code execution next to the crown jewels.
What this does not mean
The headline writes itself, so it is worth being precise about what was and was not shown:
- "Root" was the goal, not a proven result. Joensen's stated objective was to "get root on the threat actor's machine," and the files in the container were root-owned, but the write-up does not demonstrate the shell itself ran as a root UID. Treat "root access" claims circulating around this story as unconfirmed.
- No host escape. There was no sandbox boundary to escape — the shell was in the container because there was no second layer. That is the finding, not a container-breakout exploit.
- Killing the panel, reading secrets, forging tokens are described as what the position allows, with a filesystem listing as evidence. The write-up does not show them being carried out.
- Hacking back is not a plan. Baldur ran this "in a controlled environment," against infrastructure it owned. A real target reaching into a live attacker's tooling is a different legal universe, and the researchers flag that even running ARTEX against real targets drifts into "grey areas" with rules of engagement.
What is not known yet
- Whether every ARTEX fork — more than a hundred persist after the original author pulled the source in October — and the commercially sold "ARTEX Pro" variant share the single-container design, or whether some operators already run it sandboxed.
- Whether any threat actor has actually been compromised this way in the wild, as opposed to in a lab against a decoy.
- There is no CVE, no coordinated-disclosure timeline, and no vendor response in the public record for this specific finding.
- The "two" or "three research teams" being cited in secondary coverage: Baldur's is the write-up with a verifiable public report behind it. Specific figures attached to other, unnamed teams should be treated as unverified until their own reports surface.
If you are on the receiving end of ARTEX, the useful takeaway is not "hack it back" — it is that the tool is loud. The durable signal is the machine-speed tempo, not any string it sends, which we covered in detecting the agentic framework state hackers use.
The discipline a downloaded framework does not have
The Baldur result is, underneath the fun of it, an argument for how autonomous offensive security has to be built — and it is the line between a leaked framework and a governed one. An autonomous AI red team is only safe to run if it assumes its own inputs are hostile, because its entire job is to handle hostile inputs. That means isolation is not a feature, it is the floor.
This is exactly where Zero Hunt is engineered the opposite way to ARTEX. Every exploit the 10-agent swarm generates runs in an ephemeral Docker container with optional gVisor hardening, on an appliance whose host OS is hardened so that attacks — including the ones that try to turn the tooling around — never touch it. The engine's models run on-premise and private on that appliance, so there is no shared panel on the public internet holding the operator's keys, and no external model that a target's content can quietly redirect. Five human-in-the-loop autonomy levels gate every exploitation step, every finding is signed at write time, and the whole campaign is something you own and can pause — not a framework you download, point at the internet, and hope sandboxed itself. Continuous automated validation that an attacker could pop is worse than none; the version worth running is the one built, like an offensive tool should be, to assume everything it reads is trying to hack it back. Talk to us about running that loop under control you keep.
Is this exploitable in your environment?
Zero Hunt answers that on your own network: an autonomous AI red team on an on-premise appliance, running on private AI, black-box or gray-box, with a human approving every step that matters. Proof of what is exploitable, the fix, and signed evidence — your data stays on your network.