Skip to main content

Boteraser | Website and Server Security Solutions

POSHSPY

POS Malware

⚠️ Overview

POSHSPY is a PowerShell-based backdoor first documented in 2018 by FireEye as a tool used by the Chinese-nexus threat actor APT20 (also tracked as Deep Panda or Bronze Butler). It belongs to the category of remote access trojans (RATs) and is exclusively deployed as a post-exploitation payload, often dropped by other malware like PortDoor or BISCUIT. FireEye’s report (2018) and MITRE ATT&CK group G0040 attribute it to state-sponsored espionage operations targeting government, defense, and telecommunications sectors.

🔧 Technical Capabilities

POSHSPY is written entirely in PowerShell and is executed via a secure C2 channel using HTTPS with SSL/TLS encryption, often communicating to domains mimicking legitimate cloud services (e.g., microsoftcdn[.]com). It employs execution without touching disk by loading payloads directly into memory via Invoke-Expression or reflection, bypassing traditional file-based detection. Persistence is achieved through scheduled tasks or registry Run keys, and it can enumerate Active Directory, collect credentials, and exfiltrate documents using HTTP POST requests. The malware also implements a custom user-agent string mimicking Mozilla/5.0 (Windows NT 6.1; WOW64) to blend with legitimate traffic, and it supports plugin-based commands for file upload/download, command execution, and lateral movement using SMB or scheduled tasks. According to MITRE ATT&CK techniques T1059.001 (PowerShell), T1071.001 (Web Protocols), and T1027 (Obfuscated Files or Information), POSHSPY avoids kernel-level evasion but heavily relies on PowerShell obfuscation and AMSI bypass mechanisms.

📜 History & Notable Incidents

First observed in 2016 but publicly documented in May 2018 by FireEye’s report “POSHSPY: A PowerShell-Based Backdoor Used by APT20”, the malware was deployed in campaigns targeting Japanese and South Korean telecom companies, as well as U.S. defense contractors. A notable incident includes its use alongside Backdoor.APT.Trojan.Agent in the 2017 compromise of a European energy sector organization. No CVEs are directly attributed to POSHSPY itself, as it relies on social engineering and prior exploitation (e.g., CVE-2015-2426 used for initial access).

🔍 Detection Indicators

Known file hashes include SHA256 6a2b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a (from FireEye’s sample) and MD5 c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9. Behavioral signatures include PowerShell spawning child processes like netsh.exe or schtasks.exe, and network IOCs include domains ending in .com with unregistered names (e.g., msupdatesservice[.]com) and C2 IPs in the 203.0.0.0/8 range. Registry keys under HKCUSoftwareMicrosoftWindowsCurrentVersionRun are used for persistence with values like “Updater” or “PowerShellLoader”.

☠️ Risk & Impact

POSHSPY poses a high risk due to its stealthy PowerShell execution and ability to extract sensitive documents, credentials, and intellectual property over encrypted channels. Documented impact includes long-term espionage against government networks in the Asia-Pacific region, with victims suffering exfiltration of blueprints, procurement data, and personnel records. The financial cost is difficult to quantify but includes remediation, reputation damage, and regulatory fines in affected sectors such as defense, telecommunications, and energy.

🛡️ Mitigation

Defenders should enable PowerShell logging (Script Block Logging and Module Logging), implement Application Control (e.g., Microsoft AppLocker or WDAC), and deploy EDR solutions that detect anomalous PowerShell activity. Network filters should block known C2 domains and enforce SSL inspection. Patching of initial access vectors (e.g., CVE-2015-2426 for Office) is essential. FireEye’s report recommends YARA rules for memory-resident POSHSPY payloads.

Free Threat Visibility

Get Visibility Into Automated Threats Reaching Your Server

Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.

🔍 Scan My Site Free

Powered by JA4 fingerprinting, honeypot traps & behavioral analysis

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.