Freenki
- Type
- Downloader
- Capabilities
- ReconnaissanceCredential theftExfiltrationPersistenceDefense evasion
- Delivery
- SpearphishingLureWatering hole
- Platforms
- Windows
Freenki is a Windows downloader and reconnaissance malware family attributed to APT37, also known as Reaper or Group 123. It collects host information, including MAC addresses, usernames, computer names, operating-system component versions, process architecture, WMI system details, and running processes. It can capture screenshots and retrieve, decode, and execute subsequent payloads through HTTP-based command-and-control communications. Some samples also contain browser credential-stealing code shared with ROKRAT.
Freenki requires specific command-line arguments to activate functionality and supports persistence through Windows startup registry entries. In the FreeMilk infection chain, the companion loader PoohMilk also established persistence for Freenki. The malware obfuscates strings and downloaded payloads, while its delivery chain has used encoded PowerShell and executable payloads disguised as images.
The May 2017 FreeMilk spear-phishing campaign delivered Freenki through customized malicious Office documents exploiting CVE-2017-0199. Attackers hijacked legitimate email conversations and used compromised accounts to contact selected recipients. Identified targets included a Middle Eastern bank, European trademark and intellectual-property service firms, an international sporting organization, and individuals with ties to Northeast Asia. Freenki was also deployed in an August 2016 watering-hole attack exploiting CVE-2016-0189 on a compromised anti-government media website operated by defectors in the United Kingdom.
Associated vulnerabilities
2 CVEs 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
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Freenki is used to gather information about the infected system and to download a subsequent stage payload.
APT37's Freenki malware lists running processes using the Microsoft Windows API.
Techniques & procedures
18 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
“sites using the GNUBoard Content Management System (CMS) had been compromised and were used to host malware.”
Initial Access
3 techniques
Initial Access
In August 2016, visitors to an anti-government media website operated by defectors in United Kingdom were targeted by watering hole attack with CVE-2016-0189 Microsoft Internet Explorer exploit. The exploit code attempted to deliver Freenki as payload malware.
The campaign started, unsurprisingly, with a malicious HWP document... This malicious document drops and executes a new version of ROKRAT.
Our research showed that the spear phishing emails came from multiple compromised email accounts tied to a legitimate domain in North East Asia. We believe that the threat actor hijacked an existing, legitimate in-progress conversation and posed as the legitimate senders to send malicious spear phishing emails to the recipients.
Execution
4 techniques
Execution
Then using the Windows API ShellExecuteW() and a hard-coded argument ‘abai’, the malware executes the decoded payload.
The C2 server responds with a Base64 encoded PowerShell script which in turn downloads two fake image files that contain embedded PE binaries and a JavaScript file which extracts the embedded PE binaries onto the victim host.
The C2 server responds with a Base64 encoded PowerShell script which in turn downloads two fake image files that contain embedded PE binaries and a JavaScript file which extracts the embedded PE binaries onto the victim host.
The threat actor leveraged the CVE-2017-0199 Microsoft Word Office/WordPad Remote Code Execution Vulnerability... Upon successful exploitation, the malicious document delivered two malware payloads PoohMilk and Freenki.
Persistence
1 technique
Persistence
After a successful exploitation, it sets persistence in the registry with the appropriate command line argument to execute the second stage payload... HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\ key name: runsample key value: "[CURRENT_EXECUTION_PATH] help"
Privilege Escalation
1 technique
Privilege Escalation
After a successful exploitation, it sets persistence in the registry with the appropriate command line argument to execute the second stage payload... HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\ key name: runsample key value: "[CURRENT_EXECUTION_PATH] help"
Stealth
1 technique
Stealth
“samples were renamed to be similar to the naming convention of Windows update files (i.e., ‘Windows-KB275122-x86.exe’).”
Discovery
4 techniques
Discovery
The first thing Freenki does is collect the host’s MAC address... Collects all Ethernet MAC addresses
0x31 = This identifier is used to send host information. Below are the details collected. Username ComputerName
0x31 = This identifier is used to send host information... Collects all running processes
0x31 = This identifier is used to send host information... Username ComputerName Retrieves the file version of kernel32.dll Determines whether the process is running in x64... Attempts to perform a WMI query to get: ComputerName, Model and Manufacturer
Collection
1 technique
Collection
0x34 = This identifier is used when the malware attempts to take a screenshot of the victim computer. The malware only collects a total of three screenshot before moving on.
Command and Control
3 techniques
Command and Control
The malware loops over sending this initial request until the C2 responds with a HTTP OK (200) status... all request are made with a HTTP POST method... the author uses the Windows API InternetOpenUrl(), therefore the secondary C2 address comes appended with either HTTP, HTTPS or FTP.
The first one was about the use of a malicious HWP document which dropped downloaders used to retrieve malicious payloads on several compromised websites.
The malware uses the same algorithm to decode and encode most of its data. The initial C2 and hard coded User-Agent string are encoded... We mentioned that one of the identifiers the malware uses gives it the capability to retrieve a secondary C2 address.
Observables
17 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.