Repository navigation
🛡️ DevGuard v1.2.1 — Hardened Zero-Dependency Security Gatekeeper
Verified on ubuntu-latest (Workflow Run 43845288862, 35/35 automated tests passing).
🛡️ DevGuard v1.2.1 — Hardened Zero-Dependency Security GatekeeperVerified on ubuntu-latest (Workflow Run 43845288862, 35/35 automated tests passing). 📌 Immutable Supply-Chain PinningPin by full commit SHA: 09bae24 # v1.2.1🚀 Key Security & Architectural HardeningTrue Zero-Install & 100% Zero-Dependency Runtime: Executes natively on Node.js 22 via src/loader.mjs (node:module registerHooks + --experimental-strip-types) with "dependencies": {} in package.json. Fail-Closed Pre-LLM Secret Redaction & Residual Entropy Gate: Layout-preserving UTF-16 redaction (redactSecretsPreservingLayout), expanded sensitive filename blocklist (.env*, *.pem, *.key, *.p12, *.pfx, .npmrc, .netrc, *.tfvars, credentials.json), and an independent Shannon entropy gate (>= 4.2 bits/char). Non-Bypassable Suppression Policy & Base-Branch Allowlist: Lexer-only comment parsing (analyzeLexicalStructure), multi-word reason enforcement, DG004/DG006 restricted strictly to base-branch .devguard.json (origin/${GITHUB_BASE_REF}), and hard-blocked inline suppressions for DG001, DG002, DG003, DG004, DG005 (error), DG006, and DG007. Fork PR Safety, Anti-Pwn-Request Guard, & SARIF v2.1.0 Metadata: Upfront fork detection (detectPrEnvironment), runtime pull_request_target rejection, 1MB ReDoS file-size guard, x-goog-api-key header authentication, PR markdown sanitization, and per-rule GitHub Code Scanning security-severity ratings (5.0–9.5). 61-Case Labeled Benchmark Corpus: Honest TP/TN/Evasion accounting via npm run corpus:report (24/24 TP, 0/19 FP on TN corpus).