{
  "schema_version": 1,
  "id": "block-unsafe-code-execution",
  "track": "coding",
  "name": "Block Unsafe Code Execution",
  "version": "0.1.1",
  "sha256": "60d4615a014eb1a7610ae904f64f60af24687385c5f2655768c4959898b48f9c",
  "sha256_v1": "300a7deda9896ea4117dc7a7231673e3893ae2f9b124f3ce4932a9d374bf9cd2",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Commit and agent-write gate, greppable slice of ASI05: bare, global-receiver and indirect eval/exec forms, the Function constructor, string timers, exec-mode compile, import by computed name, shell-mode and implicit-shell process APIs, unsafe deserializers (pickle family, unsafe yaml loaders, model loads) and shell eval of a variable. File-type-blind line scan: friction, not a security boundary. Waiver 'pragma: allowlist exec' on the line; in the agent only if already committed in HEAD.",
  "misses": null,
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "code-hardening"
  ],
  "eval_cases": 54,
  "eval_executed": 54,
  "latest": {
    "version": "0.1.1",
    "date": "2026-10-07",
    "change": "Promoted from draft to production: every test case ran and passed, and no bug report was open. Behaviour unchanged."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "cursor": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "codex": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "copilot": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "devin": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)"
    },
    "grok": {
      "keyword": "ungraded",
      "says": "Not graded yet for Grok"
    },
    "goose": {
      "keyword": "ungraded",
      "says": "Not graded yet for goose"
    },
    "antigravity": {
      "keyword": "ungraded",
      "says": "Not graded yet for Antigravity"
    },
    "openhands": {
      "keyword": "ungraded",
      "says": "Not graded yet for OpenHands"
    },
    "kimi-code": {
      "keyword": "ungraded",
      "says": "Not graded yet for Kimi Code"
    },
    "factory-droid": {
      "keyword": "ungraded",
      "says": "Not graded yet for Factory Droid"
    }
  },
  "source_url": "https://github.com/open-coder-ai/chock-catalog/tree/1e60d211c1bb767152c6ab0167932da06ab3a10f/agentic-security/block-unsafe-code-execution",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A staged file passes model output to the Python eval builtin.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A staged file calls model.eval() to switch a torch module to inference mode.",
      "command": null
    }
  ]
}
