GraftLoader
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.
“Stage 2: GraftLoader. We track this component as GraftLoader. It is a configurable .NET loader that decrypts an embedded payload, optionally elevates, optionally persists, and then either hollows a host process or loads the payload in process.”
Techniques & procedures
20 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Every campaign begins with a .NET WinForms executable ... delivered inside an archive.
Execution
3 techniques
Execution
The registry entry ... is a full PowerShell command line that launches a script the loader drops into the temp directory.
GraftLoader resolves each function by name through a delegate factory ... CreateProcessA, ZwUnmapViewOfSection, VirtualAllocEx, WriteProcessMemory ... ResumeThread.
The malicious branch executes during form initialization ... before the user sees a window.
Persistence
1 technique
Persistence
The registry entry is written last ... a full PowerShell command line that launches a script the loader drops into the temp directory.
Privilege Escalation
3 techniques
Privilege Escalation
Campaign 1 selects mode 3 and hollows a freshly spawned RegSvcs.exe. Campaigns 2 and 3 both select mode 0 and hollow a new copy of their own process.
The registry entry is written last ... a full PowerShell command line that launches a script the loader drops into the temp directory.
Only Campaign 2 elevates ... GraftLoader goes through cmstp.exe.
Stealth
10 techniques
Stealth
Character code reconstruction ... Indirect invocation ... Nondeterministic junk.
Among them sits one bitmap that is not an image at all ... reconstructs a .NET assembly in memory.
It is stored as a byte array inside a named .NET resource in the GraftLoader assembly and decrypted in memory immediately before injection.
Loader filenames imitating system utilities, helper module named after a Windows library.
Campaign 1 selects mode 3 and hollows a freshly spawned RegSvcs.exe. Campaigns 2 and 3 both select mode 0 and hollow a new copy of their own process.
The remaining bytes are decrypted with a keystream ... The final payload ... is decrypted in memory immediately before injection.
The loader builds a setup information file (INF) in the Windows temp directory and launches the installer against it with the auto install switch.
Before it does anything with those arguments, it sleeps ... The sleep value is 19,004 milliseconds.
It then sets the copy to hidden, system, read-only, and not content indexed.
It loads the reconstructed assembly reflectively ... Campaign 1 loads through AppDomain.CurrentDomain.Load ... Campaign 3 ... CallByName.
Defense Impairment
2 techniques
Defense Impairment
A separate ACL is applied ... permitting read and execute but denying delete, write, permission changes, and ownership changes.
The loader shells out to a hidden PowerShell window running Add-MpPreference -ExclusionPath against the running decoy path.
Discovery
2 techniques
Discovery
It enumerates running processes looking for a specific identifier, and if that process is gone, it relaunches from a stored path.
Before it does anything with those arguments, it sleeps ... The sleep value is 19,004 milliseconds.
Command and Control
1 technique
Command and Control
A ZIP-based plugin loader that accepts uploaded assemblies at runtime ... Runtime plugin upload in LXBASE, dormant download branch in GraftLoader.
Observables
11 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.