Prime ReverseShell
- Type
- Reverse shell
- Capabilities
- Post exploitationDefense evasion
- Delivery
- Spearphishing
- Platforms
- Windows
Prime ReverseShell is a Windows-targeting PowerShell reverse shell derived from the publicly available PSSW100AVB project and packaged as a .NET executable using PS2EXE. It enables operators to execute commands on compromised computers and return their output to a command-and-control server. It has been observed communicating with command-and-control infrastructure over HTTPS.
The Russia-aligned threat actor Gorbag used Prime ReverseShell in its early-2025 operations, before deploying its custom BeautyStealer information stealer. Gorbag targets Ukrainian organizations, including justice and law enforcement institutions, local administrations near the front line, and defense-sector entities. Its delivery methods include spearphishing emails carrying malicious attachments disguised as routine government correspondence concerning taxes or administrative fines.
At least one Prime ReverseShell variant included a deceptive comment portraying the script as a harmless prime-number generator and attempting to discourage analysis by AI systems. This represents an analysis-evasion attempt rather than a change to the tool's reverse-shell functionality.
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.
The group uses spear-phishing emails with malicious attachments to deploy tools such as Prime ReverseShell and BeautyStealer, which steal browser credentials, VPN configurations, and sensitive documents.
Initial attack waves observed in early 2025 have utilized Prime ReverseShell, a derivative of PSSW100AVB that functions as a reverse shell to execute commands on compromised systems and return the results back to a C2 server.
Techniques & procedures
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
Gorbag acquires servers for Prime ReverseShell and BeautyStealer.
Prime ReverseShell is derived from the publicly available PSSW100AVB repository on GitHub, with modifications to suit the operators’ needs.
Execution
2 techniques
Execution
Gorbag uses PowerShell for archive creation and a reverse shell.
Dépôt [...] d’un loader PowerShell ( W8d ) [...] Prime ReverseShell : Reverse shell PowerShell compilé via PS2EXE dans un binaire .NET
Stealth
2 techniques
Stealth
IP C2 obfusquées (remplacement de . et : par d’autres caractères) [...] XOR simple (v1.1) → XOR complexe (v1.2) → RC4 (v2.0)
Délai initial de 2 ou 8 minutes (évasion sandbox)
Discovery
1 technique
Discovery
Délai initial de 2 ou 8 minutes (évasion sandbox)
Command and Control
1 technique
Command and Control
Prime ReverseShell uses HTTPS to communicate with its C&C server.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.