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 -zto 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/**andtests/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.mdrow 1, Practice 6