DeadLock ransomware: Breaking down a Rust-based encryptor with decentralized recovery infrastructure
DeadLock is a Rust-based ransomware encryptor that uses decentralized infrastructure for victim communication and data leak operations. It stores configuration on Polygon blockchain smart contracts, routes chat through the Session decentralized messenger network, and hosts leaked data on Wasabi S3. The encryptor implements hybrid Curve25519/XChaCha20 cryptography with per-file ephemeral keys, resource-aware throttling to avoid detection, language geofencing to avoid CIS countries, and comprehensive defense evasion including event log clearing and security tool termination.
Detection / Hunteropenrouter
What Happened
A new type of ransomware called DeadLock has been discovered. It locks victims' files and also steals their data, threatening to publish it if the victim does not pay. What makes DeadLock unusual is how it communicates with victims: instead of using traditional websites that can be shut down by law enforcement, it stores its configuration on a blockchain (a permanent public database) and uses a privacy-focused messaging app called Session for negotiations. This makes it much harder to disrupt. The ransomware is designed to avoid encrypting files on computers in Russia and neighboring countries, suggesting the operators are based in that region. It also carefully manages computer resources during encryption to avoid triggering security alerts. Over 80 organizations have been listed as victims since mid-2025. Organizations should ensure their security tools are active, maintain offline backups, and train staff to recognize the initial access methods that ransomware groups use to get into networks.
Key Takeaways
- DeadLock is a Rust-based ransomware using decentralized infrastructure: Polygon blockchain smart contracts for configuration storage, Session messenger for encrypted victim communication, and Wasabi S3 for data leak hosting
- The encryptor implements resource-aware throttling that pauses file dispatch when memory usage exceeds 29% or CPU load exceeds 70%, maintaining system responsiveness to avoid behavioral detection
- DeadLock uses a hybrid cryptographic scheme combining Curve25519 ECDH key exchange with XChaCha20 stream cipher encryption, using NaCl crypto_box for key encapsulation with per-file ephemeral keypairs
- The malware implements language-based geofencing that exits without encrypting if the system language matches CIS or select Middle Eastern countries, and clears all Windows event logs via three complementary methods
- DeadLock has been deployed by affiliates of the Lynx and INC ransomware ecosystems and has published over 80 victims on its data leak site since July 2025
Affected Systems
- Windows (Vista and later for primary wallpaper path)
- Windows XP (alternate wallpaper path)
Vulnerabilities (CVEs)
None identified.
Attack Chain
- Initial Access: DeadLock ransomware deployed by affiliates of Lynx and INC ransomware ecosystems with elevated privileges
- Execution: Encryptor decrypts embedded XOR configuration, checks language geofencing against CIS countries, enables debug/restore/backup privileges, empties recycle bin, terminates security tools and services, clears all Windows event logs
- Impact: Encrypts files using hybrid Curve25519/XChaCha20 cryptography with resource-aware throttling (pauses if memory >29% or CPU >70%), appends .dlock extension, implements tiered partial encryption based on file size
- Post-encryption: Deploys text ransom notes (HOW_RECOVER) and HTML recovery chat (RECOVERY_CHAT), sets custom BMP wallpaper, self-deletes binary via batch script
- Extortion: HTML recovery chat retrieves proxy URL from Polygon blockchain smart contracts, routes encrypted messages through Session messenger network, provides browsable access to leaked data on Wasabi S3
Detection Availability
- YARA Rules: No
- Sigma Rules: No
- Snort/Suricata Rules: No
- KQL Queries: No
- Splunk SPL Queries: No
- EQL Queries: No
- Other Detection Logic: No
- Platforms: Microsoft Defender Antivirus, Microsoft Defender for Endpoint, Microsoft Defender for Cloud Apps
Microsoft Defender Antivirus detects this threat as Ransom:Win32/Deadlock.*. Microsoft Defender for Endpoint generates alerts for ransomware behavior, wallpaper changes, backup deletion, and data exfiltration. No custom YARA, Sigma, Snort, Suricata, KQL, SPL, or EQL rules are provided in the article.
Detection Engineering Assessment
| Dimension | Rating | Rationale |
|---|---|---|
| EDR Visibility | Medium | The malware terminates security tools (msmpeng, securityhealthservice, smartscreen) and clears all Windows event logs via three methods, reducing post-compromise EDR visibility. However, initial process execution, privilege escalation attempts, and file encryption activity would be visible before defenses are impaired. EDR in block mode can still remediate artifacts detected post-breach. |
| Network Visibility | Low | The recovery chat uses decentralized infrastructure including Polygon blockchain RPC endpoints and the Session onion-routed messenger network. These are legitimate public services that do not present traditional C2 communication patterns. DNS queries to public Polygon RPC endpoints may be observable but are indistinguishable from legitimate blockchain access. |
| Detection Difficulty | Hard | The malware clears event logs via three complementary methods, terminates security tools, uses resource-aware throttling to maintain normal-looking resource consumption, and routes communications through decentralized infrastructure that is resistant to traditional network monitoring. Detection relies on catching the encryptor before it completes defense evasion steps. |
Required Log Sources
- Sysmon Event ID 1 (Process Create)
- Sysmon Event ID 11 (File Create)
- Sysmon Event ID 13 (Registry Value Set)
- Sysmon Event ID 4 (Sysmon Service State Changed)
- Windows Security Event Log (before clearing occurs)
- EDR process telemetry
- DNS resolution logs
Hunting Hypotheses
| Hypothesis | Telemetry | ATT&CK Stage | FP Risk |
|---|---|---|---|
| Consider hunting for processes that enable multiple Windows privileges (SeDebugPrivilege, SeRestorePrivilege, SeBackupPrivilege, SeTakeOwnershipPrivilege) in rapid succession, as this is uncommon for most legitimate applications and indicates T1134 token manipulation. | EDR process telemetry, Windows Security Event Log Event ID 4673 (Sensitive Privilege Use) | Execution | Medium - Some administrative tools and backup software may enable multiple privileges legitimately. |
| Consider hunting for processes that enumerate and modify registry sub-keys under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels, setting Enabled to 0 and overwriting ChannelAccess values, as this indicates systematic event log disabling (T1562.002). | Sysmon Event ID 13 (Registry Value Set), EDR registry modification telemetry | Defense Evasion | Low - Legitimate software rarely disables all event log channels systemically. |
| Consider hunting for batch files created in temporary or user-writable directories that attempt to re-launch executables with elevation via the RunAs verb, as DeadLock uses this technique for privilege escalation with randomly named .cmd files. | Sysmon Event ID 1 (Process Create) with parent-child relationship analysis, Sysmon Event ID 11 (File Create) for .cmd files | Privilege Escalation | Medium - Legitimate software installers may use similar elevation techniques. |
| Consider hunting for rapid file extension changes to .dlock across multiple directories, as this is the DeadLock encrypted file extension and would appear during the encryption phase. | EDR file system telemetry, Sysmon Event ID 11 (File Create) for .dlock files | Impact | Low - The .dlock extension is specific to DeadLock ransomware. |
| Consider hunting for processes making eth_call JSON-RPC requests to public Polygon RPC endpoints, which may indicate the DeadLock HTML recovery chat application is being used for ransom negotiation. | Network proxy logs, DNS resolution logs, EDR network telemetry | Post-encryption | High - Legitimate blockchain applications and developers also query Polygon RPC endpoints. |
Control Gaps
- Traditional network-based C2 detection would not identify blockchain-based configuration retrieval via public Polygon RPC endpoints
- Event log clearing eliminates post-compromise forensic evidence from Windows Event Logs, requiring EDR or Sysmon telemetry that may be forwarded off-host
- Security tool termination (windefend, msmpeng, smartscreen) reduces real-time detection capability if tamper protection is not enabled
- Decentralized Session messenger communication bypasses traditional network communication monitoring and domain-based blocking
- Resource-aware throttling maintains normal-looking resource consumption patterns, reducing the likelihood of behavioral detection based on CPU or memory spikes
Key Behavioral Indicators
- Files with .dlock extension appearing on disk in multiple directories
- Creation of registry key HKLM\SOFTWARE\Classes.dlock\DefaultIcon
- Registry modifications under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels setting Enabled to 0
- Processes enabling SeDebugPrivilege, SeRestorePrivilege, SeBackupPrivilege, SeTakeOwnershipPrivilege simultaneously
- Randomly named .cmd files (8 uppercase characters) created and executed via ShellExecuteW with runas verb
- Custom .ico file written to C:\ProgramData\ directory
- BMP wallpaper file written to C:\ProgramData\ and registered in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Wallpaper
- Multiple Windows services set to DISABLED start type in rapid succession including windefend, vss, swprv, wbengine
- Mass process termination targeting security tools, backup applications, and remote access tools
- Recycle bin emptied silently on all drives via SHQueryRecycleBin and SHEmptyRecycleBin APIs
False Positive Assessment
Low - The combination of .dlock file extension creation, mass service disabling, event log clearing, and blockchain-based recovery chat is highly specific to DeadLock ransomware. Individual behaviors such as service stopping or process termination may have false positives, but the aggregate pattern is distinctive.
Recommendations
Immediate Mitigation
- Verify against your organization's incident response runbook and team escalation paths before acting. Consider enabling tamper protection on endpoint security products to prevent the malware from disabling Windows Defender and other security services.
- If your EDR supports host isolation, consider isolating any endpoints showing rapid .dlock file creation or mass service disabling to prevent lateral spread.
- Evaluate whether Controlled Folder Access (CFA) or equivalent endpoint data protection features can be enabled in audit mode to assess impact before enforcing blocking mode on sensitive assets.
Infrastructure Hardening
- Consider implementing network segmentation to limit the blast radius of ransomware encryption, particularly separating critical servers and backup systems from general workstation networks.
- Evaluate whether your organization's DNS filtering can alert on or block queries to public Polygon RPC endpoints, though this may impact legitimate blockchain application usage.
- Consider maintaining immutable or offline backups that cannot be modified or deleted by endpoint processes, as DeadLock targets VSS, backup services, and recycle bins.
- If supported by your SIEM, consider forwarding Windows Event Logs and Sysmon telemetry to a centralized, append-only log store to preserve forensic evidence even if the malware clears local logs.
User Protection
- Consider enabling EDR in block mode so that malicious artifacts are remediated even when the primary antivirus is in passive mode or has been disabled by the attacker.
- Evaluate whether automatic attack disruption or equivalent automated containment features are available in your XDR platform to contain attacks in progress and limit impact.
- Consider enabling attack surface reduction rules or equivalent endpoint hardening policies, particularly rules that block process creations from PSExec and WMI commands, and rules that block untrusted executables.
Security Awareness
- Consider incorporating training on the initial access vectors used by Lynx and INC ransomware affiliates into existing security awareness programs, as DeadLock is deployed by these affiliate ecosystems.
- If applicable, remind users not to approve unexpected UAC elevation prompts, as DeadLock attempts privilege elevation via randomly named .cmd files that trigger UAC consent dialogs.
- Consider educating incident response teams on the decentralized infrastructure model used by DeadLock, including Polygon blockchain smart contracts and Session messenger, as traditional takedown approaches may be less effective against this architecture.
MITRE ATT&CK Mapping
Execution
Privilege Escalation
Stealth
Additional IOCs
- Registry Keys:
HKLM\SOFTWARE\Classes\.dlock\DefaultIcon- Registry key created by the malware to associate a custom .ico file with the .dlock encrypted file extension. The Default value is set to the path of the dropped icon file.HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Wallpaper- Registry key set by the malware to persist the custom ransom BMP wallpaper as the desktop background.HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels- Registry path where the malware enumerates all sub-keys to disable event logging. For each channel, it sets Enabled to 0 and overwrites ChannelAccess with a restrictive SDDL string.
- Command Lines:
- Purpose: Privilege elevation via UAC consent prompt using a randomly named .cmd file (8 uppercase characters) executed with ShellExecuteW and the RunAs verb. Retries up to 10 times if the user denies the prompt. | Tools:
cmd.exe,ShellExecuteW| Stage: Pre-encryption |ShellExecuteW(..., "runas", <random>.cmd, ...) - Purpose: Self-deletion of the malware binary after encryption completes. The batch script loops until the binary is deleted, then removes itself. | Tools:
cmd.exe| Stage: Post-encryption cleanup |if exist <malware_path> (del <malware_path>) else (goto e)
- Purpose: Privilege elevation via UAC consent prompt using a randomly named .cmd file (8 uppercase characters) executed with ShellExecuteW and the RunAs verb. Retries up to 10 times if the user denies the prompt. | Tools:
- registry_keyHKLM\SOFTWARE\Classes\.dlock\DefaultIconRegistry key created by the malware to associate a custom .ico file with the .dlock encrypted file extension. The Default value is set to the path of the dropped icon file.
- registry_keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\WallpaperRegistry key set by the malware to persist the custom ransom BMP wallpaper as the desktop background.
- registry_keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\ChannelsRegistry path where the malware enumerates all sub-keys to disable event logging. For each channel, it sets Enabled to 0 and overwrites ChannelAccess with a restrictive SDDL string.
- urlhxxps://deadlockblog[.]great-site[.]net/DeadLock data leak blog site where compromised organizations are published as part of double extortion tactics.