· AI dev tools

ARTEX AI Pentesting Tool Vulnerable to Self-Hacking, Baldur Researchers Find

The autonomous AI penetration-testing tool, ARTEX, which criminal groups have employed this year to infiltrate banks and other organizations globally, possesses a vulnerability where it can be…


The autonomous AI penetration-testing tool, ARTEX, which criminal groups have employed this year to infiltrate banks and other organizations globally, possesses a vulnerability where it can be compromised by the very systems it is tasked with examining. Security researchers from the Danish offensive security firm Baldur detailed how effortlessly they managed to cause ARTEX to attack itself in a report released over the weekend.

As Kevin Joensen, a principal security consultant at Baldur, elaborated within the findings, the researchers initially tested the tool's design thoroughness by employing fraudulent DNS records. These fake records redirected an administrative subdomain belonging to Baldur’s domain to the local address, 127.0.0.1. The tool proved insufficiently robust, as Joensen noted: “After a bit, ARTEX starts enumerating domains and stumbles upon admin.baldur.dk and starts building tooling for scanning it.” When the tool began executing these scans, it was, in effect, scanning its own environment—a behavior that amused Joensen, though he pointed out it would waste an attacker's tokens on unproductive activity.

However, Baldur’s team aimed to determine if they could force a reverse shell onto the ARTEX instance while it was testing against its own website. Achieving this required a relatively straightforward maneuver, even though the researchers first had to bypass the AI agent's initial resistance to running the script. Because ARTEX operates with numerous tools accessible to the AI agent—a characteristic shared by many offensive cybersecurity suites powered by AI—Baldur introduced fake comments onto the homepage of its site. These comments pointed toward a Bash script hosted on the site, which falsely claimed it would automatically decrypt an SSH key, thereby granting the administrator complete root privileges on Baldur’s web server.

ARTEX responded to this lure by retrieving the script, but it initially halted execution due to perceived risk. Overcoming this detection and persuading ARTEX to run the code anyway proved equally simple. Joensen explained the technique: “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.” Furthermore, they implemented a counter where random error messages were served across the initial few requests. The underlying assumption was that, much like a human navigating such a process, ARTEX’s AI would eventually deem the risk worth the effort, which it did, resulting in the granting of a reverse shell.

Compounding the issue is the fact that, within the tested ARTEX installation, “everything is in the same container,” according to Joensen. This configuration could allow an individual who gains shell access to potentially “just kill the panel, read secrets, exfiltrate data … forge login tokens,” among other actions. Joensen further asserted that “Sandboxing is a basic 101 when you are doing offensive operations, which seems to be missing from ARTEX.”

In essence, ARTEX presents itself as both a hazard and a flawed piece of software. While it is currently being utilized by cybercrime syndicates to target corporations and governmental entities, Baldur maintains that the tool suffers from extreme immaturity as a pentesting utility and lacks proper sandboxing, evidenced by its inability to distinguish when a DNS record directs it to probe its own infrastructure rather than an intended target. For those seeking defense against the misuse of AI tools like ARTEX, maintaining traditional security software remains advisable, though Baldur's investigation suggests that employing deception tactics could also present significant challenges to the tool's operators.

Why it matters

For developers using or building tools that interact with autonomous security agents, this highlights severe risks in AI tool design. The lack of proper sandboxing and self-awareness in ARTEX demonstrates that even powerful offensive tools can be trivially subverted by deception techniques.

Earlier coverage

Related coverage

Also worth reading

  1. next.js 16.5.0-rc.4 released, featuring turbopack document chunking updates
  2. UK ministers blame AI-assisted hackers for DWP benefits system meltdown
  3. Open Source sustainability challenged by AI's flood of work, developer burnout
  4. Amplify Gen 3, AWS, lets developers use any coding agent for simplified AWS deployment
  5. Anthropic reveals Claude models formulated theoretical papers on lattice cryptography, not a crypto-killer