SATGuardian Architecture & Engineering Guide
Welcome to the definitive reference manual for SATGuardian WAF. Learn how our native deterministic Rust engine replaces brittle regular expressions with Boolean SAT Solving, drops threats in under 0.05ms, provides mathematical proofs of violation, and autonomously minimizes security rules via satguardian.tech.
1. Why Boolean SAT Solving Replaces Regular Expressions
For over two decades, industry standard web application firewalls (ModSecurity, OWASP CRS, AWS WAF, Cloudflare WAF) have relied on long chains of PCRE regular expressions. Under modern HTTP payloads (deeply nested JSON, GraphQL ASTs, base64 blobs, and multi-tier SQL statements), regex suffers from catastrophic architectural flaws:
- Catastrophic Backtracking (ReDoS): Non-deterministic finite automata (NFA) exhibit exponential \(O(2^N)\) execution time on crafted strings, allowing attackers to exhaust CPU cores and cause server outages.
- Severe False Positive Rates: Legitimate customer inputs containing apostrophes, mathematical expressions, or serialized tokens (e.g.
1' before deliveryor1=1in form text) trigger string pattern matches, breaking legitimate transactions. - Blind Spot Camouflage: Attackers continuously evade regex through comment splicing (
UN/**/ION), multi-pass hex encoding, or whitespace manipulation.
Every incoming HTTP request is converted by our grammar normalizer into a Boolean predicate state vector \(\mathcal{T} \in \{0, 1\}^N\). The WAF evaluates \(\mathcal{T}\) against our formal security lattice in deterministic linear \(O(1)\) CPU register operations (< 0.05 ms):
\[\text{Eval}(\mathcal{C}_{\text{WAF}}, \mathcal{T}) \equiv \mathbf{FALSE} \implies \mathbf{BLOCK} \quad (\text{Latency} \le 0.02\text{ ms})\]
2. The 10 Formal Certainty Islands
SATGuardian ships out-of-the-box with 10 hardened Certainty Islands. Each island represents an invariant mathematical domain covering attack archetypes with zero ambiguity:
| Island Identifier | Target Domain | Formal Invariant / Attack Vector | Default Action |
|---|---|---|---|
| ISLAND-SQLI | Relational SQL AST | Tautologies (' OR 1=1--), UNION exfiltration, stacked DDL, sleep/benchmark delays. |
BLOCK |
| ISLAND-XSS | DOM Execution Context | Script contexts, inline DOM event triggers (onload, onerror), SVG vectors, javascript: URIs. |
BLOCK |
| ISLAND-RCE | OS Shell & Commands | Command chaining (;, ||, &&), subshells ($(), backticks), dynamic eval sinks. |
BLOCK |
| ISLAND-LFI | Filesystem Traversal | Directory traversal escapes (../../), root access probes (/etc/passwd, /proc/self/environ). |
BLOCK |
| ISLAND-SSRF | Perimeter & Metadata | Cloud metadata probes (169.254.169.254), loopback redirects (127.0.0.1), private RFC1918 subnets. |
BLOCK |
| ISLAND-GRAPHQL | GraphQL AST & Schema | Introspection dumping (__schema), cyclic recursion depth (> 6 levels), query batching attacks. |
BLOCK |
| ISLAND-JSON-PROTO | Strict JSON Schemas | Prototype pollution (__proto__, constructor.prototype), nesting bombs (> 20 levels). |
BLOCK |
| ISLAND-GRPC | HTTP/2 Wire Protocol | Client trailer injection (grpc-status: 0), 5-byte framing desynchronization / request smuggling. |
BLOCK |
| ISLAND-JWT | Cryptographic Identity | Algorithm confusion (alg: "none"), unsigned token tampering, kid path traversal / SQLi. |
BLOCK |
| ISLAND-STATEFUL | Layer-7 Behavioral Dynamics | Sliding temporal window ring counters: Layer-7 burst DDoS, credential stuffing, brute-force bursts. | BLOCK |
3. Dual-Engine Pipeline: Edge Proxy & Cloud Synthesis
SATGuardian achieves sub-millisecond execution by separating edge inspection from logic synthesis:
4. Reverse Proxy Deployment Guide: Nginx, Apache HTTP Server & Microsoft IIS
SATGuardian operates natively as a high-throughput, sub-millisecond reverse proxy (< 0.05 ms inspection latency). You can integrate it effortlessly into existing infrastructure using either of two battle-tested production topologies:
🟢 A. Nginx Reverse Proxy Integration (Linux / Docker)
When Nginx handles SSL/TLS termination and passes incoming requests to SATGuardian for deterministic inspection before hitting your backend:
/etc/satguardian/waf_config.toml)
/etc/nginx/sites-available/satguardian.conf)
🟡 B. Apache HTTP Server Reverse Proxy Integration (Ubuntu / Debian / RHEL)
Configure Apache 2.4+ (httpd / apache2) with mod_proxy and mod_proxy_http to route all incoming HTTP and WebSocket connections through SATGuardian:
/etc/apache2/sites-available/satguardian.conf)
🔷 C. Microsoft IIS (Windows Server / .NET / ASP.NET Core)
For Windows Server environments running Microsoft IIS, SATGuardian offers two highly reliable deployment models:
Method 1 (Recommended): Frontline SATGuardian Ingress + Shift IIS Port
SATGuardian binds directly to public port 80/443, drops SQLi, XSS, and exploit attempts at the wire (< 0.05ms), and forwards verified traffic to IIS listening locally on port 8081.
Method 2: IIS Application Request Routing (ARR) & URL Rewrite
If IIS must remain the primary public listener on port 80/443, use IIS ARR to proxy requests through SATGuardian:
📦 D. Docker Compose Deployment
5. Production Configuration (`waf_config.toml`)
All behavior is governed declaratively via waf_config.toml located in /etc/satguardian/ or C:\ProgramData\SATGuardian\:
6. Forensic & Observability CLI Suite
SATGuardian includes built-in operational tooling for site reliability engineers and security teams:
satguardian inspect --query "<PAYLOAD>": Perform an offline sub-millisecond AST deduction test against all 10 Certainty Islands with full causal proof output.satguardian top: Interactive terminal monitor (inspired by htop) streaming throughput, active blocks, and p50/p99 latency in real time.satguardian advisor: Autonomous multi-agent forensic analyzer that reviews logged anomalies, performs digital-twin simulation, and synthesizes 0% false-positive custom rules.satguardian rules: Interactive curses TUI to toggle protection shields, view active boolean predicates, and inspect formal deduction trees.satguardian sync-simplify: Triggers immediate cloud synchronization with satguardian.tech.
7. Empirical Performance Benchmarks
Tested under production traffic loads (HTTP/1.1 & HTTP/2, 8-core Xeon, 100,000 synthetic attack mutations):
| Architecture | Mean Latency | Throughput | False Positive Rate | ReDoS Exposure |
|---|---|---|---|---|
| SATGuardian WAF (Rust SAT) | 0.02 ms (< 0.05 ms) | 82,400 req/s | 0.00% (Formally Proven) | Zero (Linear O(1)) |
| ModSecurity + OWASP CRS | 48.60 ms | 1,420 req/s | 14.80% (Substrings) | High (Catastrophic) |
| Cloudflare WAF / AWS WAF | 28.40 ms (+ DNS) | Network limited | 4.20% (Heuristic) | Internal Cloud Masked |
| LLM Security Co-Pilot | 850.00 ms | < 50 req/s | Hallucination Risk | N/A (Cost Prohibitive) |
8. Silicon Units (SU) & Cloud Learning Model
The local SATGuardian proxy binary is 100% free forever and operates independently on your servers. When novel attack variants or application-specific edge cases arise:
- The local daemon batches the novel minterms from
waf_ledger.dband dispatches an anonymized truth-table to satguardian.tech. - The cloud solver consumes Silicon Units (SU) to compute the exact minimal prime implicants.
- A single SU optimization generalizes protection to trillions of future mutations sharing that algebraic root.
- Zero Disruption: If your monthly SU quota is reached, your local WAF continues protecting your servers with the last compiled matrix. Only automated cloud synthesis pauses until quota renewal.
Explore all subscription plans (Scout, Pro/Dev, Startup, Escala) on our Pricing & Quotas Page →