Skip to main content

Supply chain and package advisories

Guard checks package installs and the dependencies in a workspace against signed advisory data. It can stop an install before it runs, scan a project's manifests and lockfiles, and explain why a package version got its verdict. The checks run on your machine. Newer advisory data comes from Guard Cloud only when you sync it.

What Guard stops, and whenDirect link to What Guard stops, and when​

Under the default balanced preset, an install pauses when Guard finds evidence of risk, not because a package is new. The evidence is one of:

  • A known vulnerability or advisory for the package version.
  • Malware, or a blocked package, listed in a policy bundle.
  • An integrity failure, such as a lockfile hash that does not match.
  • Guard's own PyPI distribution installed from outside the registry. No setting relaxes this one.

Live advisory data comes from Guard Cloud. Without Cloud, Guard uses the advisories cached on the device and the data bundled with the install.

Low trust in the HOL Registry can also trigger a review. When an artifact has a HOL Registry trust score below 80, the low_trust_artifact risk class applies, and it is require-reapproval under balanced. The lookup sends only the artifact kind and its public name, and an artifact with no score is never reviewed for this reason. To turn the check off, set low_trust_artifact = "allow" or set HOL_GUARD_REGISTRY_TRUST=off.

Ecosystem coverageDirect link to Ecosystem coverage​

Coverage differs by ecosystem. Guard labels each one so you know what to expect:

LabelEcosystems and package managers
Protectednpm (npm, npx, pnpm, yarn, bun) and PyPI (pip, pip3, pipenv, pipx, poetry, uv, uvx)
BetaCargo (cargo), Go modules (go), Maven and Gradle (mvn, gradle), Composer (composer), RubyGems (bundle)
Monitor-onlyHomebrew formulae, casks, and taps, Docker base images, GitHub Actions, system packages, NuGet, and unsupported managers
  • Protected means Guard can block before the install has side effects.
  • Beta means Guard can inspect the install and explain the risk, but live coverage is still growing. Do not rely on it as a hard stop.
  • Monitor-only means Guard records evidence and receipts and does not claim enforcement.

hol-guard supply-chain support-matrix --json prints the managers Guard can wrap and the probe coverage for each, as JSON.

Package risk defaultsDirect link to Package risk defaults​

Package behavior is controlled by risk keys under [risk_actions] in config.toml, and by the matching rows in the dashboard's package review settings. These are the defaults for the presets that set them:

Risk keyDashboard labelbalancedstrictparanoid
package_unknownUnrecognized packagesallowblockblock
package_lockfile_driftLockfile bumpsallowrequire-reapprovalblock
package_direct_sourceDirect package sourcesallowrequire-reapprovalblock
package_custom_registryCustom registriesallowallowblock
package_scriptPackage scriptswarnrequire-reapprovalblock
package_installEvery package installallowallowblock

See Policy presets for the full preset table and how to change one risk class.

Wrap an install with protectDirect link to Wrap an install with protect​

hol-guard protect evaluates one install command and decides whether it may run.

hol-guard protect --dry-run -- npm install event-stream
hol-guard protect -- npm install left-pad
hol-guard protect --json -- pip install requests
CaseWhat happens
--dry-runGuard evaluates the command and prints the verdict. It does not run the command.
The verdict blocks the installGuard does not run the command and exits with status 2.
The verdict allows the installGuard runs the command, prints its output with secrets redacted, and exits with the command's own status.
No commandGuard prints the package firewall status instead.

Output from the wrapped command is redacted by default. --unsafe-raw-output turns the redaction off, so use it only on a machine where printed output is not logged or shared. A held install that needs approval creates a review in the Inbox. See Approval center and audit trail for how package approvals are scoped.

Intercept package managers on your PATHDirect link to Intercept package managers on your PATH​

Guard can place shims for supported package managers on your PATH, so a plain npm install goes through the same check without typing protect.

hol-guard package-shims status
hol-guard package-shims install --manager npm --manager pip
hol-guard package-shims test --manager npm
hol-guard package-shims repair --manager npm
hol-guard package-shims uninstall --manager npm

status is the default when you give no action. --manager is repeatable, and leaving it out targets every supported manager. Every action takes --json.

install and test need a connected Guard Cloud account that includes the package firewall. Without one, Guard prints the reason and exits with status 2. status, repair, and uninstall work without it, so you can always inspect or remove shims. hol-guard protect does not use shims or this entitlement, so it still checks one install at a time.

If the result reports path_repair_required, prepend the shim directory it returns to your PATH and restart the shell. The CLI test checks the PATH of the shell you run it from. The dashboard Test button checks the shell profile blocks instead, so the two can disagree until your shell reloads.

When the approval gate is on, install, repair, test, and uninstall ask for your password or app code first, and exit with status 2 if the gate is not satisfied. --approval-password and --approval-totp supply them non-interactively.

Scan, audit, and explainDirect link to Scan, audit, and explain​

These commands inspect the workspace and a single package version. Run them from the project, or pass --workspace <dir>.

hol-guard supply-chain sync
hol-guard supply-chain scan
hol-guard supply-chain audit
hol-guard supply-chain explain [email protected] --ecosystem npm
CommandWhat it does
supply-chain syncFetches and verifies the latest signed advisory bundle. Same data as hol-guard cloud sync-intel.
supply-chain scanEvaluates the workspace's manifests and lockfiles against the bundle.
supply-chain auditExtracts the workspace dependency inventory and evaluates it. Accepts SBOM files and CI gating options.
supply-chain explain <package>Explains one package version with the current bundle. --ecosystem is npm (default), pypi, cargo, go, maven, packagist, or rubygems.
supply-chain support-matrixPrints supported managers and probe coverage as JSON.

All of them take --json. Run sync first so a scan uses current advisory data.

A scan or audit result reports where it looked (manifest, lockfile, and SBOM paths), the number of direct, transitive, and total packages, the evaluation, and the supply-chain posture. It adds lockfile warnings and a diff when they apply. The source field says whether the evaluation ran locally or in Guard Cloud.

Exit codesDirect link to Exit codes​

ExitMeaning
0The decision is allow, monitor, or warn.
1The workspace inventory is empty, so the scan or audit is incomplete.
2The decision is block or ask.
3audit --ci matched the --fail-on threshold.

Gate a CI jobDirect link to Gate a CI job​

audit can compare two workspace states and fail a pipeline on severity.

hol-guard supply-chain audit --ci --fail-on high --json
hol-guard supply-chain audit --before-workspace ./base --after-workspace ./head --json
hol-guard supply-chain audit --sbom sbom.cdx.json --sbom extra.spdx.json --json

--fail-on is low, medium, high, or critical, and the default is high. With --ci, a finding at or above the threshold exits with status 3. --before-workspace and --after-workspace produce a diff of what the change adds. --sbom is repeatable and adds the packages from an SBOM file to the inventory.

When the machine is connected to a Guard Cloud workspace whose bundle allows it, audit can evaluate the package list in Guard Cloud. The request carries the package list, a workspace fingerprint, and the machine name. Otherwise, or if that request fails, Guard evaluates locally and records a fallback_reason in the result.

Advisories on the deviceDirect link to Advisories on the device​

Guard caches the advisories from the signed bundle. Read them without a network call:

hol-guard advisories list
hol-guard advisories list --severity high
hol-guard advisories explain <advisory-id>
hol-guard advisories sync
  • advisories and advisories list print the cached advisories. --severity is a minimum severity: low, medium, high, or critical. It belongs to list.
  • advisories explain <advisory-id> prints one cached advisory, or reports that the ID is not found.
  • advisories sync pulls the signed bundle, the same fetch as cloud sync-intel. A failed sync exits 0 and prints a status instead: no_cloud_sync_configured (not connected), auth_expired (sign in again), endpoint_untrusted, or supply_chain_sync_failed.

Every form takes --json. hol-guard cloud status shows the last sync time and what Guard last reported.

What sync sendsDirect link to What sync sends​

Sync is optional and pull-only. It fetches a signed bundle and sends no local file paths, harness configs, receipts, or workspace identifiers. Signed out, Guard skips the sync and keeps using the bundled data. See Local-first vs cloud for the full list of what syncs.

In the local dashboardDirect link to In the local dashboard​

The Supply chain page in the dashboard sidebar has three tabs:

TabShows
Supply ChainPer-app shim coverage and the Package Firewall panel, with status, supported managers, and the shim actions.
AuditRuns a workspace audit and lists issues with a severity filter and search. Each row has View evidence and Resolve.
Feed HealthWhether the advisory feed is live or sample-only, how fresh it is, daemon status, cloud sync, and last activity.

The Package Firewall panel's Protect, Repair, Test, Audit, Sync, and Remove actions need a paired local daemon, and the shim actions need a connected Guard Cloud account that includes the package firewall, as the CLI does. Without one, the panel still shows status, supported managers, and what to do next. hol-guard protect and the supply-chain commands above work from the terminal either way. See Billing, credits, and plans for plan details.

In Guard CloudDirect link to In Guard Cloud​

A connected device's package decisions, blocked-install counts, advisories, and feed health appear under AI Firewall in Guard Cloud. See Guard Cloud command center and Alerts, watchlists, and advisories.

When a package is blockedDirect link to When a package is blocked​

Confirm the verdict with hol-guard supply-chain explain, upgrade to a safe version, and re-run through Guard. Mitigation guidance covers the steps, including false positives and private packages.

Next guidesDirect link to Next guides​