A serious security flaw has been discovered in ARTEX, an open-source platform used for AI-powered penetration testing, that could allow attackers to hijack its agents and exfiltrate sensitive client credentials. The weakness, identified by researcher Peyton Kennedy from Endor Labs, affects BaaRai ARTEX versions 0.7.0 and earlier, triggering an urgent patch release.
What is the vulnerability?
At a high level, the issue is a form of indirect prompt injection. Rather than issuing malicious instructions directly to an AI agent, an attacker embeds harmful commands within content the agent is expected to process during a scan. Specifically, Kennedy demonstrated that a malicious website could force an ARTEX agent, running inside its container, to execute shell commands and retrieve a password from another client’s test data. All this happens without the attacker ever logging into ARTEX or stealing credentials in a conventional sense.
Importantly, despite ARTEX flagging the malicious page’s output as “untrusted,” one worker still executed it—while two others did not. Kennedy’s proof-of-concept only involved one model, but it revealed that worker permissions are critical. Under the default Docker Compose configuration, the worker had restricted permissions, which protected the server’s token signing key but still permitted access to client-supplied data from authenticated scans. Additionally, code dropped into a shared worker directory during one scan could be executed during a later test, meaning the effects of an attack could persist even after the initial scan ends.
Severity and scope
Kennedy rated the default configuration’s risk as high (8.2/10). In more permissive setups—particularly when workers run with the same permissions as the ARTEX server—the risk escalates sharply. In those scenarios, according to code review, a compromised worker could gain access to the signing key itself, giving an attacker control over the full ARTEX instance.
The flaw, reported on November 30, 2026, has since been addressed via an update. Version 0.7.1, released on December 1, 2026, patches the vulnerability, though no CVE number has yet been assigned. Users running instances older than 0.7.1 remain exposed.
Mitigations and best practices
Operators are being urged to upgrade to ARTEX version 0.7.1 or newer. However, simply updating software isn’t enough: leftover files from compromised scans could continue to pose a threat. If a breach is suspected, organizations should preserve logs and files before rebuilding the worker environment.
Other recommended protections include rotating any credentials supplied to shared ARTEX instances that have scanned untrusted targets, ensuring that workers can’t read transcripts or captured data from other clients, and using separate ARTEX instances per client to reduce cross-client exposure. It’s also advised to enforce human approval for shell-action commands based on untrusted content, and apply strict file permission controls outside of what the AI model alone governs.
This issue highlights the tension between automation and security oversight in AI tools. When an AI system is used in adversarial roles—like pentesting—it can become a vector for new attack types if not built with principles like least privilege and separation of duties in mind.