Language: Go Category: Red-team Infra Protection / Stealth Proxy / Deception Layer
ShadowGate is a Go-based, modular stealth redirector, traffic filter, and deception gateway designed for red-team operations.
It sits in front of C2 servers, phishing infrastructure, and payload delivery systems and:
- Filters and classifies inbound traffic
- Hides and protects real infrastructure
- Serves decoy content to scanners/defenders
- Shapes and mimics legitimate traffic patterns
- Automates parts of infra rotation and management
- Produces logs, IOCs, and engagement reports
- Provide a high-performance, low-noise redirector with a small operational footprint.
- Deliver advanced OPSEC:
- Dynamic fingerprinting (TLS, HTTP, behavioral)
- Adaptive allow/deny decisions
- Deception instead of simple blocking
- Support multiple backends and protocols with a plugin-friendly architecture.
- Offer infra automation hooks for rotating domains/IPs, managing certs, and deploying at scale.
- Enable forensic-friendly logging and IOC export without compromising OPSEC.
- Be extensible via clearly defined interfaces for rules, protocols, and decoys.
- Not a C2 framework or RAT.
- Not an email/phishing campaign manager.
- Not a full SIEM or SOC platform.
- Not a general vulnerability scanner/exploitation framework.
- Fronting HTTP/S C2 callbacks with stealth filters.
- Protecting phishing sites from automated scanners, sandboxes, and IR teams.
- Gating DNS or raw TCP redirectors for custom C2 channels.
- Creating multi-layer redirect chains for high-OPSEC engagements.
- Running deception-heavy infra for red-team/blue-team exercises.
- Go first: single static binary, cross-platform builds.
- Config-driven behavior: YAML/TOML/JSON with hot-reload.
- Deny by default: explicit allow logic, safe error modes.
- Modular & pluggable: filters, decoys, protocols, and outputs are components.
- Stealth + observability: rich analytics, but encrypted and controlled.
- Listener Layer - Listens on configured IP/port pairs (HTTP/HTTPS, TCP, DNS, UDP)
- Profile - Logical unit binding listeners, backends, rules, and decoy config
- Rule & Filter Engine - Pipeline of rules with boolean logic and plugin interface
- Decision Engine - Returns actions: ALLOW_FORWARD, DENY_DECOY, DROP, TARPIT, REDIRECT
- Backend Proxy Layer - Reverse proxy to configured backends with health checks
- Deception Engine - Static decoys, decoy backends, honeypot paths
- Traffic Shaping & Mimicry Module - Delay injection, response padding, header variations
- Telemetry, Logging & Forensics - Event logs, request metadata, IOC export
- Configuration & Control Plane - YAML config, hot-reload, optional Admin API
- Automation & Infra Integration - IaC artifacts, rotation hooks, ACME integration
- HTTP(S) + TCP proxy
- Static IP/UA/time rules
- Simple decoy and redirect behavior
- JSON logging to file
- Docker support
- Basic documentation
- ASN/GeoIP rules
- TLS fingerprint and SNI rules
- Behavioral rules (scanner heuristics)
- Honeypot paths and richer decoys
- Metrics counters and simple exporters
- Domain/IP rotation hooks
- Health checks and backend failover
- Terraform/Ansible examples
- Basic Admin API for status/reload
- IOC export
- Engagement summary generator
- Optional payload logging (opt-in)
- Admin API with RBAC
- Audit log of config changes
- Multi-profile/team separation
global:
log:
level: info
format: json
sink: file
path: /var/log/shadowgate.log
encrypt: true
geoip_db_path: /opt/shadowgate/geoip.mmdb
profiles:
- id: c2-http
listeners:
- addr: "0.0.0.0:443"
protocol: http
backends:
- name: c2-primary
url: https://127.0.0.1:8443
weight: 10
rules:
allow:
and:
- type: ip_allow_list
list: [ "10.0.0.0/8", "203.0.113.0/24" ]
- type: ua_whitelist
patterns: [ ".*Chrome.*", ".*Firefox.*" ]
deny:
or:
- type: asn_block
list: [ "AS12345", "AS67890" ]
- type: scanner_behavior
decoy:
mode: static
status_code: 200
body_file: /opt/shadowgate/decoys/landing.html
shaping:
delay_ms_min: 50
delay_ms_max: 200- Complete Go codebase aligned to this scope
- Build tooling (Makefile/GoReleaser)
- Prebuilt binaries + Docker images for main platforms
- Documentation (Architecture, Config reference, Deployment scenarios)
- Sample configs for common scenarios
- OPSEC guidance and usage disclaimer