Air-Gapped Dependency Auditing
Canontra runs with zero network sockets, zero HTTP/RPC clients, zero external C-FFI libraries, and zero telemetry. Security teams in air-gapped networks can audit third-party dependency updates without sending source code off-host or installing runtime parsers.
1. Verify Binary Integrity Offline
Section titled “1. Verify Binary Integrity Offline”Move the release binary (canontra-linux-x86_64 or canontra-windows-AMD64.exe) and SHA256SUMS.txt into the offline environment and verify the SHA-256 digest before running:
sha256sum -c SHA256SUMS.txt --ignore-missing2. Audit Vendor Version Updates (v1 vs v2)
Section titled “2. Audit Vendor Version Updates (v1 vs v2)”When upgrading a vendored package from vendor/pkg-1.4.0 to vendor/pkg-1.4.1, plain text diffs often mix hundreds of license-header, comment, or formatting changes together with behavioral edits.
Step A: Compare Repository Root Digests
Section titled “Step A: Compare Repository Root Digests”canontra repo vendor/pkg-1.4.0 --json > v1_manifest.jsoncanontra repo vendor/pkg-1.4.1 --json > v2_manifest.jsonIf F_R matches across both directories, every indexed file has an identical composite F4 digest, confirming the release changed only formatting, comments, or whitespace.
Step B: Inspect Divergent Files
Section titled “Step B: Inspect Divergent Files”For any file whose F4 changed, run compare and diff to separate internal body edits (F1) from public signature, dependency, or type-contract changes (F2, F3, F_T):
canontra compare vendor/pkg-1.4.0/client.py vendor/pkg-1.4.1/client.pycanontra diff vendor/pkg-1.4.0/client.py vendor/pkg-1.4.1/client.py3. Export OASIS SARIF v2.1.0 for Offline Dashboards
Section titled “3. Export OASIS SARIF v2.1.0 for Offline Dashboards”Generate a standard OASIS SARIF v2.1.0 report (Canontra.Export.SARIF) compatible with offline SonarQube, GitHub Enterprise Server, and audit archives:
canontra export vendor/pkg-1.4.1/client.py \ --format sarif \ --base vendor/pkg-1.4.0/client.py \ --output audit-findings.sarifAll input paths pass through canonicalizeSafePath to block symlink escapes and directory traversal outside the audit root (returning Exit Code 4 on boundary violations).