PetitPotato is a post‑exploitation local privilege escalation (LPE) tool, not a standalone malware family, first publicly released in July 2023 by security researcher Antoine Cailliau (@topotam). It belongs to the category of LPE utilities that abuse the Windows SeImpersonatePrivilege to gain SYSTEM‑level access after an attacker has already obtained initial code execution on a compromised host (MITRE ATT&CK T1134 – Access Token Manipulation). The tool was developed as an evolution of earlier “Potato”‑style exploits (e.g., JuicyPotato, RottenPotato) and relies on COM‑based token impersonation techniques.
PetitPotato does not propagate autonomously; it must be manually or script‑loaded onto a victim machine where the attacker holds a low‑integrity or medium‑integrity shell. Its core technique leverages the IConnectionPointContainer and IUnknown COM interfaces to coerce the SYSTEM account into executing a malicious payload. The exploit spawns a COM server under the context of a user with the SeImpersonate privilege, then uses RpcOpenPrinter (or similar CLSIDs) to trigger a call that impersonates the SYSTEM token. Unlike older Potato variants, PetitPotato is designed to work on Windows 10/11 and Windows Server 2019/2022 without relying on the deprecated “RottenPotato NG” approaches. It communicates over ALPC (Advanced Local Procedure Call) and uses named pipe impersonation to execute the final payload. No command‑and‑control (C2) infrastructure is needed because the tool is a one‑shot privilege elevator; persistence must be established separately.
PetitPotato was first demonstrated at Black Hat Arsenal 2023 and documented on the author’s GitHub repository (topotam/PetitPotato). No high‑profile ransomware campaigns have been officially attributed to PetitPotato exploitation alone, but it has been observed as a post‑exploitation component in intrusion sets that also deploy LockBit and BlackCat ransomware after gaining SYSTEM access. The tool does not have its own CVE; instead, it abuses the inherent privilege configuration that Microsoft considers a design feature, not a vulnerability. Microsoft has issued no standalone patch but continues to recommend restricting the SeImpersonate privilege to specific service accounts.
Known file hashes for published builds are not widely cataloged due to rapid recompilation; however, file names such as PetitPotato.exe or petitpotato.dll are common. Behavioral indicators include the spawning of a child process (e.g., cmd.exe or powershell.exe) from svchost.exe or rundll32.exe with a SYSTEM integrity level, combined with ALPC traffic to the lsass.exe process. Network IOCs are absent because the tool operates entirely locally. Registry keys are not created; the tool uses only in‑memory COM instantiation. Windows Event Log 4673 (SeImpersonatePrivilege use) can be a detection signal when the privilege is abused by an unexpected process.
PetitPotato enables an attacker who already has code execution as a local user to escalate to NT AUTHORITYSYSTEM, effectively gaining full administrative control over the host. This access can then be used to deploy persistence mechanisms, disable security tools, exfiltrate data, or execute ransomware payloads. The primary affected sectors are any organization running unpatched Windows systems where the SeImpersonate privilege is granted to non‑critical user accounts, including banking, healthcare, and critical infrastructure environments.
Organizations should audit and remove the SeImpersonatePrivilege from all user accounts and service accounts that do not explicitly require it, using Group Policy or the SecEdit /Secedit tool. Deploy EDR rules that monitor for suspicious ALPC connections and the execution of “Potato”‑named binaries. Microsoft’s Attack Surface Reduction (ASR) rules can block child-process creation from untrusted processes, while ensuring the latest Windows security updates are applied for related token‑impersonation mitigations.
⚠️
Many of the malware families catalogued here use bot networks to deliver payloads and scan for exposed servers. Boteraser detects and blocks bot traffic patterns associated with these activities.
Check My Site for FreeFree to start · Cancel anytime
ⓘ 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.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.