Skip to main content
01 · CODE & PR SECURITYOpengrep + L1/L2/L3 + ZDR AutoFix

Kill 90% of scanner noise before AI ever opens a PR.

RookPhase Code Security pairs license-clean Opengrep SAST, 8-ecosystem osv-scalibr SCA with 3-layer reachability, Betterleaks BPE secrets, and Trivy + scoped Checkov IaC inside zero-egress Firecracker microVMs—gating only net-new reachable risk in under 60 seconds.

See Active Builder Pricing
CWE-89 · SQLiOpengrep (LGPL-2.1) + ZDR AST Slice·L3_TAINT_REACHABLE · Score 94

Parameterize raw f-string query & enforce org_id tenant predicate

Tree-sitter extracted a 38-line backward taint slice. Secret scrubber redacted DB credentials pre-LLM; Firecracker re-ran Opengrep + pytest before opening PR.

Firecracker Verified
services/orders/repo.py14/14 pytest passed · Opengrep 0 alerts
@@ -41,5 +41,6 @@ class OrderRepository:
def find_by_status(self, org_id: UUID, status: str):
- query = f"SELECT id, total FROM orders WHERE status = '{status}'"
- return self.db.execute(text(query)).fetchall()
+ stmt = text("SELECT id, total FROM orders WHERE org_id = :org AND status = :status")
+ return self.db.execute(stmt, {"org": org_id, "status": status}).fetchall()
Strict ZDR + CaMeL Quarantine11.4s microVM · Zero Persistence
Budget settled: 2 AI cr ($0.026)
PR Diff Scan SLO (p95)
< 60s

~19.8s p50 / ~51.5s p95 in Firecracker

Deterministic Noise Cut
85–95%

Pre-LLM L1/L2/L3 reachability pruning

Betterleaks Secret Recall
~98.6%

cl100k_base BPE · 0 plaintext stored

AI Semantic Audit (p95)
< 24s

AST-sliced ZDR + Firecracker verify

SHIFT-LEFT SCANNING & REMEDIATION

Six deterministic layers between raw alerts and developer pull requests.

Every engine runs non-root inside ephemeral zero-egress sandboxes using digest-pinned binaries, emitting unified SARIF 2.1.0 and CycloneDX 1.6 into one deduplicated finding ledger.

01 · SASTLGPL-2.1 + MIT

Opengrep SAST & Permissive OWASP/AI Rules

3.15xmedian speedup vs. legacy Semgrep CE

Multicore OCaml 5 Opengrep runs --taint-intrafile across 30+ languages using MIT, LGPL-3.0, and Apache-2.0 rulesets—with zero Semgrep Rules License v1.0 or AGPL-3.0 dependencies.

  • Bundles GitLab sast-rules (MIT), Qodana rules (MIT/LGPL-3.0) & RookPhase OWASP/AI YAML
  • Targets Next.js/Supabase RLS gaps, unsafe MCP tool wiring, and Server Action authz
  • Cosign-verified, digest-pinned native binary with zero Python runtime in scan microVMs
Opengrep LGPL-2.1GitLab sast-rulesQodana SAST
02 · SCA + REACHABILITYL1 · L2 · L3

8-Ecosystem SCA & 3-Layer Reachability

85–95%noise collapsed pre-LLM

Extracts lockfiles and compiled artifacts across JS/TS, Python, Go, Java, Ruby, PHP, .NET, and Rust, then proves exploitability across scope, call graphs, taint, and live execution.

  • L1 eliminates dev/test dependencies, test files, and multi-stage Dockerfile builder layers
  • L2 combines go-tree-sitter CST with SCIP, Go VTA, JS Jelly, PyCG & Java SootUp
  • L3 traces entrypoints to sinks and ingests EPSS v4, CISA KEV & BOD 26-04 SSVC SLAs
osv-scalibrSyft + GrypeSCIP / VTA / Jelly / SootUp
03 · SECRETSMIT · Pure Go

Betterleaks BPE Scanning & KMS Async Proxy

~98.6%benchmark secret recall · 0 plaintext stored

Pure-Go Betterleaks replaces noisy Shannon entropy with cl100k_base Byte-Pair Encoding efficiency and nested Base64/Hex/URL decoding, scrubbing literals before serialization.

  • Zero plaintext secrets persisted in SARIF, PostgreSQL, or LLM context slices
  • Opt-in KMS-encrypted live verification runs strictly outside zero-egress microVMs
  • Drop-in compatibility with existing .gitleaks.toml rules and gitleaks:allow pragmas
Betterleaks MITcl100k_base BPEKMS Async Proxy
04 · IAC & QUALITY

Trivy Config, Scoped Checkov & Hotspots

< 2sPR IaC pass (18s scoped Checkov cap)

Runs fast pure-Go Trivy Config unconditionally (<500 ms locally) and invokes scoped Checkov graph analysis on cloud PRs, paired with non-GPL code-quality hotspot extractors.

  • Digest-pinned binaries with SHA-256 + Cosign provenance (post-CVE-2026-33634)
  • Checkov 18s budget falls back gracefully to StatusPartial + Trivy Config without failing CI
  • go-tree-sitter complexity, scc SLOC, Oxlint, Ruff, and go vet/gosec (zero GPLv3 linkage)
Trivy ConfigCheckov Apache-2.0Oxlint + Ruff + scc
05 · PR GATING

Differential Baseline PR Gating & ChatOps

< 60sp95 PR diff scan (~19.8s p50)

Enforces merge gates strictly on net_new = head_fps - base_fps using AST-anchored structural hashes (>=99.5% refactor relocation stability) so legacy debt never breaks urgent PRs.

  • Native Checks, MR Discussions, Bitbucket Forge/Code Insights & Azure DevOps Threads
  • Supports inline /rookphase fix and RBAC-gated /rookphase ignore PR comments
  • Slack Block Kit (<300 ms ACK), Microsoft Teams Adaptive Cards, Jira Cloud v3 & Linear
AST SimHashGitHub / GitLab / BB / ADOSlack / Jira / Linear
06 · ZDR AI AUDIT & FIXZDR + CaMeL

ZDR Semantic Audit & Closed-Loop AutoFix PRs

< 55sp95 verified AutoFix synthesis

Audits cross-service IDOR/BOLA, business logic, and AI-era code flaws over bounded <=6,000-token AST slices—then proves every patch against pinned scanners and unit tests inside Firecracker.

  • First-party Envoy + pinned official vendor SDKs (zero unpinned PyPI routers / LiteLLM)
  • CaMeL comment quarantine + programmatic AST anchor citation checks (>=0.90 gate)
  • Atomic /budget/reserve & /settle credits; quota exhaustion degrades cleanly to SARIF + L1–L3
FastAPI + ConnectRPCCaMeL QuarantineFirecracker Verify

VERIFIABLE PRECISION & ISOLATION

Reachability proof first. ZDR semantic reasoning and sandbox-verified AutoFix second.

Sending raw scanner output to an LLM burns token budget and hallucinates fixes. RookPhase prunes 85–95% of noise mathematically, passes AST-sliced contexts through a CaMeL-hardened ZDR gateway, and re-tests every candidate diff in Firecracker.

RUNTIME ASYMMETRY LAW

Production hits escalate; silence never hides bugs

Guard production hits promote findings to RUNTIME_CONFIRMED (1.15x) and reopen false positives, while zero runtime calls in 30 days never auto-suppress static L2/L3 flaws.

ZERO SECRETS & ZERO PERSISTENCE

Host git-fetch-broker + ephemeral tmpfs wipe

Firecracker microVMs mount shallow trees with zero VCS tokens, DROP ALL egress, and blkdiscard wipe on teardown in <500 ms.

STRICT ZDR & ATOMIC CREDITS

Pinned official vendor SDKs + /budget/reserve

Fail-closed ZDR configuration bans unpinned PyPI router wheels (LiteLLM). Exhausted AI credits degrade cleanly to deterministic SARIF + L1–L3 without blocking CI.

License-clean core: Opengrep (LGPL-2.1 subprocess) + MIT/LGPL/Apache-2.0 rules, osv-scalibr/Syft/Grype/Trivy/Checkov (Apache-2.0), Betterleaks (MIT). Zero AGPL-3.0 or Commons-Clause dependencies.

json
1{2  "schema_version": "1.0.0",3  "final_tier": "TAINT_REACHABLE",4  "confidence": 0.96,5  "layer1": {6    "verdict": "L1_PROD_REACHABLE",7    "dependency_scopes": ["required"],8    "shipped_in_artifact": true9  },10  "layer2": {11    "verdict": "L2_SYMBOL_REACHABLE",12    "method": "scip+jelly",13    "symbol_source": "rookphase_patch_diff",14    "dynamic_dispatch_risks": [],15    "call_paths": [16      {17        "entrypoint_symbol": "POST /api/v1/exports#handleExport",18        "hops": ["ExportController.buildArchive", "tarStream.unpack"]19      }20    ]21  },22  "layer3": {23    "verdict": "L3_TAINT_REACHABLE",24    "runtime_asymmetry": "0 prod hits does not suppress static L2/L3",25    "sink_taint_hits": 026  },27  "vex_status": "affected"28}

CANONICAL SCORING & REACHABILITY CONTRACT

Every severity score maps 1:1 to a verifiable reachability tier.

No opaque black-box scoring. RookPhase fuses base CVSS/rule impact, EPSS v4, CISA KEV, verified PoCs (+20), and deterministic reachability multipliers into an explainable 0–100 score.

Reachability TierPostgreSQL EnumScore WeightDeterministic Evidence & Policy Action
RUNTIME_EXPLOITEDruntime_exploitedFloor >= 92–95Verified by RookPhase Attack PoC (>=92) or live Guard sink taint detection (sink_taint_hits > 0, floor >=95). Immediate 3DF/3D BOD 26-04 SLA.
RUNTIME_CONFIRMEDruntime_observed1.15x boostGuard telemetry confirms symbol execution in production. Automatically reopens previously dismissed triaged_fp alerts under the Runtime Asymmetry Law.
TAINT_REACHABLEl3_taint_entrypoint1.05xUntrusted HTTP, RPC, queue, or MCP input reaches a dangerous sink across call paths without verified sanitization.
STATIC_SYMBOL_REACHABLEl2_call_graph1.00xFirst-party code calls the exact vulnerable function mapped from OSV ecosystem_specific or AST patch-diff symbol backfill.
UNREACHABLE_SYMBOL_L2 / SCOPE_L1unreachable0.10x–0.35xIsolated to dev/test/build stages, uncalled symbols, or active Guard virtual patches. Emits OpenVEX Draft >=0.95 confidence (capped <=15–30).

How does RookPhase cut 85–95% of scanner noise before calling an LLM?

Every raw SARIF and CycloneDX finding passes through deterministic AST-anchored sha256 fingerprinting and a 3-layer reachability engine (L1 package/build-stage pruning, L2 Tree-sitter/SCIP/VTA/Jelly/PyCG/SootUp call graphs, and L3 taint plus Guard runtime telemetry) before AI AutoTriage runs.

Why does RookPhase use Opengrep and Betterleaks instead of Semgrep rules or TruffleHog?

Commercial SaaS and BYOC platforms cannot bundle Semgrep Rules License v1.0, Commons Clause, or AGPL-3.0 TruffleHog code without customer and vendor legal exposure. RookPhase uses Opengrep (LGPL-2.1 subprocess) with MIT/LGPL/Apache-2.0 rulesets and pure-Go Betterleaks (MIT, ~98.6% recall) with zero plaintext secret persistence.

How does RookPhase guarantee it never opens broken or hallucinated AutoFix PRs?

Every candidate patch passes an anti-sabotage validator and a Temporal verification job inside an isolated Firecracker microVM that applies the diff, re-runs the pinned Phase 1 scanner digest, and executes repository linters/unit tests. Patches scoring below verification thresholds are rejected before reaching Git.

Want shift-left protection directly inside terminals, IDEs, and AI coding agents?Explore Open-Source Edge (CLI, Safe-Install & MCP)

Deploy <60s reachability-first PR gating on your repositories

Free for up to 3 Active Builders and 15 private repos (auxiliary committers, bots, and public OSS always $0). Apply for early access or Design Partner onboarding.

Primary security priorities (optional)
Zero spam. Aux committers, bots & viewers cost $0.