Black Kingdom
- Type
- Ransomware
- Capabilities
- ExfiltrationLateral movementDefense evasionExtortion
- Delivery
- Landing page
- Platforms
- Windows
Black Kingdom, also known as DEMON and DemonWare, is a Windows ransomware family first observed in 2019 and notably reused in 2021 opportunistic attacks against unpatched on-premises Microsoft Exchange servers vulnerable to ProxyLogon, including CVE-2021-27065. After server compromise, operators deployed ASPX webshells for remote command execution, then used PowerShell to download the ransomware and WMI to launch it. Observed tradecraft also included functionality to copy and execute the payload on other systems across the network.
The malware is a relatively unsophisticated Python-based ransomware packaged with PyInstaller, but it remains destructive. It encrypts files across local and reachable drives, attempts to stop SQL-related services to improve access to database files, deletes Windows event logs to hinder response, and can disable mouse and keyboard input while presenting a full-screen ransom interface with a countdown timer. Black Kingdom does not reliably check whether files were already encrypted, allowing repeated encryption and additional damage. It appends random suffixes to encrypted files rather than using a fixed extension and drops ransom notes to instruct victims on payment and contact.
Black Kingdom generates an encryption key and victim identifier and attempts to upload them to Mega. If that upload fails, it falls back to a hardcoded embedded key, a design weakness that has been noted as a potential recovery opportunity in some cases. The ransom messaging has included extortion claims involving alleged data theft and demanded payment in cryptocurrency. Reporting has linked Black Kingdom activity to exploitation of exposed enterprise infrastructure, including Microsoft Exchange and previously Pulse Secure systems, but public attribution to a specific established threat actor remains unconfirmed. The malware has been associated with attacks on internet-facing enterprise servers rather than a narrowly defined vertical, with observed victims including organizations in multiple countries.
Associated vulnerabilities
5 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
The threat actor exploited the on-premises versions of Microsoft Exchange Server, abusing the remote code execution (RCE) vulnerability also known as ProxyLogon (CVE-2021-27065).
Execution
4 techniques
Execution
The script executes the ransomware by invoking Win32_Process via WMI, (the Windows Management Interface).
Appendix II – MITRE ATT&CK Mapping ... Execution T1059 Command and Scripting Interpreter
Following the deployment of the webshell, the attackers initiate the attack by issuing a PowerShell command... This script downloads the ransomware payload
Appendix II – MITRE ATT&CK Mapping ... Execution T1106 Native API
Persistence
3 techniques
Persistence
sha256 62615438CF8F7DE6600D16A493C28BBBD3B052CCC4F9414DFE1CF031681E226F ChackPassPL.aspx webshell - not publicly released; sha256 800E036CF9DA316193BECABC6ACE688634709CD898AE81893E80B635DCAA06D0 ChackIdIO.aspx webshell - not publicly released
Appendix II – MITRE ATT&CK Mapping ... Persistence T1546.011 Application Shimming
Appendix II – MITRE ATT&CK Mapping ... Persistence T1547.001 Registry Run Keys / Startup Folder
Privilege Escalation
4 techniques
Privilege Escalation
Appendix II – MITRE ATT&CK Mapping ... Privilege Escalation T1055 Process Injection
Appendix II – MITRE ATT&CK Mapping ... Privilege Escalation T1134 Access Token Manipulation
Appendix II – MITRE ATT&CK Mapping ... Persistence T1546.011 Application Shimming
Appendix II – MITRE ATT&CK Mapping ... Persistence T1547.001 Registry Run Keys / Startup Folder
Stealth
7 techniques
Stealth
Appendix II – MITRE ATT&CK Mapping ... Defense Evasion T1027 Obfuscated Files or Information
Appendix II – MITRE ATT&CK Mapping ... Defense Evasion T1036 Masquerading
Appendix II – MITRE ATT&CK Mapping ... Privilege Escalation T1055 Process Injection
Once done, Black Kingdom will delete the PowerShell history in the system.
Appendix II – MITRE ATT&CK Mapping ... Privilege Escalation T1134 Access Token Manipulation
Appendix II – MITRE ATT&CK Mapping ... Defense Evasion T1140 Deobfuscate/Decode Files or Information
Appendix II – MITRE ATT&CK Mapping ... Defense Evasion T1497 Virtualization/Sandbox Evasion
Defense Impairment
2 techniques
Defense Impairment
Appendix II – MITRE ATT&CK Mapping ... Defense Evasion T1562.001 Disable or Modify Tools
To further complicate and hinder incident response, the ransomware deletes the Windows Event logs
Credential Access
1 technique
Credential Access
Black Kingdom changes the desktop background to a note that the system is infected while it encrypts files, disabling the mouse and keyboard with pyHook as it does so.
Discovery
8 techniques
Discovery
Appendix II – MITRE ATT&CK Mapping ... Discovery T1012 Query Registry
Appendix II – MITRE ATT&CK Mapping ... Discovery T1016 System Network Configuration Discovery
Appendix II – MITRE ATT&CK Mapping ... Discovery T1018 Remote System Discovery
Appendix II – MITRE ATT&CK Mapping ... Discovery T1057 Process Discovery
Appendix II – MITRE ATT&CK Mapping ... Discovery T1082 System Information Discovery
Black Kingdom allows reading a file in the same directory called target.txt, which will be used by the ransomware to recursively collect files for the collected directories specified in that file and then encrypt them. Black Kingdom will also enumerate various drive letters and encrypt them.
Appendix II – MITRE ATT&CK Mapping ... Defense Evasion T1497 Virtualization/Sandbox Evasion
Appendix II – MITRE ATT&CK Mapping ... Discovery T1518.001 Security Software Discovery
Lateral Movement
2 techniques
Lateral Movement
The script includes the ability to upload the ransomware to other computers on the network and execute it.
The script includes the ability to upload the ransomware to other computers on the network and execute it.
Collection
4 techniques
Collection
Appendix II – MITRE ATT&CK Mapping ... Collection T1005 Data from Local System
Black Kingdom changes the desktop background to a note that the system is infected while it encrypts files, disabling the mouse and keyboard with pyHook as it does so.
Appendix II – MITRE ATT&CK Mapping ... Collection T1114 Email Collection
Appendix II – MITRE ATT&CK Mapping ... Collection T1560 Archive Collected Data
Command and Control
3 techniques
Command and Control
url hxxp://yuuuuu44[.]com/vpn-service/$(f1)/crunchyroll-vpn Where $(f1) is a randomly-generated 16-alphabetic character string
file_path_name c:\Windows\System32\(16 random alphabet characters).exe webshell drops ransomware to the %SYSTEM%
Appendix II – MITRE ATT&CK Mapping ... Command and Control T1573 Encrypted Channel
Exfiltration
1 technique
Exfiltration
The code contains credentials for sending the generated key to the third-party service hxxp://mega.io.
Impact
3 techniques
Impact
The file system behavior of the file encryption function is straightforward: Read (original) > Overwrite (encrypted) > Rename
It attempts to stop services running on the machine with SQL in the service name, effectively terminating databases, presumably so they may be encrypted as well
Once the system is encrypted (or after 20 minutes of work), the ransomware runs this subroutine that disables the mouse and keyboard, and draws a full screen window on top of the desktop.
Observables
18 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.