DevilsTongue
- Type
- Spyware
- Capabilities
- Credential theftSession hijackingExfiltrationPersistencePrivilege escalationDefense evasionByovd
- Delivery
- SpearphishingWatering holeDrive byMalvertising
- Platforms
- Windows
DevilsTongue is modular Windows spyware developed by the Israeli commercial surveillance vendor Candiru, whose activity Microsoft tracks as SOURGUM. Written in C and C++, it is multithreaded and includes user-mode and kernel-mode components. Government customers use the platform for targeted surveillance. Documented victims include journalists, human rights defenders, politicians, academics, embassy personnel, and dissidents across multiple countries, with a substantial concentration of victims identified in 2021 in Palestinian territories.
DevilsTongue collects files, steals credentials from LSASS and web browsers, and decrypts and exfiltrates Signal desktop conversations. It also steals browser cookies to impersonate victims on online services and can send messages through some compromised accounts. Additional functionality includes registry queries, WMI command execution, and access to SQLite databases. Persistence relies on COM hijacking. Its evasion mechanisms include encrypted payloads and configuration data, in-memory payload execution, removal of identifying build metadata, and per-installation file variation. It abuses a legitimate signed third-party driver for kernel-memory access and API-call proxying.
Deployment uses browser and Windows exploit chains, including zero-day vulnerabilities. Windows vulnerabilities CVE-2021-31979 and CVE-2021-33771 enabled browser-sandbox escape, privilege escalation, and kernel code execution before being patched in July 2021. Documented delivery methods include targeted malicious links sent through messaging applications, weaponized Office documents, and compromised websites used as watering holes. Later Candiru surveillance campaigns also used targeted online advertisements for zero-click spyware delivery.
Associated vulnerabilities
8 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“DevilsTongue, the name given by Microsoft to the Windows-based spyware developed by Candiru, is a complex, modular, multi-threaded malware written in C and C++ with a wide range of capabilities.”
Candiru uses a chain of vulnerabilities in web browsers and Windows to install its DevilsTongue modular multi-threaded backdoor.
Candiru uses a chain of vulnerabilities in web browsers and Windows to install its DevilsTongue modular multi-threaded backdoor.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
4 techniques
Resource Development
“Resource Development: Acquire Infrastructure: Domains — T1583.001”
“The cluster manages its infrastructure through a combination of direct access ... and administration via a set of virtual private servers (VPSes).”
“Resource Development: Acquire Infrastructure: Server — T1583.004”
"The operators probably bought access to Candiru implants." and "...redirecting to exploits and the DevilsTongue implant."
Initial Access
4 techniques
Initial Access
"...spyware can be deployed through multiple vectors, including... physical access."
By examining how Sourgum’s customers were delivering DevilsTongue to victim computers, we saw they were doing so through a chain of exploits that impacted popular browsers and our Windows operating system.
"...campaign targeting Armenian users with malicious Office documents that loaded web content through Internet Explorer... embedding a remote ActiveX object... or... via VBA macros..."
“Candiru has used both actor-controlled links, such as spearphishing emails and strategic website compromises known as watering hole attacks, to deliver its spyware.”
Execution
3 techniques
Execution
DevilsTongue has standard malware capabilities, including file collection, registry querying, running WMI commands, and querying SQLite databases.
SOURGUM appears to use a chain of browser and Windows exploits, including 0-days, to install malware on victim boxes.
“These exploits were distributed via single-use links sent to specific targets...”
Persistence
2 techniques
Persistence
"...spyware can be deployed through multiple vectors, including... physical access."
"It maintains persistence via COM hijacking by overwriting a legitimate COM class registry key’s DLL path with a first-stage DLL..."
Privilege Escalation
3 techniques
Privilege Escalation
These threat actors have also weaponised Windows 0day vulnerabilities, tracked as CVE-2021-31979 and CVE-2021-33771, to support delivery. Successful exploitation led to privilege escalation, giving an attacker the ability to escape browser sandboxes and gain kernel code execution.
"...spyware can be deployed through multiple vectors, including... physical access."
"It maintains persistence via COM hijacking by overwriting a legitimate COM class registry key’s DLL path with a first-stage DLL..."
Stealth
7 techniques
Stealth
For files on disk, PDB paths and PE timestamps are scrubbed, strings and configs are encrypted, and each file has a unique hash.
When the malware is installed, a first-stage ‘hijack’ malware DLL is dropped in a subfolder of C:\Windows\system32\IME\ ; the folders and names of the hijack DLLs blend with legitimate names in the \IME\ directories.
"...spyware can be deployed through multiple vectors, including... physical access."
The main functionality resides in DLLs that are encrypted on disk and only decrypted in memory, making detection more difficult.
The driver’s description is “Physical Memory Access Driver,” and it appears to offer a “by-design” kernel read/write capability. This appears to be abused by DevilsTongue to proxy certain API calls via the kernel to hinder detection
Alongside DevilsTongue a third-party signed driver is dropped to C:\Windows\system32\drivers\physmem.sys .
"All additional payloads are decrypted and executed only in memory..."
Credential Access
6 techniques
Credential Access
It’s capable of stealing victim credentials from both LSASS and from browsers, such as Chrome and Firefox.
"...allowing the malware to steal credentials from LSASS and browsers..."
It can retrieve cookies from a variety of web browsers. These stolen cookies can later be used by the attacker to sign in as the victim to websites to enable further information gathering.
It’s capable of stealing victim credentials from both LSASS and from browsers, such as Chrome and Firefox.
This custom malware is written and can steal credentials from web browsers, such as Chrome or Firefox.
"...spyware can be deployed through multiple vectors, including malicious links, weaponized files, man-in-the-middle (MitM) attacks, and physical access."
Discovery
1 technique
Discovery
DevilsTongue has standard malware capabilities, including file collection, registry querying, running WMI commands, and querying SQLite databases.
Collection
2 techniques
Collection
DevilsTongue has standard malware capabilities, including file collection, registry querying, running WMI commands, and querying SQLite databases.
"...spyware can be deployed through multiple vectors, including malicious links, weaponized files, man-in-the-middle (MitM) attacks, and physical access."
Command and Control
1 technique
Command and Control
"...victim-facing components likely used for deploying and controlling Candiru’s DevilsTongue spyware, as well as higher-tier operator infrastructure... others use intermediaries or the Tor network."
Exfiltration
1 technique
Exfiltration
It also decrypts and exfiltrates conversations from Signal, the E2EE messaging app.
Observables
247 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.