In depth
What changes for developers when Chainsaw is on the install path?
Almost nothing changes for developers when Chainsaw sits on the install path. There is no SDK, no laptop agent and no CI plugin: npm install, lockfiles, CI jobs, IDE tooling and registry auth stay as they are, and the only edit is one registry URL per ecosystem pointing at the Chainsaw proxy. A package that passes policy installs as usual, streamed through Chainsaw’s content-addressed cache, and the developer sees the usual added 1 package. The visible difference is that a bad package fails, with an error in the developer’s own terminal naming the rule that fired and the exception contact. If the rule is wrong for that install, the developer asks for an exception that carries a reviewer, a reason and an expiry date, with no escalation to platform engineering.
Why does Chainsaw refuse at install time instead of scanning afterwards?
Chainsaw refuses at install time because the supply-chain attacks that matter most shipped before any CVE existed. event-stream, ua-parser-js, xz-utils and the March 2025 tj-actions/changed-files GitHub Action compromise all reached developer machines before any vulnerability scanner had a CVE to match. A post-hoc SCA tool finds the bad package after the package is on disk, sometimes after the postinstall script has already run. Chainsaw is a package firewall: Chainsaw decides on the install request itself, before the package is served, on rules you can read and change. The supply-chain rules cover install-script exfiltration, maintainer-account takeover, publish-velocity bursts, typosquats and the other supply-chain signals, up to 25 depending on the ecosystem, alongside the usual vulnerability, license, version and provenance gates. In practice, an npm package whose postinstall hook runs curl against a remote URL is refused on its first install, before the hook can run.
How does Chainsaw work, step by step?
How do you point a package manager at Chainsaw?
You point a package manager at Chainsaw by changing one registry URL in the config the package manager already reads. For npm, the file is ~/.npmrc: replace registry=https://registry.npmjs.org/ with your org’s Chainsaw proxy URL and add the _authToken line with your client credentials. Nothing else changes: no SDK, no laptop agent, no CI plugin and no new build step. The same pattern covers pip.conf for pip, settings.xml for Maven, FROM lines in a Dockerfile, and the registry settings for NuGet, Cargo, Go, Composer and APT, with one URL per ecosystem across the 17 ecosystems Chainsaw proxies. A pip user sets index-url in pip.conf to the Chainsaw PyPI URL. Developers keep running npm install or pip install as before, and lockfiles, CI jobs and registry auth stay unchanged. Per-ecosystem setup guides.
How does Chainsaw decide whether to allow or block a package?
On every request, Chainsaw evaluates the package in parallel against your rules before forwarding to the upstream registry or returning an error.
- Allow path: rules pass in parallel: vulnerability gates, licenses, versions, provenance (who published it, signed by whom), plus up to 25 supply-chain attack signals, depending on the ecosystem (all 25 on npm and PyPI). The package streams back through the content-addressed cache (deduped by hash — the second install of the same version is faster than upstream), and the developer sees the usual
added 1 package.
- Block path: the developer sees the exact rule that fired, in their own terminal.
EPSS is the likelihood of real-world exploitation — it filters out the long tail of “technically a CVE, nobody exploits it” noise.
What are Chainsaw’s six rule families?
Chainsaw’s six rule families are vulnerability gates, licenses, versions, provenance, client context and exceptions. For example, a vulnerability gate can refuse any version with a CVE in the CISA Known Exploited Vulnerabilities catalog, whatever its CVSS score.
- Vulnerability gates: CVE, CVSS, EPSS, KEV.
- Licenses: SPDX allowlist/denylist per ecosystem.
- Versions: pinned, semver windows, release-age floors.
- Provenance: signed builds, trusted publishers.
- Client context: who’s installing, from where, into what.
- Exceptions: reviewed, dated, scoped overrides.
How do you roll Chainsaw out without breaking builds?
You roll Chainsaw out in monitor mode first. Every rule ships with a monitor mode: the decision is recorded, but the install still succeeds. You see exactly what would have been blocked across every repo and pipeline, add exceptions where needed, then flip the rule to enforce — per rule, per repo, per team.
Every allow/block is logged with timestamp, user, rule, and package metadata. Export a CycloneDX SBOM (standard file that lists everything you shipped) per repo, stream the audit log to your SIEM, or roll a policy back from the dashboard — no developer workstation touched.
What happens when something goes wrong?
What happens if Chainsaw itself is degraded?
What happens depends on which part of Chainsaw is degraded, and the outages have different answers. The Chainsaw proxy sits in your install path, and npm or pip pointed at it have no automatic fallback. If the hosted proxy is unreachable, installs fail until it is back; the package-manager guide gives a break-glass client config for the outage. Self-hosted, run the proxy HA: a down process is a deployment question, not a policy one. If the proxy cannot load your policies, it refuses with HTTP 503 rather than install unchecked. If the proxy is up but a threat-intel feed or advisory database is degraded, installs proceed and Chainsaw records the gap in the audit trail. Chainsaw fails open on data gaps by default rather than breaking your builds. To fail closed instead, set CHAINSAW_COVERAGE_MODE=closed and name the data sources you treat as mandatory. Chainsaw then refuses anything the proxy could not fully check, and the error tells you which source was missing. Say a threat-intel feed is named as mandatory: an install Chainsaw could not check against the feed is then refused while the feed is degraded.
What happens if the upstream registry is down?
If the upstream registry is down, Chainsaw keeps your builds running from its cache. When npm, PyPI or Docker Hub has a bad day, versions Chainsaw previously allowed are served from Chainsaw’s content-addressed blob store, deduplicated by hash. Only packages and versions nobody has installed through Chainsaw before fail, and those fail with the upstream registry’s own error, not a Chainsaw error.
What if a Chainsaw rule is too aggressive?
A blocked legitimate install is one click away from an exception. The exception carries a reviewer, a reason, and an expiry date. The reviewer dashboard queues the request; the developer sees a structured error naming the rule and the exception contact. No escalation to platform-eng needed.
Still skeptical? Start in monitor mode. Every rule supports it out of the box: Chainsaw logs the decision but still lets installs through, so you can measure exactly what would have been blocked across every repo and pipeline before you enforce a single thing.