2026-04-08

Malicious URLs and package typosquats: catching supply-chain mistakes early

Two of the rule packs exist specifically for supply-chain-shaped mistakes — an agent fetching something it shouldn’t, or adding a dependency that isn’t what it looks like.

Malicious URLs

Known-bad hosts and structurally suspicious URLs (lookalike domains, unusual encoding meant to evade a quick visual check) get flagged before a tool call fetches or writes them. This isn’t a live threat-intelligence feed — it’s a deterministic pattern set, which means it’s auditable and it never phones home to check a URL against a remote service.

Package integrity

Dependency additions get checked against typosquat and known-malicious-package patterns — a transposed letter in a common package name, exactly the kind of thing an agent moving fast can introduce without a human noticing.

Why these are separate packs, not one “supply chain” rule

Different signal shapes need different matching logic — a URL pattern and a package-name pattern aren’t the same kind of check, and keeping them separate means each can be tuned (and independently toggled between shadow and enforce) without touching the other.

← Back to blog