name: Artifact Execution Trap
code: CAT-005
summary: >-
  Target-served artifacts (repos, pickles, bytecode, packages, exploit helpers)
  whose ordinary handling executes defender code in the agent's environment.
  No prompt injection.
family: booby-trap
goals: [counterstrike, detect]
delivery: [file-artifact, http-response]
targets: [pentest-agent]
description: |-
  Offers something the agent wants (credentials, source, a working PoC) in a form whose normal handling runs code. A small loader opens a session; the real payload is sent only after it runs, so the agent never inspects it. Effectiveness depends on agent architecture (shared root container, secrets in env, open egress) more than on the model.
variants:
  - name: Trusted tool failure
    description: A flaw in a standard tool runs code, e.g. a git-dumper sanitizer bypass via .git/config on checkout.
  - name: Implicit execution
    description: Loading data runs code, e.g. pickle.load on leaked backups, a poisoned .pyc beside clean .py files, or decoding a stateful form field.
  - name: Deliberate execution
    description: The agent knowingly runs target-supplied code for loot, e.g. a PoC helper binary, an ops-repo credential helper, or a private SDK with a server-triggerable bug.
implementations:
  - name: ArtexPot
    url: https://github.com/NebuSec/ArtexPot
    kind: research
responses:
  - description: Disposable sandbox per task with strict egress, and no git identity, cloud credentials, metadata service or agent config.
    source: https://mindpattern.ai/s/2026-12-01-some-websites-now-fight-back-against-the-agents-that-visit-them
  - description: Never unpickle, import or execute target artifacts inside the agent's trust boundary or as root.
    source: https://mindpattern.ai/s/2026-12-01-some-websites-now-fight-back-against-the-agents-that-visit-them
references:
  - title: 'ArtexPot: the honeypots that hack Artex back'
    url: https://nebusec.ai/research/artexpot/
    publisher: NebuSec
    date: 2026-11-28
    findings:
      - >-
        Unmodified ARTEX 0.3.15 on deepseek-flash-cyber and gpt-5.6-sol, six
        ArtexPot honeypots: code execution as root in 33/36 runs; fastest 27
        s.
      - >-
        Same agents, Backdoored SDK honeypot (including an implant-free
        variant): 8/8 runs.
  - title: ArtexPot
    url: https://github.com/NebuSec/ArtexPot
    publisher: NebuSec
added: 2026-12-01
updated: 2026-12-03
