BEAR-C2 README

项目的 README,来自 github.com/S3N4T0R-0X0/BEAR-C2。合并为一个 markdown 文件:README.md。

BEAR-C2 Framework

BEAR-C2 is an adversary simulation and emulation framework built around real world TTPs inspired by Russian, Chinese, North Korean, and Iranian APT groups. It provides a flexible environment for diverse engagement scenarios and delivers a realistic foundation for red team operations and adversary emulation drawing from related simulation research in the APT Attack Simulation Repository. It supports defense evasion techniques and multiple encryption options for accurate representation of real world intrusion scenarios.


image psd(1)

[!CAUTION] It's essential to note that this project is for educational and research purposes only, and any unauthorized use of it could lead to legal consequences.

🏗 Install dependencies and compile:

chmod +x Makefile && ./Makefile

./BEAR-C2

What's New in This Version?

⚠️ NOTE: This project is under active development. Features are continuously added and improved.

Feature Description
Multi-Protocol Listeners DoH, HTTPS, HTTP, QUIC, Reverse TCP
Per-Listener Encryption AES, XOR, RC4, DES, ChaCha20, RSA
Exfiltration Profiles Google Drive, OneDrive, Dropbox
Integrated C2 Channels Integrated Telegram, Discord C2 communication channel
Proxy Support SOCKS4, SOCKS4a, and SOCKS5 proxy and redirector support
Dynamic Domain Generation Algorithm DGA support for resilient infrastructure simulation
JA3S Fingerprinting Customizable JA3S fingerprints for traffic simulation and network profile tuning
Malleable C2 Profiles Support for community Malleable C2 profiles for flexible network traffic simulation

🧠 The Challenge with Adversary Simulation:

Accurately replicating APT techniques requires a flexible environment capable of mimicking connection protocols, encryption methods, exfiltration techniques, and C2 Channels/Profiles used in modern intrusions. However, achieving this level of precision has always been a challenge.

1

Every time an operator needs to test a specific encryption scheme with a particular exfiltration profile, a separate C2 script must be built to match the attack scenario. For example, one simulation might require AES encryption with OneDrive exfiltration, while another might need a different encryption method combined with Dropbox exfiltration to reflect the techniques observed in real world attacks. This lack of flexibility makes the process inefficient and time consuming.

2

This is why BEAR C2 was developed to provide adversary simulation with full customization through the new listener, allowing seamless configuration of connection protocols, encryption, exfiltration, and automated loading techniques. This ensures that simulations can accurately reflect real APT intrusions without the need to build custom scripts for every scenario.

💉 Payload Generator

payload generator of BEAR-C2. It automatically builds customized payloads / beacons according to the selected listener configuration, supporting Payload Types (EXE, DLL, BIN, HEX), Network Protocols (DoH, HTTPS, HTTP, QUIC, Reverse TCP), and Encryption types (AES, XOR, RC4, DES, ChaCha20, RSA, or none). The Auto Fills button opens a listener selector window that lists all previously configured listeners from the Listeners Table. When you select a listener, Tactical Load automatically populates the Listener Name, Operator Address + Port, Network Protocol, Encryption type + key, Beacon Auth ID, and URI path. This allows operators to quickly generate matching payloads without manually re-entering listener details.

3

📋 Listeners Table

The Listeners Table provides a centralized overview of all active and configured C2 listeners. It displays essential details such as listener name, address, network protocol, encryption method, exfiltration profile, and current status (Active or Stopped/Disconnected). From this interface, operators can start, stop, rename, or remove listeners with ease. It also offers quick access to encryption keys and authentication IDs for managing beacon communication. This table serves as the command hub for orchestrating and monitoring your C2 infrastructure.

Screenshot From 2026-08-26 15-15-37

📤 Exfiltration Profiles

Configure per-session exfiltration settings for supported cloud storage providers such as Google Drive, OneDrive, and Dropbox. The Exfiltration Profile interface allows you to define API access tokens and destination folder paths, enabling you to customize data collection workflows for each session. Each session can use its own exfiltration profile, making it easy to route collected data to different cloud storage providers or destinations depending on the operation.

4

💬 Integrated C2 Channels

The Telegram communication layer uses a Telegram bot as the intermediary between the C2 server and the payload. The C2 server authenticates to the Telegram account using the configured API ID, API Hash, and Phone Number, then connects to the previously created Telegram bot through that account.


4

This stage replaces the traditional command and control communication channel with a Discord-based communication layer using the Discord Gateway API. Instead of relying on dedicated servers, fixed IP addresses, or custom domains, operators communicate with the simulated implant through a private Discord channel.


5

📡 Evil Agent (payload generator)

evil agent is a payload generator for BEAR-C2 that builds customized agents communicating through third-party messaging platforms, supporting Agent Types (Discord, Telegram), Payload Types (EXE, DLL, BIN, HEX), and a configurable Max Message Size. The interface dynamically displays the required fields for each agent type: Bot Token, Channel ID, and User ID for Discord, or Bot Token only for Telegram, providing an alternative communication channel through existing messaging platforms without requiring a dedicated listener or exposed port.

Screenshot From 2026-10-18 07-38-26


🪝 Spear Phishing Simulation

Simulate spear-phishing campaigns through a dedicated interface for configuring and managing phishing scenarios during authorized adversary simulation exercises. The module provides campaign controls such as victim submission limits, configurable phishing parameters, and session management, allowing operators to control campaign behavior and evaluate user interaction with simulated phishing scenarios. It is designed to support controlled phishing assessments while providing operators with greater visibility and control over campaign execution.

6

🔗 Host File

Host and distribute files through a dedicated Host File interface with configurable server settings and automated file delivery. Hosted files are automatically loaded when accessed, without requiring user interaction or a manual download prompt. The interface provides centralized file hosting and delivery management for controlled adversary simulation and authorized security testing workflows.

Screenshot From 2026-10-05 04-37-52

🔐 Script Obfuscator

The Script Obfuscator provides a comprehensive obfuscation engine supporting PS1, BAT, HTML, VBS, JS, and PY payloads with multiple configurable obfuscation layers. It includes variable and function renaming, string encryption, junk code insertion, multi-layer obfuscation, anti-debugging techniques, and XOR-based payload encryption. These features increase analysis complexity, reduce script readability, and make reverse engineering significantly more difficult while helping payloads better withstand static analysis.

Screenshot From 2026-10-05 07-27-27


The complete list of APT groups simulated by BEAR-C2 throughout its development

Country
of Origin
Russia 🇷🇺 China 🇨🇳 North Korea 🇰🇵 Iran 🇮🇷
APT Groups

Cozy Bear
Voodoo Bear
Fancy Bear
Energetic Bear
Berserk Bear
Gossamer Bear
Primitive Bear
Ember Bear
Venomous Bear

Mustang Panda
Wicked Panda
Goblin Panda
Deep Panda
Glacial Panda
Anchor Panda
Samurai Panda
Phantom Panda
Sunrise Panda
Ethereal Panda

Lazarus
Labyrinth Chollima
Velvet Chollima
Famous Chollima
Ricochet Chollima
Silent Chollima

Helix Kitten
Charming Kitten
Static Kitten
Muddy Water
Tracer Kitten
Pioneer Kitten
Nemesis Kitten
Clever Kitten
Pulsar Kitten
Remix Kitten
Haywire Kitten

📫 Contact

Telegram Twitter/X LinkedIn Reddit

BEAR-C2 (S3N4T0R-0X0/BEAR-C2)

正在搜索数据库…

这是什么?BEAR-C2 是一个面向红队行动的对手模拟与仿制框架,其构建围绕受俄罗斯、中国、朝鲜和伊朗 APT 组织启发的真实世界 TTP。
这是一个带图形界面的 C2 框架,还是仅仅一个脚本库?它是一个带图形界面的完整 C2 框架,可管理监听器、实时会话、通信配置和数据外传工作流——不是一个供你导入的代码库。
怎么让它跑起来?按照项目安装一节的说明安装 Python 依赖并启动工具;智能体载荷(C++/Rust)需要在部署前单独配置和编译。
使用它需要 Telegram 或 Discord 机器人凭据吗?只有在你使用那些 C2 通道时才需要:Telegram 通道需要一个 Bot Token 以及来自 Telegram 开发者门户的 API ID/Hash;Discord 通道则需要两个共享同一私有文本频道的独立 Discord 机器人应用。
随便在哪儿运行它都合法吗?并非如此——项目明确声明它仅用于教育和研究目的,未经授权的使用可能导致法律后果。
智能体载荷需要我自己编译吗?需要。Reaper Node 提供 C++/Rust 载荷模板,必须先配置连接、认证和加密参数,再针对具体测试环境进行编译。
它支持哪些协议和加密方式?监听器可以使用 DoH、HTTPS、HTTP、QUIC 或 Reverse TCP,每个监听器都有加密选项,包括 AES、XOR、RC4、DES、ChaCha20 和 RSA。
它可以把数据外传到哪些云服务?外传配置支持 Google Drive、OneDrive 和 Dropbox,API 令牌和目标路径按会话配置。
作者为什么要构建一个 GUI 框架,而不是编写定制的 C2 脚本?过去要复现特定 APT 的加密与外传组合,每次都得新写一个定制的 C2 脚本;BEAR-C2 的监听器系统让操作者无需重写代码,就能为任何场景配置协议、加密、外传和加载器设置。
大小
4.8 MB
星标
739
更新
提交Nov 02
时长
2年
提交 · 90 天