All guidesWalkthroughs

Audit a dependency manifest

Audit package.json, Cargo.toml or requirements.txt for install hooks, git URLs and risky packages with airgap_audit_supply, locally and with no keys.

Audit a dependency manifest

Short answer: Before installing dependencies from a package.json, requirements.txt, or Cargo.toml you did not write, run airgap_audit_supply. It runs 100% locally on your machine, requires zero cloud credentials, makes zero network calls, and flags lifecycle install scripts, explicit build scripts, and alternate dependency sources.

use airgap to audit this package.json before we install
check this Cargo.toml and requirements.txt with airgap_audit_supply

What the local audit inspects

Manifest typeFileHigh-risk patterns flagged
npmpackage.jsonpreinstall, install, postinstall, prepare lifecycle hooks; git+, http/https tarball, and file: dependency URLs
pythonrequirements.txtVCS git+ URLs, direct remote archive URLs, editable installs, and suspicious index/extra-index overrides
cargoCargo.tomlExplicit build.rs build scripts, git and path dependency overrides, and custom registry sources

Direct MCP tool call

{
  "tool": "airgap_audit_supply",
  "arguments": {
    "manifest_type": "npm",
    "manifest_content": "{\n  \"name\": \"sample\",\n  \"scripts\": { \"postinstall\": \"node setup.js\" }\n}"
  }
}

How it integrates with PR verification

You do not need to call airgap_audit_supply manually when verifying a GitHub pull request — airgap_verify_pr runs it automatically on changed manifests with fail_on_supply_risk: true and allow_install_scripts: false by default.

Honest scope: airgap_audit_supply is a fast static heuristic on the manifest text you pass in. It does not download packages, inspect transitive dependencies inside lockfiles, or query CVE advisory databases. Combine it with sandboxed installs inside airgap_sandbox_run and read Blocking malicious install scripts for the full defense model.

Keep reading

All 12 guides

Scrub logs before sharing

Replace keys, tokens and private blocks with [REDACTED].