Vanguard is a modern, distributed C2 (Command & Control) framework written in Rust and SvelteKit. It is designed for red teamers and security researchers, featuring a stealthy no-std agent, a high-performance teamserver with SQLite persistence, and a real-time dashboard.
no-std Windows agent with direct windows-sys Win32 API interactions/beacon: The agent/implant (no_std Windows target)/teamserver: The C2 hub logic (Axum + SQLite)/client: SvelteKit + Tauri management dashboard/protocol: Shared library for AES-256-GCM encrypted TLV communication# Add Windows target for beacon cross-compilation
rustup target add x86_64-pc-windows-msvc
# Install Node.js dependencies for client
cd client && npm install
cargo run -p teamserver
Configure via vanguard.toml:
host = "127.0.0.1"
port = 8080
rate_limit_max = 100
rate_limit_window_secs = 60
log_level = "info"
[malleable_profile]
uri = "/api/v1/beacon/checkin"
header_name = "X-Custom-Header"
header_value = "legitimate-traffic-marker"
Set encryption key via environment variable:
export VANGUARD_KEY="your-32-byte-encryption-key"
cd client
npm run tauri dev
# Build for Windows
cargo build -p beacon --target x86_64-pc-windows-msvc
# Build for Linux (musl)
cargo build -p beacon --target x86_64-unknown-linux-musl
| Command | ID | Description |
|---|---|---|
shell |
0x01 | Execute shell command via cmd.exe |
ps |
0x04 | List running processes |
kill <pid> |
0x05 | Terminate process by PID |
pwd |
0x09 | Get current working directory |
systeminfo |
0x08 | Get system information |
whoami |
0x07 | Get current username |
host = "127.0.0.1"
port = 8080
encryption_key = "optional-32-byte-key"
rate_limit_max = 100
rate_limit_window_secs = 60
log_level = "info"
[malleable_profile]
uri = "/api/v1/beacon/checkin"
header_name = "X-Session-ID"
header_value = ""
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=+crt-static"]
# Build everything
cargo build --workspace
# Build specific package
cargo build -p beacon --target x86_64-pc-windows-msvc
cargo build -p teamserver
cargo build -p protocol
cargo test -p protocol
Distributed under the MIT License.
Disclaimer: This tool is intended for legal, authorized security testing only. Use at your own risk. The authors are not responsible for any misuse or damage caused by this tool.