Gelsemium
- Type
- Backdoor
- Capabilities
- PersistencePrivilege escalationDefense evasionReconnaissance
- Platforms
- Windows
Gelsemium is a multistage Windows malware family associated with the Gelsemium threat group. Its first stage, Gelsemine, is a large C++ dropper built using the Microsoft Foundation Class library. The malware can use custom shellcode to map embedded DLLs directly into memory and can store its components in the Windows Registry.
Gelsemium supports TCP and UDP for command-and-control communications. It performs host reconnaissance by checking for specific security products and determining whether the current user has standard-user or administrator privileges. It can bypass Windows User Account Control to elevate process privileges. One persistence mechanism installs a malicious DLL as an alternative print processor, causing the Windows Print Spooler service to load it automatically when the service starts.
Defense-evasion capabilities include file timestomping and anti-analysis routines that generate junk activity, open random files, and access random Registry keys to obscure malicious behavior during sandbox analysis. Gelsevirine, a malware name associated with Gelsemium, has documented code overlap with OwlProxy.
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.
Gelsenicine: The loader Gelsenicine is a loader that retrieves Gelsevirine and executes it. | Gelsevirine: The main plug-in Gelsevirine is the last stage of the chain and it is called MainPlugin by its developers, according to the DLL name and also PDB path found in old samples. | Gelsemine: The dropper Gelsemium’s first stage is a large dropper written in C++ using the Microsoft Foundation Class library (MFC).
Techniques & procedures
42 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Operation NightScout (BigNox): In January 2021, another ESET researcher analyzed and wrote an article about Operation NightScout; a supply-chain attack compromising the update mechanism of NoxPlayer, an Android emulator for PCs and Macs, and part of BigNox’s product range with over 150 million users worldwide.
Execution
4 techniques
Execution
[Gelsemium](https://attack.mitre.org/software/S0666) can use a batch script to delete itself.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to use various Windows API functions to perform tasks.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use the `IARPUinstallerStringLauncher` COM interface are part of its UAC bypass process.(Citation: ESET Gelsemium June 2021)
Users with standard privileges compromised by Gelsemine drop Gelsenicine under a different directory that does not require administrator privileges. The DLL chrome_elf.dll is dropped under %CommonAppData%/Google/Chrome/Application/Library/.
Persistence
4 techniques
Persistence
[Gelsemium](https://attack.mitre.org/software/S0666) can modify the Registry to store its components.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can drop itself in `C:\Windows\System32\spool\prtprocs\x64\winprint.dll` as an alternative Print Processor to be loaded automatically when the spoolsv Windows service starts.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can set persistence with a Registry run key.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can drop itself in <code>C:\Windows\System32\spool\prtprocs\x64\winprint.dll</code> to be loaded automatically by the spoolsv Windows service.(Citation: ESET Gelsemium June 2021)
Privilege Escalation
6 techniques
Privilege Escalation
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to inject DLLs into specific processes.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use token manipulation to bypass UAC on Windows7 systems.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can drop itself in `C:\Windows\System32\spool\prtprocs\x64\winprint.dll` as an alternative Print Processor to be loaded automatically when the spoolsv Windows service starts.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can set persistence with a Registry run key.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can drop itself in <code>C:\Windows\System32\spool\prtprocs\x64\winprint.dll</code> to be loaded automatically by the spoolsv Windows service.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can bypass UAC to elevate process privileges on a compromised host.(Citation: ESET Gelsemium June 2021)
Stealth
16 techniques
Stealth
"Action RAT's commands, strings, and domains can be Base64 encoded within the payload." / "ADVSTORESHELL... strings... encrypted with an XOR-based algorithm; some strings are also encrypted with 3DES and reversed." / "APT29 has used encoded PowerShell commands." / "APT41 used VMProtected binaries..."
[Gelsemium](https://attack.mitre.org/software/S0666) can store its components in the Registry.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to compress its components.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use junk code to hide functions and evade detection.(Citation: ESET Gelsemium June 2021)
During the 2016 Ukraine Electric Power Attack, DLLs and EXEs with filenames associated with common electric power sector protocols were used to masquerade files.
[Gelsemium](https://attack.mitre.org/software/S0666) has used unverified signatures on malicious DLLs.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has named malicious binaries `serv.exe`, `winprint.dll`, and `chrome_elf.dll` and has set its persistence in the Registry with the key value <code>Chrome Update</code> to appear legitimate.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to inject DLLs into specific processes.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can delete its dropper component from the targeted system.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to perform timestomping of files on targeted systems.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use token manipulation to bypass UAC on Windows7 systems.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can decompress and decrypt DLLs and shellcode.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use junk code to generate random activity to obscure malware behavior.(Citation: ESET Gelsemium June 2021)
FinFisher queries Registry values as part of its anti-sandbox checks.
Users with standard privileges compromised by Gelsemine drop Gelsenicine under a different directory that does not require administrator privileges. The DLL chrome_elf.dll is dropped under %CommonAppData%/Google/Chrome/Application/Library/.
[Gelsemium](https://attack.mitre.org/software/S0666) can use custom shellcode to map embedded DLLs into memory.(Citation: ESET Gelsemium June 2021)
Defense Impairment
1 technique
Defense Impairment
[Gelsemium](https://attack.mitre.org/software/S0666) can modify the Registry to store its components.(Citation: ESET Gelsemium June 2021)
Discovery
9 techniques
Discovery
[Gelsemium](https://attack.mitre.org/software/S0666) can open random files and Registry keys to obscure malware behavior from sandbox analysis.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to distinguish between a standard user and an administrator on a compromised host.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can enumerate running processes.(Citation: ESET Gelsemium June 2021)
Several entries describe identifying whether the current user has admin privileges, determining privilege level, identifying groups the user belongs to, or verifying execution as SYSTEM.
[Gelsemium](https://attack.mitre.org/software/S0666) can determine the operating system and whether a targeted machine has a 32 or 64 bit architecture.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can retrieve data from specific Windows directories, as well as open random files as part of [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497).(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use junk code to generate random activity to obscure malware behavior.(Citation: ESET Gelsemium June 2021)
FinFisher queries Registry values as part of its anti-sandbox checks.
[Gelsemium](https://attack.mitre.org/software/S0666) can check for the presence of specific security products.(Citation: ESET Gelsemium June 2021)
Collection
2 techniques
Collection
[Gelsemium](https://attack.mitre.org/software/S0666) can collect data from a compromised host.(Citation: ESET Gelsemium June 2021)
Examples in the content include malware extracting or unpacking ZIP, RAR, CAB, tar.gz, and other archived content, such as 'Emotet has used a self-extracting RAR file to deliver modules to victims' and 'Rocke has extracted tar.gz files after downloading them from a C2 server.'
Command and Control
7 techniques
Command and Control
[Gelsemium](https://attack.mitre.org/software/S0666) can use multiple domains and protocols in C2.(Citation: ESET Gelsemium June 2021)
The same C&C server was found in both Gelsevirine and Chrommme, both are using two C&C servers.
[Gelsemium](https://attack.mitre.org/software/S0666) can use HTTP/S in C2 communications.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to use DNS in communication with C2.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) has the ability to use TCP and UDP in C2 communications.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can download additional plug-ins to a compromised host.(Citation: ESET Gelsemium June 2021)
[Gelsemium](https://attack.mitre.org/software/S0666) can use dynamic DNS domain names in C2.(Citation: ESET Gelsemium June 2021)
Impact
1 technique
Impact
ComRAT has modified Registry values to store encrypted orchestrator code and payloads ... QakBot can modify the Registry to store its configuration information ... Volgmer modifies the Registry to store an encoded configuration file ...
Recent activity
40 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.