GrimAgent
- Type
- Backdoor
- Capabilities
- ReconnaissancePersistenceExfiltrationDefense evasion
- Platforms
- Windows
GrimAgent is a Windows malware family associated with FIN12, a financially motivated ransomware deployment group known primarily for rapid post-compromise operations leading to Ryuk and, in at least one case, Conti deployment. It appears to function as a backdoor used during intrusions after initial access has already been obtained, rather than as a primary access vector. Reporting has suggested GrimAgent may be exclusive to FIN12 activity.
GrimAgent supports encrypted command-and-control communications using AES and protects its initial outbound request with a hardcoded RSA public key; it also Base64-encodes command-and-control replies and uses string decryption routines based on rotate-left and rotate-right operations. The malware leverages native Windows APIs, including dynamic function resolution and execution-related calls, consistent with flexible in-memory or modular execution patterns.
On compromised hosts, GrimAgent performs host profiling and reconnaissance by identifying the current user, collecting the system IP address and domain information, determining country code, and using Accept-Language values to distinguish systems in selected Western countries including the United Kingdom, United States, France, and Spain. It can collect files and other host data and transmit that information over its command-and-control channel.
For persistence, GrimAgent can create scheduled tasks and Registry Run key entries. It also includes cleanup behavior, including deletion of older binaries from infected systems. The observed tradecraft aligns with FIN12’s broader emphasis on fast, efficient post-exploitation in large enterprise environments, including healthcare and other high-revenue organizations.
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.
While most of the tools that FIN12 uses in their intrusions are publicly sourced or acquired through their relationships with other threat actors, we believe that GRIMAGENT may be exclusive to the group.
Techniques & procedures
32 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
Volt Typhoon has obtained the victim's system current location.
Resource Development
2 techniques
Resource Development
BEACON C&C domains used by FIN12 have most commonly been registered via NameCheap or Hosting Concepts B.V. d/b/a Openprovider
the group has continued to host a significant proportion of the C&C infrastructure in the networks of Choopa, a U.S.-based VPS hosting provider
Execution
4 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.”
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to set persistence using the Task Scheduler.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can use the Windows Command Shell to execute commands, including its own removal.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can use Native API including <code>GetProcAddress</code> and <code>ShellExecuteW</code>.(Citation: Group IB GrimAgent July 2021)
Persistence
3 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.”
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to set persistence using the Task Scheduler.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can set persistence with a Registry run key.(Citation: Group IB GrimAgent July 2021)
Privilege Escalation
3 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.”
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to set persistence using the Task Scheduler.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can set persistence with a Registry run key.(Citation: Group IB GrimAgent July 2021)
Stealth
8 techniques
Stealth
[GrimAgent](https://attack.mitre.org/software/S0632) has used Rotate on Right (RoR) and Rotate on Left (RoL) functionality to encrypt strings.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to add bytes to change the file hash.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can delete old binaries on a compromised host.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can delete previously created tasks on a compromised host.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can use a decryption algorithm for strings based on Rotate on Right (RoR) and Rotate on Left (RoL) functionality.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) uses the last 64 bytes of the binary to compute a mutex name. If the generated name is invalid, it will default to the generic `mymutex`.(Citation: Group IB GrimAgent July 2021)
DarkGate queries system locale information during execution. Later versions of DarkGate query GetSystemDefaultLCID for locale information to determine if the malware is executing in Russian-speaking countries.
[GrimAgent](https://attack.mitre.org/software/S0632) can sleep for 195 - 205 seconds after payload execution and before deleting its task.(Citation: Group IB GrimAgent July 2021)
Discovery
8 techniques
Discovery
[GrimAgent](https://attack.mitre.org/software/S0632) can enumerate the IP and domain of a target system.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can identify the user id on a target machine.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can collect the OS, and build version on a compromised host.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to enumerate files and directories on a compromised host.(Citation: Group IB GrimAgent July 2021)
DarkGate queries system locale information during execution. Later versions of DarkGate query GetSystemDefaultLCID for locale information to determine if the malware is executing in Russian-speaking countries.
[GrimAgent](https://attack.mitre.org/software/S0632) can sleep for 195 - 205 seconds after payload execution and before deleting its task.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can identify the country code on a compromised host.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) has used <code>Accept-Language</code> to identify hosts in the United Kingdom, United States, France, and Spain.(Citation: Group IB GrimAgent July 2021)
Collection
1 technique
Collection
[GrimAgent](https://attack.mitre.org/software/S0632) can collect data and files from a compromised host.(Citation: Group IB GrimAgent July 2021)
Command and Control
8 techniques
Command and Control
[GrimAgent](https://attack.mitre.org/software/S0632) can pad C2 messages with random generated values.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to use HTTP for C2 communications.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) has the ability to download and execute additional payloads.(Citation: Group IB GrimAgent July 2021)
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.
[GrimAgent](https://attack.mitre.org/software/S0632) can base64 encode C2 replies.(Citation: Group IB GrimAgent July 2021)
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.
[GrimAgent](https://attack.mitre.org/software/S0632) can use an AES key to encrypt C2 communications.(Citation: Group IB GrimAgent July 2021)
[GrimAgent](https://attack.mitre.org/software/S0632) can use a hardcoded server public RSA key to encrypt the first request to C2.(Citation: Group IB GrimAgent July 2021)
Exfiltration
1 technique
Exfiltration
[GrimAgent](https://attack.mitre.org/software/S0632) has sent data related to a compromise host over its C2 channel.(Citation: Group IB GrimAgent July 2021)
Observables
8 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
39 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.