Helminth
- Type
- Backdoor
- Capabilities
- Initial accessPost exploitationKeyloggingExfiltrationPersistenceReconnaissanceDefense evasion
- Delivery
- PhishingSpearphishingLureLanding page
- Platforms
- Windows
Helminth is a Windows backdoor associated with OilRig, also known as APT34 and Helix Kitten, an Iranian-linked cyberespionage group. It provides an initial foothold on compromised systems, allowing operators to execute commands, collect information, and exfiltrate data. Documented deployments include attacks against Saudi Arabian financial and technology organizations and phishing campaigns targeting government personnel. Helminth exists in two principal forms: a script-based implementation using VBScript and PowerShell, and a standalone Windows executable. The executable variant additionally captures keystrokes and clipboard contents for exfiltration.
Helminth is delivered through malicious Excel macros in Clayslide documents and through executable installers, including the HerHer dropper. Distribution campaigns have used spear-phishing emails, technical-support and job-offer lures, and fake university-themed websites offering downloadable documents. Its command-and-control channels use HTTP and DNS tunneling to receive tasking and return collected data. The script implementation can download and execute batch scripts and upload their output; its DNS component reconstructs scripts from DNS responses. HTTP communications can carry Base64-encoded data in the Cookie header, and some variants encrypt HTTP traffic with RC4. DNS communications encode outbound data as hexadecimal without encryption. Helminth performs process discovery using the Windows Tasklist utility and maintains persistence through scheduled tasks or startup shortcuts.
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.
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.
(Citation: Palo Alto OilRig May 2016)(Citation: FireEye APT34 Webinar Dec 2017)(Citation: Crowdstrike Helix Kitten Nov 2018)
Techniques & procedures
44 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
The OilRig hackers pushed those espionage tools over two fake Oxford University pages... Both encouraged visitors to download documents... Once clicked, the crew's malware, named Helminth, would run.
In recent OilRig attacks, the threat actors purport to be legitimate service providers offering service and technical troubleshooting as a social engineering theme in their spear-phishing attacks. Earlier OilRig attacks appear to use fake job offers as a social engineering theme.
Unit 42 began researching attacks that used spear-phishing emails with attachments, specifically malicious Excel spreadsheets sent to financial organizations within Saudi Arabia.
Execution
8 techniques
Execution
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Helminth](https://attack.mitre.org/software/S0170) has used a scheduled task for persistence.(Citation: ClearSky OilRig Jan 2017)
The goal of the script is to: Download bat script Execute it and upload the results back to the C&C
One version of [Helminth](https://attack.mitre.org/software/S0170) uses a PowerShell script.(Citation: Palo Alto OilRig May 2016)
[Helminth](https://attack.mitre.org/software/S0170) can provide a remote shell. One version of [Helminth](https://attack.mitre.org/software/S0170) uses batch scripting.(Citation: Palo Alto OilRig May 2016)
One version of [Helminth](https://attack.mitre.org/software/S0170) consists of VBScript scripts.(Citation: Palo Alto OilRig May 2016)
Each document utilized the vulnerability via an embedded link that delivers an .hta file (HTML executable).
We speculate that the executable variant involves threat actors socially engineering the victim into running the payload, rather than installing the payload as the result of successful exploitation of a vulnerability. | This is an attempt to trick the user into running the embedded macro to install the Trojan, which does not require any vulnerability exploitation.
Persistence
5 techniques
Persistence
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Helminth](https://attack.mitre.org/software/S0170) has used a scheduled task for persistence.(Citation: ClearSky OilRig Jan 2017)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[Helminth](https://attack.mitre.org/software/S0170) establishes persistence by creating a shortcut in the Start Menu folder.(Citation: Palo Alto OilRig May 2016)
[Helminth](https://attack.mitre.org/software/S0170) establishes persistence by creating a shortcut.(Citation: Palo Alto OilRig May 2016)
Privilege Escalation
5 techniques
Privilege Escalation
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Helminth](https://attack.mitre.org/software/S0170) has used a scheduled task for persistence.(Citation: ClearSky OilRig Jan 2017)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[Helminth](https://attack.mitre.org/software/S0170) establishes persistence by creating a shortcut in the Start Menu folder.(Citation: Palo Alto OilRig May 2016)
[Helminth](https://attack.mitre.org/software/S0170) establishes persistence by creating a shortcut.(Citation: Palo Alto OilRig May 2016)
Stealth
5 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.
The [Helminth](https://attack.mitre.org/software/S0170) config file is encrypted with RC4.(Citation: Palo Alto OilRig May 2016)
The HerHer Trojan... display[s] either a fake error prompt or a fake “trubleshooting" utility.
The goal of the script is to: Download bat script Execute it and upload the results back to the C&C Clear traces
The .hta file is immediately executed by mshta.exe, the Windows process which executes html executables.
Defense Impairment
1 technique
Defense Impairment
[Helminth](https://attack.mitre.org/software/S0170) samples have been signed with legitimate, compromised code signing certificates owned by software company AI Squared.(Citation: ClearSky OilRig Jan 2017)
Credential Access
1 technique
Credential Access
The executable version of [Helminth](https://attack.mitre.org/software/S0170) has a module to log keystrokes.(Citation: Palo Alto OilRig May 2016)
Discovery
6 techniques
Discovery
netstat -an
[Helminth](https://attack.mitre.org/software/S0170) has used [Tasklist](https://attack.mitre.org/software/S0057) to get information on processes.(Citation: Unit 42 Playbook Dec 2017)
[Helminth](https://attack.mitre.org/software/S0170) has checked the local administrators group.(Citation: Unit 42 Playbook Dec 2017)
[Helminth](https://attack.mitre.org/software/S0170) has checked for the domain admin group and Exchange Trusted Subsystem groups using the commands <code>net group Exchange Trusted Subsystem /domain</code> and <code>net group domain admins /domain</code>.(Citation: Unit 42 Playbook Dec 2017)
the 0000000000.bat file, which when executed on an infected system would run the following commands to gather information... whoami hostname ipconfig /all ... tasklist systeminfo
net user /domain net group /domain net group "domain admins" /domain net group "Exchange Trusted Subsystem" /domain net accounts /domain net user net localgroup administrators
Collection
6 techniques
Collection
Once clicked, the crew's malware, named Helminth, would run, allowing the OilRig crew to control targets’ PCs and steal data.
The executable version of [Helminth](https://attack.mitre.org/software/S0170) has a module to log keystrokes.(Citation: Palo Alto OilRig May 2016)
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[Helminth](https://attack.mitre.org/software/S0170) creates folders to store output from batch scripts prior to sending the information to its C2 server.(Citation: Palo Alto OilRig May 2016)
The executable version of [Helminth](https://attack.mitre.org/software/S0170) has a module to log clipboard contents.(Citation: Palo Alto OilRig May 2016)
A [Helminth](https://attack.mitre.org/software/S0170) VBScript receives a batch script to execute a set of commands in a command prompt.(Citation: Palo Alto OilRig May 2016)
Command and Control
9 techniques
Command and Control
the infected computer receives a bat script for activation from the C&C: vpsupdate[.]tk/index.aspx?id=<random character><randomnumber>[b]... the resulting file is uploaded back to the C&C using... POST request
[Helminth](https://attack.mitre.org/software/S0170) can use HTTP for C2.(Citation: Palo Alto OilRig May 2016)
[Helminth](https://attack.mitre.org/software/S0170) can use DNS for C2.(Citation: Palo Alto OilRig May 2016)
[Helminth](https://attack.mitre.org/software/S0170) can download additional files.(Citation: Palo Alto OilRig May 2016)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
For C2 over HTTP, [Helminth](https://attack.mitre.org/software/S0170) encodes data with base64 and sends it via the "Cookie" field of HTTP requests. For C2 over DNS, [Helminth](https://attack.mitre.org/software/S0170) converts ASCII characters into their hexadecimal values and sends the data in cleartext.(Citation: Palo Alto OilRig May 2016)
Hidden in the attachments was PupyRAT, an open source remote access trojan (RAT) that works across Android, Linux and Windows platforms.
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[Helminth](https://attack.mitre.org/software/S0170) encrypts data sent to its C2 server over HTTP with RC4.(Citation: Palo Alto OilRig May 2016)
Exfiltration
3 techniques
Exfiltration
[Helminth](https://attack.mitre.org/software/S0170) splits data into chunks up to 23 bytes and sends the data in DNS queries to its C2 server.(Citation: Palo Alto OilRig May 2016)
The output of the downloaded batch file is saved to “%PUBLIC%\Libraries\tp\<batch filename>.txt”. The script will then upload the output of this batch file by including the data in a sequence of DNS queries.
Helminth splits data into chunks up to 23 bytes and sends the data in DNS queries to its C2 server. Kessel can split the data to be exilftrated into chunks that will fit in subdomains of DNS queries.
Observables
41 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
55 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.