SHOTPUT
- Type
- RAT
- Capabilities
- ExfiltrationPost exploitationDefense evasionReconnaissance
- Delivery
- Spearphishing
- Platforms
- Windows
SHOTPUT, also known as Pirpi and Backdoor.APT.CookieCutter, is a Windows remote access Trojan and DLL backdoor associated with the China-based cyberespionage group APT3, also tracked as Gothic Panda, Buckeye, and UPS Team. It provides remote command execution, file upload and download, process management, and system information collection. Its discovery commands enumerate running processes, connected users, domain servers, and domain controllers, and it uses netstat to inspect TCP connection status.
SHOTPUT communicates with command-and-control servers through HTTP GET requests, carrying encrypted data in Cookie headers and retrieving encoded commands embedded in HTML tags. Some variants support SSL and contain embedded cryptographic keys. Its evasion techniques include anti-disassembly constructs, encoded data, and state-machine-based execution delays. Later variants introduced more complex encoding and randomized sleep behavior to hinder sandboxing and debugging.
APT3 has delivered SHOTPUT through spearphishing emails containing malicious links or attachments and through exploitation of Internet Explorer and Adobe Flash vulnerabilities. Documented delivery chains exploited CVE-2010-3962, CVE-2014-1776, CVE-2015-3113, and CVE-2015-5119. Some chains concealed encrypted backdoor payloads within animated GIF images using steganography. SHOTPUT has been used against organizations in the United States and United Kingdom; documented APT3 campaigns deploying it also targeted aerospace, defense, energy, and telecommunications organizations.
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
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.
It is blamed for using a Remote Access Trojan named Pirpi in attacks against the US and UK.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
The Trojan is usually delivered through malicious attachments or links in spear-phishing e-mails
The Trojan is usually delivered through malicious attachments or links in spear-phishing e-mails
Execution
1 technique
Execution
A June 23 FireEye blog post titled “Operation Clandestine Wolf” discussed a cyber espionage group, known as APT3, that had been exploiting a zero-day vulnerability in Adobe Flash.
Privilege Escalation
1 technique
Privilege Escalation
9 Load a DLL from %APPDATA% and execute one of its exported functions
Stealth
7 techniques
Stealth
[SHOTPUT](https://attack.mitre.org/software/S0063) is obscured using XOR encoding and appended to a valid GIF file.(Citation: FireEye Clandestine Wolf)(Citation: Palo Alto CVE-2015-3113 July 2015)
The malware author used steganography to embed an encrypted payload within this animated GIF image. The payload in the CVE-2014-1776 was also embedded within an animated GIF.
JPIN uses a encrypted and compressed payload that is disguised as a bitmap within the resource section of the installer. Ramsay has base64-encoded its portable executable and hidden itself under a JPG header. TEARDROP created and read from a file with a fake JPG header.
9 Load a DLL from %APPDATA% and execute one of its exported functions
The malware author likely implemented these state machines as an anti-debugging technique and to defeat most modern sandbox solutions.
Download a file, load it into memory, then delete the file
The malware author likely implemented these state machines as an anti-debugging technique and to defeat most modern sandbox solutions.
Discovery
10 techniques
Discovery
[SHOTPUT](https://attack.mitre.org/software/S0063) has a command to list all servers in the domain, as well as one to locate domain controllers on a domain.(Citation: Palo Alto CVE-2015-3113 July 2015)
[SHOTPUT](https://attack.mitre.org/software/S0063) uses [netstat](https://attack.mitre.org/software/S0104) to list TCP connection status.(Citation: Palo Alto CVE-2015-3113 July 2015)
[SHOTPUT](https://attack.mitre.org/software/S0063) has a command to obtain a process listing.(Citation: Palo Alto CVE-2015-3113 July 2015)
13 Get network adaptor information
[SHOTPUT](https://attack.mitre.org/software/S0063) has a command to obtain a directory listing.(Citation: Palo Alto CVE-2015-3113 July 2015)
“actors used the following commands… to enumerate user accounts: net user >> %temp%\download; net user /domain >> %temp%\download … APT1 used the commands net localgroup, net user, and net group to find accounts… APT32 enumerated administrative users using the commands net localgroup administrators … OilRig has run net user, net user /domain, net group "domain admins" /domain …”
[SHOTPUT](https://attack.mitre.org/software/S0063) has a command to retrieve information about connected users.(Citation: Palo Alto CVE-2015-3113 July 2015)
FIN8 has used dsquery and other Active Directory utilities to enumerate hosts; they have also used nltest.exe /dclist to retrieve a list of domain controllers.
The malware author likely implemented these state machines as an anti-debugging technique and to defeat most modern sandbox solutions.
The malware author likely implemented these state machines as an anti-debugging technique and to defeat most modern sandbox solutions.
Command and Control
4 techniques
Command and Control
FireEye researchers analysing the Pirpi backdoor used by APT3 identified a sample that communicated with the domain twadcorp[.]com.
The Pirpi.2014 and Pirpi.2015 payloads communicate with their C2 by issuing HTTP GET requests to the C2 domain hardcoded inside the payload or within its “vcl.tmp” configuration file.
Download a file from the C2, launch it, and then delete it
both use the HTTP Cookie field to transmit data in encrypted form to the C2 domain.
Exfiltration
1 technique
Exfiltration
Figure 5. Pirpi.2014 C2 Communication using Cookie Field for Exfiltration
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
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.