Bear C2 Exposed: Russian APT’s Advanced Encryption Tactics
BEAR-C2
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.
POC For Customization TTPs
The types of connection encryption for the C2 profiles in Bear were chosen based on the encryption methods used by the attackers in the actual attacks.
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.
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.