How anthropics/oss-scanner works
OSS Scanner is a hosted service for scanning enrolled open-source projects; this repository primarily contains enrollment records and local validation/build-check tools, not the hosted scanning service itself. Maintainers add a project configuration and build instructions, which can be validated and locally checked. The documented hosted workflow then builds in an isolated VM, scans offline, and emails findings with reproduction steps and proposed patches where available. The hosted scan internals are not present in the sampled source, so that flow is represented only at the documented boundary.
Main entry points: projects Project enrollment · validate.py Enrollment validator · check_build.py Build and shell check · check_qemu.py QEMU offline check
Components 14
Project enrollment
- Project enrollment
projects - Project settings
templates/project.yaml - Build instructions
templates/Dockerfile - Threat guidance
templates/threat_model.md
Local check tools
- Enrollment validator
tools/validate.py - Build and shell check
tools/check_build.py - QEMU offline check
tools/check_qemu.py
Hosted scanning
- Upstream project
- Hosted scanner
- Isolated build
- Offline audit
- Findings and patches
Other components
- Project maintainer
- Report recipients
Connections 15
- Project maintainer → Project enrollment: adds project
README.md - Project enrollment → Project settings: configures scan
README.md - Project enrollment → Build instructions: provides build
README.md - Project enrollment → Threat guidance: may provide
README.md - Project maintainer → Enrollment validator: validates enrollment
README.md - Enrollment validator → Project enrollment: checks settings
tools/validate.py - Project maintainer → Build and shell check: checks build
README.md - QEMU offline check → Build and shell check: runs build
tools/check_qemu.py - Project maintainer → Hosted scanner: enrolls project
README.md - Hosted scanner → Upstream project: imports project
README.md - Hosted scanner → Isolated build: builds online
README.md - Isolated build → Offline audit: moves VM
README.md - Hosted scanner → Offline audit: scans project
README.md - Offline audit → Findings and patches: produces findings
README.md - Hosted scanner → Report recipients: emails reports
README.md