Autonomous defence
ARTEX hacked back: what happens when the target turns on the AI attacker?
Baldur Security turned an ARTEX agent against its own environment in a controlled test. What the research means for AI security and autonomous defence.
The AI attacker became the target
ARTEX is an AI-powered penetration-testing framework that uses language models and security tools to find weaknesses in systems. CERT-EU reported in November 2026 that threat actors were using it to automate attacks. But a recent experiment showed that the agent carrying out the attack can have weaknesses of its own.
On 28 November, Kevin Joensen at Baldur Security published a controlled test using ARTEX with the GLM-5.3 model against the firm’s own website. The researchers changed what the agent saw on that website and tricked it into running code inside its container. This gave them a reverse shell, a connection they could use to send commands to that environment.
How did they do it?
Baldur first used a misleading DNS record to point the agent towards its own environment. The website then presented what looked like an accidentally exposed, encrypted SSH key, together with a script supposedly needed to use it.
The agent inspected the script and refused to run it. That should have been the end of it. Instead, the researchers introduced fake errors that made running the script look like a necessary step in fixing the problem. The agent eventually executed the code.
Because the scanner and its control panel shared a container, Joensen reported that the access also exposed secrets and panel functions. The Cloud Security Alliance’s review describes one documented run with one model. Root access was not confirmed, and the researchers did not demonstrate an escape from the container to the underlying host.
Why the first refusal matters
What stands out to me is that the agent recognised the risk at first. It changed its decision when the same action was presented as a way to finish its task. Companies using AI agents need to consider what happens when an agent makes that kind of mistake.
An agent may need to read an unfamiliar website to do its job. If content on that website can persuade it to run code, the permissions attached to the agent become critical. Which credentials can it read? Which other systems can it reach?
Give agents only the access their task requires, and separate the systems doing the work from the systems controlling them. When evaluating a tool, ask the vendor to show what a compromised agent could access. A successful refusal in a demo tells you very little about the damage a later mistake could cause.
What this means for autonomous defence
An automated attacker still has to interact with the systems it targets. Those interactions give defenders a chance to detect the activity and respond while the attack is happening. Baldur’s experiment is an interesting example of how the target can influence that interaction, although other models and deployments may behave differently.
I believe companies will need more of their defence to operate at this speed. Security teams already have to investigate alerts, understand the impact and decide how to respond. As attackers automate more of their work, the time available to do that gets smaller.
This is why we are developing Cykernex Defend. Our aim is to help organisations respond to threats as an attack unfolds. Autonomous defence also needs clear boundaries: the company should decide which actions are allowed, which need approval and when a person must step in.
For companies introducing AI agents today, start by checking their access and how you would stop them if something went wrong. The Baldur test shows why the security of the agent itself deserves as much attention as the task it is carrying out.
References
- Baldur Security: ARTEX, go hack yourself: How we got RCE in ARTEX (28 November 2026)
- Cloud Security Alliance: Hacking the Hacker’s Agent: Target-Side Code Execution Against ARTEX (1 December 2026)
- CERT-EU: From Penetration Testing to Cyber Threat: Beware of ARTEX (5 November 2026)
Sources reviewed on 2 December 2026.