Diavol is a Windows ransomware family associated with the TrickBot Group, also known as Wizard Spider. Publicly identified in July 2021, it was observed alongside Conti during a June 2021 intrusion. Its technical links to the TrickBot ecosystem include similar victim-identification formats, while shared characteristics with Conti include command-line options and asynchronous encryption-related operations. It targets files on local drives, network shares, and SMB-accessible resources to extort ransom payments.
Diavol collects host information, including the computer name, username, Windows version, and network addresses, and communicates with command-and-control infrastructure using HTTP GET and POST requests. It can retrieve updated encryption keys, targeting rules, process and service lists, and ransom-note content. Network discovery capabilities include identifying remote hosts through the ARP table and enumerating available shares. Before encryption, it can terminate selected processes and stop services to release files for modification.
Encryption implementations vary between versions. Analyzed variants use RSA together with block-based XOR encoding, partially encrypt files, append encryption metadata, and deploy ransom notes. Some implementations reuse a per-infection XOR key across files, creating weaknesses that can permit partial or substantial data recovery under suitable conditions. Diavol inhibits recovery by deleting Volume Shadow Copies through Windows utilities or backup-service interfaces. It also uses executable code stored in image resources to hinder analysis, can change the desktop wallpaper, and can delete its own executable after execution.
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
This threat actor quickly achieved notoriety through their ties with ransomware groups such as “Conti” and “Diavol.”
The FBI has formally linked the Diavol ransomware operation to the TrickBot Group... "The FBI first learned of Diavol ransomware in October 2021."
The FBI has formally linked the Diavol ransomware operation to the TrickBot Group... "The FBI first learned of Diavol ransomware in October 2021."
...Stern has transacted with addresses linked to strains like Quantum, Karakurt, Diavol, and Royal in 2022 following Conti’s demise.
29 distinct techniques documented for this family, organized by ATT&CK tactic.
With that, it calls ShellExecuteW to execute the command “vssadmin Delete Shadows /All /Quiet >> NULL” to delete all shadow copies on the system.
similarities were discovered, such as their use of asynchronous I/O operations for file encryption queuing and almost identical command-line parameters for the same functionality.
[Diavol](https://attack.mitre.org/software/S0659) has used several API calls like `GetLogicalDriveStrings`, `SleepEx`, `SystemParametersInfoAPI`, `CryptEncrypt`, and others to execute parts of its attack.(Citation: Fortinet Diavol July 2021)
it calls RegOpenKeyExW to retrieve the registry key using the sub key “Control Panel\Desktop”. With the registry key, the malware calls RegQueryValueExW... and RegSetValueExW to set that path as the value of “WallpaperOld”.
[Diavol](https://attack.mitre.org/software/S0659) has Base64 encoded the RSA public key used for encrypting files.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) has obfuscated its main code routines within bitmap images as part of its anti-analysis techniques.(Citation: Fortinet Diavol July 2021)
The malware loads a “JPEG” with the same name in the resource section, extracts a list of imported functions with their corresponding DLL, and manually calls LoadLibraryA and GetProcAddress to resolve it for the shellcode.
After finishing file encryption and changing the wallpaper, the malware deletes its own executable... execute the parameter above to delete its own executable. | If the filename is in the configuration’s file to wipe list, the malware calls DeleteFileW to delete it.
For anti-analysis, DIAVOL loads shellcode containing its core functions into memory and executes it dynamically, which makes static analysis a bit harder.
it calls RegOpenKeyExW to retrieve the registry key using the sub key “Control Panel\Desktop”. With the registry key, the malware calls RegQueryValueExW... and RegSetValueExW to set that path as the value of “WallpaperOld”.
[Diavol](https://attack.mitre.org/software/S0659) can attempt to stop security software.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) can enumerate victims' local and external IPs when registering with C2.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) can use the ARP table to find remote hosts to scan.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) can collect the username from a compromised host.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) has used `CreateToolhelp32Snapshot`, `Process32First`, and `Process32Next` API calls to enumerate the running processes in the system.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) can collect the computer name and OS version from the system.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) has a command to traverse the files and directories in a given path.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) has a `ENMDSKS` command to enumerates available network shares.(Citation: Fortinet Diavol July 2021)
For anti-analysis, DIAVOL loads shellcode containing its core functions into memory and executes it dynamically, which makes static analysis a bit harder.
Another clue pointing to the Russian threat actors is code for checking the language on the compromised system to filter out victims in Russia or the Commonwealth of Independent States (CIS) region.
[Diavol](https://attack.mitre.org/software/S0659) can spread throughout a network via SMB prior to encryption.(Citation: Fortinet Diavol July 2021)
The researchers also note that the HTTP headers for the command and control (C2) server communication were “set to prefer Russian language content,” also favored by TrickBot operators.
[Diavol](https://attack.mitre.org/software/S0659) has used HTTP GET and POST requests for C2.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) can receive configuration updates and additional payloads including wscpy.exe from C2.(Citation: Fortinet Diavol July 2021)
Your company is a victim of double extortion ransomware attack... not only your data is encrypted, but it's also have been exfiltrated from your network.
[Diavol](https://attack.mitre.org/software/S0659) can delete specified files from a targeted system.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) has encrypted files using an RSA key though the `CryptEncrypt` API and has appended filenames with ".lock64". (Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) will terminate services using the Service Control Manager (SCM) API.(Citation: Fortinet Diavol July 2021)
[Diavol](https://attack.mitre.org/software/S0659) can delete shadow copies using the `IVssBackupComponents` COM object to call the `DeleteSnapshots` method.(Citation: Fortinet Diavol July 2021)
After encryption, [Diavol](https://attack.mitre.org/software/S0659) will capture the desktop background window, set the background color to black, and change the desktop wallpaper to a newly created bitmap image with the text “All your files are encrypted! For more information see “README-FOR-DECRYPT.txt".(Citation: Fortinet Diavol July 2021)
"Because ransomware payments are demanded in cryptocurrency – usually Bitcoin..." and "strains related to Trickbot have extorted at least $724 million worth of cryptocurrency"
23 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
48 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.