Cyber security

BEAR-C2 : Simulated Command And Control Framework For APT Attack Research

Bear C2 is a compilation of C2 scripts, payloads, and stagers used in simulated attacks by Russian APT groups, Bear features a variety of encryption methods, including AES, XOR, DES, TLS, RC4, RSA and ChaCha to secure communication between the payload and the operator machine. This C2 is for simulation only and is still under development.

Installation

This project requires some scripts that utilize ngrok, so ngrok must be downloaded before completing the installation process.

git clone https://github.com/S3N4T0R-0X0/BEAR.git

cd BEAR

chmod +x requirements.sh

sudo ./requirements.sh

python3 Bear.py

Шахимат / Checkmate: This payload execution technique uses a Fake Windows SmartScreen, requiring Administrator privileges and disabling the real SmartScreen Filter.

The application includes functionalities to run shellcode and execute specific actions based on user input. This execution technique has been redeveloped and rewritten in C++ to easily integrate evasion techniques.

Buttons Activity:

 - "Don't Run": Launches the payload from any directory, such as C:\\Windows\\System32\\payload.exe

 - "Run Anyway": Executes a predefined shellcode

 - "❌️": Closes the warning window and opens any URL, like https://t.me/BearC2

Hidden Functionality:

  • SmartScreen Bypass: The code attempts to disable SmartScreen by modifying registry settings.
  • Administrator Check: If the application is not running with administrative privileges, it attempts to relaunch itself with elevated rights.

Кинжал / Kinzhal: This payload performs several actions. It first checks if it has administrator privileges, and if not, it requests them.

It then attempts to bypass User Account Control (UAC) and disables security features like SmartScreen and Windows Defender by modifying registry settings and disabling scheduled tasks.

The payload clears system and security event logs to cover its tracks. It sets up a network connection to a remote server to receive commands and send data.

The payload retrieves the machine’s unique identifier, calculates its CRC32 checksum, and sends this information to the server.

It can execute system and PowerShell commands received from the server, with results either sent back over the network or uploaded to OneDrive, Google Drive, Dropbox, or AWS via an API token.

Additionally, it uses process hollowing to inject its payload into a legitimate system process (svchost.exe), ensuring it runs hidden in the background.

Finally, the payload hides its console window to avoid detection by the user.

This combination of techniques makes the payload capable of evading detection, maintaining persistence, performing remote command execution, and exfiltrating data to multiple cloud platforms.

Varshini

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

23 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

23 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

3 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago