Skip to content

MirageGate v0.1.0

Latest

Choose a tag to compare

@ejames-dev ejames-dev released this 28 Nov 17:32
· 1 commit to main since this release
87cafc9

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.mod has 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 7519 HS256 Honey-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:none JWTs, path-scoped GraphQL introspection with JSON unicode decoding and __typename safety, opt-in WAF shunt headers, and bounded sliding-window IDOR velocity). Ignores untrusted X-Forwarded-For / X-Real-IP headers unless server.trusted_proxies is 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 (Depth 0 → 4+) via HMAC-SHA256 + ChaCha8 at ~60 µs/req defender CPU and $0.00 defender 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 (0600 permissions), 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): Includes serve, demo (3-actor legitimate + 36-turn autonomous recon agent + cross-IP manual curl handoff), inspect, and bench.

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