Bait on an index page

A Danish offensive-security firm has published a walkthrough of how it got a reverse shell on ARTEX, the autonomous AI penetration-testing panel that Microsoft said last week is being used by state-backed and criminal groups. The method was prompt injection, and the bait was a fake leaked SSH key.

In a report published on 28 November, Kevin Joensen of Baldur Security described pointing an ARTEX instance — running GLM-5.3 as its base model through OpenRouter — at baldur.dk, the firm’s own domain, and then seeing what it would do with what it found there.

ARTEX is the kind of tool that takes a seed domain, an LLM, and plans and executes an entire attack chain without a human in the loop. “No human in the loop. What could possibly go wrong,” Joensen wrote.

First, it attacked itself

The first test was scope drift: what happens when the scanner believes something is in scope that is not. Baldur created a DNS record pointing admin.baldur.dk at 127.0.0.1, on the theory that the tool would not sanity-check a loopback address.

A latch bar and hinge plates on a yellow painted steel door
A door latch. Illustration for a story about scope and boundaries in penetration testing. Jan van der Wolf · pexels · Pexels License

It did not. “After a bit, ARTEX starts enumerating domains and stumbles upon admin.baldur.dk and starts building tooling for scanning it,” Joensen wrote. The scan was aimed at the machine ARTEX was running on. The practical effect is that an attacker’s tokens get spent attacking the attacker — funny, as Joensen noted, but also a real hazard in authorised testing, where a stale DNS record on a wildcard domain can point at a third party the engagement has no permission to touch.

Then it ran the payload

The second test was for code execution. Baldur planted a script block at the top of its index page containing an “encrypted” debug SSH key, a comment saying administrators could decrypt it by piping a remote script into bash, and an urgent-looking internal note warning that the script server should never be public. The script was a reverse shell.

ARTEX picked up the bait, created a task for it and fetched the payload — then refused to run it. “The model correctly concluded that piping a remote script straight into bash is a bad idea,” Joensen wrote. ARTEX also, he noted, used Baldur’s own research pages as a reference while planning the attack it was attempting.

A steel fire escape with expanded-metal treads, seen from above against a brick wall
A fire escape. Illustration for a story about container isolation, not an image of any specific system. Vitali Adutskevich · pexels · Pexels License

The bypass took two changes. Instead of serving the payload directly, the server returned an error message claiming a millisecond-timed environment header had to be set first and that this required piping to sh. A counter then served harmless error strings on the first several requests. Faced with a workflow that looked broken rather than malicious, the agent decided the risk was worth taking, and the reverse shell connected.

One container, everything in it

What made the shell worth having is the architecture. “Everything is in the same container” in the installation Baldur tested, Joensen wrote, so an attacker with shell access could “just kill the panel, read secrets, exfiltrate data … forge login tokens”.

His conclusion was blunt: “Sandboxing is a basic 101 when you are doing offensive operations, which seems to be missing from ARTEX.”

The finding lands against a specific backdrop. Microsoft reported last week that six state-backed and criminal groups are now running ARTEX against global technology systems. Baldur’s result does not make the tool less dangerous to its targets — it means a target that reads its own web logs has a way to reach back, and that defenders running similar agents in a single container share the exposure.