{
  "id": "artex-execution-boundaries",
  "url": "https://ohshit.app/incidents/artex-execution-boundaries/",
  "title": "ARTEX 0.7.1 closes 25 advisories after hostile scan targets reach the agent shell",
  "level": 3,
  "level_name": "sharted",
  "date": "2026-12-01",
  "date_is_approximate": false,
  "updated": null,
  "tags": [
    "ARTEX",
    "prompt injection",
    "RCE",
    "credentials",
    "sandbox"
  ],
  "ecosystems": [
    "go"
  ],
  "summary": "A scanned page can induce shell execution in BaaRai/ARTEX. Lab tests using that executor identity recover another client's credentials and plant persistence for later tasks. Version 0.7.1 closes 25 advisories and requires per-task sandboxes by default. Upgrade, clear the old shared home and rotate declared credentials.",
  "splash": "BaaRai/ARTEX through 0.7.0 scanning untrusted targets; additional batch issues include pre-0.7.1 main-only features.",
  "wipe": "Upgrade to BaaRai/ARTEX 0.7.1 with the required sandbox; clear old shared-home persistence, rotate exposed credentials and reapprove scope.",
  "in_the_wild": "no",
  "source_exception": null,
  "cves": [
    {
      "id": "GHSA-9fqx-7xv3-gj58",
      "score": 9.6,
      "name": "Target-page prompt injection reaches command execution",
      "description": "The advisory lists a CVSS 3.1 upper bound of 9.6 for same-user installs, based on code review. The default Docker PoC is rated 8.2 and runs as uid 10001, not root. An operator must start a scan of attacker-controlled content."
    }
  ],
  "fixed": [
    {
      "product": "BaaRai/ARTEX 0.7.x",
      "branch": "0.7",
      "version": "0.7.1",
      "status": "Patched community continuation; other forks are not covered by this fix claim"
    }
  ],
  "checklist": [
    {
      "title": "Stop untrusted scans and preserve the instance before cleanup",
      "hint": "Quiesce tasks and confirm actual worker/egress-proxy containers have stopped or been removed; an old UI pause/delete result alone is insufficient because the batch includes cleanup failures. Preserve relevant task records and securely back up the database, data and keys separately before upgrading or removing persistence. Restrict access to the preserved client credentials and evidence."
    },
    {
      "title": "Install 0.7.1 with its matching sandbox services",
      "hint": "Use the BaaRai release and its update.sh or matching release-tag GHCR sandbox profile, including runner, worker and egress-proxy images and ARTEX_RUNNER_TOKEN. Keep ARTEX_SANDBOX=required; runner failure must stop tasks rather than fall back locally. Do not bypass the isolation self-test with -dev-insecure-no-isolation or use ARTEX_SANDBOX=off as a fix. On Docker Desktop, follow the pinned README's named-volume overlay and seed existing keys/data before first start so encrypted database secrets remain decryptable."
    },
    {
      "title": "Remove old shared-home persistence and inspect cross-client artifacts",
      "hint": "After preserving evidence and stopping execution, inspect and clear the old <data>/exec-home before reusing the instance. Look for unexpected Python .pth files, dotfiles and .curlrc entries. Review /app/data/transcripts/ and, if capture was enabled, /app/data/traffic/_index/index.sqlite for exposed credentials and suspicious tool calls. Verify the new worker cannot read other tasks' records or server keys. PoC hostnames hostile/clientb, marker files and curl/7.88.1 are lab artifacts, not a real-attack blocklist; a match alone is not proof of compromise."
    },
    {
      "title": "Rotate engagement credentials and any reachable server secrets",
      "hint": "Endor Labs recommends treating every credential declared on an instance that scanned an untrusted target as exposed, including credentials for otherwise benign clients. Replace them at their issuing systems. If the deployment allowed agent access to server-user files or secrets, also assess JWT/encryption keys, database credentials, LLM/API keys and stored integration secrets. Use scripts/rotate-secrets.sh from the vendor OPS guide with the correct database/key configuration, which re-encrypts sealed values and invalidates sessions, then restart. Do not simply delete secret.key from a database that still holds encrypted secrets."
    },
    {
      "title": "Reapprove scope and verify network revocation",
      "hint": "Existing goal-derived and automatic scopes need operator approval in Task Scope; migration 0023 backfills manual scopes only. Verify that later agent-written company inventory cannot widen approved egress, removing an approval revokes access, and failed cleanup is visible. Check the configured DNS resolver separately from the HTTP proxy. Use controlled test destinations and the release's deny-by-default per-task proxy; do not rely on prompt text or regex guards as the isolation boundary."
    },
    {
      "title": "Audit tool approvals, findings and client separation",
      "hint": "Review custom command templates, argv allow/deny/ask rules, deferred/MCP tool rules, chat approval membership and cross-task finding changes against trusted records. Require human review for commands derived from target content; the LLM judge is an additional check, not a complete defense. Separate client instances and verify restored findings/approval state before resuming engagements. No victim total or genuine campaign IoC set is established by this research batch."
    }
  ],
  "sources": [
    {
      "name": "BaaRai public repository advisories, including the complete 25-item release batch",
      "url": "https://api.github.com/repos/BaaRai/ARTEX/security-advisories?per_page=100",
      "says": "The 25 advisories named by the 0.7.1 release span lab-verified and code-reviewed issues, older revisions and main-only features; their broad version metadata must be read alongside those prerequisites. The endpoint also includes older advisories outside this batch.",
      "primary": true
    },
    {
      "name": "BaaRai ARTEX 0.7.1 release",
      "url": "https://github.com/BaaRai/ARTEX/releases/tag/v0.7.1",
      "says": "Lists the 25 closed GHSAs, required per-task sandbox, operator-owned/frozen scope, verified cleanup, no panel stdio MCP in sandbox mode, origin-bound credentials and migration/runner requirements.",
      "primary": true
    },
    {
      "name": "Endor Labs original prompt-injection research",
      "url": "https://www.endorlabs.com/learn/aartex-ai-pentest-agent-prompt-injection-rce-ghsa-9fqx-7xv3-gj58",
      "says": "Same research origin as the lead GHSA, not independent corroboration. Reproduces three stages on 0.7.0 with gpt-4.1, distinguishes Docker 8.2 from code-reviewed same-user 9.6, and gives persistence/credential cleanup guidance. No CVE is assigned to the lead finding.",
      "primary": true
    },
    {
      "name": "BaaRai pinned 0.7.1 installation, upgrade and sandbox documentation",
      "url": "https://raw.githubusercontent.com/BaaRai/ARTEX/v0.7.1/README.md",
      "says": "Relevant upgrade, Docker Desktop, isolation and sandbox sections explain backups, named-volume key/data migration, required runner/images, degraded opt-out modes and the community-continuation boundary.",
      "primary": true
    },
    {
      "name": "BaaRai pinned 0.7.1 operations and key-rotation guide",
      "url": "https://raw.githubusercontent.com/BaaRai/ARTEX/v0.7.1/docs/OPS.md",
      "says": "Explains protected database/data/key backups, forward-only migrations and atomic key rotation that re-encrypts sealed database values, invalidates JWT sessions and requires restart.",
      "primary": true
    }
  ],
  "headline": null,
  "one_liner": "A site being tested can turn its page text into commands on the testing platform, whose shared state crosses client engagements.",
  "in_the_wild_note": "Public research PoCs; these sources report no confirmed exploitation of these flaws.",
  "mitigation": null,
  "timeline": [
    {
      "date": "Nov 30, 2026",
      "title": "Researcher reproduces command execution, cross-engagement reads and persistence",
      "body": "The lab uses BaaRai/ARTEX 0.7.0, Norma 0.4.11 and gpt-4.1. A hostile page induces a shell command. Researcher-operated tests as that executor identity then recover another task's test credential and plant a Python hook that runs in a later task."
    },
    {
      "date": "Dec 1, 2026",
      "title": "BaaRai releases 0.7.1 and publishes the advisory batch",
      "body": "The release closes 25 GHSAs, separates per-task execution from the panel, makes egress operator-owned and requires scope reapproval. Some findings concern unreleased main-branch features rather than every 0.7.0 install."
    },
    {
      "date": "Dec 1, 2026",
      "title": "Endor Labs publishes the research and cleanup guidance",
      "body": "The report distinguishes the lab-verified Docker impact from code-reviewed native-install impact and recommends clearing the old shared home, rotating declared credentials and separating client instances."
    }
  ],
  "body_markdown": "BaaRai's **ARTEX 0.7.1** release closes **25 security advisories**. The lead public PoC, **GHSA-9fqx-7xv3-gj58**, turns a scanned site's instructions into a command on the scanning platform. The attacker controls the target page and needs no ARTEX account; the operator must start a scan against that content. Default untrusted-output framing did not stop the tested model. The sources do not establish real-world exploitation of these vulnerabilities or a victim count.\n\nOn the tested **0.7.0 Docker Compose** setup, the panel server ran as root but the induced command ran as **uid 10001**. That identity could read other engagements' world-readable transcripts and persist through the shared `<data>/exec-home`. It could **not** read `/app/keys/jwt.key`. The command-injection test used **gpt-4.1**; two other workers did not execute the instruction. The researcher then read credentials and planted a Python `.pth` hook manually as uid 10001 to simulate continued access, and observed that hook run in a later task. This is not a demonstrated fully automated three-stage injection. Capture-data access is conditional on recording being enabled; the lab had no populated recording proxy.\n\nThe **9.6 CVSS 3.1** advisory score is the code-reviewed upper bound for installations where agents run as the server user and can reach signing keys. The default Docker demonstration is scored **8.2**. Another batch report describes root-secret access on an older main revision; that is not evidence that the lead 0.7.0 Docker PoC obtained root. Likewise, authenticated API or workspace flaws must not be combined into a claim that every unauthenticated target can perform every action below.\n\nThis is one release-batch incident. The 25 GHSAs cover these groups:\n\n- **Execution and shared secrets** (3): Target-driven shell execution, earlier-revision root/environment exposure, and local key/configuration access; deployment identity determines the reachable secrets. [GHSA-9fqx-7xv3-gj58](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-9fqx-7xv3-gj58), [GHSA-prm8-vw2v-wjwh](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-prm8-vw2v-wjwh), [GHSA-8g8c-cj8r-3x3m](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-8g8c-cj8r-3x3m).\n- **API, files and report integrity** (7): Upload/workspace symlinks, authenticated LLM-test SSRF, cross-task finding updates, custom-test guard bypass, template command injection and archive rollback writes. These have distinct authentication, workspace or operator-action prerequisites. [GHSA-r7q2-923j-j8wr](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-r7q2-923j-j8wr), [GHSA-39w9-f8jh-f7q7](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-39w9-f8jh-f7q7), [GHSA-3p3q-p7m9-w8f7](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-3p3q-p7m9-w8f7), [GHSA-ph8r-37v4-qqmq](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-ph8r-37v4-qqmq), [GHSA-m27c-jrv3-rc79](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-m27c-jrv3-rc79), [GHSA-fcx3-hv8m-jq46](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-fcx3-hv8m-jq46), [GHSA-fqvh-fxhq-4wxf](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-fqvh-fxhq-4wxf).\n- **Proxy and destination controls** (5): Recording-proxy cross-host request leakage when recording is enabled, special-address handling, fingerprinting DNS rebinding, noncanonical block-rule matching and DNS metadata escaping the HTTP proxy. DNS metadata leakage alone does not establish credential leakage. [GHSA-q37j-63cc-cr7p](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-q37j-63cc-cr7p), [GHSA-663x-j57m-jq83](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-663x-j57m-jq83), [GHSA-589f-w48h-4x53](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-589f-w48h-4x53), [GHSA-3vq4-8vww-6v2r](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-3vq4-8vww-6v2r), [GHSA-g68q-fv54-w5x3](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-g68q-fv54-w5x3).\n- **Tool approvals** (5): Command/argv rule bypasses, deferred-tool name checks, fail-open compound-command handling and overly broad git/cmake allowances. These soft approval rules do not replace an execution sandbox. [GHSA-2crf-g8wh-8794](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-2crf-g8wh-8794), [GHSA-f7fv-h52r-8xj6](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-f7fv-h52r-8xj6), [GHSA-3gwj-65c8-f7f3](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-3gwj-65c8-f7f3), [GHSA-3558-cmm4-jc9h](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-3558-cmm4-jc9h), [GHSA-3rm5-h777-mmhw](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-3rm5-h777-mmhw).\n- **Scope, provenance, chat and lifecycle** (5): Removed-member approvals, agent-chosen evidence provenance, agent-expanded engagement scope, cleanup state lost before container-removal proof, and mutable company inventory widening egress. Several concern unreleased main-branch features and code-reviewed paths. [GHSA-67c6-gwmg-5crq](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-67c6-gwmg-5crq), [GHSA-86r5-pm62-vfw2](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-86r5-pm62-vfw2), [GHSA-53wc-rf5h-fgpx](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-53wc-rf5h-fgpx), [GHSA-cqpr-fpqr-3c8m](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-cqpr-fpqr-3c8m), [GHSA-4m9x-c3fg-cwjr](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-4m9x-c3fg-cwjr).\n\nSome approval/provenance and sandbox issues were on pre-release main, and two reports describe earlier public source reviews. The batch count is not 25 newly discovered unauthenticated RCEs, nor proof that every listed feature existed in 0.7.0. The lead prompt-injection finding has no assigned CVE in the published research; use its GHSA identifier.\n\nThe fix moves commands into disposable per-task workers, separates server secrets and other tasks' state, and makes network grants operator-owned. **Keep the required sandbox enabled and deploy all matching images**: replacing only the panel or opting into degraded local execution misses the new boundary. Existing automatic/goal scopes require approval; company inventory cannot grant itself new destinations. The release also fixes lifecycle cleanup, proxy routing, model-credential origin handling and DNS behavior.\n\nAn upgrade preserves stored data, including anything an earlier scan planted. Preserve evidence, remove old shared-home persistence, rotate potentially exposed client credentials and assess server secrets according to the installation's actual permissions. Use the documented key-rotation process instead of losing access to encrypted data. Other forks and commercial products are outside this verified fix claim. The earlier [ARTEX signing-credential campaigns](/incidents/artex-signing-campaigns/) concern abuse of ARTEX against victims, not evidence that this vulnerability was exploited."
}