Skip to content

v0.48.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 17:23
· 26 commits to main since this release
0b4e6be

One privacy switch, scans that finish, and live checks

DO_NOT_TRACK=1 is now the only environment switch, and the enterprise no-egress mode is gone. Large scans finish in one run, findings can be checked against a running preview, and agent runs can be fenced to an allowlist of hosts.

Highlights

  • Breaking: one environment switch: DO_NOT_TRACK=1 is the only environment switch; ZERO_NO_EGRESS, ZERO_ENTERPRISE, ZERO_OFFLINE, ZERO_NO_TELEMETRY, ZERO_NO_UPDATE_CHECK and the enterprise no-egress mode are gone.
  • Large scans finish in one run: A scan draws on one budget pool, runs batches in priority order and stops with one plain sentence. The default time limit grows with the number of batches, and a retry that gets past a dropped connection no longer counts as a failure.
  • Check findings against a running app: findings verify --live replays a baseline, an attack and a control request against a preview you own and stores the verdict apart from the static one.
  • Safer runs and installs: Agent runs can be limited to an allowlist of hosts in a Linux network namespace, the workbench sandbox no longer holds a model credential, and a checkout's git config can no longer run programs when 0 commits. install.sh says only what it verified.

Added

  • 0security ci init [folder] sets a GitHub repository up for pull request scanning with no configuration. It prints the workflow `.github/workflows/0security.
  • Anonymous telemetry has a scan_finished event, sent once when a 0security scan run ends: its outcome (completed, partial, failed or cancelled), the finding count, the duration, the kind of target (folder, git or url, never the target) and the model provider…
  • 0security policy status [--json] and 0security policy refresh, and the runner side of central policy (the policy-distribution entitlement).
  • 0security license usage <repo...> (also --repos-file, --json) counts active developers for the yearly true-up: distinct commit authors of the last 90 days per repository and de-duplicated across repositories, from local git history. It runs offline and needs no key.
  • 0security license status and 0security config get license show Team seats: <used> of <allowed> used next to the license state (--json adds a team object); GET /api/team/users returns seats and the Members page shows the count.
  • 0security scan --rescan merges results across scans. Every batch writes an append-only per-unit result (scan, unit, attempt, thread, model, settings, finding ids, cost share, outcome), scan --coverage and the scan report show them with the failure cause and attempt count of…
  • 0security scan --triage [model] is an opt-in stage for batched scans. A small model scores each inventory unit 0 to 3 for how likely it holds security-relevant code; units below --triage-min (default 1) are skipped and the rest are scanned highest score first.
  • 0security scan --min-coverage <0-100> stops a scan before any model call when too little of the folder would be read, and says why and what to change. --plan shows the coverage facts and whether the gate would pass (#879).
  • A scan detects a model refusal in a batch's output, offers an opt-in budget-bounded re-run on a fallback model, and reports refused and re-run units in the scan summary. Only a bare refusal at the start of a short reply counts as one.
  • 0security findings verify --live <url> --targets <file> confirms a finding against a running preview. It sends a baseline, an attack and a control request (GET, HEAD or OPTIONS only) through the scoped fetch and stores a confirmed, not-reproduced or blocked verdict apart…
  • 0security findings push <file> sends findings from any CI job or laptop to the shared findings server, with the URL and a write:findings key from the environment (never printed), batches under the ingest limits, retries with backoff, a spool that is re-sent on the next run…
  • .0security/suppressions.yaml holds accepted risks that survive a fresh CI runner (path, line, category, reason, approver, created and expiry, at most 90 days after created). It is never read on its own.
  • …and 14 more in the full changelog.

Changed

  • Breaking: DO_NOT_TRACK=1 is now the only environment switch. It turns off every automatic background call: telemetry and lifecycle events, crash reports and feedback upload, the update check, and the public model catalog and price lookups.
  • Breaking: the enterprise no-egress mode no longer exists. Calls you start yourself used to be refused under it, and they are not any more.
  • A build with only ZERO_NO_EGRESS, ZERO_ENTERPRISE or ZERO_OFFLINE set now sends anonymous telemetry unless DO_NOT_TRACK=1 is also set. The Helm chart's enterprise value and the Jenkins and Bitbucket pipe enterprise and allowedBitbucketUrl options are removed.
  • BREAKING: The native Bitbucket integration is now the paid bitbucket-native feature (honoured by the CLI, no limit key). It needs an enterprise license key; it ships in the one public image and is unlocked by the key. The license gate is source-available in enterprise/.
  • Without a key, with a key past its 30 days of grace, or with a key that lacks the name, these commands refuse with a message that names the feature and https://0.security/enterprise/; the Bitbucket Sentinel trigger shows the same message as its status and does not run.
  • Still free, unchanged: 0 scan in Bitbucket Pipelines and Jenkins, the Bitbucket Pipe and the CI templates, Code Insights report upload from CI (findings upload and code-insights), SARIF export, findings upload, and fix pull requests on GitHub.
  • BREAKING: audit log export and the SIEM push moved to the paid edition. 0security config audit-export (NDJSON, CEF, syslog) now needs an enterprise license with the new audit-export feature, and the push from a server to a collector (ZERO_AUDIT_SINK_URL) needs the new…
  • BREAKING: the free team server now holds up to 5 accounts (password, OIDC or SCIM). It used to hold 1,000. Creating a sixth account (adding a teammate in the browser, the command-line account add, OIDC account creation, SCIM) is refused without an enterprise license that…
  • The separate LICENSING.md is gone. The license terms are in LICENSE-MIT, LICENSE-APACHE, NOTICE and enterprise/LICENSE; the promise that features of the open core do not move into enterprise/ is now stated in enterprise/README.md.
  • A large scan now finishes in one run on a flaky network. The scan budget is one pool: batches draw what is left, up to --batch-ceiling, and run in priority order. Without --timeout the whole-scan limit is 180 seconds per batch counted at concurrency 1, printed at the start.
  • A scan states why it stopped in one sentence and never blames the budget or a ceiling for a stop the clock caused. The report gives the budget, the spend, per-batch spend, the unreviewed batches with their reasons, how many of the batches were reviewed, and the --resume…
  • Every output shows the same scan total, from the stored rows. Findings use one counting definition and a root-cause dedupe, and the same site is deduplicated across reworded titles (#945).
  • …and 3 more in the full changelog.

Fixed

  • findings export, scan --resume and scan --coverage take a scan id (scan-xxxx) or a thread id, and exporting a scan id merges all batches and dedupes.
  • A batch that waited for a retry or a rate-limit pause is no longer started with a zero budget under --concurrency above 1, which the console rejected; it waits for running batches to release budget. A console payload error now names the failing field (#929).
  • findings verify no longer aborts when a thread has no cost receipt: that thread is charged at its own spend ceiling and the report marks the cost as an upper bound. --scan accepts the scan id the report prints (#901).
  • findings fix on Bitbucket now checks the token and the repository with one read before it starts the model thread or the tests, so a wrong or expired BITBUCKET_TOKEN (401, 403), an unknown repository (404) or an unreachable host fails in seconds with a message that names the…
  • The pull request description written by 0security findings fix and findings burndown can no longer contradict what 0 recorded. It states the checks and their result from the recorded data, adds a "Recorded by 0" line beside the model's explanation, and removes model…
  • config db repair and config db reset now see a process that opened the database through a symbolic link: its session is registered beside the real file, not beside the link, so repair can no longer miss it.
  • 0security config db repair and config db reset no longer move or delete a database that another 0 process still has open (#780). Writers now register a <db>.owner.<pid> session file (pid, start time, token) that is removed on close; repair and reset take an exclusive `.
  • Parallel 0 processes on one HOME stay safe (#753). The database lock now sits beside the real file, so a process that reaches 0.db through a symlink (for example a ZERO_DB_PATH that points at a link) is excluded like any other.
  • finding_class_counts now recognises the category ids findings really carry (command-injection, hardcoded-secret, known-vulnerable-package, broken-access-control and others) and CWE numbers, so the class breakdown is no longer empty for real scans.
  • java/taint-xss no longer reports a value an HTML encoder cleaned in a helper or inner class (#835), or numbers, class names and self-built cookies.
  • Inventory counts Groovy, Gradle and Jenkinsfile sources, and a Groovy file containing println "text".method() is no longer skipped as a parse error.
  • The Bitbucket Pipe image runs its scanner: the base image is debian:trixie-slim, because the released foxguard needs a newer glibc than bookworm-slim has and every scan ended failed with no findings. ZEROCI_REPORT_ID sets the report id (#885).
  • …and 3 more in the full changelog.

Security

  • A remote MCP server is now reached at the address 0 checked. Before, the check resolved the host name and then the connection resolved it again, so a name that answered with a public address for the check and a private, loopback or cloud-metadata address for the connection (DNS…
  • A checkout's own git config can no longer run signing, credential or ext programs when 0 commits and pushes (#904).
  • Signed webhook replay protection is keyed on the signed bytes, not on the unsigned delivery id, and password sign-in attempts are counted per IPv6 /64 instead of per address (#903, #906).
  • cross-spawn is pinned to 7.1.2 for the critical Windows command-injection advisory (#888).

Install

curl -fsSL https://raw.githubusercontent.com/0sec-labs/0security/main/install.sh | bash
0security --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.48.0/docs/CHANGELOG.md