Repository navigation
Proof for findings, AI-security checks, and one product
Findings can carry an honest proof, and 0security checks the files AI coding tools read, models and look-alike packages. Foxguard now ships from this repository, and the cloud connection is gone.
Highlights
- Proof and variants: A finding can carry proposed steps labelled not run, or a result only when a harness ran it in a container. Verified findings record a root cause and seed a hunt for the same bug elsewhere. Results from ZAP, Strix and Nuclei import as findings.
- AI-security checks: 0security sbom agent-config checks rules, MCP and settings files for hidden text, unpinned launchers and broad permissions. sbom generate --ai writes a CycloneDX ML-BOM, and sbom check --registry flags invented or planted packages.
- Sentinels and Bitbucket: Sentinels review Bitbucket pull requests, send findings to GitHub code scanning or a pull request comment, and have spend limits. Findings can be ranked by business context in every command that orders them.
- Safer by default: Probe refuses public and metadata targets unless you confirm the host. Fixes close gaps in SCIM tokens, role checks, the node permission layer and scanned-folder config. DO_NOT_TRACK=1 is the one telemetry switch, and Foxguard is built into the signed release.
Added
- Foxguard, the static analysis engine
0 scanruns first, now lives in this repository ascrates/foxguard(history preserved) and builds from source in the release workflow. - A docs page, "Use 0 from Claude Code or Codex", shows how another coding agent drives 0 through its shell: scan, read findings, ask a question, exit codes. 0 has no MCP server for this; the CLI does the job.
- Findings can carry a structured root cause (bug class, unsafe pattern, missing guard, design origin).
0security findings verifyrecords one on a true-positive verdict, and it seeds a hunt for variants. - A variant that a rescan finds fixed in the fix work tree is now
fixed-pending-merge. It becomesfixedwhen its fix pull request is seen merged, byfindings variants --rescanorfindings export-fixes --check-merged. findings exportin JSON and SARIF now includes a finding'srootCauseandvariantOf, and SARIF carries the full executed-PoC record. Importing a 0 JSON report restores the root cause and variant links inside the file, never an executed result. Older reports still import.- Executed PoC opt-in is easier:
0security scan --poc-image <image@sha256:...>or0security config set executedPocImage <image@sha256:...>(theZERO_POC_IMAGEvariable still works). The image must be pinned by digest and a tag is refused with a message. - Findings can carry a proof. Proposed steps are labelled "not run". A reproduction result appears only when a harness ran the recipe in a container and recorded it.
findings reproducereplays a path traversal recipe in a container with a read-only root and records the result. 0security findings importreads results from ZAP, Strix and Nuclei (SARIF, and Nuclei JSON Lines). Web findings keep their method and URL instead of a file, with the CWE and any proof text. See "Use Nuclei, ZAP or Strix with 0security".0security scan --scanner nuclei --target-url <url>runs Nuclei, which you install, against one target you name in a scope file or by typing its host, and saves the results as findings.0security sbom agent-configis a local check of rules, MCP and settings files that AI coding tools read, for hidden Unicode, unpinned launchers, secrets, broad permissions and hooks.sbom generate --aiwrites a CycloneDX 1.6 ML-BOM: model and data files with SHA-256 hashes, header facts for safetensors, GGUF and ONNX, Hub references with revision pinning, licences from a model card or LICENSE file beside the model, and amodelCardfilled only from facts…0security sbom check --registryflags npm and PyPI dependencies that look invented or planted: names missing from the public registry, brand-new packages and look-alikes of popular packages. It sends package names only and is refused offline.- …and 23 more in the full changelog.
Changed
DO_NOT_TRACK=1is now the single telemetry switch (ZERO_ENTERPRISE=1also blocks telemetry and crash reports as part of no-egress mode),ZERO_NO_TELEMETRYandZERO_OFFLINEno longer control telemetry, and thecommandsandfullanalytics levels and the cloud analytics…- Licenses are now verified against a new signing key (k2). The earlier key was never used to issue a license.
- With
--jsonor--format json, a failure infindings show, in0security -p, or an unexpected error now prints one{"error": "..."}line on standard error instead of coloured text. The exit codes are unchanged. - The security policy is one file,
.github/SECURITY.md. It no longer says extensions and MCP servers are never sandboxed or mentions the removedsave_workflowoperation, and it now says an extension can declare an OS sandbox. 0security sbom java-usageis listed insbom --help. Thefindings fixexit codes are described exactly: 0 means a change was committed and no check failed, so with no--testit does not mean verified.0 scan --knownnow matches paths in a SARIF report written by 0 itself.- Web console: finding titles in the list and board are real links, the What's new card shows the release title, empty Members, Sentinels and Findings API pages explain themselves, a refused environment key says it was refused, and the server sign-in page is redesigned.
Removed
- The pinned download of an external Foxguard release is gone from
install.sh, the container images and CI. The images build Foxguard fromcrates/foxguard. 0verse scan --cloud,--scan-id,--sinkand--timeout, and theZERO_CLOUD_*settings they read. They streamed findings to the 0cloud orchestrator, which is gone.- The 0cloud integration is gone.
0is one product with no hosted account: cloud sign-in and cloud credentials (ZERO_CLOUD_TOKEN,~/.0/cloud.env), feedback sent to a cloud account, opt-in run contributions and the cloud Windows evidence worker no longer exist.
Fixed
- Gradle version catalog dependency bumps are correct, pinned Hugging Face SBOM metadata and TOML values with quoted comments are kept, host-only IPv6 scope entries match, SARIF rule descriptor indices resolve, a leading UTF-8 BOM in SARIF and Nuclei JSONL import is ignored, and…
sentinels bitbucketand itsreview,watchanddoctorcommands now show in--help. They worked before but were hidden from the listing. (@Vivkzz)- SARIF: the offline checker is linear on large logs and escapes bidirectional-text characters in its output.
Security
0security proberefuses public hosts unless you pass--i-own-this <host>, always refuses link-local and cloud metadata addresses, connects to the address it checked, stops on a redirect to another origin, and records the target and confirmation in its output.- SCIM tokens can be made, listed and revoked only by a workspace owner. A role with
users.manageis no longer enough, and that role can no longer escalate to owner. - The node permission layer applies through
envwith assignments and options, and 0 refuses launchers that would hide node from it. Flag injection and anenv nodebypass are closed. - RBAC and repository scope are enforced after the local proxy rewrite.
- HTML report links reject unsafe URL schemes,
mcp_server_startapproval prompts are cleaned of control and bidi characters, and threat-interview scope rejects glob comma and metacharacter injection. - A scanned folder's
.git/configcan no longer run commands on the host, and pre-pass scanners run in an empty folder so they cannot load config from where 0 was started. - A webhook check trigger runs only for a commit GitHub confirms is on the watched branch.
- The code index no longer hangs on hostile files and labels repository text as untrusted. The executed PoC never pulls its image and keeps credentials out of its sandbox.
- Fixes and threat models no longer run a repository's own git hooks, fsmonitor command, filter drivers or ssh command. The same protection now covers the Bitbucket review runner and the other places 0 reads a repository with git.
Install
curl -fsSL https://raw.githubusercontent.com/0sec-labs/0security/main/install.sh | bash
0security --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.46.0/docs/CHANGELOG.md