macOS · Linux
Rook
Self-contained C2 with macOS and Linux implants. Triple-DH handshake, AES-256-GCM sessions, persistent pty — cd sticks across reconnects. Ratatui operator TUI.
Platform
macOS · Linux
Language
Rust
Stack
Rust C2 macOS Linux Ratatui AES-256-GCM Triple-DH
Status
Active development

// Architecture

Three independent Diffie-Hellman pairs in sequence: ephemeral and static public keys out of the implant, an ephemeral public key back from the server. All three contributions are folded into one HKDF pass.

─────────────────────────────────────────────────────────────────────────
Overview

Rook is a self-contained C2 framework targeting macOS and Linux. The triple-DH handshake establishes forward-secret sessions from first contact. Every session gets its own persistent pty — cd sticks, environment changes persist across reconnects. The operator interface is a full Ratatui TUI that behaves like a real terminal. Zig cross-compile produces a fresh binary per build, changing the binary hash each time.

Architecture
>
rook-implant
Standalone binary. Triple-DH initiation, AES-256-GCM command channel, persistent pty per session. Zig cross-compiled per build.
>
rook-server
Beacon listener and operator API. Maintains session state, routes commands to the correct pty.
>
rook-operator
Ratatui TUI. Full terminal emulation per session — tab-switch between active implants. Session history persisted locally.
>
rook-forge
Build system: seeds Zig cross-compile toolchain, produces a fresh binary with new embedded keys each run.
rook-operator
$ rook-operator connect --server 10.0.0.5:9001 ✓ operator session established sessions: 0 active [+] implant beacon from 192.168.1.42 ✓ session s001 — macOS 14.2 / arm64 $ rook-operator shell s001 pty attached — cd persists