GodPotato
- Type
- Trojan
- Capabilities
- Privilege escalationPost exploitation
- Platforms
- Windows
GodPotato is a publicly available Windows local privilege-escalation tool in the Potato family, implemented in C# for the .NET runtime. It abuses DCOM/RPC interactions and token impersonation to execute attacker-supplied commands with NT AUTHORITY\SYSTEM privileges from a suitably privileged service-account context, commonly one possessing SeImpersonatePrivilege. Its escalation mechanism relies on existing impersonation permissions rather than a memory-corruption exploit. The tool obtains a privileged token through RPC-related named-pipe impersonation and uses that token to launch commands.
GodPotato is typically deployed after attackers have already obtained command execution, including through IIS web shells, compromised SQL Server instances, or enterprise application services. Operators distribute it as precompiled binaries or source code for local compilation, and modified builds have also been executed through in-memory .NET loaders. Rebranded variants retain the underlying privilege-escalation functionality while changing namespaces, internal identifiers, and assembly metadata.
GodPotato has been used by multiple unrelated espionage and financially motivated actors, including Earth Krahang, Earth Lamia, and UAT-10147, as well as in cryptocurrency-mining and ransomware-associated intrusions. It is a post-exploitation utility rather than an initial-access mechanism, and its presence alone does not establish threat-actor attribution.
Associated threat actors
8 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Using tools such as BadPotato, SweetPotato, GodPotato, or PrinterNotifyPotato for privilege escalation on Windows systems
We observed the attacker using GodPotato for privilege escalation.
The comparison table lists “BadPotato, GodPotato, PrintNotifyPotato” under DragonRank's privilege-escalation tooling.
The use of the hacking tool "Sophosx64.exe," which is the "GodPotato" tool. We also found the same tool with the same filename used in Earth Lamia's attack.
To escalate privileges, the group used the publicly available GodPotato tool.
GodPotato: Modern token-impersonation LPE tool, staged as C# source and compiled .NET binary.
+2 more in the app. View in Mallory
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
3 techniques
Resource Development
T1588.002 — Obtain Capabilities: Tool (Resource Development)
Public GodPotato source present in the recovered tree.
The access log shows that tooling pulled the same evening, which establishes distribution from this server and nothing past it.
Initial Access
1 technique
Initial Access
Using tools such as BadPotato, SweetPotato, GodPotato, or PrinterNotifyPotato for privilege escalation on Windows systems
Execution
1 technique
Execution
It reads a base64 command from C:\Users\Public\ptcmd.txt, decodes it, runs it as cmd.exe /c under the stolen token.
Persistence
1 technique
Persistence
Using tools such as BadPotato, SweetPotato, GodPotato, or PrinterNotifyPotato for privilege escalation on Windows systems
Privilege Escalation
5 techniques
Privilege Escalation
Using tools such as BadPotato, SweetPotato, GodPotato, or PrinterNotifyPotato for privilege escalation on Windows systems
Using tools such as BadPotato, SweetPotato, GodPotato, or PrinterNotifyPotato for privilege escalation on Windows systems
The report identifies privilege escalation through token impersonation, using GodPotato and PrintSpoofer.
With a SYSTEM client attached, the pipe thread impersonates the connected client ... and duplicates a token.
Élévation de privilèges vers SYSTEM avec GodPotato.
Stealth
5 techniques
Stealth
The operator rebuilt it under the name Wrqsnx and renamed the namespace, the context classes, the pipe path and the assembly metadata.
The DLL file ... was named "mscoree.dll," which is one of the libraries loaded by "AppLaunch.exe".
Using tools such as BadPotato, SweetPotato, GodPotato, or PrinterNotifyPotato for privilege escalation on Windows systems
The report identifies privilege escalation through token impersonation, using GodPotato and PrintSpoofer.
With a SYSTEM client attached, the pipe thread impersonates the connected client ... and duplicates a token.
Credential Access
2 techniques
Credential Access
Using Potato exploits , a family of well-known local privilege-escalation techniques ... that abuse these privileges by coercing SYSTEM-level COM/RPC authentication back to an attacker-controlled listener
Intercepting NTLM or Kerberos authentication by using techniques such as coercion, relay attacks, or credential capture
Collection
1 technique
Collection
Intercepting NTLM or Kerberos authentication by using techniques such as coercion, relay attacks, or credential capture
Command and Control
1 technique
Command and Control
The certutil utility was used to download the ASPX payload, which was hosted by abusing Bashupload... This web service... is no stranger to being abused as an ingress tool transfer technique.
Observables
19 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.