Binary Blob Audit
Scan source repositories for committed binary blobs. This enforces the no-binary-blobs rule and maps curl Practice 6 into an AIWG security-engineering control.
Execution Flow
- Run
git ls-files -z to enumerate tracked files.
- For each file, collect size, MIME classification, and last touched commit.
- Flag binary MIME types and extension-blocklisted files:
.so, .dll, .dylib, .exe, .bin, .dat, .o, .a, .jar, .war.
- Classify exceptions:
test/fixtures/** and tests/fixtures/** under the configured size cap.
assets/** images under the configured size cap.
- SBOM/attestation files with a signature or provenance note.
- Emit a report with violations and allowed exceptions.
Output
Each finding includes path, MIME type, byte size, last touched commit, exception status, and remediation.
CI
Run in report-only mode first:
aiwg run skill binary-blob-audit
Gate new violations after baselining:
aiwg run skill binary-blob-audit -- --fail-on-violation
References
agentic/code/frameworks/security-engineering/rules/no-binary-blobs.md
.aiwg/security/curl-checklist-gap-analysis.md row 1, Practice 6
1---2namespace: aiwg3name: binary-blob-audit4platforms: [all]5description: Scan tracked repository files for committed binary blobs and report reviewability/provenance exceptions6requires:7 - git: repository with tracked files8 - file: file(1) utility for MIME classification9ensures:10 - report: binary files listed with MIME type, size, exception class, and last touched commit11 - exit-code: non-zero when violations found and --fail-on-violation is set12errors:13 - not-git-repo: current directory is not a git repository14 - file-missing: file(1) utility unavailable15invariants:16 - never deletes files17 - acceptable binary exceptions are reported, not silently ignored18commandHint:19 argumentHint: "[--fail-on-violation] [--max-fixture-bytes N] [--format text|json]"20 allowedTools: Read, Bash, Grep21 model: haiku22 category: security23 orchestration: false24 modelRole: efficiency25 modelTier: economy26metadata:27 source: https://skillmd.com/skills/jmagly-ai-writing-guide/binary-blob-audit28---2930# Binary Blob Audit3132Scan source repositories for committed binary blobs. This enforces the `no-binary-blobs` rule and maps curl Practice 6 into an AIWG security-engineering control.3334## Execution Flow35361. Run `git ls-files -z` to enumerate tracked files.372. For each file, collect size, MIME classification, and last touched commit.383. Flag binary MIME types and extension-blocklisted files: `.so`, `.dll`, `.dylib`, `.exe`, `.bin`, `.dat`, `.o`, `.a`, `.jar`, `.war`.394. Classify exceptions:40 - `test/fixtures/**` and `tests/fixtures/**` under the configured size cap.41 - `assets/**` images under the configured size cap.42 - SBOM/attestation files with a signature or provenance note.435. Emit a report with violations and allowed exceptions.4445## Output4647Each finding includes path, MIME type, byte size, last touched commit, exception status, and remediation.4849## CI5051Run in report-only mode first:5253```bash54aiwg run skill binary-blob-audit55```5657Gate new violations after baselining:5859```bash60aiwg run skill binary-blob-audit -- --fail-on-violation61```6263## References6465- `agentic/code/frameworks/security-engineering/rules/no-binary-blobs.md`66- `.aiwg/security/curl-checklist-gap-analysis.md` row 1, Practice 6