Repository navigation
v0.44.0
Say what matters, and scans you can trust to finish
Teams can declare which attack vectors they care about, and scans now retry, say why they stopped and check that they read the files. The command is now 0security, with 0 as a short alias.
Highlights
- Declare what matters: A Scope section in SECURITY.md says which vectors are in and out of scope. Findings outside it are listed apart and don't fail your build.
- Scans that finish and explain: A scan retries when the model provider drops a connection, limits each batch's time, and names the real cause when it stops early. It sends one follow-up for files it never opened, and warns when a scan with no findings read only part of the code.
- Cleaner findings: Findings land in clearer categories such as broken access control, hardcoded secret and missing rate limit. The same flaw filed twice is merged, and a scan with no findings says that is not proof the code is safe.
- 0security, and safer helpers: The command is installed as 0security with 0 as an alias, and the Action gains inputs for scanners, rules, tiers and scope.
Added
- declared scope.
0 scan --scope <file>reads the## Scopesection of SECURITY.md (or any Markdown file):### In scopeand### Out of scopelists of- <vector>: <reason>, with optional(until YYYY-MM-DD)and[paths: globs]. 0 threat-model --interview. After the draft, a model proposes up to 8 specific questions the code cannot answer (new experimental skillscope-interview), 0 asks them on the terminal, words one scope entry per answer from your own words, shows each entry and the diff, and…- the interview asks about findings.
0 threat-model --interviewuses the latest scan of the folder from the last 30 days (or--from-scan <report.json>, or--scanto run one first with an estimated cost and a confirmation. 0 threat-model --output <path>writes the threat model to a relative.mdpath inside the folder (default.0/threat-model.md), for exampleTHREAT_MODEL.md. The skill's human-section rule and--prfollow it. When SECURITY.0 scan --coverage-rounds <n>(default 1, 0 to 5, 0 turns it off). After a thread ends, 0 reads which source files its tool calls opened and, if some were never opened, sends the same thread a follow-up that names them.- a one-thread scan that records no finding now checks which source files its tool calls named. When some were not opened, the report says "Shallow review" with the files, in the warnings of the Markdown, HTML and PDF reports, in the SARIF run properties and in a
warningsfield… - a how-to, "Create a Sentinel with a schedule from the terminal", using
0 sentinels sync. The--trigger adderror for a Sentinel with no automation now names that route. 0 scanrecovers from transient model provider failures. A batch that fails because the connection dropped, the provider timed out, or it returned a rate limit or server error runs again, up to--retriestimes (default 2, 0 turns it off), with a jittered wait.0 scan --batch-timeout <seconds>(default 900) limits one batch. A batch that passes it is cancelled and stays pending with the reasontimeout, and the scan goes on.--timeoutstill limits the whole scan.- A scan that fails or stops early now says why instead of "Assessment did not complete successfully": the JSON report has
failure(acauseand a plainmessagewithout secrets), SARIF has it in the run properties, and the Markdown and HTML reports and the Action job summary… - The installer now installs the command as
0securityand keeps0as a symlink to it. Help text shows the name you ran. An older install with only0gains0securityon the next install or update. Windows keeps a single0.exe. - Each release publishes the binaries as
0security-darwin-arm64,0security-linux-x64,0security-linux-arm64and0security-windows-x64.exe, with identical copies under the older0-<platform>names so existing installs can still update. `checksums. - …and 1 more in the full changelog.
Changed
- With Ask before running commands (
approvals: ask), subagents and persistent workers now ask before each command or file change. Before, approving the spawn let the helper run its own commands unprompted. - with a declared scope, the
countsand the summary of a scan report cover only the findings not labelled out of scope;outOfScopeCountscounts the rest. Thethreat-modelskill takes the file path from the message instead of fixing it. - the Markdown report of a scan with no findings is headed "No Findings" instead of "No Vulnerabilities Found". When no pattern scanner can run, the scan prints one line saying it runs without leads and how to install one; FoxGuard now has an install hint.
- Extension scripts run with an environment built from scratch: basics plus the variables the extension declared and you approved. They no longer inherit the bash tool's environment,
TARGETor the target-auth variables (AUTH_HEADER,AUTH_VALUE,AUTH_CURL_FLAG), or loader… - a fix pull request opened without any
--testcheck is now a draft and says "No checks were run." Pass--readyto0 findings fixor0 findings burndownto open it ready for review. - the first-run notice and the data-flow page now say that 0 also checks GitHub for updates, and name the settings that turn it off:
ZERO_OFFLINE=1turns off usage counts, crash reports and the update check;ZERO_NO_TELEMETRY=1andZERO_NO_UPDATE_CHECK=1turn off one each. - a scan with no findings reports "No vulnerabilities were found in the reviewed scope. A scan with no findings is not proof that the code is safe." instead of "The target passed all tests."
- the missing-key error now points to
0 models connectand no longer ends with a misleading "Pick another with --model". The0 findings fixhelp describes its exit codes as they behave, and--aton a Sentinel schedule says it is a time in--timezone(default UTC). - finding categories. Eleven new categories name classes that models used to file under
missing-validation,otherorsecurity-misconfiguration. - a scan report merges findings that two passes, or two batches of one pass, filed for the same flaw when they cite the same file and category (or a shared CWE) at overlapping lines. Before, passes merged across categories and one pass never merged with itself.
Fixed
- the shallow-review check saw only the last 20 messages of a thread, because the status poll is windowed. It now reads the whole transcript once, and counts globs,
xargs cat,pythonreads and files named in a task for a worker thread. - A Sentinel's pull request poll keeps its cursor for long-lived open pull requests: it forgets closed pull requests first, so an open one is no longer reviewed again after the cursor fills up.
0 findings fix --sandbox dockerno longer follows or truncates a symlinked.0-sandbox-probein the work tree copy. The probe is removed without following it and created exclusively.0 sbom generate --resolvekeeps Gradle's own error text when every project in a multi-project build fails, instead of only "No dependency tree was produced."- The MCP address check blocks more IPv6 forms that reach internal hosts: IPv4-compatible (
::127.0.0.1), IPv4-translated, 6to4, Teredo, discard and local-use NAT64 addresses. Only global unicast addresses and mapped public IPv4 are allowed. 0 sbom licensesprinted "Not legal advice" twice in text output.0 scanreads a thread's status through a window of its last messages, so the status request of a long thread stays small. A status response over the transport limit ("Backend response exceeds the transport limit") ended one benchmark scan.
Install
curl -fsSL https://raw.githubusercontent.com/0sec-labs/0security/main/install.sh | bash
0 --versionWindows (experimental): download 0security-windows-x64.exe below (also published as 0-windows-x64.exe, kept so existing installs can update). 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.44.0/docs/CHANGELOG.md