仓库二进制文件审计
binary-blob-audit
扫描版本控制仓库中的受跟踪文件,查找已提交的二进制大文件(blob),并报告可审查性与来源方面的异常情况。
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- binary-blob-audit
- errors
- [ { "not-git-repo": "current directory is not a git repository" }, { "file-missing": "file(1) utility unavailable" } ]
- ensures
- [ { "report": "binary files listed with MIME type, size, exception class, and last touched commit" }, { "exit-code": "non-zero when violations found and --fail-on-violation is set" } ]
- requires
- [ { "git": "repository with tracked files" }, { "file": "file(1) utility for MIME classification" } ]
- namespace
- aiwg
- platforms
- [ "all" ]
- invariants
- [ "never deletes files", "acceptable binary exceptions are reported, not silently ignored" ]
- commandHint
- { "model": "haiku", "category": "security", "modelRole": "efficiency", "modelTier": "economy", "allowedTools": "Read, Bash, Grep", "argumentHint": "[--fail-on-violation] [--max-fixture-bytes N] [--format text|json]", "orchestration": false }
- description
- Scan tracked repository files for committed binary blobs and report reviewability/provenance exceptions
02 资源文件 1
- 参考文档agents/openai.yaml140 B
03 SKILL.md 正文
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
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.