SnakeKeylogger
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingKeyloggingExfiltrationPersistenceDefense evasionProcess injectionReconnaissance
- Delivery
- PhishingMalspamLure
- Platforms
- Windows
SnakeKeylogger, also known as 404 Keylogger, is a .NET-based information stealer targeting Windows systems, active since at least late 2020. It steals saved credentials and other browser data, collects system information, and records keystrokes. Documented variants additionally capture clipboard contents and screenshots and steal email-client credentials, FTP credentials, Wi-Fi passwords, payment-card information, and Discord tokens. Stolen information is commonly exfiltrated through SMTP or the Telegram Bot API, including through compromised legitimate mail servers. VIPKeylogger is a related variant marketed alongside SnakeKeylogger.
SnakeKeylogger is distributed through phishing and spam campaigns using quotation requests, project proposals, payment confirmations, and other business-themed lures. Infection chains have used malicious Office documents and compressed JavaScript or VBScript attachments, followed by obfuscated PowerShell and .NET loading stages. These chains employ encryption, encoded payloads, steganography, and in-memory execution to hinder detection. Associated loaders use process hollowing to execute the stealer within legitimate Windows processes, and some campaigns establish persistence through scheduled tasks. The malware also performs public-IP and geolocation discovery. SnakeKeylogger has been delivered by PureCrypter and deployed by the financially motivated TA558 group in its SteganoAmor campaign, which targeted organizations across multiple countries and economic sectors.
Associated vulnerabilities
2 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
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Finally, SnakeKeylogger forwards the information it stole to the compromised legitimate SMTP server.
Techniques & procedures
46 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
MITRE ATT&CK Mapping Tactic Technique ID Implementation Resource Development Upload Malware T1608.001 Internet Archive and ByetHost payload staging
Initial Access
2 techniques
Initial Access
ASEC recently confirmed that phishing emails disguised as project proposals are being circulated. The body of the email pretends to request that the proposal and confirmed delivery schedule be submitted as soon as possible, and prompts the recipient to download the attached compressed file.
The initial delivery vector is a DHL-themed phishing email carrying a VBScript attachment.
Execution
8 techniques
Execution
Execution is handled through WMI rather than direct process creation ... infare.Get("Win32_Process").Create(avaram, Null, circumsail, mayas)
Kill Chain Summary ... Persist: VBS startup + Scheduled Task
When executed, the JavaScript malware executes PowerShell commands...
When executed, the JavaScript malware executes PowerShell commands as shown in [Figure 4].
%11%\cMd.exe /C morE /E +29 %TEmP%\VN.inf > %TEmP%\cvr.tmp
the first check we need to observe when it comes to office files is the existence of Macros which are used by the TA to execute VBA commands | FlkMT is responsible for building the payload which will be written in TEMP Directory using WHTLE function
When executed, the JavaScript malware executes PowerShell commands... The PowerShell script receives encrypted SnakeKeylogger data as an argument from within the JavaScript file
When a user downloads and decompresses the attached compressed file, they will find JS malware disguised as a proposal.
Persistence
4 techniques
Persistence
Kill Chain Summary ... Persist: VBS startup + Scheduled Task
Defense Evasion Modify Registry T1112 Assessed: stage 3 persistence via registry
Kill Chain Summary ... Persist: VBS startup + Scheduled Task
Persistence Boot or Logon Autostart Execution: Registry Run Keys T1547.001 Assessed: stage 3 persistence
Privilege Escalation
4 techniques
Privilege Escalation
Kill Chain Summary ... Persist: VBS startup + Scheduled Task
"It performs process hollowing into Aspnet_compiler.exe -- a legitimate .NET Framework tool"
Kill Chain Summary ... Persist: VBS startup + Scheduled Task
Persistence Boot or Logon Autostart Execution: Registry Run Keys T1547.001 Assessed: stage 3 persistence
Stealth
13 techniques
Stealth
The PowerShell script receives encrypted SnakeKeylogger data as an argument from within the JavaScript file, decrypts it, and executes it in memory without saving it to disk. [Figure 3] Part of the obfuscated JavaScript malware [Figure 4] Part of the obfuscated PowerShell script
The extracted assembly ... includes anti-analysis checks ... An encrypted configuration blob in the User Strings heap contains the Telegram bot token and SMTP credentials -- protected by Babel's obfuscation layer
The decoded PowerShell downloads a JPEG image from Cloudinary CDN ... with 1.55 MB of Base64-encoded .NET assembly appended after the image data.
Defense Evasion Obfuscated Files or Information: Command Obfuscation T1027.010 Character-by-character URL concatenation
Defense Evasion Masquerading T1036 Payloads disguised as PNG image files
"It performs process hollowing into Aspnet_compiler.exe -- a legitimate .NET Framework tool"
then it will erase his row existence as the process has been executed and delete the 3 dropped files (VN.inf , cvr.tmp, and xhd.jpg)
MITRE ATT&CK Mapping Tactic Technique ID Implementation Defense Evasion Deobfuscate/Decode Files T1140 Multi-layer base64 + XOR decryption at runtime
ruNDLl32 %TEmP%\xhd.jpg,main here the TA uses Rundll32 which is used to run a DLL and execute xhd.jpg and the export function here is main | Snake uses this method to run the Inf file under a legitimate container or process... it calls a function called tAcKs() and this function is defined as LunachINFSectionW from Advpack.dll
Defense Evasion Execution Guardrails T1480 Timer ensures sandbox timeout before payload
Defense Evasion Virtualization/Sandbox Evasion: Time Based Evasion T1497.003 2.2-second timer sleep
The PowerShell script receives encrypted SnakeKeylogger data as an argument from within the JavaScript file, decrypts it, and executes it in memory without saving it to disk.
It includes anti-analysis checks for dnspy, vsdbg, de4dot, plus CheckRemoteDebuggerPresent, IsDebuggerPresent, and NtQueryInformationProcess.
Defense Impairment
1 technique
Defense Impairment
Defense Evasion Modify Registry T1112 Assessed: stage 3 persistence via registry
Credential Access
6 techniques
Credential Access
A keylogger is a type of software that monitors and records the keystrokes entered on a computer... they are used to steal sensitive information such as authentication credentials, credit card details, and various confidential data entered through the keyboard.
MITRE ATT&CK Mapping Tactic Technique ID Implementation Credential Access Steal Application Access Token T1528 Discord token extraction from LevelDB
This type of malware steals all kinds of data from the system it infects, including credentials (passwords and cookies) for VPNs, RDP, business services, banking and social media, stored by a variety of apps (including popular browsers like Chrome and Firefox).
Útočník dokonca môže heslá extrahovať na ďalšie použitie.
MITRE ATT&CK Mapping Tactic Technique ID Implementation Credential Access Email Credentials T1555.005 Outlook, Foxmail, Thunderbird credential theft
Other kinds of highly sensitive data that infostealers often collect are screenshots, keylogs, clipboard, cryptocurrency wallets and autofill data...
Discovery
5 techniques
Discovery
VIPKeylogger ... conducts victim recon via checkip.dyndns.org with a spoofed MSIE 6.0 User-Agent
Discovery System Information Discovery T1082 PC name, date/time collection
Defense Evasion Virtualization/Sandbox Evasion: Time Based Evasion T1497.003 2.2-second timer sleep
Discovery System Location Discovery T1614 Country via reallyfreegeoip.org
It includes anti-analysis checks for dnspy, vsdbg, de4dot, plus CheckRemoteDebuggerPresent, IsDebuggerPresent, and NtQueryInformationProcess.
Collection
4 techniques
Collection
SnakeKeylogger—an Infostealer—collects various types of information from the infected system, such as web browser data, system information, and keylogging data
A keylogger is a type of software that monitors and records the keystrokes entered on a computer... they are used to steal sensitive information such as authentication credentials, credit card details, and various confidential data entered through the keyboard.
Other kinds of highly sensitive data that infostealers often collect are screenshots, keylogs, clipboard, cryptocurrency wallets and autofill data...
Other kinds of highly sensitive data that infostealers often collect are screenshots, keylogs, clipboard, cryptocurrency wallets and autofill data...
Command and Control
4 techniques
Command and Control
Command and Control Application Layer Protocol: Web Protocols T1071.001 HTTP GET to C2 on port 80
Command and Control Web Service T1102 Cloudinary/Internet Archive for staging
the dropped file is a 32-bit Dll, and exploring its string I found some interesting ones, that clarify this payload as a Downloader. so we need to locate the C2 which will be used to download the next stage
MITRE ATT&CK Mapping Tactic Technique ID Implementation Command and Control Dynamic Resolution: DNS T1568.002 DuckDNS, Dynu, DNS.Army DDNS
Exfiltration
3 techniques
Exfiltration
Exfiltration Exfiltration Over C2 Channel T1041 SMTP/HTTP exfiltration
Like the average Infostealer, DarkCloud steals the account credentials of users that have been saved on web browsers, FTP, and email clients. It is also similar to other Infostealers like AgentTesla and SnakeKeylogger as it uses SMTP or the Telegram API to send the collected information to the C&C server.
This blog post focuses on analyzing logs exfiltrated by infostealers, specifically to Telegram, through their Bot API.
Observables
63 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.