SquareShell
- Type
- Webshell
- Capabilities
- Post exploitationPersistenceDefense evasion
- Delivery
- PhishingSpearphishing
- Platforms
- Linux
SquareShell is a PHP web shell used in espionage intrusions against vulnerable Roundcube webmail servers. It has been associated with activity tracked as UNK_MassTraction, a likely China-aligned threat cluster that targeted universities in the United States and Canada, particularly physics, engineering, astrophysics, particle physics, and other research areas with national-security relevance. The malware is deployed after successful exploitation of the Roundcube deserialization vulnerability CVE-2025-49113, typically following earlier compromise of user webmail sessions through CVE-2024-42009 and the IceCube credential-stealing payload.
SquareShell provides remote command execution on the compromised mail server, giving operators server-side access that can be used as a foothold for broader intrusion activity. Reported implementations support multiple PHP command-execution functions and have been modified to blend into the environment through timestomping. In the observed campaigns, SquareShell served as the preferred server-resident access mechanism, while operators used VShell as a fallback implant when web shell deployment failed. The broader intrusion chain indicates use of compromised or spoofed email senders, targeted phishing, credential theft, session theft, reconnaissance, and post-compromise pivoting from exposed mail infrastructure into internal networks.
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.
UNK_MassTraction repeatedly exploited Roundcube vulnerabilities to infiltrate university networks and used IceCube, SquareShell, and VShell.
Techniques & procedures
5 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
сам просмотр письма в уязвимой версии Roundcube запускает эксплуатацию старого XSS-бага CVE-2024-42009... После сбора данных IceCube использует вспомогательные компоненты для эксплуатации критической уязвимости десериализации в Roundcube — CVE-2025-49113.
Execution
1 technique
Execution
который позволяет удаленно выполнять команды... малварь загружает шелл-скрипт, который запускает прямо в памяти VShell
Persistence
2 techniques
Persistence
This one, a deserialization exploit tracked as CVE-2025-49113, allows the miscreants to install a webshell called SquareShell that allows for remote code execution
С ее помощью атакующие пытаются установить PHP-веб-шелл SquareShell, который позволяет удаленно выполнять команды.
Stealth
1 technique
Stealth
The webshell is timestomped by copying the last modified time of a legitimate plugin to blend into the environment.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.