Skip to content

v0.42.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:39
· 1441 commits to main since this release

Fix findings, bring your own scanners, check dependencies

0 can now fix a finding as a pull request, import what other scanners found, review large repositories in batches, and check dependencies, licenses and model files.

Highlights

  • Fix as a pull request: 0 findings fix makes one branch and one pull request per finding, as a draft when your checks fail. It never pushes to your base branch. 0 findings burndown works through a backlog in batches.
  • One list of findings: Import SARIF from any scanner or a repository's GitHub alerts, run FoxGuard, Semgrep, Gitleaks, Trivy, OSV-Scanner or Checkov first, add your own Semgrep rules, and send findings to GitHub code scanning or Issues.
  • Large repositories: A large scan runs in batches, can be continued with --resume and says how much was reviewed. It exits 3 when part was not reached; --allow-partial exits by findings only. 0 scan --plan shows the size and a rough cost first.
  • Dependencies, evidence and AI apps: SBOMs carry hashes, the dependency graph and licenses. 0 sbom check shows fixed versions and flags malicious packages, 0 sbom licenses checks a license policy, and 0 findings evidence writes an evidence folder for CRA reviews.

Added

  • 0 scan --allow-partial exits by the findings alone (0, or 1 with --fail-on) when a scan stops before it reviews everything; the default stays exit 3, which means "not finished", not "failed". The JSON status is partial and coverage stays in the report.
  • 0 findings verify [finding...] (experimental) re-checks findings with a fresh thread each, or a few findings of one file with --batch. The thread gets only the finding's title, location, category, description and claimed impact, follows the new verify-finding skill (read…
  • 0 sbom licenses [sbom-file-or-folder] checks the licenses in a CycloneDX SBOM, or in a folder's lockfiles, against a policy: --preset permissive|no-copyleft, --allow, --deny, or --policy (JSON or YAML with allow, deny, allowByPackage exceptions that need a reason…
  • 0 scan --scanner also runs gitleaks, trivy and osv-scanner in the pre-pass, alone or together (--scanner gitleaks,trivy). Each runs without a shell and with a time limit, reads SARIF, has a ZERO_<NAME>_PATH override and prints an install hint when missing.
  • 0 sbom check shows the lowest fixed version for each advisory (or No fixed version known.) and a severity from the database label or a CVSS 3 score, and labels OSV MAL- records as critical malicious packages.
  • The dependency-reachability skill (experimental) estimates, for each advisory, whether the application imports and calls the vulnerable package: reachable, not-reached or cannot-tell, with path:line evidence. It is a model's reading of the code, not a proof.
  • 0 scan --scanner checkov runs Checkov in the pre-pass for Terraform, CloudFormation, Kubernetes, Dockerfiles and GitHub Actions (ZERO_CHECKOV_PATH names the binary), and the experimental iac-review skill (--skill iac-review) reviews infrastructure code across resources.
  • 0 scan --rules <file-or-folder> (repeatable) passes your own Semgrep or OpenGrep rules to the pre-pass, one --config per path, without a shell. It needs --scanner semgrep or opengrep and replaces the scanner's default pack.
  • 0 scan reviews a large folder in batches and says how much it reviewed. A folder with more than 8 entry points (or 150 source files) is listed without a model (routes, handlers, webhooks, queue and cron consumers, program mains, deserialization, upload and command points.
  • 0 findings import --github owner/repo imports GitHub code scanning, Dependabot and secret scanning alerts as findings (--state, --types, --ref). It reads them with your own gh auth login session through gh api, not the 0 GitHub connector.
  • 0 findings fix --policy <file> gives the fix thread a policy of approved libraries, forbidden patterns and rules (JSON or YAML); without the flag it reads ~/.0/fix-policy.json|yaml|yml.
  • A self-hosting guide for Azure and AWS (persistent data disk, cloud secret stores, TLS ingress, offsite backups, a restore procedure that checks the database before starting, upgrades and rollbacks). `deploy/compose/docker-compose.data-disk.
  • …and 23 more in the full changelog.

Changed

  • The FoxGuard companion that install.sh and the container image download is now v0.14.2 (checksum-pinned for every platform). It fixes changed-file scans of non-ASCII file names. On a test app and a Java servlet it reports the same findings as v0.14.0.
  • Less text in the app: shorter Settings descriptions, no subtitle that repeats a page's name, a one-line Memory notice, and shorter dialogs on Computers.

Removed

  • Business priority: every finding read "Not assessed" because a scan cannot know a business, so the label, its sort order, the rationale line, the SARIF businessPriority* properties and the "Edit business impact" form are gone.
  • Memory: the model-written notes shared across threads, with its memory tool, the Memory page, 0 memory, the /memory routes and the hidden 0 findings triage commands that wrote to it. Operator instructions (`~/.0/AGENTS.
  • About 27,000 lines of engine code that nothing used: ten unfinished engines (mobile, recon, attack, emit, h1, cve, protocol, specdrift, adgraph, xnu-fuzz), old scanners and helpers, the old runners, the attack-template loader, the red-team harness and its 0-llm bin, the…
  • 0 memory proposed list, accept and reject, and the proposed field of 0 memory list --json and of the Memory API.

Fixed

  • Pending crash reports, feedback, scanner binaries and the 0verse runtime config now live under the same state folder as everything else, so they follow HOME on Windows too.
  • A Lima worker's private ssh config is now kept in the 0 state folder with owner-only permissions, can no longer be pre-created or swapped by another user, and is removed when the worker's tunnel is stopped or already gone.
  • 0 findings issues, 0 fix and 0 findings burndown, found by an end-to-end run: issue titles are plain text (no backslash escapes), id hints resolve for imported findings, a closed issue's status table says closed, the pull request body shows the real Checks table before the…
  • An MCP server that lists the same tool name twice is refused with a clear reason ("duplicate tool names; refused") and shown as needing approval, instead of failing with a generic listing error. Duplicate names cannot be used to slip past tool pinning.
  • 0 computers add --target-git accepts only https:// URLs (no spaces or quotes); the option help and docs now say so.
  • 0 findings fix no longer fails its commit on a machine with no git identity (a fresh install, a GitHub Actions runner); it uses a neutral 0 <noreply@0.security> author unless git has one.
  • 0 scan with the released binary could not start its own console on a machine where none was running: it waited 30 seconds and gave up (v0.41.0). The console's output now goes to a file instead of a closed stream, and when it stops the scan says why at once.
  • The repository of a Sentinel pull request trigger can no longer be a path such as ../x; it must be owner/name.
  • The console that 0 scan starts for itself takes a free port, so another console on the default port can no longer stop the scan from finding its own.
  • The scan skill tells the model not to use the memory tool.

Install

curl -fsSL https://raw.githubusercontent.com/0sec-labs/0security/main/install.sh | bash
0 --version

Windows (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.42.0/docs/CHANGELOG.md