Repository navigation
Releases
Releases · ejames-dev/MirageGate
MirageGate v0.1.0
MirageGate v0.1.0 — Initial Public Release
MirageGate is a zero-LLM, zero-external-dependency Go L7 reverse proxy implementing a deterministic OpenAPI-shaped "near-miss" tarpit and cryptographic human-handoff attribution engine for hybrid human+agentic attackers.
Highlights
- Zero External Runtime Dependencies: Built exclusively on the Go standard library (
go.modhas zero external dependencies), delivering a single static binary with minimal supply-chain surface. - Cryptographic Breadcrumb Engine (
internal/watermark): Domain-separated HMAC-SHA256 subkeys power a compact 24-byte authenticated binary envelope across five format-preserving surfaces: shadow routes (/v2-internal/...), honey API keys (mg_live_...), RFC 7519HS256Honey-JWTs, tenant-scope headers (org_...), and pagination cursors (cur_...). Supports both stateless cross-node/post-restart verification and stateful cross-IP/User-Agent handoff attribution. - Zero-Collateral Safe Activation Gate (
internal/gate): Enforces hard bypass rules (bypass_paths,bypass_cidrs,bypass_header) before provably adversarial triggers (canary routes, structurally tampered/alg:noneJWTs, path-scoped GraphQL introspection with JSON unicode decoding and__typenamesafety, opt-in WAF shunt headers, and bounded sliding-window IDOR velocity). Ignores untrustedX-Forwarded-For/X-Real-IPheaders unlessserver.trusted_proxiesis explicitly configured. - Deterministic Procedural Near-Miss Labyrinth (
internal/labyrinth,internal/schema): Ingests OpenAPI 3.x YAML/JSON specs and synthesizes idempotent, schema-shaped multi-stage responses (Depth0→4+) viaHMAC-SHA256+ChaCha8at~60 µs/reqdefender CPU and$0.00defender LLM cost. - Economics, SIEM & Zero-CDN Console (
internal/session,internal/report): Live defender CPU vs. cumulative attacker context-growth token/USD calculator, Elastic Common Schema (ECS v8.11.0) JSONL alert writer (0600permissions), standalone dark-mode HTML incident report with inline SVG dual-axis chart, and a hardened loopback Admin Web Console (127.0.0.1:8081) with strict CSP, DNS-rebinding Host checks, and an interactive breadcrumb inspector. - Single-Binary CLI & Live Demo (
cmd/miragegate): Includesserve,demo(3-actor legitimate + 36-turn autonomous recon agent + cross-IP manualcurlhandoff),inspect, andbench.
Reproducible Benchmark Summary (miragegate bench --sessions 10 --turns 30)
- Legitimate Collateral FPR:
0.0% - Handoff Attribution Recall:
100.0% - Defender LLM Spend:
$0.00 - Defender Mean Labyrinth CPU:
~60 µs/req
Verification
- CI passed across Go 1.22, 1.23, and 1.24 (
gofmt,go vet,go test -race, CLI build, live demo & benchmark smoke tests). - Attach checksum verification:
sha256sum -c SHA256SUMS.txt