---
title: "Audit a dependency manifest · airgap"
description: "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."
url: https://www.useairgap.dev/guides/manifest
---

[All guides](https://www.useairgap.dev/guides)

# 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 type | File | High-risk patterns flagged |
| --- | --- | --- |
| `npm` | `package.json` | preinstall, install, postinstall, prepare lifecycle hooks; git+, http/https tarball, and file: dependency URLs |
| `python` | `requirements.txt` | VCS git+ URLs, direct remote archive URLs, editable installs, and suspicious index/extra-index overrides |
| `cargo` | `Cargo.toml` | Explicit 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](https://www.useairgap.dev/guides/run) and read [Blocking malicious install scripts](https://www.useairgap.dev/guides/supply-chain-hardening) for the full defense model.

## Keep reading

[All 12 guides](https://www.useairgap.dev/guides)

### [Scrub logs before sharing](https://www.useairgap.dev/guides/scrub)

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

### [Run a security review](https://www.useairgap.dev/guides/audit)

A defensive, static review of a repository in six phases.
