Skip to content

v0.47.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 05:44
· 134 commits to main since this release

Faster scans, red-team checks, clearer refusals, safer CI

Scans can run more batches at once and slow down together when a provider rate-limits. 0security can test an agent with red-team generators and an eval runner, and a scan can write a sheet for judging findings by hand. A model that refuses security work is reported as a refusal, and a hostile .gitignore or lockfile can no longer hang a scan.

Highlights

  • Faster, calmer scans: scan --concurrency accepts up to 8 batches. A rate limit on one request now holds back every request to that provider for the wait it asked for. The scan report lists the helper threads a scan started.
  • Red-team checks and evaluation sheets: 0security redteam has test generators, attack strategies and multi-turn attackers, and 0security eval runs suites of paired security and utility cases. scan --evaluation-sheet writes a folder for judging findings by hand.
  • Safer scanning and CI: The CI templates check install.sh and helper scripts against a SHA-256 and stop on a mismatch. A repository's own .gitignore and a hostile lockfile are parsed in linear time, so they cannot hang a scan.
  • Clearer when a model refuses: A refusal from a provider is reported as a provider refusal that names the model, not as an empty scan. Our own CI no longer counts as installs in the anonymous usage numbers.

Added

  • A thin npm wrapper for 0security is built from the release binaries: 0security with one package per platform, and a 0sec-cli alias. Nothing is published until the repository variable NPM_PUBLISH_ENABLED is true; the publish job verifies the signed `checksums.
  • Foxguard has three more Java taint rules. java/taint-expression-language-injection (CWE-917) reports request data in a SpEL, OGNL, MVEL or javax.el expression and accepts a SimpleEvaluationContext only when every evaluation of a SpEL expression uses one.
  • Three Java taint rules: java/taint-xxe (CWE-611), java/taint-xss (CWE-79) and java/taint-open-redirect (CWE-601). The XXE rule is per factory.
  • foxguard diff accepts --staged and --changed-files-from <FILE|-> (NUL or newline separated, - reads stdin), so a pre-commit hook scans and compares only the files it names and reports only findings that are new against the target. Entries that are missing, use `..
  • A provider refusal (a policy or safety block) is now reported the same way everywhere: single-thread scans say on stderr and in the report that no findings does not mean the code is clean, scan, findings verify and findings fix with --format json carry a stable refusal…
  • Every anonymous telemetry event carries a boolean ci, true when the CI environment variable is set, so use inside CI (the GitHub Action, pipelines) can be told apart from use at a terminal. It does not change whether anything is sent. See Usage metrics.
  • 0security redteam and a new 0security eval can test an agent against the ways agents are steered. redteam list shows a catalog of 87 test generators (direct and indirect injection, excessive agency, exfiltration and more.
  • 0security scan --evaluation-sheet <dir> (with --overwrite-sheet) writes a folder for judging findings by hand right after the scan: `review.
  • A versioned findings event for outbound webhooks is defined: a schema name and version, id, type, emittedAt and a finding with its fingerprint, severity, status (open, fixed or suppressed) and location, with a generated JSON Schema and a new "Findings events" page…
  • 0security findings fix accepts --policy-bundle <file|https-url> with --policy-bundle-key (or ZERO_POLICY_BUNDLE_KEY). A bundle is a JSON envelope with an Ed25519 signature over its version and the exact policy bytes.
  • Foxguard has Java rules for weak crypto and trust boundaries: java/weak-hash (CWE-328) for MD2, MD4, MD5, SHA and SHA-1 through MessageDigest, commons-codec DigestUtils and Guava Hashing; java/cookie-missing-secure (CWE-614).
  • Foxguard has three more Java taint rules: java/taint-path-traversal (CWE-22), java/taint-ldap-injection (CWE-90) and java/taint-xpath-injection (CWE-643), and more command-injection and SQL-injection sinks (`Runtime.

Changed

  • Audit proof export and the retention prune flow moved into enterprise/src/audit, where the license is checked. The chain format, the proof file format, database reads, the checkpoint write, audit-log listing and the offline verifier (audit-verify, including --file) stay…
  • findings verify --apply suppresses a finding only when the verdict is false-positive, cites a control at path:line, has confidence high and claimMatchesCode true. A missing value counts as not safe, and the refusal says which condition failed.
  • findings verify now tells the verifier to judge the code at the cited place and not to accept the finding's stated source, algorithm or variable without checking it, and the saved verdict gains optional confidence (high, medium, low) and claimMatchesCode fields that…
  • Nightly and dry-run builds, and the nightly edge Docker image, no longer embed the PostHog key. Only a release build and a release image do. Our own CI runs those builds on four runners and in containers, and each run is a fresh install, so before this it counted as new users.
  • A model that refuses security work (cyber_policy on the Codex route, "flagged for possible cybersecurity risk" on the OpenAI API, a Bedrock guardrail, an Azure content filter, an Anthropic refusal stop) is now reported as a provider refusal, not as an empty scan.
  • Pricing discovery now checks ZERO_NO_EGRESS, ZERO_ENTERPRISE, ZERO_OFFLINE and DO_NOT_TRACK before it uses any fetch, including one a caller supplies. Before, a supplied fetch skipped the check. The console never supplied one, so the shipped behaviour is the same.
  • The CI templates (Bitbucket, Jenkins, Azure Pipelines, GitLab) and the GitHub snippet for the SBOM job now check install.sh and the helper scripts they download by release tag against a SHA-256 written in the template, and stop on a mismatch. `checksums.
  • 0security config doctor --help now shows config doctor in its usage line (it showed doctor), and the cra-evidence page explains how to check a CycloneDX SBOM made by another tool.
  • New page "Triage findings from any scanner": findings import plus findings verify as a triage layer over any scanner, with the measured OWASP Benchmark and Vul4J results and their limits.
  • The models page now says which credentials are meant for production and shared use (API keys, Bedrock through the AWS credential chain, an OpenAI-compatible gateway, Azure OpenAI with Entra ID), that consumer or per-seat subscription logins are for individual local use and may…
  • 0security scan --concurrency accepts up to 8 batches (it stopped at 3), and ZERO_SCAN_MAX_CONCURRENCY raises the limit to 16. --passes keeps 3.
  • 0 scan --skill seedless-depth-review now reviews a large folder in batches with the batch coverage report, like a plain scan (before, any skill other than scan forced one thread and dropped both). Every other skill still keeps one thread.
  • …and 7 more in the full changelog.

Fixed

  • On Windows, Foxguard and the pre-pass scanners are found as .exe files, and a bare name is looked up in absolute PATH folders only, never the scanned folder. Linux and macOS lookups are unchanged. (@AseemPrasad)
  • Cancelling a thread now cancels an MCP tool call that is still in flight instead of waiting for the SDK timeout. A call that already returned keeps its result even if the cancel arrives right after. (@hopstreax)
  • The console planner stops after 6 consecutive reconnect attempts per failure streak (backoff 250 ms to 8 s) instead of retrying forever. The counter resets after a successful planner response, and the original error is returned. (@hopstreax)
  • foxguard . and foxguard diff now scan hidden directories such as .github/ instead of silently skipping them. VCS, editor and cache directories (.git, .hg, .svn, .bzr, .idea, .vscode, .cache, `.
  • java/cookie-missing-secure no longer treats a setSecure(true) (or setSecure(<expression>)) as covering addCookie when it sits inside an if, loop, switch, ternary, try/catch, lambda, anonymous class or &&/|| operand, or comes after the addCookie call.
  • A variant hunt that gets no verdict from a batch repeats it with only what the first attempt left of that batch's share of --budget, and does not repeat when the first attempt reports no cost. It could spend up to twice the batch's share before.
  • Bitbucket Cloud fix pull requests no longer fail on the first call: the open-pull-request lookup asked for 100 per page and Cloud accepts 50. findings export-fixes --check-merged now picks the host from each fix's own repository, so Bitbucket fix pull requests are no longer…
  • 0security sentinels bitbucket watch no longer runs the paid scan again on every poll for a commit whose review failed. It records the failed commit and skips it until the pull request gets a new head commit; sentinels bitbucket review --pr <n> still runs it by hand.
  • A repository's own .gitignore can no longer hang a scan. Patterns are matched in linear time; before, a line such as *a*a*a*a*a*ab took 49 seconds against a 100-character name and never finished with more stars, which stalled 0 scan, the threat-model estimate and the…
  • 0 sbom parses hostile lockfiles in linear time. One 200 KB line of spaces in requirements.txt took 164 seconds, and the parsers for requirements, `go.
  • When the database is locked or damaged, the error now says which database it is and how to recover safely. Starting several scans at once is safe; database disk image is malformed comes from copying 0.db (or a whole home folder) while a process uses it, or from deleting `0.
  • redteam generate and redteam attack --attacker brain wait long enough for the hosted generation service: the default is 60 seconds (45 for next-move turns), and ZERO_BRAIN_TIMEOUT_SECONDS overrides both.
  • …and 1 more in the full changelog.

Security

  • the control-file check in findings verify did not follow symlinks, so a symlink could make a file outside the scanned folder count as the control that justifies a suppression. It now resolves the real path and requires it to stay inside the folder.
  • The control-file check in findings verify now resolves symlinks and requires the real path to stay inside the scanned folder. Before, a symlink could make a file outside the folder count as the control that justified suppressing a finding.

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.47.0/docs/CHANGELOG.md