Diavol
- Type
- Ransomware
- Capabilities
- ExtortionReconnaissanceScanningDefense evasion
- Platforms
- Windows
Diavol is a Windows ransomware family associated with the TrickBot Group, also known as Wizard Spider. First publicly reported in July 2021 following a June 2021 attack, it was initially observed deployed alongside Conti ransomware. The FBI subsequently formally linked Diavol to TrickBot Group developers. Diavol has also been delivered by the BumbleBee loader.
Diavol targets files on local drives and network shares, including SMB resources. It collects host and user information, generates victim identifiers, and registers compromised systems with command-and-control infrastructure. It can retrieve updated encryption keys, targeting rules, service and process lists, and ransom-note content. Its discovery capabilities include enumerating network shares, collecting local and external IP information, and using the ARP table to identify remote hosts for scanning.
The ransomware terminates selected processes and stops services before encrypting files. Encryption implementations vary: analyzed variants use RSA through Windows cryptographic APIs, while others combine RSA with a randomly generated XOR key reused across files. Weaknesses in some XOR-based variants permit substantial file recovery through known-plaintext techniques. Diavol supports partial-file encryption and configurable targeting and exclusion rules, leaves ransom notes, and changes the desktop wallpaper.
Diavol inhibits recovery by deleting Windows Volume Shadow Copies through native utilities or direct Volume Shadow Copy Service interfaces. It also uses resource-embedded code and shellcode-based execution to impede analysis and can delete its own executable after running. Its primary purpose is file-encryption extortion; data theft observed during associated intrusions does not establish a native exfiltration capability.
Associated threat actors
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."
...Stern has transacted with addresses linked to strains like Quantum, Karakurt, Diavol, and Royal in 2022 following Conti’s demise.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
3 techniques
Execution
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)
Persistence
1 technique
Persistence
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”.
Stealth
5 techniques
Stealth
[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.
Defense Impairment
2 techniques
Defense Impairment
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)
Discovery
9 techniques
Discovery
[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.
Lateral Movement
1 technique
Lateral Movement
[Diavol](https://attack.mitre.org/software/S0659) can spread throughout a network via SMB prior to encryption.(Citation: Fortinet Diavol July 2021)
Command and Control
3 techniques
Command and Control
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)
Exfiltration
1 technique
Exfiltration
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.
Impact
6 techniques
Impact
[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"
Observables
23 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.