HALFRIG
- Type
- Loader
- Capabilities
- Defense evasionDLL sideloading
- Delivery
- PhishingSpearphishingLure
- Platforms
- Windows
HALFRIG is a Windows malware loader and Cobalt Strike Beacon stager first observed in February 2023. It is associated with APT29, also known as NOBELIUM and Cozy Bear, a cyberespionage group attributed to Russia’s Foreign Intelligence Service. HALFRIG has been deployed against diplomatic personnel in campaigns targeting foreign ministries, diplomatic missions, and related organizations, primarily in NATO and European Union countries.
HALFRIG comprises four modules that culminate in staging Cobalt Strike Beacon. It carries encrypted Beacon shellcode within its components rather than retrieving the second-stage payload from a remote command-and-control service. Its execution uses multiple spawned threads as an anti-analysis measure. The related QUARTERRIG family shares portions of HALFRIG’s code but employs different obfuscation techniques.
Distribution involves spearphishing messages impersonating diplomatic correspondence and using meeting invitations or document-collaboration lures. Campaign delivery chains use compromised websites and the ENVYSCOUT script for HTML smuggling, with malicious files packaged in archives or disk images. Signed executables are abused through DLL sideloading to execute malicious libraries and stage subsequent payloads.
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.
The activity involved the distribution of three different strains of malware, HALFRIG, QUARTERRIG, and SNOWYAMBER, through phishing targeting diplomatic personnel.
Techniques & procedures
10 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
Whichever strain of malware they attempted to distribute, attackers used phishing for initial access.
Most of the recently-observed cases employed ENVYSCOUT, a delivery script APT29 has used since 2021, to lead to the downloads of SNOWYAMBER, QUARTERRIG, or HALFRIG.
Execution
2 techniques
Execution
HALFRIG’s division into four separate modules responsible for different stages of its deployment, which culminates in the fourth module’s staging of a Cobalt Strike beacon, is a key distinction between it and the single-file SNOWYAMBER and QUARTERRIG.
ISO and IMG disk images, on Windows computers, are automatically mounted in the file system when opened... The actor used various techniques to get the user to launch the malware.
Persistence
1 technique
Persistence
One of them was a Windows shortcut (LNK) file pretending to be a document but actually running a hidden DLL library with the actor's tools.
Privilege Escalation
1 technique
Privilege Escalation
One of them was a Windows shortcut (LNK) file pretending to be a document but actually running a hidden DLL library with the actor's tools.
Stealth
2 techniques
Stealth
QUARTERRIG instead uses opaque predicates and multi-stage execution combining shellcode and PE files for its obfuscation.
HALFRIG’s modules spawn multiple threads throughout execution as an anti-analysis measure.
Discovery
1 technique
Discovery
HALFRIG’s modules spawn multiple threads throughout execution as an anti-analysis measure.
Collection
1 technique
Collection
Campaigns observed in the past linked to “NOBELIUM” and “APT29” used .ZIP or .ISO files to deliver the malware. During the campaign described above, .IMG files were also used in addition to the aforementioned file formats.
Command and Control
2 techniques
Command and Control
“…the HALFRIG CobaltStrike Beacon stager.”
“The dropper installs the SNOWYAMBER and QUARTERRIG downloaders and the HALFRIG CobaltStrike Beacon stager.”
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.