Skip to content

v0.44.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 01:45
· 1358 commits to main since this release

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 ## Scope section of SECURITY.md (or any Markdown file): ### In scope and ### Out of scope lists 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 skill scope-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 --interview uses the latest scan of the folder from the last 30 days (or --from-scan <report.json>, or --scan to run one first with an estimated cost and a confirmation.
  • 0 threat-model --output <path> writes the threat model to a relative .md path inside the folder (default .0/threat-model.md), for example THREAT_MODEL.md. The skill's human-section rule and --pr follow 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 warnings field…
  • a how-to, "Create a Sentinel with a schedule from the terminal", using 0 sentinels sync. The --trigger add error for a Sentinel with no automation now names that route.
  • 0 scan recovers 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 --retries times (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 reason timeout, and the scan goes on. --timeout still 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 (a cause and a plain message without 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 0security and keeps 0 as a symlink to it. Help text shows the name you ran. An older install with only 0 gains 0security on the next install or update. Windows keeps a single 0.exe.
  • Each release publishes the binaries as 0security-darwin-arm64, 0security-linux-x64, 0security-linux-arm64 and 0security-windows-x64.exe, with identical copies under the older 0-<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 counts and the summary of a scan report cover only the findings not labelled out of scope; outOfScopeCounts counts the rest. The threat-model skill 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, TARGET or the target-auth variables (AUTH_HEADER, AUTH_VALUE, AUTH_CURL_FLAG), or loader…
  • a fix pull request opened without any --test check is now a draft and says "No checks were run." Pass --ready to 0 findings fix or 0 findings burndown to 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=1 turns off usage counts, crash reports and the update check; ZERO_NO_TELEMETRY=1 and ZERO_NO_UPDATE_CHECK=1 turn 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 connect and no longer ends with a misleading "Pick another with --model". The 0 findings fix help describes its exit codes as they behave, and --at on 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, other or security-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, python reads 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 docker no longer follows or truncates a symlinked .0-sandbox-probe in the work tree copy. The probe is removed without following it and created exclusively.
  • 0 sbom generate --resolve keeps 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 licenses printed "Not legal advice" twice in text output.
  • 0 scan reads 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 --version

Windows (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