ARTEX AI agent can be tricked into hacking itself
Researchers say a fake DNS record and a phony Bash script were enough to coax the AI pentesting tool into opening a reverse shell on its own host.
A fake DNS record that pointed an admin subdomain at 127.0.0.1 turned out to be all it took to get an AI-powered offensive tool to scan its own host. The researchers who tried it say they then went further and got the agent to hand them a reverse shell — by hiding a payload behind a script it was told to trust.
The work comes from Baldur, a Danish offensive security outfit, which published its findings over the weekend. The target was ARTEX, an AI agent built to find bugs. According to the researchers, it is both a tool miscreants can use against governments and companies and a piece of software with design gaps that let it be turned against its own operators.
Poisoning DNS to target the target
The first experiment was deliberately small. Baldur principal security consultant Kevin Joensen wrote in the report that the researchers used faked DNS to point admin.baldur.dk, an admin subdomain of the company's own domain, at the loopback address 127.0.0.1. The idea was to see how thorough the tool's design was. It was not.
“After a bit, ARTEX starts enumerating domains and stumbles upon admin.baldur.dk and starts building tooling for scanning it,” Joensen writes. Because the subdomain resolved to the local machine, the scans that followed were the agent scanning itself. According to Joensen, it did so without complaint during the test.
That result is funny, Joensen noted, and it doubles as a way to burn an attacker's tokens on work that goes nowhere. But the team wanted to see whether it could go past a wasted scan and land a reverse shell on the ARTEX instance they were testing on Baldur's own website.
A script the agent was told to trust
Like other AI-driven offensive suites, ARTEX runs with a broad set of tools exposed to the agent doing the work. The agent reads what is written on the target's website, so Baldur wrote fake comments onto the index page of its site. Those comments pointed to a Bash script hosted on the same site. The script's description claimed it would automatically decrypt an SSH key and give the administrator using it full root access on Baldur's web server. In reality, the script carried a reverse-shell payload.
ARTEX fetched the script. It also recognized the risk and stopped before executing it — an initial refusal the researchers had to get around. Their method for doing that was, by Joensen's account, just as simple.
“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.”
— Kevin Joensen, principal security consultant at Baldur
The aim was to mimic the experience a human administrator has with a poorly documented setup: an error, a workaround, a few more errors, and then a decision about whether pushing on is worth it. ARTEX's AI made that call the way a frustrated human might, ran the script anyway, and the researchers got their reverse shell.
Nothing was walled off
What made the shell more useful than it should have been was the layout of the ARTEX installation Baldur tested. According to Joensen, everything ran in the same container. That means anyone holding shell access could “just kill the panel, read secrets, exfiltrate data … forge login tokens,” and do similar things, he wrote.
Joensen's assessment of the missing control is blunt. “Sandboxing is a basic 101 when you are doing offensive operations, which seems to be missing from ARTEX,” he added.
The absence of that separation is the difference between an exploited agent and an exploited agent that can reach the rest of the stack. A tool that holds credentials and can forge its own login tokens sits at the center of whatever operation it is part of.
Dangerous and immature at the same time
Baldur's conclusion is that ARTEX manages to be both. The tool is being used by cybercrime gangs to target governments and companies, according to the researchers. It is also, in their view, extremely immature as a pentesting tool, because it cannot recognize when a DNS record has pointed it at its own environment instead of an authorized target.
The self-scan incident shows how the two problems interact. An agent that treats any resolvable hostname as a legitimate target will scan loopback if that is where the name lands. An agent that reads the target's website for instructions will accept a script from that website. An agent that runs everything in a single container will hand over more than intended when either of those paths is followed.
Where the tokens go
Joensen's note that the self-scan is a good way to burn an attacker's tokens is worth separating from the rest of the findings. It describes a low-cost defensive move: point an operator's agent at work that produces nothing. The researchers did not present it as a fix for anything, and the report frames it as an observation made during testing.
The reverse-shell chain is the more serious of the two results. Getting from a fake comment on a web page to a shell on the agent's host required only that the agent be convinced to follow instructions it had already flagged as risky. The error-message sequence is a familiar pattern to anyone who has talked a user through a stubborn install. It worked here because the agent was judging the instructions, not the source of the script.
Limits of the test
The findings are based on an ARTEX installation that Baldur set up and ran on its own website. The report does not describe how other deployments are configured, and it does not state whether the same behavior would appear on a hardened installation. Baldur's assessment that sandboxing is missing refers to the instance the team tested.
There is also no claim in the report that the reverse-shell technique has been used against a third party. The testing was done by the researchers against their own copy.
What the researchers suggest
For anyone worried about malicious use of AI tools like ARTEX, Baldur keeps the conventional advice: ordinary security software is still worth keeping in place. The team's research also points to a second avenue. Deception techniques, in the researchers' view, could give the tool's operators a headache.
That suggestion follows directly from what happened in the test. An agent that enumerates domains and reads target websites can be fed material that sends it somewhere unproductive. Baldur's use of a fake DNS record to point the agent at loopback is one example, and Joensen's remark about burning tokens describes the effect plainly.
Why it matters
The obvious reading is that an attacker-grade AI tool can be turned around by the same tricks that work on any other software that trusts its inputs. The research suggests that operators of AI pentesting agents may need to think about their own deployments as targets, not just as instruments — and that sandboxing and target validation are the places where that thinking would start. For defenders, the more limited takeaway is that deception of the kind Baldur tried could have a place alongside conventional security products, though the researchers present it as a promising direction rather than a proven control. What the report does establish is narrower and more concrete: in Baldur's test, a misconfigured DNS record and a script served with a plausible error message were enough to get the agent to do the work itself.
Sources
- The Register Original source
Continue Reading
AI backdoors that wake on hardware
CertiK researchers say identical model weights can behave differently on a Mac and on an NVIDIA A100, letting a supplier hide a backdoor that only fires in deployment.
AI agents fall for digital decoys
Deception technology is being retooled to trap AI agents by exploiting their persistence and token budgets, experts tell CSO.
Backdooring an LLM with just seven neurons
Microsoft researchers say rewriting a handful of dormant neurons in an open-weight model can plant a trigger-activated backdoor without retraining.