Chock.sh Build your plugin

Policies

Block Known-Malicious Packages

Block Known-Malicious Packages: what it does, its label on each agent, what it misses, and examples.

Catalog policy compromised-package-ioc, version 0.1.1, labelled blocks on Claude Code.

What it does

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.

On each agent

AgentLabelWhat it does there
Claude CodeBlocksBlocks on an agent's file writes and at turn end
CursorBlocksBlocks on an agent's file writes and at turn end
CodexBlocksBlocks 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)
GitHub CopilotBlocksBlocks 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)
DevinBlocksBlocks 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)
GrokNot gradedNot graded yet for Grok
gooseNot gradedNot graded yet for goose
AntigravityNot gradedNot graded yet for Antigravity
OpenHandsNot gradedNot graded yet for OpenHands
Kimi CodeNot gradedNot graded yet for Kimi Code
Factory DroidNot gradedNot graded yet for Factory Droid

What it misses

This policy does not state what it misses.

Examples from its eval suite

Refused: A commit adds a package-lock.json that resolves axios to 1.14.1.

Allowed: package-lock.json resolves the patched axios 1.14.0.

More

Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.