ARTEX: a scanned website could run commands on the pentest server
A hostile page in an ARTEX scan could run commands on the scanning host and read credentials declared for other clients.
· Endor Labs · Research by Peyton Kennedy

ARTEX 0.7.0 and earlier let a scanned website hijack the pentest agent. A hidden instruction on a target page ran shell commands in the worker container and reached credentials declared for other clients. Fixed in 0.7.1.
01What happened
Endor Labs researcher Peyton Kennedy reported a prompt injection chain in ARTEX, the open-source AI penetration testing system from BaaRai, on 2026-11-30 and published the write-up on 2026-12-01. BaaRai released version 0.7.1 the next day. Endor Labs reproduced all three stages against ARTEX 0.7.0 running OpenAI gpt-4.1 with the project's own Docker Compose file and default settings.
02How it works
The chain starts at the WebFetch tool, which copies a target page's HTML comment into the agent's context. ARTEX wraps that text in untrusted-output markers and runs an approval gate, but the marker does not stop the model from obeying the instruction, and the gate allows a curl command aimed at an in-scope host. Worker and planner transcripts sit in /app/data/transcripts at mode 0644, so the agent user can read credentials declared for other tasks. Every agent shares one home directory that is never cleared, where a planted Python .pth file runs on the next interpreter start.
03Who is affected
ARTEX 0.7.0 and earlier are affected, together with the agent runtime Norma. Endor Labs scores the default Docker Compose deployment 8.2 and rates installs where agents run as the server's own user at 9.6, because the agent can then read the jwt.key signing key and forge an admin token. Those installs include prebuilt binaries, install.sh, the macOS and Windows packages and containers that set a user directive. The higher figure comes from code review, not a lab run.
04What to do
Upgrade to ARTEX 0.7.1, then wipe the shared exec-home directory or rebuild the data volume, after checking it for unexpected .pth files, stray dotfiles and added .curlrc entries. Rotate every credential declared on an instance that scanned an untrusted target, and run one instance per client.
Questions people ask
- Is ARTEX 0.7.1 patched against the Endor Labs prompt injection?
- ARTEX 0.7.1, released on 2026-12-01, is the fixed version. BaaRai rebuilt task isolation so each task runs in a disposable artex-worker container with a read-only root filesystem, no keys and no database, reaching the network only through a per-task egress proxy. Upgrading alone does not remove files an earlier scan left behind, so clean the shared home directory as well.
- Which ARTEX installs are most exposed to this flaw?
- Installs where ARTEX agents run as the server's own user carry the higher rating from Endor Labs: prebuilt binaries, install.sh, the macOS and Windows packages, and containers that set a user directive. Endor Labs scores those 9.6 from code review, because the agent can read the jwt.key signing key and forge an admin token. The default Docker Compose deployment scores 8.2.
- Could the ARTEX flaw expose another client's data?
- Endor Labs recovered a credential belonging to a second client in its own lab. ARTEX wrote planner and worker transcripts to /app/data/transcripts at mode 0644, so the agent user could read credentials declared for other tasks without ever contacting that client's systems. The author expects vulnerability findings to be readable the same way, but did not test that path.
- Was the ARTEX flaw exploited in the wild?
- Endor Labs reports no exploitation outside its own lab, and the write-up makes no claim that attackers used the chain. Peyton Kennedy reproduced all three stages on 2026-11-30 against ARTEX 0.7.0 with OpenAI gpt-4.1, and notes the model does not always comply and that only gpt-4.1 was tested. Operators who scanned untrusted targets should still rotate credentials.
- How do I check an ARTEX server for leftovers from a scan?
- Inspect the shared exec-home directory on the ARTEX data volume before wiping it, looking for unexpected Python .pth files, stray dotfiles and added .curlrc entries, because a planted .pth file runs on every interpreter start. Confirm that /app/data/transcripts and any traffic captures are not readable by the agent's user, then rotate credentials declared on that instance.
Sources 2 links, all fetched
- 1endorlabs.comEndor Labs Write-Up
- 2github.comARTEX 0.7.1 Release