VERMIN
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- PhishingSpearphishingLure
- Platforms
- Windows
Vermin is a custom .NET remote access backdoor used in cyber-espionage operations, notably against Ukrainian government institutions. It has been active since at least mid-2016 and has been associated with campaigns that also deployed Quasar RAT and Sobaken RAT, with shared infrastructure observed across those toolsets. Vermin is designed for long-term surveillance and data theft on compromised Windows systems.
The malware supports a broad set of post-compromise capabilities, including process and task enumeration, screen capture, keylogging, clipboard collection, username and local IP address discovery, file deletion, and checks for installed antivirus software through WMI. Optional components extend functionality to audio recording and password theft. Collected data may be written to local files and encrypted with 3DES prior to exfiltration. Vermin also uses protected or obfuscated code and decrypts embedded code, strings, and commands at runtime to hinder analysis.
Observed delivery in espionage campaigns relied on social engineering via malicious email attachments, including disguised archive-style lures and crafted Microsoft Word documents exploiting CVE-2017-0199. Infections were installed by a dropper that placed the payload in the user application-data area and established persistence through a scheduled task executed at regular intervals. The malware family also incorporated anti-analysis and targeting controls, including checks for Russian or Ukrainian keyboard layouts, geofencing logic, sandbox-avoidance heuristics, and refusal to run under usernames associated with automated analysis environments.
Vermin is best characterized as an espionage-oriented RAT/backdoor focused on surveillance, credential collection, and exfiltration from targeted organizations.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
The analyzed campaigns have been based on basic social engineering, but also using several tricks to better lure the victims into downloading and executing the malware, served as email attachments.
Execution
3 techniques
Execution
Then, it creates a scheduled task that runs the payload every 10 minutes to ensure its persistence.
a dropper drops a malicious payload file (Vermin, Quasar or Sobaken malware) into the %APPDATA% folder
and a combination of a specially crafted Word document carrying a CVE-2017-0199 exploit
Persistence
1 technique
Persistence
Then, it creates a scheduled task that runs the payload every 10 minutes to ensure its persistence.
Privilege Escalation
1 technique
Privilege Escalation
Then, it creates a scheduled task that runs the payload every 10 minutes to ensure its persistence.
Stealth
9 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
[VERMIN](https://attack.mitre.org/software/S0257) is initially packed.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) is obfuscated using the obfuscation tool called ConfuserEx.(Citation: Unit 42 VERMIN Jan 2018)
Among these tricks are using right-to-left override to obscure the attachments’ real extension | Among these tricks are using right-to-left override to obscure the attachments’ real extension, email attachments disguised as RAR self-extracting archives
[VERMIN](https://attack.mitre.org/software/S0257) can delete files on the victim’s machine.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) decrypts code, strings, and commands to use once it's on the victim's machine.(Citation: Unit 42 VERMIN Jan 2018)
To make sure that the malware runs on targeted machines only and avoids automated analysis systems and sandboxes, the attackers have deployed several measures.
The malware terminates if neither Russian or Ukrainian keyboard layouts are installed, and also if the target system’s IP address is located outside these two countries
To determine whether it is run in an automated analysis system, it tries to reach a randomly generated website name/URL and checks if the connection to the URL fails, as would be expected on a real system.
Credential Access
2 techniques
Credential Access
[VERMIN](https://attack.mitre.org/software/S0257) collects keystrokes from the victim machine.(Citation: Unit 42 VERMIN Jan 2018)
including audio recording, keylogging and password stealing.
Discovery
8 techniques
Discovery
[VERMIN](https://attack.mitre.org/software/S0257) gathers the local IP address.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) gathers the username from the victim’s machine.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) can get a list of the processes and running tasks on the system.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) collects the OS name, machine name, and architecture information.(Citation: Unit 42 VERMIN Jan 2018)
To make sure that the malware runs on targeted machines only and avoids automated analysis systems and sandboxes, the attackers have deployed several measures.
The malware terminates if neither Russian or Ukrainian keyboard layouts are installed, and also if the target system’s IP address is located outside these two countries
To determine whether it is run in an automated analysis system, it tries to reach a randomly generated website name/URL and checks if the connection to the URL fails, as would be expected on a real system.
[VERMIN](https://attack.mitre.org/software/S0257) uses WMI to check for anti-virus software installed on the system.(Citation: Unit 42 VERMIN Jan 2018)
Collection
7 techniques
Collection
Confucius has used a file stealer to steal documents and images with the following extensions: txt, pdf, png, jpg, doc, xls, xlm, odp, ods, odt, rtf, ppt, xlsx, xlsm, docx, pptx, and jpeg.
[VERMIN](https://attack.mitre.org/software/S0257) collects keystrokes from the victim machine.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) can perform screen captures of the victim’s machine.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) collects data stored in the clipboard.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) saves each collected file with the automatically generated format {0:dd-MM-yyyy}.txt .(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) can perform audio capture.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) encrypts the collected files using 3-DES.(Citation: Unit 42 VERMIN Jan 2018)
Command and Control
3 techniques
Command and Control
they share parts of their infrastructure and connect to the same C&C servers.
[VERMIN](https://attack.mitre.org/software/S0257) uses HTTP for C2 communications.(Citation: Unit 42 VERMIN Jan 2018)
[VERMIN](https://attack.mitre.org/software/S0257) can download and upload files to the victim's machine.(Citation: Unit 42 VERMIN Jan 2018)
Recent activity
40 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.