ARTEX GHSA-9fqx-7xv3-gj58: Lab Confirms In-Container Command Execution via Prompt Injection on a Scan Target
1. Basic Information Article Name: ARTEX vulnerability: prompt injection to RCE in an AI pentest agent (GHSA-9fqx-7xv3-gj58) Source: Endor Labs Published Date: 2026-12-01 Updated Date: 2026-12-01 Original: Endor
1. Basic Information
- Article Name: ARTEX vulnerability: prompt injection to RCE in an AI pentest agent (GHSA-9fqx-7xv3-gj58)
- Source: Endor Labs
- Published Date: 2026-12-01
- Updated Date: 2026-12-01
- Original: Endor Labs
- Related Sources: GitHub Security Advisory, Dark Reading
- Severity (Author Priority): high
2. Executive Summary
Endor Labs confirmed in a lab environment that ARTEX allows command execution within a container, triggered by a scanned webpage. In the same lab setup, simulating post-initial-execution privileges separately demonstrated the reading of credentials from tasks simulating other customers, as well as subsequent code execution in later tasks.
3. Attack Flow
Stage 1: Initial Execution
- An ARTEX operator scans a website whose content is controlled by an attacker.
- When the model follows untrusted instructions retrieved from the scanned page, commands are executed under the agent's privileges.
Stage 2: Post-Initial Execution Impact
- In configurations where records from other tasks can be read after initial execution, credentials contained in those records may be exposed.
- In configurations with write access to the shared execution home used by subsequent tasks, code may be executed in later tasks.
4. Attacker Positioning and Execution Location
- The attacker requires no authentication or network access to ARTEX, controlling only the web responses of the scanned target. Commands run with the privileges of the agent inside the ARTEX container or on the host. The operator must initiate the scan against the target site.
5. Visibility for Victims and Administrators
Victims
- To the ARTEX operator, the activity appears as a normal scan, with instructions from the target page mixed into scanning commands. Other customers may have their credentials read from shared transcripts even if no network traffic reaches their environments.
Administrators
- Indicators include instruction text found in WebFetch results, unusual
curlrequests to scan targets, callbacks from the ARTEX container, suspicious files in the shared home, and references to transcripts of past tasks.
6. Success and Failure Conditions
Success Conditions
- ARTEX version 0.7.0 or earlier scans a site containing attacker-controlled content.
- WebFetch results enter the model, and the model follows embedded instructions to invoke Bash.
- The impact after initial execution depends on the deployment configuration, such as whether execution privileges allow reading shared transcripts or writing to the shared home.
Failure Conditions and Countermeasures
- Update ARTEX to version 0.7.1 or later.
- Because updating does not remove previously placed persistence artifacts, recreate the shared execution home and check for suspicious Python .pth files, dotfiles, .curlrc, and similar items.
- Isolate ARTEX instances and credentials per customer, and configure permissions so transcripts and packet capture data cannot be read by the agent uid.
- Gate Bash calls based on text from the scan target through mandatory human approval or a policy enforced independently of the model.
7. What Happens Upon Success
- Arbitrary command execution within the ARTEX container or host.
- In configurations where records from other tasks can be read, exposure of other customers' scan records, vulnerability information, and credentials registered by operators.
- In configurations with write access to the shared execution home, persistence across subsequent scans via code placement in the shared home.
- In configurations where the server and agent run as the same user, potential access to JWT signing keys and impact on administrative privileges, based on code review evaluation.
8. Observable Logs
- Proxy/SWG/DNS: Callbacks or URLs with data parameters from the ARTEX execution environment to the target site that differ from normal scans.
- Endpoint/EDR: curl or shell processes spawned by ARTEX or Norma, .pth files, dotfiles, or .curlrc in the shared home, and cross-access to transcripts.
- Identity/IdP: Suspicious administrator JWTs or ARTEX API operations in native configurations. Also check for authentication using credentials that another customer provided for their scan.
- SaaS/Cloud: Task history in shared ARTEX environments, tool calls, approval gates, and LLM judge evaluation records.
- Network: HTTP requests containing command output from the container to target sites or unknown hosts.
9. Attack Success Determination
- Stage 1: Initial Execution Confirmed in Lab: Endor Labs confirmed that command execution inside the container was achieved from a scanned webpage in a lab using ARTEX 0.7.0 and gpt-4.1 with the default Docker configuration.
- Stage 2: Follow-on Effects Verified Separately in the Lab: In the same lab, simulating post-initial-execution privileges separately confirmed the reading of credentials from tasks simulating other customers and code execution in subsequent tasks.
- Access to JWT signing keys and impact on admin privileges in configurations where the server and agent run as the same user are evaluations based on code review. No cases of exploitation of this vulnerability via a scan target have been reported.
10. Investigation Playbook
- Trigger: Instruction text in target pages, callbacks from ARTEX, suspicious modifications in the shared home, or references to transcripts of other tasks.
- Initial Verification: Determine ARTEX version, deployment method, agent uid, target URL, WebFetch results, Bash calls, and approval rules.
- Endpoints: Preserve container and host logs, transcripts, shared home, tool history, and network records.
- Auth/Cloud: Verify reachability of registered customer credentials and JWT signing keys, and rotate any secrets suspected of exposure.
- Subsequent Actions: Investigate reading of other tasks, persistence via .pth files, JWT forgery, and additional API operations.
- Containment: Halt scans, update to 0.7.1, recreate shared areas, rotate credentials, and isolate by customer.
- Classification: Separate instruction retrieval, model compliance, Bash execution, reading of other customer data, persistence, and administrative privilege acquisition.
11. Defense and Detection Ideas
- Single Event: Phrases such as "scanner," "register," or "run this command" in WebFetch results immediately followed by a Bash call.
- Time-Series Correlation: Correlate target page retrieval -> model fact registration -> Bash -> callback to target site -> file reading of other tasks.
- Hunting: Search for .pth files, dotfiles, and .curlrc in the shared execution home, shell activity that searches across all task transcripts, unknown JWTs, and suspicious outbound traffic following past scans.
- Log Gaps: Without model inputs, tool arguments, approval results, and container file audits, linking target content to execution is not possible.
- Priority Mitigations: Prioritize updates, customer isolation, limiting agent file permissions, and manual approval for Bash.
12. Facts / Inference / Hypothesis
Facts
- Affected versions are ARTEX 0.7.0 and earlier; the fixed version is 0.7.1.
- Using CVSS v3.1, Endor Labs rated the default Docker deployment 8.2 (High) and identified 9.6 (Critical) as the upper bound for deployments where the server and agent run under the same user account. The BaaRai advisory displays 9.6 Critical.
- Even with default untrusted output markers and approval gates enabled, Bash was executed based on researcher instructions.
- In the default Docker configuration, uid 10001 could not read the JWT key, but had access to all customer transcripts and the shared execution home.
- BaaRai published the GHSA and released version 0.7.1 on December 1, 2026.
Inference
- A boundary that merely notifies the model of "untrusted" status does not serve as a mandatory control when the same model decides the next tool execution.
- Inspection infrastructure shared across multiple customers broadens the impact range, allowing a single malicious target to reach secrets belonging to other customers.
Hypothesis
- None
13. MITRE ATT&CK Mapping
| ID | Technique | Confidence | Basis |
|---|---|---|---|
| T1059.004 | Command and Scripting Interpreter: Unix Shell | high | Endor Labs' lab verification of initial execution confirmed shell execution inside the container. |
| T1552.001 | Unsecured Credentials: Credentials In Files | high | Endor Labs separately simulated post-initial-execution privileges and read credentials for tasks simulating other customers from shared records. |
14. Unknowns and Further Investigation
- Further confirmation is required regarding the details of mandatory controls changed across deployment methods in version 0.7.1 and safe migration procedures for existing shared areas.
- No cases of exploitation of this vulnerability via a scan target, affected operators or customers, or actual credential leaks have been confirmed.
15. Impact on SOCs and Organizations
Organizations sharing AI penetration testing infrastructure must treat scan targets not as mere "inputs," but on par with attackers. Rather than relying solely on model warnings, it is crucial to isolate tool execution permissions, customer-specific storage, credentials, and networks, and to halt shell execution driven by target-derived data via policies independent of the model.
16. Summary by Role
- For SOCs: Correlate WebFetch results, Bash arguments, callbacks, references to other task files, and shared home modifications under the same scan ID.
- For Administrators: Update to 0.7.1, recreate shared homes, and isolate instances, credentials, and records per customer.
- For Users: Verify execution permissions and approval settings with administrators before submitting unverified sites to AI testing infrastructure.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.