PUNCHBUGGY
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistenceDefense evasionReconnaissance
- Platforms
- Windows
ShellTea, also known as PUNCHBUGGY, is a Windows backdoor with capabilities for script execution, persistence, security-software discovery, and data exfiltration. A variant was observed between March and May 2019 attempting to compromise multiple machines in a hotel-entertainment organization's network.
ShellTea uses PowerShell scripts, including to decode Base64-encoded assemblies, and can load DLL components through Rundll32 or the LoadLibrary API. It establishes persistence through Registry-based autorun mechanisms. Its defense-evasion behaviors include disguising malicious DLLs with names resembling legitimate Windows system components and deleting files written to disk. The backdoor can enumerate antivirus products registered on an infected system. It also stages collected information in randomly named temporary files and uses gzip compression before exfiltration.
Associated vulnerabilities
1 CVE 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.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has used [PowerShell](https://attack.mitre.org/techniques/T1059/001) scripts.(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has used python scripts.(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can load a DLL using the LoadLibrary API.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)
...uses the LoadLibraryExW() function to load additional modules... execute additional plugins by loading the respective DLLs... loaded and executed DLLs in memory during runtime... loads a dynamic library (.dylib file) using dlopen() and obtains a function pointer... using dlopen() and dlsym()... calls LoadLibrary then executes exports from a DLL.
Persistence
2 techniques
Persistence
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can establish using a AppCertDLLs Registry key.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has been observed using a Registry Run key.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)(Citation: Morphisec ShellTea June 2019)
Privilege Escalation
3 techniques
Privilege Escalation
we managed to track down more than 10 (!) of their Windows Kernel Local Privilege Escalation (LPE) exploits, many of which were zero-days at the time of development.
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can establish using a AppCertDLLs Registry key.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has been observed using a Registry Run key.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)(Citation: Morphisec ShellTea June 2019)
Stealth
7 techniques
Stealth
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has hashed most its code's functions and encrypted payloads with base64 and XOR.(Citation: Morphisec ShellTea June 2019)
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.
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) mimics filenames from %SYSTEM%\System32 to hide DLLs in %WINDIR% and/or %TEMP%.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can delete files written to disk.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has used [PowerShell](https://attack.mitre.org/techniques/T1059/001) to decode base64-encoded assembly.(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can load a DLL using Rundll32.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)
...uses the LoadLibraryExW() function to load additional modules... execute additional plugins by loading the respective DLLs... loaded and executed DLLs in memory during runtime... loads a dynamic library (.dylib file) using dlopen() and obtains a function pointer... using dlopen() and dlsym()... calls LoadLibrary then executes exports from a DLL.
Discovery
4 techniques
Discovery
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can gather system information such as computer names.(Citation: Morphisec ShellTea June 2019)
“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 …”
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can gather user names.(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can gather AVs registered in the system.(Citation: Morphisec ShellTea June 2019)
Collection
4 techniques
Collection
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.
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has saved information to a random temp file before exfil.(Citation: Morphisec ShellTea June 2019)
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”).
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) has Gzipped information and saved it to a random temp file before exfil.(Citation: Morphisec ShellTea June 2019)
Command and Control
2 techniques
Command and Control
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) enables remote interaction and can obtain additional code over HTTPS GET and POST requests.(Citation: FireEye Fin8 May 2016)(Citation: FireEye Know Your Enemy FIN8 Aug 2016)(Citation: Morphisec ShellTea June 2019)
[PUNCHBUGGY](https://attack.mitre.org/software/S0196) can download additional files and payloads to compromised hosts.(Citation: FireEye Know Your Enemy FIN8 Aug 2016)(Citation: Morphisec ShellTea June 2019)
Observables
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.