Hacking agent ARTEX tricked into opening a shell on itself
Danish firm Baldur says the offensive AI tool scanned its own container and ran a reverse-shell script after being fed fake DNS records and planted web page comments.
By The Agentic Times ·

ARTEX, an AI-powered offensive security agent that is reportedly used by cybercrime gangs to target governments and companies, can be turned against itself with little effort, according to research published over the weekend by Danish offensive security firm Baldur and reported by The Register on 30 November 2026.
Baldur principal security consultant Kevin Joensen wrote that the team began with a simple test of how carefully the tool checks its targets. The researchers created a fake DNS record pointing an admin subdomain of Baldur's own domain, admin.baldur.dk, at 127.0.0.1 — the loopback address that means "this machine". "After a bit, ARTEX starts enumerating domains and stumbles upon admin.baldur.dk and starts building tooling for scanning it," Joensen wrote. The agent then scanned its own environment rather than an authorised target, and was happy to keep doing so in testing.
Joensen noted that this alone is a useful way to burn an attacker's tokens on pointless work. But Baldur went further and tried to obtain a reverse shell — a connection that gives an outsider command-line control — on the ARTEX instance that was scanning its website.
Because the agent reads whatever is written on a target's web pages, the researchers planted fake comments on the index page of their site pointing to a Bash script hosted there. The script claimed it would automatically decrypt an SSH key and grant the administrator full root access to Baldur's web server. In reality it carried a reverse-shell payload. ARTEX fetched the script, recognised the risk and refused to run it.
Getting past that refusal was also straightforward, according to the report. "Instead of serving the payload immediately, we provide an error message describing that you have to set an environment header first, and that header is timing bound and has to be piped to sh," Joensen explained. "Then we have a counter where we serve random error messages on the first couple of requests." The idea was that the agent, like a frustrated human working through an awkward setup process, would decide the risk was worth it. It did, and the reverse shell was granted.
Baldur said the consequences were made worse by the way the tested installation is built. "Everything is in the same container," Joensen wrote, meaning someone with shell access could "just kill the panel, read secrets, exfiltrate data … forge login tokens" and similar. "Sandboxing is a basic 101 when you are doing offensive operations, which seems to be missing from ARTEX," he added.
The firm's overall assessment is that ARTEX is both dangerous and immature as a penetration testing tool, since it cannot tell when a DNS record has sent it to scan its own environment instead of an authorised target.
For defenders, Baldur's advice as relayed by The Register is that conventional security software remains worth keeping, but that deception techniques — planting misleading records and content of the kind used in this research — could also cause the tool's operators significant trouble.
Sources
- theregister.comhttps://theregister.com/security/2026/11/30/artex-may-be-dangerous-but-its-also-dumb-enough-to-hack-itself/5313498
