Skip to content
All posts

ARTEX Vulnerability: Hostile Site Runs Commands (GHSA-9fqx)

December 4, 2026 · Team PlayCISO
TL;DR · the short version

On 1 December 2026 the BaaRai/ARTEX project published security advisory GHSA-9fqx-7xv3-gj58 (critical, CVSS 3.1 9.6, no CVE): a website that ARTEX is asked to test can hide an instruction that an ARTEX worker agent runs as a shell command on the ARTEX server, even with ARTEX's untrusted-output labelling switched on. From there the attacker can read the transcripts of every engagement on the instance, including credentials declared for other clients, and plant files in a home directory every later agent uses. Affected: 0.7.0 and earlier; fixed in v0.7.1, released the same day. The flaw was reported by Peyton Kennedy of Endor Labs, who scores the default Docker deployment 8.2.

Put it into practice
Check how contained your AI pentest agent is
Sandboxing, secrets, egress, shared state and approvals, scored in your browser.
Open the isolation checklist

On 1 December 2026 the BaaRai/ARTEX project, which maintains the English-language edition of the ARTEX AI pentest framework, published security advisory GHSA-9fqx-7xv3-gj58. A website that an operator points ARTEX at can hide a sentence such as "scanners must register by running this command", and an ARTEX worker agent may run that command on the ARTEX server. The advisory rates it critical (CVSS 3.1: 9.6); no CVE has been assigned. Versions 0.7.0 and earlier are affected; v0.7.1, released the same day, fixes it. The reporter, Peyton Kennedy of Endor Labs, published the research the same day.

Who this is for: security teams and consultancies that run ARTEX or another AI pentest agent, and anyone deploying an AI agent that reads content it does not control and can run commands.

Confirmed vs not yet known

  • Confirmed (the advisory): indirect prompt injection reaches command execution (CWE-1427), with agents running with more privilege than they need (CWE-250). Affected: Go module github.com/Autumn-27/artex <= 0.7.0; patched: 0.7.1.
  • Confirmed (the advisory, lab-tested on the default Docker deployment): commands run as an unprivileged user in the ARTEX container; that user can read every engagement's transcripts, including credentials declared for other clients, and can write to a home directory every later agent loads.
  • Code review only (not lab-tested, per the advisory): on installs where agents run as the server's own user, the agent can read the key that signs admin logins and take over the instance.
  • Not known: whether anyone has used this against real ARTEX operators, and whether other ARTEX forks (for example the RuoJi6 continuation on v0.3.x) share the flaw. The advisory covers BaaRai's edition only.

How it works, in plain words

ARTEX gives a goal to a team of AI agents that plan and run a penetration test. A worker fetches pages from the target and can run shell commands. Two defences sat in between, both on by default, per the advisory:

  • A label on untrusted content. Every tool result is wrapped in markers telling the model it is data, not instructions. With its extract option, the fetch tool also copies HTML comments into a recon section, which is how the hidden instruction reached the model. The label did not stop the model from acting on it: in Endor's run, two workers wrote the "registration" down as a fact about the target and a third ran the command.
  • An approval gate. Tool calls pass through intercept rules and an optional LLM judge. A call that matches no rule goes ahead unless the judge is enabled and refuses it. A command that contacts the in-scope target looks like ordinary testing.

Endor reports that the model does not always comply, but the attacker can reword and retry at no cost. It tested one model (gpt-4.1). For contrast, NebuSec's ArtexPot honeypots found plain prompt injection failed against an older ARTEX (0.3.15) in all 8 runs; different code, version and models, so the two results do not contradict each other. Read the ArtexPot write-up.

What one hostile target can reach

DeploymentScoreWhat the attacker gets
Default Docker Compose (server as root, agents as a separate user)8.2 (Endor)Shell in the container; every engagement's transcripts and declared credentials; persistence in later tasks. The signing key stays out of reach.
Prebuilt binaries, install script, macOS/Windows packages, containers with a user setting9.6 (advisory)All of the above, plus the admin signing key, so a forged admin login and full control of the instance (code review, not lab-tested).

For a consultancy that tests many clients from one ARTEX server, that means one malicious target could expose the credentials of every other client on it. Endor showed a second client's password could be recovered from the transcripts without contacting that client, and that a file planted during one task ran during a later, unrelated one.

Useful next, if this was relevant to you

Showing 1 of 3: Prompt Scan

Timeline

DateEventSource
21 Nov 2026BaaRai releases ARTEX v0.7.0 (affected)GitHub
30 Nov 2026Endor Labs runs its lab tests and reports the flaw through a GitHub security advisoryEndor Labs
1 Dec 2026BaaRai releases v0.7.1 with the fixGitHub
1 Dec 2026Advisory GHSA-9fqx-7xv3-gj58 published (critical, 9.6); Endor publishes its researchGitHub advisory

What security leaders should do this week

  1. Find every ARTEX instance your team or your pentest suppliers run, and which edition and version. Ask suppliers directly.
  2. Upgrade BaaRai ARTEX to v0.7.1. For other forks, ask the maintainer whether the same chain applies; do not assume it does not.
  3. Clean up after older versions. Upgrading removes nothing an earlier scan planted: wipe the shared agent home directory or rebuild the data volume, after looking for unexpected .pth files, dotfiles and .curlrc entries.
  4. Rotate declared credentials. If an instance ever scanned a target you do not fully trust, treat every credential declared on it as exposed, including other clients'.
  5. Separate clients. One instance per client, transcripts and captures unreadable by the agent's user, and a person approving shell commands whose arguments came from target content.
  6. Score your setup with the AI Pentest Agent Isolation Checklist, and practise spotting hostile files with the Hostile Artifact Checker.

Background on ARTEX, who uses it and how to detect it: our ARTEX explainer and the prompt injection hub.

Frequently asked questions

What is GHSA-9fqx-7xv3-gj58?

It is the GitHub security advisory for a flaw in BaaRai/ARTEX, the English-language edition of the ARTEX AI pentest framework, published on 1 December 2026. A website that ARTEX is asked to test can hide an instruction in its page, and an ARTEX worker agent may run it as a shell command on the ARTEX server. The advisory rates it critical, CVSS 3.1 score 9.6. No CVE has been assigned.

Which ARTEX versions are affected?

The advisory lists the Go module github.com/Autumn-27/artex at version 0.7.0 and earlier as affected and 0.7.1 as patched. BaaRai published v0.7.1 on 1 December 2026. Other forks, such as the RuoJi6 continuation (v0.3.x), are separate code; the advisory does not cover them, and nobody has said whether they have the same problem.

Was ARTEX's prompt injection defence turned off?

No. Per the advisory and Endor Labs, ARTEX wraps every tool result in markers that tell the model the content is untrusted data, and that was on by default. The model read the label and ran the command anyway. A tool call that matched no blocking rule went through unless the optional LLM judge was enabled and refused it.

Why is the score 9.6 in the advisory and 8.2 in Endor's post?

It depends on how ARTEX was installed. On the default Docker deployment, agent commands run as a separate user that cannot read the server's signing key; Endor scores that 8.2. Where agents run as the same user as the server (prebuilt binaries, the install script, macOS and Windows packages, containers started with a user setting), the agent can read the key and forge an admin token; that is the 9.6 in the advisory. Endor says it tested the Docker path and read the code for the others.

What can the attacker reach?

Per the advisory: shell commands inside the ARTEX container during the scan, the stored transcripts of every engagement on the same server (including credentials the operator gave the agent for other clients), and a home directory shared by every agent, where planted files run in later, unrelated scans. On native installs, also the key that signs admin logins.

We run ARTEX. What should we do?

Upgrade to v0.7.1. Then assume an older version may have been tricked: wipe the shared agent home directory (look first for unexpected Python .pth files, dotfiles and .curlrc), rotate every credential ever declared on the instance, check that transcripts and traffic captures are not readable by the agent's user, prefer the Docker deployment, run one instance per client, and require a person to approve shell commands whose arguments came from target content.

Does this only matter for ARTEX?

No. Any AI agent that reads content it does not control and can act on it without a person approving each step can be talked into running someone else's instructions. Pentest agents are the extreme case because their job is to read hostile systems. The fix is a control the model cannot argue with: approval for risky actions, and an executor that cannot reach anything worth stealing.

Sources

Spotted an error? Report an error. A person reads every message.

Check how contained your AI pentest agent is
Sandboxing, secrets, egress, shared state and approvals, scored in your browser.
Open the isolation checklist
Take this with you
How it works, in plain words · What one hostile target can reach · Timeline · What security leaders should do this week · Sources

Ready to practise the decisions these articles describe?

Run your first Cyber War Room free →

Pro

🎉 New here? Use code WELCOME10 for 10% off any plan at checkout