- Hybrid First-Principles Vision OCR: Built-in zero-dependency stream and metadata extractor (PNG chunks, SVG text, EXIF, printable byte streams) with optional deep optical scanning via Tesseract v5.4.0.
- Zero-Crash OCR Fallback: Graceful fallback when Tesseract is missing—never aborts or crashes; auto-discovers all project images.
- Interactive Terminal Command Center: Launching
torusguardornpx torusguardwith zero arguments renders a menu-driven TTY dashboard. - Universal CLI Parity across NPM & Go: All 25 commands (
ocr-scan,container,git-mine,redos,ai-guard, etc.) wired directly intobin/torusguard.jsandcmd/torusguard/main.go. - Curated Awesome Rules Catalog: Standardized taxonomy of all 88 security invariants across 22 architectural families (
docs/awesome-rules.md). - Taint Analysis Engine: Source-to-sink graph tracking, cross-file interprocedural dataflow, multi-stage sanitizers.
- Polyglot AST Walker: Tree-sitter powered syntax trees across Go, TypeScript, JavaScript, Python.
- 88 Canonical Security Rules: Covering Secrets, Auth, Tenant DB Isolation, SSRF, Webhooks, CSRF, Supply Chain, Containers, Git History, ReDoS, AI & RAG.
- 7-Signal Calibrated Confidence Scorer: Evidence-chain calibration combining severity, taint depth, sanitizer checks, and memory.
- First-Principles Security Suite: Dockerfile/Compose privileges, Git commit log mining, Thompson NFA ReDoS, RAG vector isolation.
- Model Context Protocol (MCP) Server: 13 native JSON-RPC 2.0 tools and 2 living resources with stdio stream isolation.
- Line-Level Reflection Module: Semantic patch synthesis (
find_snippet/replace_snippet) preventing line-shift errors. - Ponytail Protocol Enforcement: Strict churn bounds (
$\le 35$ additions,$\le 25$ deletions) preventing full-file rewrites. - Pre-Apply Snapshot Engine: Automatic
.bakbackups before modifying files on disk with instant rollback. - Standards Compliant Reporting: OASIS SARIF v2.1.0 exports and single-file dark-mode HTML dashboards.
- Living Security Report Ground Truth: Real-time synchronization with
security_report.mdeliminating hallucination. - Fail-Closed Cryptography: Panic on entropy failure; zero hardcoded fallback tokens.
- SSRF Defense: Resolves hostnames and blocks private IP ranges (
10.0.0.0/8) and AWS metadata (169.254.169.254). - DoS Resilience: 10,000-file maximum traversal limit and 5-minute scan timeout.
- Native WASM OCR Preprocessor: In-memory WebAssembly image binarization for enhanced low-contrast text extraction.
- Custom Rule Engine: TG-QL user-defined YAML rule patterns in
.torusguard/rules/custom/. - Git Pre-Commit Hook Integration: Zero-latency incremental diff gating via
torusguard review --pre-commit. - Interactive Remediation TUI: Terminal cursor-driven patch preview and approval interface.
- WebAssembly (WASM) Engine Build: Browser-native and edge execution with zero binary installation.
- Distributed Rule Registry: Enterprise private catalog synchronization and team rule distribution.
- Centralized Posture Telemetry: Multi-repository aggregated posture heatmaps and team dashboards.