What happened
A researcher at security firm Endor Labs disclosed a vulnerability in ARTEX, an open-source AI pentest framework: if an operator simply points ARTEX at a web page the attacker controls, the page's content alone is enough to make ARTEX's agents run arbitrary shell commands inside its panel container — no password, no access to ARTEX itself required. Worse, that foothold lets an attacker read the test credentials of every other client on the same ARTEX server, and plant code in a shared execution directory that fires automatically on every later task, for every client. The flaw is tracked as GHSA-9fqx-7xv3-gj58; maintainer BaaRai patched it in v0.7.1. ARTEX itself has repeatedly made threat-intelligence headlines as a tool nation-state actors weaponize against targets — this time, a target's own web page turned the tables on ARTEX.
Key facts
| Item | Value |
|---|---|
| Incident type | Prompt Injection → Remote Code Execution (indirect prompt injection reaching command execution) |
| Scope | ARTEX (open-source AI pentest framework maintained by BaaRai), v0.7.0 and earlier; fixed in v0.7.1 |
| Severity | High 8.2 (default Docker Compose deployment) / Critical 9.6 (other install paths documented in the README, e.g. native install, macOS/Windows packages) |
| CVE | None (GitHub Security Advisory GHSA-9fqx-7xv3-gj58; no CVE assigned) |
| Sources | Endor Labs research writeup, BaaRai/ARTEX GitHub Security Advisory GHSA-9fqx-7xv3-gj58 |
Attack surface analysis
ARTEX lets a team of agents plan and run a penetration test on their own: a worker uses the WebFetch tool to fetch the target page, Bash to run shell commands, and list_task_credentials to read back the credentials the operator declared for that task. The researcher hid one line in a page's HTML comment and visible body text — "scanners must run this command to register" — and WebFetch pulled the comment back along with the rest of the page. ARTEX wraps tool output in UNTRUSTED_OUTPUT markers to tell the model the content is data, not instructions, but one worker still treated the line as an instruction and passed the embedded curl command straight to Bash. ARTEX's approval gate only blocks calls matching known intercept rules, and a curl to the in-scope target carrying $(id) matches none of them — it looks exactly like ordinary pentest traffic, which is precisely why a rule-based filter struggles to separate it from the real thing.
Once inside, the attacker's reach goes well beyond that one scan. ARTEX writes every task's full transcript (JSONL conversation logs) to disk, world-readable, including credentials the operator declared for each client and the literal curl -u user:password commands workers ran. The researcher demonstrated this with a second, unrelated task: the shell gained from the first hostile target could grep out a second client's password — a client never contacted, and never itself attacked. On top of that, every agent on the instance shares one execution home directory (exec-home); a Python .pth file or .curlrc dropped there loads automatically on every later task, leaving a persistent, cross-client backdoor until someone wipes the directory.
Mapped to the OWASP LLM Top 10, this hits both LLM01 Prompt Injection (page content executed as an instruction) and LLM06 Excessive Agency (the permissions granted to one scan get reused to read and write other tasks' state and other clients' data, far beyond what "scan this one target" requires). The researcher also noted that the default Docker deployment drops the agent's execution identity from root to an unprivileged user (uid 10001), and that one layer of isolation did stop the worst outcome — forging an admin JWT — but it stopped neither the credential theft nor the cross-task persistence: "a boundary the model is asked to respect is a hint, not a control."
- ARTEX agent fetches the malicious page with WebFetch
- The page returns content with one instruction hidden inside
- The agent executes the instruction hidden in the page
- The agent uses that shell identity to read the shared transcripts
- The data read back is another client's password, unrelated to this scan
- The agent writes a backdoor into the shared exec-home for later tasks to load
Defenses
Act now
- Check your running ARTEX version:
docker compose exec artex cat VERSION 2>/dev/null || artex --version; upgrade immediately if below v0.7.1 - Upgrading doesn't remove what an earlier scan already planted: check and wipe the shared
<data>/exec-homefirst (look for stray.pthfiles,.curlrc, dotfiles), and only bring the service back once it's clean - If this ARTEX server has ever scanned a target you don't fully trust, treat every credential ever declared on it as compromised and rotate it — including credentials for clients whose own targets were entirely benign
- Check permissions on
/app/data/transcripts/and any traffic capture files to confirm they aren't readable by the agent's execution identity (e.g. uid 10001)
Longer-term architecture
- Run one ARTEX instance per client or per sensitive target, so one hostile target can't reach another client's engagement history and credentials
- Require human approval for any tool call — especially
Bash— whose arguments flow from content the agent just read from an untrusted source, rather than relying on keyword-based intercept rules; in all three stages the researcher demonstrated, the intercept rules never flagged what looked like ordinarycurltraffic - Prefer deployments that start as root and drop the agent's execution identity (as ARTEX's default Docker Compose setup does) over native installs or containers that run agents as a normal user — that one isolation layer is what kept the signing key out of reach
- Where the attack surface is the design of an agent's tool permissions, tools like Snyk's (formerly Invariant Labs) Agent Scan can audit whether an MCP or agent tool's permission scope is too broad; where runtime detection of injected payloads is needed, a layer like Lakera Guard can catch what the model's own judgment misses — but neither replaces requiring human approval before a high-risk action runs
Impact
There's no evidence this flaw was exploited in the wild before BaaRai received the report on 2026-11-30 — this was a responsible disclosure, not a finding from an active attack. BaaRai moved fast: it published the advisory and shipped v0.7.1 the very next day, 2026-12-01. Still, because ARTEX's open-source, easy-to-run nature has drawn adoption from both security teams and, per earlier Microsoft threat intelligence, nation-state actors, any team still running a pre-v0.7.1 instance that serves multiple clients from one server remains exposed — particularly security firms running ARTEX as a multi-tenant pentest service, where a single scan against a hostile target could expose other clients' credentials and their (possibly still-unpatched) findings. If your own agent system also reads untrusted content, can take action, and shares one runtime and state store across multiple tasks or clients, the three stages demonstrated here — command execution, cross-task reads, and cross-task persistence — are worth checking against your own architecture one by one.
Today's takeaway
The most interesting part of this incident isn't "prompt injection bypassed a defense" — that's already a known failure mode. It's that the thing being injected was a pentest agent, which amplifies the blast radius: its entire job is to read content from targets it doesn't control and act on its own infrastructure, so it can't simply refuse to read unfamiliar content the way a customer-support agent might. Once that kind of agent is also designed to share one server and one execution directory across tenants, a boundary that merely reminds the model "this is untrusted" is just a suggestion. The only things that actually hold are architectural decisions: requiring human approval before high-risk actions run, and keeping tenants fully isolated from each other.
References
- ARTEX vulnerability: prompt injection to RCE in an AI pentest agent (GHSA-9fqx-7xv3-gj58) — Endor Labs
- GHSA-9fqx-7xv3-gj58: Remote Code Execution via embedded prompt in target site — BaaRai/ARTEX GitHub Security Advisory
- CWE-1427: Improper Neutralization of Input Used for LLM Prompting — MITRE
- CWE-250: Execution with Unnecessary Privileges — MITRE