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 — фреймворк симуляции и эмуляции противника для операций Red Team, построенный вокруг реальных TTP, вдохновлённых российскими, китайскими, северокорейскими и иранскими APT-группировками.
Это C2-фреймворк с GUI или просто библиотека для скриптов?Это полноценный C2-фреймворк с GUI, который управляет листенерами, живыми сессиями, профилями связи и сценариями эксфильтрации — а не библиотека кода для импорта.
Как его запустить?Установите зависимости Python и запустите инструмент, как описано в разделе установки проекта; пейлоады агентов (C++/Rust) настраиваются и компилируются отдельно перед развёртыванием.
Нужны ли учётные данные бота Telegram или Discord, чтобы им пользоваться?Только если используете эти C2-каналы: каналу Telegram нужны Bot Token плюс API ID/Hash с портала разработчиков Telegram, а каналу 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 позволяет операторам настраивать протокол, шифрование, эксфильтрацию и параметры загрузчика под любой сценарий без переписывания кода.
Автор
S3N4T0R-0X0
Размер
4.8 MB
Звёзды
739
Обновлён
КоммитNov 02
Возраст
2 г
Коммиты · 90 дней