Vulnerability in AI Pentesting Tool ARTEX Allows Malicious Websites to Hijack Scans and Steal Credentials
A flaw in the open-source AI penetration testing platform ARTEX (versions 0.7.0 and earlier) enables malicious websites to execute commands within the platform's container and access sensitive client data, including test passwords.

A critical vulnerability has been discovered in the open-source AI penetration testing platform ARTEX, potentially allowing malicious websites to hijack security scans and compromise sensitive client data. The flaw, identified as GHSA-9fqx-7xv3-gj58, affects ARTEX versions 0.7.0 and earlier. Researcher Peyton Kennedy from Endor Labs demonstrated that a malicious webpage could trick an ARTEX worker into executing commands within its container, enabling the theft of client credentials, such as test passwords, without directly breaching client systems.
This vulnerability is a form of indirect prompt injection. Instead of directly instructing the AI, an attacker embeds malicious commands within content that the AI agent is expected to process, such as a webpage being scanned. In Kennedy's proof-of-concept, the attacker did not require an ARTEX account; simply initiating a scan against the malicious website was sufficient to trigger the exploit. While ARTEX labels such content as untrusted, the worker agent proceeded to act on the malicious instructions.
The severity of the vulnerability varies based on the ARTEX deployment. In a default Docker Compose setup, the worker ran with limited permissions, preventing access to critical server components like the login token signing key. However, it still allowed access to sensitive data from other tests, including passwords used for authenticated scans. Furthermore, code injected into a shared worker directory could persist and execute during subsequent, unrelated scans, meaning the impact could extend beyond the initial malicious interaction.
The risk escalates significantly in configurations where ARTEX workers operate with the same elevated permissions as the ARTEX server. In such scenarios, the researcher's code review indicated a potential for workers to access the signing key, thereby compromising the entire ARTEX instance. This elevated risk highlights the importance of strict permission management for AI agents.
The maintainer of ARTEX has released version 0.7.1 to address this security issue. However, the advisory notes that an update alone does not remove any malicious files left behind by a previous compromise. Organizations using affected versions are advised to preserve relevant logs and files before rebuilding their worker environments if a compromise is suspected.
To mitigate the risks, users should rotate credentials supplied to ARTEX instances that have scanned untrusted targets. It is crucial to verify that workers cannot access transcripts or captured traffic from other clients. For firms handling multiple clients, maintaining separate ARTEX instances is recommended to prevent cross-client data exposure. Implementing human approval for actions based on untrusted content and enforcing strict file permissions outside the AI model are also key security measures.
This incident underscores the growing risks associated with AI-powered security tools. While these tools offer significant advantages in efficiency and scope, their inherent complexity and the potential for novel attack vectors like prompt injection necessitate robust security practices. As AI agents become more integrated into critical security functions, understanding and mitigating these emerging threats is paramount.