NETWIRE
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistencePost exploitationDefense evasionProcess injection
- Delivery
- PhishingMalspamLure
- Platforms
- Windows
NetWire is a commodity, cross-platform remote access trojan first observed in 2012 and used by financially motivated and espionage-oriented threat actors. Its capabilities include remote control, keylogging, screenshot capture, information theft, and recovery of passwords stored in messaging and email applications. Documented users include Aggah, Bahamut, and OPERA1ER. Targets span financial services, healthcare, education, and other business sectors.
NetWire is commonly distributed through phishing emails containing malicious attachments or links. Observed delivery chains use macro-enabled Microsoft Office documents, disk-image attachments, malicious scripts, and OneNote documents with embedded executable content. It is also delivered by loaders such as GuLoader, DBatLoader, and PARALLAX. Campaigns have used sales quotations, invoices, and tax-related documents as lures.
Documented Windows variants support process injection and persistence through scheduled tasks and registry-based mechanisms, including Active Setup and Run entries. NetWire communicates with command-and-control infrastructure using a custom TCP protocol protected by AES encryption and stores configuration data encrypted with RC4. Configuration settings include command-and-control destinations, installation and persistence options, keylogger settings, and communication-encryption parameters. A mutex prevents multiple instances from running simultaneously. In March 2023, law enforcement seized its sales domain during an international operation.
Associated vulnerabilities
4 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
13 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: Proofpoint TA2541 February 2022)(Citation: FireEye NETWIRE March 2019)
(Citation: FireEye APT33 Sept 2017)(Citation: FireEye APT33 Webinar Sept 2017)
Bahamut utilized the publicly available, cross-platform remote administration tools (RATs) NETWIRE and Revenge RAT for remote control.
“Malware: Houdini, H-worm, QNodeJS, Adwind, Nanocore, Netwire, Metasploit Meterpreter, CobaltStrike beacon...”
+7 more in the app. View in Mallory
Techniques & procedures
84 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
Campaign infrastructure included domains contacted by the macro to download stage-two-through-five artifacts and domains used as NETWIRE RAT command-and-control nodes.
MITRE ATT&CK Mapping ... Resource Development Acquire Infrastructure: Server T1583.004 Google Cloud VM with custom DNS/mail infrastructure
Initial Access
3 techniques
Initial Access
The use of Microsoft OneNote documents to deliver malware via email is increasing. Multiple cybercriminal threat actors are using OneNote documents to deliver malware.
[NETWIRE](https://attack.mitre.org/software/S0198) has been spread via e-mail campaigns utilizing malicious attachments.(Citation: Unit 42 NETWIRE April 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) has been spread via e-mail campaigns utilizing malicious links.(Citation: Unit 42 NETWIRE April 2020)
Execution
15 techniques
Execution
In the next step, the adversary executes PowerShell into various Windows processes and looks for available security products by querying the Windows Management Instrumentation (WMI).
VBS script extracts RAR archive containing 2nd level NetWire droppers. Task Scheduler entries created for 3 2nd level NetWire droppers.
[NETWIRE](https://attack.mitre.org/software/S0198) can use crontabs to establish persistence.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can create a scheduled task to establish persistence.(Citation: FireEye NETWIRE March 2019)
A RAT is a type of malware that allows for covert surveillance, allowing a ‘backdoor’ for administrative control and unfettered and unauthorized remote access to a victim’s computer, without the victim’s knowledge or permission
The [NETWIRE](https://attack.mitre.org/software/S0198) binary has been executed via PowerShell script.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can issue commands using cmd.exe.(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) has the ability to use <code>/bin/bash</code> and <code>/bin/sh</code> to execute commands.(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) has been executed through use of VBScripts.(Citation: FireEye NETWIRE March 2019)(Citation: Proofpoint NETWIRE December 2020)
Flight_Travel_Intinery_Details.js is a malicious file ... The javascript (.js) file eventually drops Update.exe, which is a variant of Netwire RAT
[NETWIRE](https://attack.mitre.org/software/S0198) can use Native API including <code>CreateProcess</code> <code>GetProcessById</code>, and <code>WriteProcessMemory</code>.(Citation: FireEye NETWIRE March 2019)
Also, it was found to be delivered via exploit kits.
In order to detonate the payload, an end-user must interact with the OneNote document.
[NETWIRE](https://attack.mitre.org/software/S0198) has been executed through convincing victims into clicking malicious links.(Citation: FireEye NETWIRE March 2019)(Citation: Unit 42 NETWIRE April 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) has been executed through luring victims into opening malicious documents.(Citation: FireEye NETWIRE March 2019)(Citation: Unit 42 NETWIRE April 2020)(Citation: Proofpoint NETWIRE December 2020)
Persistence
9 techniques
Persistence
VBS script extracts RAR archive containing 2nd level NetWire droppers. Task Scheduler entries created for 3 2nd level NetWire droppers.
[NETWIRE](https://attack.mitre.org/software/S0198) can use crontabs to establish persistence.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can create a scheduled task to establish persistence.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can modify the Registry to store its configuration information.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can use launch agents for persistence.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) creates a Registry start-up entry to establish persistence.(Citation: McAfee Netwire Mar 2015)(Citation: Red Canary NETWIRE January 2020)(Citation: Unit 42 NETWIRE April 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can use XDG Autostart Entries to establish persistence on Linux systems.(Citation: Red Canary NETWIRE January 2020)
“Active Setup Key: Active Setup registry key to achieve persistence.”
[NETWIRE](https://attack.mitre.org/software/S0198) can persist via startup options for Login items.(Citation: Red Canary NETWIRE January 2020)
Privilege Escalation
11 techniques
Privilege Escalation
VBS script extracts RAR archive containing 2nd level NetWire droppers. Task Scheduler entries created for 3 2nd level NetWire droppers.
[NETWIRE](https://attack.mitre.org/software/S0198) can use crontabs to establish persistence.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can create a scheduled task to establish persistence.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can inject code into system processes including notepad.exe, svchost.exe, and vbc.exe.(Citation: Red Canary NETWIRE January 2020)
The [NETWIRE](https://attack.mitre.org/software/S0198) payload has been injected into benign Microsoft executables via process hollowing.(Citation: FireEye NETWIRE March 2019)(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can use launch agents for persistence.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) creates a Registry start-up entry to establish persistence.(Citation: McAfee Netwire Mar 2015)(Citation: Red Canary NETWIRE January 2020)(Citation: Unit 42 NETWIRE April 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can use XDG Autostart Entries to establish persistence on Linux systems.(Citation: Red Canary NETWIRE January 2020)
“Active Setup Key: Active Setup registry key to achieve persistence.”
[NETWIRE](https://attack.mitre.org/software/S0198) can persist via startup options for Login items.(Citation: Red Canary NETWIRE January 2020)
The fifth and final stage of PARALLAX Loader performs a UAC bypass through CMSTPLUA COM interface.
Stealth
16 techniques
Stealth
[NETWIRE](https://attack.mitre.org/software/S0198) has used a custom obfuscation algorithm to hide strings including Registry keys, APIs, and DLL names.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) has used .NET packer tools to evade detection.(Citation: Red Canary NETWIRE January 2020)
The malware extracts a configuration structure from the stenographically-obfuscated PNG that contains the next PARALLAX loader stage and the final payload.
[NETWIRE](https://attack.mitre.org/software/S0198) can store its configuration information in the Registry under `HKCU:\Software\Netwire`.(Citation: Red Canary NETWIRE January 2020)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
The [NETWIRE](https://attack.mitre.org/software/S0198) client has been signed by fake and invalid digital certificates.(Citation: McAfee Netwire Mar 2015)
[NETWIRE](https://attack.mitre.org/software/S0198) has masqueraded as legitimate software including TeamViewer and macOS Finder.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can inject code into system processes including notepad.exe, svchost.exe, and vbc.exe.(Citation: Red Canary NETWIRE January 2020)
The [NETWIRE](https://attack.mitre.org/software/S0198) payload has been injected into benign Microsoft executables via process hollowing.(Citation: FireEye NETWIRE March 2019)(Citation: Red Canary NETWIRE January 2020)
Next, the malware will load cs16.wav and XOR-decrypt it using a key embedded in the file... The malware will then execute the shellcode inside the decrypted WAV file.
Method R of the .NET dropper is responsible for executing the final payload. The following are the parameters for method R: Path to InstallUtil.exe... We observed that the InstallUtil.exe process was being created in suspended mode.
After an anti-emulation stage, stage 2 decrypts the final malware... String Use VM Vmware check?
[NETWIRE](https://attack.mitre.org/software/S0198) can copy itself to and launch itself from hidden folders.(Citation: Red Canary NETWIRE January 2020)
The script attempts to interact with the Alternate Data Stream to hide the information about its source as downloaded from the internet.
This jump leads to the .rsrc section, where a loader is decrypted, loaded into memory and relocations are made.
hMutex = CreateMutexA(0, 1, “mJhcimNA”)
Defense Impairment
3 techniques
Defense Impairment
[NETWIRE](https://attack.mitre.org/software/S0198) can modify the Registry to store its configuration information.(Citation: Red Canary NETWIRE January 2020)
We identified five samples with valid digital signatures for three different UK-registered companies... this may be part of a pattern of identity theft of small companies in order to issue signatures for malicious software.
Then it tries to disable the built-in defenses and starts gathering system information before downloading the RAT payload on the compromised host.
Credential Access
7 techniques
Credential Access
used by cybercriminals to take control of infected computers and steal a wide array of information.
[NETWIRE](https://attack.mitre.org/software/S0198) can perform keylogging.(Citation: McAfee Netwire Mar 2015)(Citation: FireEye APT33 Webinar Sept 2017)(Citation: FireEye NETWIRE March 2019)(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
31 set mouse button press 32 set cursor position
3D fetch and send stored credentials, history and certificates from common browsers
[NETWIRE](https://attack.mitre.org/software/S0198) can retrieve passwords from messaging and mail client applications.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) has the ability to steal credentials from web browsers including Internet Explorer, Opera, Yandex, and Chrome.(Citation: FireEye NETWIRE March 2019)(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
Evilnum can collect email credentials from victims... Malteiro has obtained credentials from mail clients via NirSoft MailPassView... MgBot includes modules for stealing stored credentials from Outlook and Foxmail email client software... PLEAD has the ability to steal saved passwords from Microsoft Outlook.
Discovery
9 techniques
Discovery
[NETWIRE](https://attack.mitre.org/software/S0198) can discover and close windows on controlled systems.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can collect the IP address of a compromised host.(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
24 collect client information and configuration ... 26 get logged on users 26 (r) send logged on users
[NETWIRE](https://attack.mitre.org/software/S0198) can capture session logon details from a compromised host.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can discover processes on compromised hosts.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can discover and collect victim system information.(Citation: McAfee Netwire Mar 2015)
[NETWIRE](https://attack.mitre.org/software/S0198) has the ability to search for files on the compromised host.(Citation: Proofpoint NETWIRE December 2020)
After an anti-emulation stage, stage 2 decrypts the final malware... String Use VM Vmware check?
hMutex = CreateMutexA(0, 1, “mJhcimNA”)
Collection
11 techniques
Collection
used by cybercriminals to take control of infected computers and steal a wide array of information.
[NETWIRE](https://attack.mitre.org/software/S0198) can perform keylogging.(Citation: McAfee Netwire Mar 2015)(Citation: FireEye APT33 Webinar Sept 2017)(Citation: FireEye NETWIRE March 2019)(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
31 set mouse button press 32 set cursor position
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[NETWIRE](https://attack.mitre.org/software/S0198) has the ability to write collected data to a file created in the <code>./LOGS</code> directory.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can capture the victim's screen.(Citation: McAfee Netwire Mar 2015)(Citation: FireEye NETWIRE March 2019)(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can automatically archive collected data.(Citation: Red Canary NETWIRE January 2020)
44 get audio devices and formats ... 46 start audio recording ... 48 stop audio recording
[NETWIRE](https://attack.mitre.org/software/S0198) has the ability to compress archived screenshots.(Citation: Red Canary NETWIRE January 2020)
NETWIRE ... Archive Collected Data: Archive via Custom Method
[NETWIRE](https://attack.mitre.org/software/S0198) has used a custom encryption algorithm to encrypt collected data.(Citation: FireEye NETWIRE March 2019)
Command and Control
13 techniques
Command and Control
The command ID (cmd_id) 0x3 and 0x5 specify the packets are used for an initial key exchange. The ID is encoded/decoded by one byte xor on each side.
NetWire uses a custom, TCP-based protocol.
[NETWIRE](https://attack.mitre.org/software/S0198) has the ability to communicate over HTTP.(Citation: Red Canary NETWIRE January 2020)(Citation: Proofpoint NETWIRE December 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can implement use of proxies to pivot traffic.(Citation: Red Canary NETWIRE January 2020)
"APT41 used a tool called CLASSFON to covertly proxy network communications." / "BADCALL functions as a proxy server between the victim and C2 server." / "Sandworm Team's BCS-server tool can create an internal proxy server to redirect traffic..."
[NETWIRE](https://attack.mitre.org/software/S0198) can use TCP in C2 communications.(Citation: Red Canary NETWIRE January 2020)(Citation: Unit 42 NETWIRE April 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) has used web services including Paste.ee to host payloads.(Citation: FireEye NETWIRE March 2019)
[NETWIRE](https://attack.mitre.org/software/S0198) can downloaded payloads from C2 to the compromised host.(Citation: FireEye NETWIRE March 2019)(Citation: Proofpoint NETWIRE December 2020)
Useful starting points are MITRE ATT&CK techniques for remote access software (T1219)
The use of dynamic DNS domains for C2 communications is a central technique in the arsenal of the DDGroup actor.
The NetWire C2 protocol is TCP-based... HYDSEVEN customized the C2 protocol with different data format.
[NETWIRE](https://attack.mitre.org/software/S0198) can encrypt C2 communications.(Citation: Red Canary NETWIRE January 2020)
[NETWIRE](https://attack.mitre.org/software/S0198) can use AES encryption for C2 data transferred.(Citation: Red Canary NETWIRE January 2020)
Exfiltration
2 techniques
Exfiltration
Netwire RAT takes control of the compromised machine and performs malicious activities such as data exfiltration and reconnaissance.
The stolen credentials were then sent to predefined email addresses controlled by the attackers, enabling unauthorized access to victims’ accounts and systems.
Impact
2 techniques
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 ...
Scammers running business email compromise (BEC) fraud have grown in number, attack more often, and turn to remote access trojans as the preferred malware type to accompany their raids.
Observables
288 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
178 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.