Repository navigation
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:
0securitywith one package per platform, and a0sec-clialias. Nothing is published until the repository variableNPM_PUBLISH_ENABLEDistrue; 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 orjavax.elexpression and accepts aSimpleEvaluationContextonly when every evaluation of a SpEL expression uses one. - Three Java taint rules:
java/taint-xxe(CWE-611),java/taint-xss(CWE-79) andjava/taint-open-redirect(CWE-601). The XXE rule is per factory. foxguard diffaccepts--stagedand--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 verifyandfindings fixwith--format jsoncarry a stablerefusal… - Every anonymous telemetry event carries a boolean
ci, true when theCIenvironment 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 redteamand a new0security evalcan test an agent against the ways agents are steered.redteam listshows 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,emittedAtand afindingwith its fingerprint, severity, status (open,fixedorsuppressed) and location, with a generated JSON Schema and a new "Findings events" page… 0security findings fixaccepts--policy-bundle <file|https-url>with--policy-bundle-key(orZERO_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 throughMessageDigest, commons-codecDigestUtilsand GuavaHashing;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) andjava/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 --applysuppresses a finding only when the verdict is false-positive, cites a control atpath:line, hasconfidencehighandclaimMatchesCodetrue. A missing value counts as not safe, and the refusal says which condition failed.findings verifynow 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 optionalconfidence(high, medium, low) andclaimMatchesCodefields that…- Nightly and dry-run builds, and the nightly
edgeDocker 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_policyon the Codex route, "flagged for possible cybersecurity risk" on the OpenAI API, a Bedrock guardrail, an Azure content filter, an Anthropicrefusalstop) is now reported as a provider refusal, not as an empty scan. - Pricing discovery now checks
ZERO_NO_EGRESS,ZERO_ENTERPRISE,ZERO_OFFLINEandDO_NOT_TRACKbefore 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.shand 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 --helpnow showsconfig doctorin its usage line (it showeddoctor), and the cra-evidence page explains how to check a CycloneDX SBOM made by another tool.- New page "Triage findings from any scanner":
findings importplusfindings verifyas 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 --concurrencyaccepts up to 8 batches (it stopped at 3), andZERO_SCAN_MAX_CONCURRENCYraises the limit to 16.--passeskeeps 3.0 scan --skill seedless-depth-reviewnow reviews a large folder in batches with the batch coverage report, like a plain scan (before, any skill other thanscanforced 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
.exefiles, 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 .andfoxguard diffnow 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-secureno longer treats asetSecure(true)(orsetSecure(<expression>)) as coveringaddCookiewhen it sits inside anif, loop,switch, ternary,try/catch, lambda, anonymous class or&&/||operand, or comes after theaddCookiecall.- 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-mergednow picks the host from each fix's own repository, so Bitbucket fix pull requests are no longer… 0security sentinels bitbucket watchno 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
.gitignorecan no longer hang a scan. Patterns are matched in linear time; before, a line such as*a*a*a*a*a*abtook 49 seconds against a 100-character name and never finished with more stars, which stalled0 scan, the threat-model estimate and the… 0 sbomparses hostile lockfiles in linear time. One 200 KB line of spaces inrequirements.txttook 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 malformedcomes from copying0.db(or a whole home folder) while a process uses it, or from deleting `0. redteam generateandredteam attack --attacker brainwait long enough for the hosted generation service: the default is 60 seconds (45 for next-move turns), andZERO_BRAIN_TIMEOUT_SECONDSoverrides both.- …and 1 more in the full changelog.
Security
- the control-file check in
findings verifydid 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 verifynow 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 --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.47.0/docs/CHANGELOG.md