Repository navigation
v0.41.0
Scan in CI, and scan more than once
0 scan can run several passes and merge them, its SARIF now works in GitHub code scanning, and two new skills hunt variants of a fixed bug and broken assumptions.
Highlights
- Several passes: 0 scan --passes 3 scans the same code three times and merges the findings, because one run misses issues another finds. The budget is split between the passes, and each finding says how many found it.
- Works in CI: The SARIF has paths relative to the repository, the category as the rule, and a key that stays the same from run to run, so GitHub code scanning shows findings on the right lines. A job needs only an API key; the docs have a workflow.
- Two new skills: variant-hunting takes a fix and finds the same bug at the other places. assumption-mining lists what each function silently relies on and looks for a caller that breaks it.
- Steadier scans: A scan keeps going when a busy console misses a status request, leaves out node_modules and build folders, and never sends a git URL's password to the model.
Added
0 scan --passes <n>(up to 5) scans the same code several times, three at a time, and merges the findings by place, so the report is the union of what the runs found.--budgetis the total and is split evenly.- Two built-in skills that work from the shell and the
findingtool alone.variant-huntingtakes a fix (a commit or diff), names the bug class and the unsafe pattern, searches the whole tree for the same shape and checks every hit.
Fixed
- A scan's SARIF works in GitHub code scanning. Paths are relative to the repository root instead of
file:///URLs with the runner's checkout path, the rule is the finding's category instead ofmanual, and the finding key comes from its file and first line instead of the title… - A scan of a git URL no longer sends a user name and password in the URL to the thread, the model or the report.
- The scan skill leaves out
node_modules,vendor, build output and generated files. 0 scankeeps going when a few status requests to a busy console fail, as happens with several scans at once or a slow model provider. It gives up after about a minute of failures and names the thread, whose findings are kept (0 findings export --scan <thread id>).
Install
curl -fsSL https://raw.githubusercontent.com/0sec-labs/0security/main/install.sh | bash
0 --versionWindows (experimental): download 0-windows-x64.exe below. Docker: docker run --rm ghcr.io/0sec-labs/0security:latest --help.
Verify downloads against the attached checksums.txt (SHA-256), for example sha256sum -c checksums.txt --ignore-missing.
Full changelog: https://github.com/0sec-labs/0security/blob/v0.41.0/docs/CHANGELOG.md