How s3n4t0r-0x0/bear-c2 works
BEAR-C2 is an adversary-simulation framework whose documented operator workflow configures a listener, generates a matching beacon, and monitors the listener; agents also have messaging-platform alternatives. The repository tree is weighted toward standalone payload variants and adversary primitives, while the controller’s implementation and several README-described interfaces are not sampled. The graph therefore distinguishes documented workflow from implementation evidence and groups protocol variants by transport rather than implying they are wired together. Exfiltration, proxying, DGA, fingerprinting, phishing, and other README capabilities are represented at directory-level scope where their implementation files are not identifiable from the tree.
Main entry points: BEAR-C2.py Payload generator · Payloads Exfiltration profiles · Discord Agent.cpp Discord agent · Telegram Agent.cpp Telegram agent
Components 20
C2 Control
- BEAR-C2 controller
BEAR-C2.py - Listener configuration
BEAR-C2.py - Listener management
BEAR-C2.py - Payload generator
BEAR-C2.py - Exfiltration profiles
Payloads - Simulation options
BEAR-C2.py
Beacon Transports
- DoH payloads
Payloads/DOH - HTTP payloads
Payloads/HTTP - HTTPS payloads
Payloads/HTTPS - QUIC payloads
Payloads/QUIC - Reverse TCP payloads
Payloads/Reverse TCP
Messaging Agents
- Discord agent
Payloads/C2 Channel Agents/Discord Agent.cpp - Telegram agent
Payloads/C2 Channel Agents/Telegram Agent.cpp
Adversary Primitives
- Stagers and loaders
Adversary Primitives/Stagers-Loaders - PixelCode payload
Adversary Primitives/PixelCode Attack/payload.cpp - PixelCode conversion tools
Adversary Primitives/PixelCode Attack - RustyWater dropper
Adversary Primitives/RustyWater ShellCode Dropper/reddit/src/main.rs
Other components
- Operator
- Messaging platforms
- Cloud storage providers
Connections 15
- Operator → BEAR-C2 controller: operates
- BEAR-C2 controller → Listener configuration: configures
- Operator → Listener management: manages
- Listener configuration → Payload generator: prefills
- Payload generator → DoH payloads: generates for
- Payload generator → HTTP payloads: generates for
- Payload generator → HTTPS payloads: generates for
- Payload generator → QUIC payloads: generates for
- Payload generator → Reverse TCP payloads: generates for
- BEAR-C2 controller → Exfiltration profiles: configures
- BEAR-C2 controller → Simulation options: offers
- Discord agent → Messaging platforms: communicates via
- Telegram agent → Messaging platforms: communicates via
- Exfiltration profiles → Cloud storage providers: routes data to
- PixelCode conversion tools → PixelCode payload: converts payload