Skip to content

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.

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:

Terminal window
sha256sum -c SHA256SUMS.txt --ignore-missing

2. 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.

Terminal window
canontra repo vendor/pkg-1.4.0 --json > v1_manifest.json
canontra repo vendor/pkg-1.4.1 --json > v2_manifest.json

If F_R matches across both directories, every indexed file has an identical composite F4 digest, confirming the release changed only formatting, comments, or whitespace.

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):

Terminal window
canontra compare vendor/pkg-1.4.0/client.py vendor/pkg-1.4.1/client.py
canontra diff vendor/pkg-1.4.0/client.py vendor/pkg-1.4.1/client.py

3. 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:

Terminal window
canontra export vendor/pkg-1.4.1/client.py \
--format sarif \
--base vendor/pkg-1.4.0/client.py \
--output audit-findings.sarif

All input paths pass through canonicalizeSafePath to block symlink escapes and directory traversal outside the audit root (returning Exit Code 4 on boundary violations).