Threat intel4 min read
ARTEX flaw let scanned websites run commands on the AI pentest agent
A hostile site under test could slip instructions to ARTEX workers, run shell commands and read other clients' scan credentials. Versions up to 0.7.0 are affected; 0.7.1 fixes it.
4Tify Team

A website being scanned by ARTEX, an open-source AI penetration testing platform, could plant instructions that the platform's own agent then ran as shell commands. The maintainer, BaaRai, fixed the flaw in ARTEX 0.7.1 on 1 December 2026, a day after it was reported. Every version up to and including 0.7.0 is affected. No CVE has been assigned; the issue is tracked as GHSA-9fqx-7xv3-gj58.
What happened
ARTEX hands parts of a security assessment to AI workers that can fetch web pages and run commands. The reporter set up a hostile test site whose page told visiting scanners to run a command in order to "register". When an ARTEX worker fetched that page, the text went to the model as part of the task, and a worker passed the command to Bash.
This is indirect prompt injection. The attacker needs no ARTEX account and no access to the server. An operator only has to point a scan at the attacker's site.
ARTEX marks fetched content as untrusted by default. In the reported test, that label did not stop the model from following the instruction. The test used one model, OpenAI's gpt-4.1, and the model did not comply every time: in one run, two workers treated the instruction as a fact about the target and moved on. Retrying with different wording costs an attacker almost nothing.
Who is affected
Anyone running ARTEX 0.7.0 or earlier to scan sites they do not fully control, which is the normal use of a penetration testing tool. The damage depends on how ARTEX was installed.
On the default Docker Compose setup, the injected commands ran as an unprivileged user (uid 10001) inside the panel container. That user could still read the transcripts of other engagements stored on the same instance. Those transcripts can hold the credentials operators supply for authenticated scans of other clients, plus any secrets that appeared in command lines. In the reported test, a password belonging to a second, unrelated client was recovered this way. The server's login token signing key was not readable in this setup. The advisory rates it 8.2 (High).
Workers on the same instance also share one working directory that is not cleared between tasks. A file planted there during one scan ran during a later, unrelated task, so a single hostile target can affect engagements that come after it.
On installs where the server runs as a normal user rather than root, the advisory says the agent could read the signing key, forge an administrator token and run commands through the API. This path comes from code review and was not tested live. It is the basis for the advisory's overall score of 9.6 (Critical).
No attacks using this flaw outside the test have been reported.
What to do now
- Upgrade to ARTEX 0.7.1 or later. According to the 0.7.1 release notes, each task now runs in its own sandbox, with commands executed in a disposable worker container and network access going through a per-task proxy.
- Upgrading does not remove anything an earlier scan left behind. Wipe the shared
exec-homedirectory under the ARTEX data folder (or rebuild the data volume), and look for unexpected.pthfiles, dotfiles and.curlrcentries. - Rotate every credential that was entered on an instance that ever scanned a target you do not trust, including credentials for clients whose own sites were never involved.
- Check that stored transcripts and traffic captures cannot be read by the user the agents run as.
- If you test for several clients, run a separate ARTEX instance per client so one scan cannot reach another client's records.
- Require a human to approve shell commands whose arguments come from content the agent fetched from a target.
Treat anything a scanned site returns as attacker-controlled input to the model, the same way you would treat form input to a web app. Our penetration testing team checks AI agent deployments for this class of problem: we trace where tool output reaches the model, what the agent is then allowed to run, and what data and keys sit within its reach.
