PoetRAT
- Type
- RAT
- Capabilities
- Credential theftExfiltrationPersistenceDefense evasionReconnaissanceScanning
- Delivery
- Spearphishing
- Platforms
- Windows
PoetRAT is a remote access trojan targeting Windows systems that has been used in targeted attacks involving energy-sector industrial control systems and SCADA environments. It is distributed through malicious Microsoft Word documents, including spearphishing attachments, and uses Visual Basic scripts for malicious execution.
PoetRAT supports screenshot capture, running-process enumeration, collection of usernames and computer names, ZIP compression, and data exfiltration over its command-and-control channel. Its operations have used Nmap for remote-system discovery, a compiled implementation of pypykatz for credential theft, and a Python utility for harvesting browser credentials. An accompanying .NET utility has also been used to exfiltrate information through an email account. PoetRAT establishes persistence through Windows Registry modifications and can alter Registry settings to change its execution behavior. Its defense-evasion techniques include decoding obfuscated scripts with LZMA and Base64 libraries and checking disk capacity to identify analysis environments, treating disks smaller than 62 GB as indicative of a sandbox.
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.
STIBNITE sent victims spear-phishing emails about such events as a first lure and attempt at installing a new version of PoetRAT written in .NET.
Techniques & procedures
48 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
STIBNITE leverages spearphishing to drop a custom malware known as PoetRAT.
[PoetRAT](https://attack.mitre.org/software/S0428) was distributed via malicious Word documents.(Citation: Talos PoetRAT April 2020)
Execution
9 techniques
Execution
OT operators should look for PoetRAT activity in IT and OT environments through execution of Python and Lua.
[PoetRAT](https://attack.mitre.org/software/S0428) has called cmd through a Word document macro.(Citation: Talos PoetRAT October 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has used Word documents with VBScripts to execute malicious activities.(Citation: Talos PoetRAT April 2020)(Citation: Talos PoetRAT October 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) was executed with a Python script and worked in conjunction with additional Python-based post-exploitation tools.(Citation: Talos PoetRAT April 2020)
PoetRAT has executed a Lua script through a Lua interpreter for Windows.
[PoetRAT](https://attack.mitre.org/software/S0428) has executed a Lua script through a Lua interpreter for Windows.(Citation: Talos PoetRAT October 2020)
has attempted to get victims to launch malicious Microsoft Word attachments delivered via spearphishing emails... has required user execution of a malicious MSI installer... has been executed through user installation of an executable disguised as a flash installer.
[PoetRAT](https://attack.mitre.org/software/S0428) has used spearphishing attachments to infect victims.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) was delivered with documents using DDE to execute malicious code.(Citation: Talos PoetRAT April 2020)
Persistence
2 techniques
Persistence
[PoetRAT](https://attack.mitre.org/software/S0428) has made registry modifications to alter its behavior upon execution.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has added a registry key in the <RUN> hive for persistence.(Citation: Talos PoetRAT April 2020)
Privilege Escalation
1 technique
Privilege Escalation
[PoetRAT](https://attack.mitre.org/software/S0428) has added a registry key in the <RUN> hive for persistence.(Citation: Talos PoetRAT April 2020)
Stealth
7 techniques
Stealth
[PoetRAT](https://attack.mitre.org/software/S0428) has used a custom encryption scheme for communication between scripts.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has `pyminifier` to obfuscate scripts.(Citation: Talos PoetRAT October 2020)
Many examples describe post-intrusion cleanup, anti-forensics, and removal of artifacts such as logs, scripts, malware components, scheduled tasks, registry keys, and temporary files.
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to overwrite scripts and delete itself if a sandbox environment is detected.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has used LZMA and base64 libraries to decode obfuscated scripts.(Citation: Talos PoetRAT October 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) checked the size of the hard drive to determine if it was being run in a sandbox environment. In the event of sandbox detection, it would delete itself by overwriting the malware scripts with the contents of "License.txt" and exiting.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to hide and unhide files.(Citation: Talos PoetRAT April 2020)
Defense Impairment
1 technique
Defense Impairment
[PoetRAT](https://attack.mitre.org/software/S0428) has made registry modifications to alter its behavior upon execution.(Citation: Talos PoetRAT April 2020)
Credential Access
5 techniques
Credential Access
Multiple actors and tools are described as using Mimikatz/Windows Credential Editor/LaZagne/ProcDump to “dump credentials,” often by targeting LSASS memory (e.g., “used Mimikatz to capture and use legitimate credentials,” “dumped the LSASS process memory using the MiniDump function,” “injecting itself into lsass.exe”).
[PoetRAT](https://attack.mitre.org/software/S0428) used voStro.exe, a compiled pypykatz (Python version of [Mimikatz](https://attack.mitre.org/software/S0002)), to steal credentials.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has used a Python tool named klog.exe for keylogging.(Citation: Talos PoetRAT April 2020)
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[PoetRAT](https://attack.mitre.org/software/S0428) has used a Python tool named Browdec.exe to steal browser credentials.(Citation: Talos PoetRAT April 2020)
Discovery
7 techniques
Discovery
[PoetRAT](https://attack.mitre.org/software/S0428) used Nmap for remote system discovery.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) sent username, computer name, and the previously generated UUID in reply to a "who" command from C2.(Citation: Talos PoetRAT April 2020)
Ember Bear has used tools such as Nmap and MASSCAN for remote service discovery.
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to list all running processes.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to gather information about the compromised host.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to list files upon receiving the <code>ls</code> command from C2.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) checked the size of the hard drive to determine if it was being run in a sandbox environment. In the event of sandbox detection, it would delete itself by overwriting the malware scripts with the contents of "License.txt" and exiting.(Citation: Talos PoetRAT April 2020)
Collection
7 techniques
Collection
Confucius has used a file stealer to steal documents and images... Patchwork developed a file stealer to search C:\ and collect files with certain extensions... Winter Vivern delivered a PowerShell script capable of recursively scanning victim machines looking for various file types before exfiltrating identified files via HTTP.
[PoetRAT](https://attack.mitre.org/software/S0428) has used a Python tool named klog.exe for keylogging.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to take screen captures.(Citation: Talos PoetRAT April 2020)(Citation: Dragos Threat Report 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) used file system monitoring to track modification and enable automatic exfiltration.(Citation: Talos PoetRAT April 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has used a Python tool named Bewmac to record the webcam on compromised hosts.(Citation: Talos PoetRAT April 2020)
Multiple actors and tools are described as using 7-Zip/WinRAR/zip/tar/gzip/makecab/PowerShell Compress-Archive to compress (often password-protect/encrypt) collected data prior to exfiltration (e.g., “used 7zip to archive extracted data in preparation for exfiltration”, “created password-protected RAR archives prior to exfiltration”, “used built-in PowerShell capabilities (Compress-Archive cmdlet) to compress collected data”).
[PoetRAT](https://attack.mitre.org/software/S0428) has the ability to compress files with zip.(Citation: Talos PoetRAT April 2020)
Command and Control
7 techniques
Command and Control
STIBNITE is known to use Dynamic Domain Name System (DDNS) and common ports for C2 traffic.
[PoetRAT](https://attack.mitre.org/software/S0428) has used HTTP and HTTPs for C2 communications.(Citation: Talos PoetRAT October 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has used FTP for C2 communications.(Citation: Talos PoetRAT October 2020)
The FTP section names “PoetRAT” and references “https://attack.mitre.org/techniques/T1105/”.
[PoetRAT](https://attack.mitre.org/software/S0428) used TLS to encrypt communications over port 143(Citation: Talos PoetRAT April 2020)
The content repeatedly describes malware and threat actors using SSL, TLS, HTTPS, RSA, AES, Blowfish, RC4, ECIES, Diffie-Hellman, OpenSSL, WolfSSL, and mutual TLS to protect command and control traffic.
[PoetRAT](https://attack.mitre.org/software/S0428) used TLS to encrypt command and control (C2) communications.(Citation: Talos PoetRAT April 2020)
Exfiltration
4 techniques
Exfiltration
[PoetRAT](https://attack.mitre.org/software/S0428) has exfiltrated data over the C2 channel.(Citation: Talos PoetRAT October 2020)
[PoetRAT](https://attack.mitre.org/software/S0428) has used a .NET tool named dog.exe to exiltrate information over an e-mail account.(Citation: Talos PoetRAT April 2020)
Thrip has used WinSCP to exfiltrate data from a targeted organization over FTP.
[PoetRAT](https://attack.mitre.org/software/S0428) has used [ftp](https://attack.mitre.org/software/S0095) for exfiltration.(Citation: Talos PoetRAT April 2020)
Recent activity
78 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.