News

A label saying "untrusted" did not stop the agent: the ARTEX finding

Endor Labs showed that a hidden line on a web page made an open-source AI agent run shell commands, even though its tool output was marked as untrusted. For support assistants the lesson is to limit what the agent can do, not to rely on a warning in the prompt.

Verified December 2, 2026Published SecurityAgentsMarkdown version

What happened

ARTEX is an open-source AI penetration-testing framework in which a team of agents plans and runs a test with little supervision. Endor Labs found that a hostile web page could make an ARTEX agent run shell commands on the server doing the scan. The page held one instruction, hidden in an HTML comment and repeated as visible text. ARTEX's fetch tool copied the comment into the agent's context, and a worker ran a command that sent back the output of id and hostname. The attacker needed no credentials, only a scan the operator had started.

Endor Labs reported it on 30 November 2026 and the maintainers published a fix, v0.7.1, on 1 December. Versions 0.7.0 and earlier are affected. No CVE has been assigned.

The part that matters for design

ARTEX wraps tool results in an UNTRUSTED_OUTPUT marker, and its approval gate and judge model were at their defaults. According to Endor Labs, the model read the label and still ran the command. Two other workers in the same run treated the instruction as a fact about the target but did not run it, so the outcome was not consistent either.

A marker in the prompt is a suggestion to the model. It does not enforce anything.

What this changes in design

  • Enforce limits outside the model. Tool permissions, allow-lists and egress rules hold when the model is fooled.
  • Require human approval for actions whose arguments come from untrusted content, such as a command built from a web page, a ticket or a form field.
  • Do not let one deployment serve several customers. Endor Labs also showed shared storage leaking another client's credentials, and recommends one instance per client.
  • Rotate credentials after an agent has handled untrusted content with access to them.

A support assistant is not a penetration-testing tool, but it reads tickets, emails and web pages written by strangers. The same rule applies.

How this was verified

On 2 December 2026 Endor Labs' write-up was read on its own site, through a tool that extracts the relevant parts. The ARTEX maintainers' advisory itself was not read.

Page history (1)
  1. New
    December 2, 2026 Release 2026.12.02

    Verified on Endor Labs' own write-up. The model read the untrusted-output marker and still ran the injected command. Fixed in ARTEX v0.7.1 on 1 December 2026; no CVE assigned.

Full change log