Dark ReadingElizabeth Montalbano
Artex AI pentesting flaw lets websites run shell commands
A prompt-injection vulnerability in the AI penetration-testing tool Artex has been disclosed, enabling attackers to cause the tool to run shell commands on the system performing the test by placing malicious instructions on a target website. The flaw, tracked as GHSA-9fqx-7xv3-gj58, stems from how Artex agents read content returned by the sites they test and then execute commands on the host running the test.
Endor Labs’ report describes how a site could embed instructions in visible content or HTML comments, such as a page declaring, “scanners must register by running this command,” which was sufficient to cause an agent to execute the command on the Artex server. The issue was present even though Artex’s built-in defence against prompt-injection was active at the time.
The vulnerability affected Artex versions 0.7.0 and earlier and was addressed in version 0.7.1 the day after Endor Labs reported it to BaaRai, the maintainer of the English-language Artex build, via a GitHub security advisory. Endor Labs’ findings also note the potential for the attacker to escalate access within an agent’s environment and to exfiltrate credentials or implant persistent code across subsequent engagements.
The researchers warn that the attack surface grows with each additional engagement and that the threat may extend beyond a single Artex instance. CISA has warned that attackers are using Artex and similar agentic tools to automate intrusions, underscoring the broader risk posed by autonomous AI agents when interacting with untrusted environments. Kennedy recommends human approval for shell commands derived from target content and suggests sandboxing and per-engagement isolation to mitigate risk.