{
  "schema_version": 1,
  "id": "compromised-package-ioc",
  "track": "coding",
  "name": "Block Known-Malicious Packages",
  "version": "0.1.1",
  "sha256": "8f8fc20f88f9b73f426593843a0c2df1429fa4cade2fd297c9b7355297bbd641",
  "sha256_v1": "1e9e28a901ba4dba5087c45cd7a9172ecbd0261bf7d81cb9dde5ce51405ec694",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Blocks adding a known-malicious package version (npm, PyPI, crates, Go, RubyGems, Packagist manifests and lockfiles), a re-pointed action ref, or an IOC file name, from a dated, sourced list (data/ioc.json, CI fails 120 days after as_of). Runs: commit, agent write, turn's end; only additions judged. Exact versions only: a range is not resolved. A snapshot, not a feed; friction, not a boundary. Adopt under rollout observe.",
  "misses": null,
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "supply-chain"
  ],
  "eval_cases": 43,
  "eval_executed": 43,
  "latest": {
    "version": "0.1.1",
    "date": "2026-10-27",
    "change": "Title wording only (IR-F40): \"Compromised Package IOC\" is now \"Block Known-Malicious Packages\". The id, guard and tests are 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/base/compromised-package-ioc",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A commit adds a package-lock.json that resolves axios to 1.14.1.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "package-lock.json resolves the patched axios 1.14.0.",
      "command": null
    }
  ]
}
