βββ ββββββββββ ββββββ βββββββββββββββ βββ βββββββ βββββββ βββββββ ββββββββββββ
βββ ββββββββββββββββββββββββββββββββββ βββ ββββββββββββββββββββββββ βββββββββββββ
βββ ββ ββββββββββββββββββββββ βββ ββββββββ ββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββ βββ ββββββββ βββββββ ββββββββββββββββββββββββββββ
βββββββββββββ ββββββ ββββββ βββ βββ βββ βββ βββ βββββββββ βββ βββββββββββ
ββββββββ βββ ββββββ ββββββ βββ βββ βββ βββ βββ βββββββββ βββββββββββ
Engineered in Pure Rust (31,000+ Lines β’ 6 Modular Crates β’ 75 Native Locales) for Linux Systems & Security Engineering
Ring 0/3 Hardened β’ Netlink FIB Engine β’ Zero-Copy IDS β’ 50+ Tool DPI Sanitizer β’ JA3/JA4 GREASE TLS β’ Encrypted RAMFS Vault
- π System Overview
- π Codebase Metrics & Language Breakdown
- β‘ Core Architectural Pillars
- π‘οΈ Privacy & Security Comparison Matrix
- π Modular Crate Topology
- π Quickstart & Installation
- π» Operational Command Reference
- βοΈ In-Flight DPI Tool Signature Sanitization (50+ Matrix)
- π‘οΈ Tor Surveillance & Adversarial Node Resistance Matrix
- π In-Memory Cryptographic Security Specifications
- π‘οΈ Fail-Closed Crash Protection & Panic Sentry
- βοΈ Legal & Operational Disclaimer
- π License
Wraith-Prime is a sovereign, kernel-level network privacy, protocol normalization, and anti-fingerprinting framework designed for security researchers, privacy engineering professionals, and authorized auditing operations.
Built completely from scratch in pure Rust across 6 modular crates, Wraith operates directly at the kernel and network boundary using raw AF_NETLINK sockets, Seccomp-BPF syscall filters, AF_PACKET zero-copy dissectors, and wire-level protocol synthesizers. It enforces zero-trust fail-closed network routing, active WebRTC STUN leak protection, in-flight auditing tool signature sanitization, anti-forensics self-destruction, and locked in-memory RAMFS vaults.
π Click to Expand / Collapse Tokei Workspace Code Verification Table
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Language Files Lines Code Comments Blanks
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Shell 2 273 204 31 38
TOML 7 195 183 0 12
YAML 400 18624 18624 0 0
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Markdown 1 466 0 365 101
|- BASH 1 33 17 9 7
|- Rust 1 10 10 0 0
(Total) 509 27 374 108
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Rust 55 11425 9578 442 1405
|- Markdown 48 268 0 268 0
(Total) 11693 9578 710 1405
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Total 465 31294 28616 1115 1563
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
graph LR
classDef kBox fill:#0f172a,stroke:#38bdf8,stroke-width:1.5px,color:#f8fafc;
classDef gBox fill:#0f172a,stroke:#4ade80,stroke-width:1.5px,color:#f8fafc;
classDef tBox fill:#0f172a,stroke:#c084fc,stroke-width:1.5px,color:#f8fafc;
subgraph G1["1. Wire & Hardware Gate"]
L0["π RAMFS Vault & Shredder<br/><sub>ChaCha20-Poly1305 β’ mlockall β’ DMI Cloak</sub>"]:::kBox
L1["β‘ Netlink FIB & Seccomp<br/><sub>AF_NETLINK β’ Fail-Closed Gate</sub>"]:::kBox
end
subgraph G2["2. Zero-Copy IDS & DPI"]
L2["π‘οΈ 50+ Tool DPI Sanitizer<br/><sub>In-Flight UA Rewrite β’ STUN Trap</sub>"]:::gBox
L3["π TLS GREASE & p0f Mask<br/><sub>JA3/JA4 Mimicry β’ TTL=128</sub>"]:::gBox
end
subgraph G3["3. Anonymous Egress Mesh"]
L4["π Multi-Hop Tor & DNSSEC<br/><sub>RFC 1035 UDP β’ Five-Eyes Shield</sub>"]:::tBox
end
G1 ==>|Zero-Copy Stream| G2
G2 ==>|Camouflaged Tunnel| G3
| Security Feature / Vector | Anonsurf (Bash) | TorGhost (Python) | Proxychains-NG (C) | Tails OS (Debian) | Wraith v1.2.0 (Rust) |
|---|---|---|---|---|---|
| Execution Architecture | Unsafe Shell Scripts | GC Python Wrapper | LD_PRELOAD Hook |
Full OS Environment | Pure-Rust Sovereign Crates (Zero GC) |
| Routing Mechanism | Spawns ip / route CLI |
Spawns iptables CLI |
Hijacks connect() |
Kernel Netfilter | Direct AF_NETLINK FIB Socket API |
| Fail-Closed KillSwitch | β Prone to Script Hang | β Fragile Subprocess | β Leaks on Non-TCP | β Fail-Closed Watchdog (<1ms Kernel Drop) | |
| Crash Protection & Sentry | β Locks System Network | β Locks System Network | β Process Abort | β Panic Sentry & Auto Kernel Net Recovery | |
| 50+ Tool DPI Sanitizer | β None | β None | β None | β None | β In-Flight Header Normalization |
| Diversified UA Pool | β None | β None | β None | β Standard Tor UA | β Dynamic Multi-Browser Rotation |
| DNS Leak Mitigation | /etc/resolv.conf rewrite |
/etc/resolv.conf rewrite |
proxyresolv script |
Loopback Resolver | β RFC 1035 + EDNS0 468B Padding |
| WebRTC STUN Trapping | β Vulnerable | β Vulnerable | β Vulnerable | β Hardware AF_PACKET STUN Trap |
|
| IPv6 Leak Blackout | Partial Disable | β Unmanaged | β Bypassed | Kernel Drop | β Dual sysctl & ip6tables Blackout |
| TLS JA3/JA4 Mimicry | β None | β None | β None | β Standard Tor Client | β RFC 8701 GREASE TLS Synthesizer |
| TCP/IP p0f Stack Mask | β Linux Default (TTL 64) | β Linux Default (TTL 64) | β Linux Default (TTL 64) | β Linux Default (TTL 64) | β Windows 11 Profile (TTL 128, TS 0) |
| Font Sandbox Shield | β OS Fonts Leak | β OS Fonts Leak | β OS Fonts Leak | β Extreme Whitelist (< 20 Fonts) | |
| WebGL & GPU Spoofing | β Hardware Leaks | β Hardware Leaks | β Hardware Leaks | β Hardware Mute & Canvas Randomizer | |
| In-Memory RAMFS Vault | β Plaintext Temp Files | β Plaintext Memory | β None | β ChaCha20-Poly1305 mlock Vault |
|
| Anti-Forensics Wipe | shred binary call |
Basic os.remove |
β None | RAM wipe on shutdown | β DoD 5220.22-M 7-Pass Zeroizer |
| Process Masquerading | β None | β None | β None | β None | β [kworker/u16:0] Kernel Cloak |
| Anti-Debugging Traps | β None | β None | β None | β None | β Dynamic TracerPid SIGKILL Trap |
| Memory Footprint | External Utilities | ~45 MB (Python VM) | ~2 MB (Hook Only) | Entire OS | < 3.2 MB Locked Physical Memory |
Wraith is cleanly architected into 6 highly decoupled, zero-warning pure-Rust crates:
π Click to Expand / Collapse Complete 6-Crate Directory Structure
wraith/
βββ Cargo.toml # Sovereign Workspace Root Manifest (v1.2.0)
βββ LICENSE # GNU General Public License v3.0 (GPLv3)
βββ README.md # Operational Architecture & Documentation
βββ build.sh # Automated Linux Build, Shell Completion & Language Deployment
βββ uninstall.sh # Sovereign Uninstaller & Forensic State Purge
βββ crates/
βββ wraith-core/ # [Core & Memory Security Layer]
β βββ locales/ # Localized Core & Crypto Dictionaries
β βββ src/crypto.rs # Constant-Time Cryptography (Audited SHA-256, HMAC, Poly1305)
β βββ src/vault.rs # Encrypted RAMFS Vault (RFC 8439 ChaCha20-Poly1305, mlockall, ZeroizeOnDrop)
β βββ src/kernel_lockdown.rs # Kernel Hardening (kexec disable, ptrace scope, sysctl lockdown)
β βββ src/process_lockdown.rs # Process Memory Lockdown (PR_SET_DUMPABLE=0, PR_SET_NO_NEW_PRIVS)
β βββ src/config.rs # Runtime Paths, Socket Addresses & Security Defaults
β βββ src/state.rs # Atomic State Lifecycle & Safe Persistence
β
βββ wraith-net/ # [Kernel Networking & DPI Layer]
β βββ locales/ # Localized Network & DPI Dictionaries
β βββ src/netlink.rs # Direct AF_NETLINK Route, Link, Address & FIB Rule Engine
β βββ src/ids.rs # Zero-Copy AF_PACKET Dissector, 50+ Tool DPI Sanitizer & STUN Trap
β βββ src/tcp_stack.rs # TCP/IP Stack Normalizer & p0f Evasion (TTL=128, TS=0)
β βββ src/multihop.rs # Multi-Hop WireGuard-over-Tor Tunneling (ChaCha20 Encapsulation)
β βββ src/ebpf_fastpath.rs # Kernel eBPF TC clsact Direct Action Driver & Fastpath Drop
β βββ src/ipv6.rs # IPv6 Dual-Stack Blackout & Leak Guard
β βββ src/mac.rs # IEEE 802.3 Hardware MAC Address & Hostname Randomizer
β βββ src/namespace.rs # Isolated Kernel Network Namespace (veth jail)
β βββ src/nftables.rs # Transactional Netfilter & iptables Fail-Closed Rule Manager
β βββ src/cgroup_jail.rs # Net_cls cgroup Process Isolation & Traffic Confinement
β βββ src/traffic_shaper.rs # Kernel TC/Netem Traffic Shaping (Jitter & Latency Obfuscation)
β
βββ wraith-guard/ # [Defense & DNS Engine]
β βββ locales/ # Localized Guard & DNS Dictionaries
β βββ src/dns_engine.rs # RFC 1035 UDP DNS Server + EDNS0 (468B) Padding + Sinkhole
β βββ src/killswitch.rs # Fail-Closed Async Watchdog Engine (<1ms Panic Drop)
β βββ src/traffic_jitter.rs # Synthetic Poisson Traffic Cell Generator & Egress Padding
β βββ src/bpf_filter_engine.rs # Classic BPF / eBPF Raw Packet Assembly & Filtering
β βββ src/seccomp_jail.rs # Strict Seccomp-BPF Syscall Allowlist Filter
β βββ src/honey_ports.rs # Deceptive Honey-Port Listeners & Inbound Scanner Trap
β βββ src/leak.rs # Multi-Vector Egress Leak Auditor
β
βββ wraith-tor/ # [Tor Transport & TLS Camouflage Layer]
β βββ locales/ # Localized Tor Transport Dictionaries
β βββ src/grease.rs # RFC 8701 GREASE JA3/JA4 TLS 1.3 ClientHello & HTTP/2 Synthesizer
β βββ src/tls_camouflage.rs # SOCKS5 Camouflage Proxy with Dynamic JA3/JA4 Fingerprints
β βββ src/multichain.rs # Five-Eyes Exclusion Matrix & Strict Geographic Exit Profiler
β βββ src/circuit.rs # Multi-Hop Circuit Topology & Live Telemetry Inspector
β βββ src/control.rs # Tor Control Protocol Interface (SIGNAL NEWNYM, Telemetry)
β βββ src/onion_service.rs # Ephemeral v3 Onion Hidden Service Controller
β βββ src/daemon.rs # Isolated Tor Daemon Lifecycle & Sandboxed Process Manager
β βββ src/bridge.rs # obfs4 / Snowflake Pluggable Transport Manager
β
βββ wraith-forensic/ # [Anti-Forensics & Hardware Cloaking Layer]
β βββ locales/ # Localized Anti-Forensics Dictionaries
β βββ src/shred.rs # Multi-Pass Crypto Shredder with FS Sync & Zeroization
β βββ src/memory.rs # Volatile RAM & Swap Partition Cleaner (with 5s Emergency Timeout)
β βββ src/anti_debug_probe.rs # Dynamic RE Detection (PTRACE_TRACEME, TracerPid Probe)
β βββ src/anti_fingerprint.rs # WebGL, Canvas, AudioContext & Letterboxing Profile Hardener
β βββ src/font_jail.rs # Fontconfig Strict Whitelist Sandbox (<20 Standard Fonts)
β βββ src/display_jail.rs # Xvfb Standardized 1920x1080@24bit Virtual Display Sandbox
β βββ src/hardware_cloaker.rs # Hardware Serial & /etc/machine-id Mutator
β βββ src/browser.rs # Firefox Profile user.js Automated Security Injector
β βββ src/logs.rs # System Journal, Bash History & Memory Dump Sanitizer
β
βββ wraith-cli/ # [Command Interface, Localized TUI & Completions]
βββ locales/ # 75 Native YAML Language Dictionaries (400 Files)
βββ src/display.rs # Universal Box Renderer, Dynamic ANSI Width Calculator & Help Matrix
βββ src/commands.rs # Operational Command Handlers with Graceful Cleanup Hooks
βββ src/tui.rs # Native Rust Terminal UI & 75-Language Interactive Selector
βββ src/diagnostics.rs # Deep Kernel, Sysctl & Network Health Auditor (Doctor Mode)
βββ src/benchmark.rs # High-Performance Cryptographic & Kernel Benchmark Suite
Execute on Kali Linux, Debian, Parrot OS, Ubuntu, Arch Linux, or any modern Linux distribution:
# 1. Clone the official repository
git clone https://github.com/ByGh00st/wraith.git
# 2. Enter workspace
cd wraith
# 3. Grant execute permissions & build/install
chmod +x build.sh
sudo ./build.shNote
Upon build completion, build.sh automatically presents the Native Rust 75-Language Selector TUI. Select your language with Arrow Keys and press [ENTER]. The system will automatically generate 100% localized Bash & Zsh Shell Auto-Completion scripts tailored to your chosen language!
git clone https://github.com/ByGh00st/wraith.git
cd wraith
cargo build --release --workspace
sudo cp target/release/wraith /usr/local/bin/wraith
sudo chmod 755 /usr/local/bin/wraith
sudo mkdir -p /etc/wraith /var/log/wraith /etc/torsudo wraith [SHORTCUTS | OPTIONS] [COMMAND]| Shortcut | Command Format | Operational Action |
|---|---|---|
-s |
sudo wraith -s [OPTIONS] / wraith start |
Start Wraith Engine: Initializes fail-closed routing and selected hardening layers. |
-x |
sudo wraith -x [-d] / wraith stop |
Stop Wraith: Restores normal network, netfilter rules, and DNS. (-d self-destructs binary). |
-r |
sudo wraith -r / wraith switch |
Circuit Rotation: Issues SIGNAL NEWNYM to request a fresh Tor exit node identity. |
-t |
sudo wraith -t / wraith test |
Leak Verification Suite: Executes active tests for DNS, IPv6, and WebRTC leaks. |
-i |
sudo wraith -i / wraith info |
Status Telemetry: Displays live connection status, active exit IP, and circuit topology. |
-p |
sudo wraith -p <NAME> / wraith profile |
Geographic Exit Profiler: Enforces Tor exit nodes (stealth, speed, journalists, research, darkweb). |
-F |
sudo wraith -F / wraith -s -F |
Full Security Mode: Engages ALL 16 non-destructive defense layers simultaneously. |
-u |
sudo wraith -u / wraith update |
Atomic In-Place Updater: Hot-swaps release binary directly from GitHub repository. |
-c |
sudo wraith -c / wraith cleanup |
Anti-Forensic Purge: Clears volatile RAM caches, temporary state, and session traces. |
| β | sudo wraith --cleanup-full |
Deep Anti-Forensic Purge: Wipes RAM, swap partitions, and all system authentication logs. |
-M |
sudo wraith -M / wraith monitor |
Real-Time DPI & IDS Monitor: Launches live packet inspector and signature rewrites. |
| β | sudo wraith doctor |
Kernel Integrity Auditor: Deeply audits IPv4/IPv6 sysctls, Tor daemon state, Netlink, and Seccomp. |
| β | sudo wraith benchmark |
Cryptographic Benchmark: Evaluates ChaCha20-Poly1305, SHA-256, HMAC, and Netlink throughput. |
| β | sudo wraith mac |
Hardware Randomizer: Randomizes L2 MAC address and system hostname immediately. |
| β | sudo wraith pentest |
Security Audit Guide: Displays isolation guidelines for Nmap, Sqlmap, Ffuf, Metasploit. |
| β | sudo wraith shred <FILE> |
Crypto File Shredder: Overwrites target file with DoD 5220.22-M 7-pass cryptosequence. |
| β | sudo wraith --select-lang |
75-Language Selector: Launches interactive Unicode terminal UI to change system language. |
| β | sudo wraith --lang <CODE> |
Runtime Language Override: Dynamically executes any command in any of the 75 supported locales. |
Wraith integrates an enterprise-grade multi-language runtime engine powered by native compile-time dictionaries. The operational language is persistently configured during deployment (/etc/wraith/lang) and can be overridden dynamically per command:
- Interactive Selector TUI: Run
wraith --select-langat any time to launch the native 75-language configuration menu with pixel-perfect Unicode alignment. - Persistent Deployment Binding: Automatically configured via the interactive installer and stored in
/etc/wraith/lang. - Runtime Language Override: Dynamically execute any command in any locale via
wraith --lang <CODE> [COMMAND](e.g.,wraith --lang tr -horwraith --lang de start). - Supported Locale Matrix (75 Standard Enterprise Locales):
- Pan-Turkic Language Group (19): Turkish (
tr), Azerbaijani (az), Kazakh (kk), Uzbek (uz), Kyrgyz (ky), Turkmen (tk), Uyghur (ug), Tatar (tt), Bashkir (ba), Chuvash (cv), Sakha (sah), Gagauz (gag), Crimean Tatar (crh), Altai (alt), Tuvan (tyv), Khakas (kjh), Karachay-Balkar (krc), Kumyk (kum), Nogai (nog). - Slavic & Eastern European (11): Russian (
ru), Ukrainian (uk), Bulgarian (bg), Serbian (sr), Croatian (hr), Bosnian (bs), Macedonian (mk), Slovenian (sl), Slovak (sk), Czech (cs), Polish (pl). - Middle Eastern, Semitic & Caucasus (5): Arabic (
ar), Persian / Farsi (fa), Hebrew (he), Armenian (hy), Georgian (ka). - South Asian & Indo-Aryan (5): Urdu (
ur), Hindi (hi), Bengali (bn), Tamil (ta), Telugu (te). - Global Strategic, Germanic, Romance, Nordic, Celtic & Classical (35): English (
en), German (de), French (fr), Spanish (es), Italian (it), Portuguese (pt), Chinese (zh), Japanese (ja), Korean (ko), Dutch (nl), Swedish (sv), Norwegian (no), Danish (da), Finnish (fi), Hungarian (hu), Romanian (ro), Greek (el), Vietnamese (vi), Thai (th), Indonesian (id), Malay (ms), Tagalog (tl), Swahili (sw), Afrikaans (af), Welsh (cy), Basque (eu), Latin (la), Mongolian (mn), Irish (ga), Icelandic (is), Estonian (et), Latvian (lv), Lithuanian (lt), Maltese (mt), Albanian (sq).
- Pan-Turkic Language Group (19): Turkish (
βοΈ Click to Expand / Collapse Full CLI Flag & Option Tree
Quick Shortcuts:
-s, --start Quick start shortcut with active options
-x, --stop Quick stop shortcut (restores clean clearnet)
-r, --switch Request new Tor exit identity (Newnym)
-t, --test Run multi-vector leak verification tests
-i, --info Display live telemetry dashboard & circuits
-u, --update Fetch updates & recompile binary in-place
-c, --cleanup Anti-forensic RAM and state purge
--cleanup-full Thorough anti-forensic purge (RAM, swap, auth logs)
-M, --monitor Launch dedicated DPI & IDS live interceptor monitor
Network Isolation & Tunneling:
-m, --mac Randomize network interface L2 MAC address and hostname
-b, --bridge Route traffic through censorship-resistant obfs4 Tor bridges
-n, --namespace Restrict routing to an isolated Linux Network Namespace (10.200.1.0/24)
-p, --profile <PROFILE> Enforce geographic Tor exit node profile (stealth, speed, journalists, research, darkweb)
--rotate-interval <SECS> Automatically rotate Tor exit node identity every N seconds (e.g. --rotate 60)
[aliases: --interval, --rotate, --auto-rotate]
--jitter Inject synthetic traffic cells & Poisson timing jitter (200-1400ms)
--no-killswitch [--no-ks] Disable the Fail-Closed KillSwitch watchdog monitor
-W, --wireguard <CONF> Encapsulate Tor traffic inside a kernel WireGuard tunnel (Multi-Hop DPI/ISP bypass)
--onion <VIRT:TARGET> Provision an Ephemeral v3 Onion Hidden Service (e.g. --onion 80:8080)
[aliases: --onion-service, --hidden-service]
--shaper Inject Linux Kernel TC Netem traffic shaping (35ms delay, 12ms jitter)
[aliases: --traffic-shaper, --netem, --packet-shaper]
--spawn-monitor Automatically spawn dedicated DPI/IDS monitor window on startup
System Hardening & Anti-Fingerprinting:
--honey-ports Arm localhost deception honeypot traps (:2222, :3306, :5432, :6379, :8080, :27017)
[aliases: --honeypot, --honey-trap, --trap-ports]
--honey-lan π¨ LAN SENSOR MODE: Bind honeypots to 0.0.0.0 (Trap & tarpit Wi-Fi/LAN port scanners)
[aliases: --lan-honeypot, --lan-trap, --deception-sensor]
--display-sandbox Spawn isolated X11 Virtual Display sandbox (Xvfb 1920x1080@24bit) to mask EDID
[aliases: --virtual-display, --xvfb, --display-jail]
--browser-shield Inject WebGL, Canvas, Audio, GPU, Font and Resolution anti-fingerprint profiles
[aliases: --shield, --canvas-shield]
--font-sandbox Restrict OS-level font discovery via Fontconfig sandbox
[alias: --font-jail]
--tcp-mask Normalize TCP/IP L4 stack parameters (TTL=128, TS=0) for p0f evasion
--machine-id Rotate unique OS /etc/machine-id and system hardware identifiers
[alias: --cloaking]
-F, --full-security Engage ALL 16 non-destructive defense layers (Shield, NetNS, MAC, Machine-ID, TCP-Mask, Jitter, Seccomp, eBPF, RAMFS Vault, Honeypot, Netem)
[aliases: -Fs, --full, --strict, --harden, --full-defense, --strict-hardening, --max-hardening]
High-Risk & Forensic Operations (Explicit Opt-In Only):
-L, --forensic-wipe-logs β IRREVERSIBLE: Eradicate system authentication logs, event logs, and shell history
[aliases: --destructive-cleanup, --wipe-logs]
-d, --forensic-self-destruct β IRREVERSIBLE: Cryptographically shred binary from disk and wipe memory on exit
[alias: --self-destruct]
-K, --aggressive-masquerade β EVASIVE: Spoof process name in scheduler as kernel worker ([kworker/u16:0])
[aliases: --process-masquerade, --cloaked-process]
-A, --aggressive-anti-debug β EMERGENCY ABORT: Immediately triggers SIGKILL if attached to a debugger
[aliases: --anti-debug, --anti-ptrace]
General Options:
-v, --verbose Enable verbose debug logging
--lang <LANG> Override system language (e.g. 'en', 'tr', 'ru', 'de')
--select-lang Launch interactive 75-language configuration terminal menu
-h, --help Print comprehensive help screen
-V, --version Print version information
# 1. Standard full-security anonymization (Engage all 16 defense layers)
sudo wraith -s -Fs
# 2. Maximum OPSEC: MAC randomization + Stealth exit node profile
sudo wraith -s -m -p stealth
# 3. Red Team Engagement: Full defense + Automatic log eradication on exit
sudo wraith -s -Fs -L
# 4. Zero-Footprint Mission: Full defense + Complete binary self-destruction upon SIGINT
sudo wraith -s -Fs -d
# 5. Clean teardown & Clearnet restoration
sudo wraith -x
# 6. One-command in-place update from GitHub repository
sudo wraith -uWhen authorized security auditing tools or custom scripts send HTTP requests through Wraith, their default headers expose identifiable signatures (User-Agent: sqlmap/1.8, User-Agent: Nmap Scripting Engine, etc.) to target systems and network monitors.
Wraith's Zero-Copy AF_PACKET Deep Packet Inspection (DPI) Engine scans Layer-4 streams on the fly and automatically rewrites auditing signatures into legitimate, randomized browser headers before packets leave the local gateway.
[Tool Egress: "User-Agent: sqlmap/1.8"] β [Wraith In-Flight DPI] β [Wire: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/131.0.0.0"]
π‘οΈ Click to Expand / Collapse 50+ Tool Signature Normalization Table
| Category | Targeted & Normalized Signatures |
|---|---|
| π Network & Port Scanners | Nmap (NSE), masscan, RustScan, OWASP ZAP, Metasploit (msf), BurpSuite, BurpCollaborator |
| π Web Content & Fuzzers | ffuf, gobuster, dirsearch, feroxbuster, Kiterunner, Wfuzz, Katana, Arjun |
| π₯ Vulnerability Scanners | sqlmap, Nikto, nuclei, httpx, wpscan, Commix, dalfox, Ghauri, Droopescan |
| π‘ OSINT & Subdomain Recon | Amass, Subfinder, Sublist3r, theHarvester, DNSRecon, WhatWeb, wafw00f, EyeWitness |
| βοΈ HTTP & Code Libraries | python-requests, python-urllib, curl/, Wget/, aiohttp, httplib2, axios/, node-fetch, Go-http-client, Java/, libwww-perl, Scrapy |
| π Credential & Auditing | Hydra, Medusa, CrackMapExec, NetExec, Impacket, PostmanRuntime, Insomnia, testssl, sslscan |
To prevent static User-Agent correlation and client profiling across consecutive sessions, Wraith avoids single static headers.
Headers are dynamically assigned from a stream-seeded pool of authentic modern browsers:
pub const BROWSER_USER_AGENT_POOL: &[&str] = &[
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
"Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0",
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
"Mozilla/5.0 (Linux; Android 14; Pixel 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36",
];- Session Consistency: Rewriting maintains deterministic consistency for streams within the same TCP session to avoid mid-session header flapping.
- RFC 7230 Byte-Safe Alignment: In-flight byte replacements preserve HTTP payload framing and pad length variations with standard trailing header whitespace.
When operating over decentralized anonymity networks, host telemetry and user sessions face threats from monitored Entry (Guard) nodes, malicious Exit sniffers, Five-Eyes surveillance alliances, and statistical timing correlation attacks.
Wraith embeds 7 specialized defense layers specifically designed to neutralize malicious Tor nodes and traffic analysis:
graph TD
classDef redBox fill:#1e1014,stroke:#f43f5e,stroke-width:1.5px,color:#fff;
classDef greenBox fill:#0b1e16,stroke:#10b981,stroke-width:1.5px,color:#fff;
A["π΄ Monitored Entry (Guard) Node"]:::redBox -->|Defended By| B["π‘οΈ Layer 1: WireGuard Multi-Hop (-W)<br/>(Guard only sees VPN IP, never real ISP)"]:::greenBox
C["π΄ Malicious Exit Relay Sniffing"]:::redBox -->|Defended By| D["π‘οΈ Layer 2: In-Flight L4/L7 DPI Sanitizer<br/>(Tool headers rewritten into authentic Chrome)"]:::greenBox
E["π΄ Five-Eyes / 14-Eyes Alliance Nodes"]:::redBox -->|Defended By| F["π‘οΈ Layer 3: Geographical Exclusion (-p stealth)<br/>(Strictly excludes US, UK, CA, AU, NZ, FR, DE)"]:::greenBox
G["π΄ Statistical Timing & Flow Correlation"]:::redBox -->|Defended By| H["π‘οΈ Layer 4: Poisson Jitter Injection (--jitter)<br/>(200-1400ms synthetic delays + chaff padding)"]:::greenBox
| Threat Vector | Adversary Objective | Wraith Countermeasure & Technical Mechanism |
|---|---|---|
| Monitored Guard Node | Log real client ISP IP address | WireGuard Multi-Hop (-W <CONF>) & obfs4 (-b): Encapsulates Tor in ChaCha20-Poly1305 UDP tunnel; Guard node only sees VPN IP. |
| Malicious Exit Sniffer | Fingerprint client tool signatures (sqlmap, Nmap) |
In-Flight DPI Sanitizer (wraith-net/ids.rs): Zero-copy packet rewriting converts all tool signatures to random modern browser pools. |
| Five-Eyes Alliance | Cross-jurisdictional intelligence logging | Geographical Exclusion (-p stealth): Strict Tor circuit constraints (StrictNodes 1, ExcludeNodes {us},{gb},{ca},{au},{nz},{fr},{de}). |
| End-to-End Timing Analysis | Correlate packet arrival times across Entry/Exit | Poisson Traffic Jitter (--jitter): Injects 200β1400ms Poisson-distributed synthetic micro-delays and chaff traffic cells. |
| Long-Term Node Correlation | Aggregate traffic patterns over static circuits | Periodic Identity Rotation (--rotate-interval <SEC>): Issues SIGNAL NEWNYM every N seconds, rotating circuit keys and exit hops. |
| TLS Client Fingerprinting | Identify Tor client software via JA3/JA4 hashes | RFC 8701 GREASE TLS Mimicry (wraith-tor/grease.rs): Injects randomized GREASE extensions matching Windows 11 / Chrome 131. |
| DNS Query Size Sniffing | Infer visited domains via packet length side-channels | EDNS0 468B Uniform Padding (wraith-guard/dns_engine.rs): Normalizes all outgoing DNS requests to uniform 468-byte payloads. |
- RFC 8439 ChaCha20-Poly1305 AEAD: Hardware-accelerated authenticated symmetric encryption with 256-bit keys and 96-bit nonces.
- Kernel Memory Protection: All secret payloads in RAM are pinned using
libc::mlockall(MCL_CURRENT | MCL_FUTURE)to prevent paging to swap, and protected withlibc::prctl(PR_SET_DUMPABLE, 0)against/proc/$PID/memextraction. - Zeroize-On-Drop: All in-memory cryptographic keys implement the
ZeroizeandZeroizeOnDroptraits, ensuring immediate volatile memory sanitization upon variable disposal.
Wraith embeds a dedicated Kernel Panic Sentry to guarantee that unhandled runtime exceptions or sudden system halts can never leave your host in a broken or locked network state:
- Terminal State Restoration: Automatically disables terminal raw mode and restores default terminal buffers.
- Atomic Netfilter Recovery: Unlocks
/etc/resolv.conf, strips immutable attributes (chattr -i), flushes iptables/ip6tables rules, and sets default policies toACCEPT. - Interface Carrier Reactivation: Restarts NetworkManager, reconciles DHCP leases, and restores clean clearnet routing.
Important
LEGAL NOTICE & TERMS OF ENGAGEMENT
- Authorized Security Research & Privacy Protection: Wraith-Prime is designed and distributed strictly for authorized security assessments, professional penetration testing, authorized red-team auditing, and privacy defense research.
- Compliance with Laws: Users are solely responsible for complying with all applicable local, state, national, and international laws, including computer fraud and abuse legislation (e.g., US CFAA, EU NIS2, UK Computer Misuse Act).
- Disclaimer of Liability: The developers and contributors assume zero liability and are not responsible for any misuse, damage, unauthorized access, or legal consequences resulting from the operation of this software.
- Explicit Authorization Required: Never execute network assessment or scanning tools against infrastructure or networks without prior written authorization from the system owners.
Distributed under the GNU General Public License v3.0 (GPLv3). See LICENSE for the full copyleft license terms.