Sandworm’s New Arsenal: Kapeka Backdoor Technical Analysis

Kapeka backdoor technical analysis: how the dropper installs it, the .wll file and Run Key persistence it uses, and how to detect and limit the threat.

Updated 5 Min Read
kareka bakdoor sandworm apt

The Kapeka backdoor is Windows malware that a dropper installs to give attackers long-term access, system reconnaissance and remote command execution. Our analysis ties it to the Sandworm group, which MITRE ATT&CK describes as attributed to Russia’s GRU military unit 74455. This post covers how Kapeka works, the files it leaves behind and how to spot it.

This blog post comes from the Sandworm’s New Arsenal: Kapeka Backdoor Technical Analysis report. If you want to download it as a PDF Sandworm’s New Arsenal: Kapeka Backdoor Technical Analysis report

What is the Kapeka backdoor?

Kapeka’s victim profiling, marked by its rarity and high level of secrecy and complexity, indicates operations at the level of an Advanced Persistent Threat (APT). The Kapeka Backdoor is identified as malware attributed to the Sandworm group.

The Sandworm APT group is a cyber threat actor often associated with the Russian state, engaging in cyber espionage and espionage activities. The group uses numerous infiltration techniques, such as malware, backdoor entries, and malicious email campaigns, to gain access to targets. It is known that this group often develops specialized malware designed to achieve long-term access and comprehensive monitoring, thereby expanding its arsenal.

Sandworm at a glance
Also known as
Sandworm Team, Telebots, BlackEnergy (Group), APT44 (names listed by MITRE ATT&CK)
Attributed by MITRE ATT&CK to
Russia’s GRU Main Center for Special Technologies, military unit 74455
Active since
At least 2009 (per MITRE ATT&CK)

Kapeka, a highly advanced threat, can infiltrate the target system through dropper software, ensuring long-term persistence. Its capabilities include conducting reconnaissance on the infected system and user and gathering information. It creates additional files on the target system to run payloads sent by the attacker. It also removes existing malware installations and configurations. Finally, it sends the collected information to a remote server controlled by the attacker, using the RSA algorithm.

The implications of this malware are not limited to providing attackers with an early toolset. It also grants them long-term access to the victim’s network, potentially leading to severe and prolonged damage. This underscores the critical importance of understanding and mitigating this threat.

SandWorm APT Group Cyber Intelligence Report

The Russian state–supported Sandworm APT group is discussed in this report prepared by the Brandefense threat intelligence team.

Scope

Filenamecrdss.exe
FiletypeWin32 EXE
Written LanguageC/C++
MD550b5582904fe34451f5cb2362e11cb24
SHA180fb042b4a563efe058a71a647ea949148a56c7c
SHA256bd07fb1e9b4768e7202de6cc454c78c6891270af02085c51fce5539db1386c3f
First Seen / Detection Date28.06.2022
Initial Infection VectorUnknown
Table 1: Dropper Signatures
Filenamemexal.wll
FiletypeWin32 DLL
Written LanguageC/C++
MD55294aaf2ff80547172ebb9e0bcb52e0f
SHA19bbde40cab30916b42e59208fbcc09affef525c1
SHA256f30b9f6e913798ca52154c88725ee262a7bf92fe7caac1ae2e5147e457b9b08a
First Seen / Detection Date28.06.2022
Initial Infection VectorDropper
Table 2: Kapeka Backdoor Signatures

How can you detect and reduce Kapeka risk?

Watch for unexpected or suspicious processes, especially those launched by rundll32 or cmd.exe, which Kapeka commonly uses for executing and maintaining persistence.

Limit administrative privileges for users. Kapeka attempts various operations that require elevated privileges. By applying the principle of least privilege, you can limit what can be executed with non-administrative accounts.

Kapeka DLL is saved in the \LOCALAPPDATA\Microsoft directory with a random name and a .wll file extension. The presence of files with .wll extension in the target directory should be checked.

Kapeka backdoor uses the registry’s Run Keys to ensure persistence. The records made on these keys must be monitored to observe Kapeka’s presence.

Kapeka Dropper creates a BAT file in the C:\Users\username\AppData directory responsible for deleting itself to leave no trace in the file system. BAT file is also named randomly. The presence of such a file in the target directory may indicate the presence of the dropper responsible for running the Kapeka DLL.

Kapeka on an infected machine
  1. Dropper runsInstalls the Kapeka backdoor DLL.
  2. Backdoor savedRandom name with .wll extension in \LOCALAPPDATA\Microsoft.
  3. PersistenceRegistry Run Keys keep it running.Technique T1547.001 (MITRE ATT&CK, opens in a new tab)
  4. CleanupDropper BAT file deletes itself.

We do not currently have information about how the infection chain started or how the first access was obtained. Based on the characteristics of the threat actor, Sandworm can use techniques such as phishing emails, compromised accounts, and vulnerabilities detected in services open to the internet.

Conclusion

This report provides a detailed technical analysis of the Kapeka backdoor malware developed by the Sandowm group. The malware includes a series of sophisticated capabilities. Kapeka is notable for its ability to deeply infiltrate target systems and exfiltrate data and its remote command and control functions. Malware poses a serious threat, particularly to organizations with information security vulnerabilities.

Our analysis has thoroughly examined Kapeka’s code structure, communication protocols, and behavioral characteristics, providing critical insights into how the malware propagates. This information can assist organizations in developing more effective protective strategies. Notably, the malware’s stealth techniques necessitate enhancements in alert systems to make them more sensitive.

Kapeka backdoor is a testament to the sophistication of its operations and their commitment to long-term persistence. These traits align with those of an Advanced Persistent Threat (APT) group. Its architecture, featuring a multi-stage deployment with both dropper and backdoor functionalities, allows it to conduct initial reconnaissance and maintain access to targeted systems undetected. It can execute arbitrary commands, manage files, and communicate securely with its command-and-control servers. This equips it to carry out a wide range of malicious activities, from data theft to delivering secondary payloads.

This blog post comes from the Sandworm’s New Arsenal: Kapeka Backdoor Technical Analysis report. If you want to download it as a PDF Sandworm’s New Arsenal: Kapeka Backdoor Technical Analysis report

Frequently Asked Questions.

What is the Kapeka backdoor?

Per the post, it is malware that a dropper installs to keep long-term access. It can profile the system and user, write files to run payloads, and send data to an attacker-controlled server.

Who is Sandworm?

MITRE ATT&CK describes Sandworm Team as a destructive group attributed to Russia's GRU Main Center for Special Technologies, military unit 74455, active since at least 2009.

How does Kapeka stay on a system?

The post says it uses Registry Run Keys. MITRE ATT&CK T1547.001 describes this as adding programs to run keys or startup folders so they run at logon.

How can I detect Kapeka?

The post advises checking for .wll files in \LOCALAPPDATA\Microsoft, monitoring Run Key changes, watching rundll32 and cmd.exe activity and limiting administrative privileges.

Sources

  1. 1 MITRE ATT&CK: Sandworm Team (G0034)
  2. 2 MITRE ATT&CK: Registry Run Keys / Startup Folder (T1547.001)
  3. 3 CISA: Russian State-Sponsored and Criminal Cyber Threats to Critical Infrastructure (AA22-110A)