Resolved

A page under test told the pentest agent to register itself

ARTEX wraps scraped pages as untrusted data and gates each command. One sentence on a target site still put a shell command into a worker, because the gate lets through anything that looks like the job.

Logged 2 Dec 2026

The defended agent ran the page's command

ARTEX is a penetration-testing agent, and it asks the sites it tests for much of what it reports. BaaRai maintains the English-language version, and its agent runtime is called Norma. Two protections sit between a target page and the shell and both ship on by default, one wrapping every tool result in nonce-tagged untrusted-output markers and the other gating each command through intercept rules and an optional judge model. Both were on during the test.

The fetch step is where it starts, and with extraction enabled WebFetch copies HTML comments into a recon block alongside the page text of every page it visits. Endor Labs researcher Peyton Kennedy served a page with one instruction tucked into an HTML comment and repeated in the visible body. It said scanners must register by running a command, and a worker recorded the claim as a fact about the target while a third ran the command it named. The built-in boundary labels that text as data. It did not stop anyone from acting on it.

The approval gate is the second slip. A tool call that matches no intercept rule goes ahead by default unless the judge model actively denies it. The planted curl pointed at the site under test, so it matched none of the stock deny rules, and it looked exactly like ordinary scanning. A command that contacts the in-scope host is hard to separate from the job the agent was hired to do. The host logged it, and a canary hit came back with uid 10001 and the panel container's hostname.

One foothold read the next client's engagement

The default Docker deployment drops agent commands to the uid 10001 account while the server itself stays root. That split does real work. That identity cannot read the signing key at the keys directory, and in the lab the read returned permission denied. But the server writes every task's planner and worker transcripts to disk as root-owned files with mode 0644, so world-readable means the agent can read them. Those files hold each engagement's declared credentials, the results of the credential lookup, and full curl command lines that carry a username and password.

Agents on one instance share a home directory. It is prepared once and reused for every task, and nothing clears it when a task ends, so a single command during one engagement can plant a startup hook there. A Python .pth file or a .curlrc header loads into later workers, for every client, until an operator wipes the directory or rebuilds the data volume.

The install decides how far it reaches

The default deployment holds the signing key back, but several documented installs skip the privilege drop. The drop needs a root start on Linux. Prebuilt binaries, a local install script, macOS and Windows packages, and containers started with a user directive all run agent processes as the server's own user. On those paths the signing key and the config file sit beside the binary with the same ownership. From there the injected command can read the key, forge an admin token, and drive the instance through the custom-tool endpoint, which Endor scored by reading the code rather than by running it.

Endor scores 8.2 High on the default Docker deployment, and the advisory lists 9.6 Critical. The 9.6 vector fits the native installs where the key is readable, and both weaknesses are named as improper neutralization of input for LLM prompting and execution with unnecessary privileges. Kennedy reproduced all three stages with one model only, and no source reports the flaw used in the wild. The fix is version 0.7.1. Upgrading alone is not enough. It does not remove a hook an earlier scan already planted, so operators are told to wipe the shared home and rotate any credentials a scan could have reached.

Log take

Log take: A pentest agent is built to point at hostile input and stay standing on its own. ARTEX labelled that input correctly and still obeyed it, because the labels told the model what the text was but not what to do about it. The deeper cost came after the first command. One shared home directory and one world-readable transcript folder turned a single bad scan into every other client's secrets. The fix closes the command path, and the people running it still have to clean up what a scan may already have left behind them.

Sources

Research