Petya
Table of Contents
Overview
Petya is one of the most historically destructive malware architectures ever deployed. Originally developed in early 2016 as a commercial ransomware strain by a developer operating under the handle 'Janus Cybercrime Solutions', Petya deviated from traditional userland ransomware by targeting low-level operating system storage structures: it overwrote the Master Boot Record (MBR) and encrypted the Master File Table (MFT) of NTFS volumes, preventing Windows from booting. In June 2017, the malware was repurposed into NotPetya (also tracked as Nyetya or ExPetr), a catastrophic pseudo-ransomware wiper deployed by Russian Military Intelligence (GRU Unit 74455, Sandworm Team). NotPetya was initially seeded through a compromised software update of M.E.Doc, the dominant tax accounting software in Ukraine. Once inside enterprise networks, NotPetya rapidly wormed across subnets by exploiting the EternalBlue (CVE-2017-0144) and EternalRomance (CVE-2017-0145) SMB vulnerabilities, while simultaneously dumping LSASS credentials using Mimikatz and executing remotely via PsExec and WMI. The attack caused an estimated $10 billion in damage worldwide, paralyzing global logistics (Maersk), healthcare (Merck), and multinational infrastructure. In October 2020, the U.S. Department of Justice unsealed a landmark indictment charging six Russian GRU officers for the attack.
Known aliases
Threat reports may refer to this family under multiple names:
Threat Actor Attribution
Attribution is probabilistic, not a science. Each link below states its confidence level and the evidence behind it.
- Russian GRU Unit 74455 (Sandworm Team / TeleBots) High confidence
Basis: While early 2016 Petya was commercial cybercrime ('Janus'), the June 2017 NotPetya campaign was attributed directly to Russian Military Intelligence (GRU Unit 74455 / Sandworm Team). Formal federal indictments were unsealed by the U.S. Department of Justice in October 2020 charging six GRU officers with deploying the destructive wiper worldwide. [source]
Family Pedigree & Lineage
Malware authors regularly fork and iterate upon existing codebases. Observed upstream lineage and downstream variants for this family include:
Known Derivatives & Downstream Variants: Petya Original · Mischa · Goldeneye · Notpetya
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to our technical analysis hubs and the official MITRE ATT&CK framework:
| Technique | Name | Tactic | Official Spec |
|---|---|---|---|
T1561.002 | Disk Wipe: Disk Structure Wipe | Impact | ATT&CK ↗ |
T1490 | Inhibit System Recovery | Impact | ATT&CK ↗ |
T1210 | Exploitation of Remote Services | Lateral Movement | ATT&CK ↗ |
T1047 | Windows Management Instrumentation | Execution | ATT&CK ↗ |
T1569.002 | System Services: Service Execution | Execution | ATT&CK ↗ |
MITRE D3FEND™ Defensive Countermeasures
Defensive techniques mapped to counter the offensive tradecraft observed in this family (via the MITRE D3FEND matrix):
| D3FEND ID | Countermeasure Name | Tactic | Countered ATT&CK | Defensive Guidance |
|---|---|---|---|---|
D3-NPS | Network Protocol Segmentation & Patching | Filter | T1210 | Disable legacy protocols (e.g. SMBv1) and restrict SMB/RPC lateral movement across internal subnet boundaries. |
D3-VSS | Volume Shadow & Snapshot Hardening | Harden | T1490 | Block execution of vssadmin.exe and wmic shadowcopy delete; maintain air-gapped immutable backup repositories. |
D3-SPE | System Service Execution Analysis | Detect | T1569.002 | Monitor Windows Event ID 7045 (New Service Installation) and alert on services executing from user directories. |
Exploited Vulnerabilities (CVEs)
This malware family is documented weaponizing the following common vulnerabilities and exposures:
- CVE-2017-0144 — In-depth exploitation analysis and catalog intelligence (NIST NVD ↗).
- CVE-2017-0145 — In-depth exploitation analysis and catalog intelligence (NIST NVD ↗).
Command & Control (C2) and Network Profile
How this family talks to its operators. C2 traffic can often identify a family even when its code and configuration are hard to analyse. Ports and patterns are historical and change between campaigns, so use them as hunting leads rather than block-only rules.
| Protocols | SMB, RPC, TCP |
|---|---|
| Observed ports | 139, 445, 80 |
| Infrastructure model | Self-propagating internal network worm requiring zero external C2 infrastructure for operational execution; initially seeded via compromised Ukrainian M.E.Doc accounting software update servers. |
| Encryption / encoding | XOR-based Master Boot Record (MBR) replacement, coupled with irreversible Master File Table (MFT) encryption using Salsa20 and AES-128 (engineered without a functional decryption key mechanism in NotPetya). |
| Traffic fingerprint | Aggressive internal subnet scanning on TCP port 445 (SMB), followed by remote service creation via PsExec and WMI utilizing harvested administrator credentials. |
| Identifiable from traffic alone | High |
Network detection ideas
- Alert on sudden high-volume internal lateral SMBv1 traffic on TCP port 445 matching EternalBlue exploitation signatures
- Monitor for rundll32.exe or perfc.dat executing with #1 export ordinal across multiple internal systems
- Inspect for unauthorized overwriting of physical drive sector 0 (\\.\PhysicalDrive0 / Master Boot Record)
Sources: US DOJ Sandworm / NotPetya Indictment Announcement, CISA Alert TA17-181A
Indicators of Compromise
Public indicators drawn from CISA advisories and vendor reporting. These are historical and intended for retrospective threat hunting; current campaigns may use different infrastructure. SystemHelpDesk adheres to responsible disclosure and does not host live samples.
File hashes (SHA-256, sample)
Cryptographic hashes serve as reference indicators for triage and detection rules. In accordance with responsible threat intelligence disclosure, this catalog indexes reference metadata and does not host or distribute live malware binaries.
027cc450ef5f8c5f653329641ec1fed91f694e0d229928963b30f6b0d7d3a74571b6a493388e7d0b40c83ce903bc6b04265d93e0cae99055fa72b3391a540746
Delivery vectors
Supply-chain compromise of Ukrainian accounting software M.E.Doc update serverLateral movement across internal subnets via EternalBlue and harvested credentials via PsExec/WMI
Persistence mechanisms
Overwrites Master Boot Record (MBR) on \\.\PhysicalDrive0 and schedules hard reboot via shutdown.exe /r /fForced blue-screen crash to initiate malicious chkdsk screen encryption routine
Tiered Detection Rules (Cisco CAIRN Model)
Modern threat detection requires multi-layered rule engineering. We classify detections into three operational tiers based on signal fidelity:
Tier 1 Primitive Artifact Rule (Fast Triage)
Matches raw strings and file markers. Vulnerable to binary repacking and simple obfuscation.
rule MALWARE_WIN_PETYA_T1_ARTIFACT {
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Petya"
tier = "T1 - Primitive Artifact"
confidence = "Low-Medium (Fast Triage)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
$s1 = "petya" ascii wide nocase
$s2 = "petya" ascii wide nocase
$s3 = "notpetya" ascii wide nocase
$s4 = "nyetya" ascii wide nocase
$s5 = "goldeneye" ascii wide nocase
$s6 = "petrwrap" ascii wide nocase
$s7 = "expetr" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}
Tier 2 Behavioral Context Rule (Process Chains & Sigma)
Tracks parent-child process anomalies and suspicious scripting telemetry. Resilient against file renames.
title: SystemHelpDesk Detection - Petya (Ransomware) Execution & Triage
id: 7fe1db2f-8718-59b9-a5c7-d539fad180fb
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
with the Petya malware family. Detects volume shadow copy deletion, boot status
tampering, and recovery inhibition characteristic of modern ransomware operations.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/petya
- https://malware-families-catalog.systemhelpdesk.com/defensive/ransomware-protection
- https://malware-families-catalog.systemhelpdesk.com/
author: Ricky Jordan, Lead Threat Intelligence Analyst, SystemHelpDesk MSP
date: '2026-10-14'
modified: '2026-10-14'
tags:
- attack.ransomware
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1047
- attack.t1561_002
- attack.t1569_002
- attack.t1490
- attack.t1210
logsource:
category: process_creation
product: windows
detection:
selection_process:
Image|endswith:
- \vssadmin.exe
- \wmic.exe
- \wbadmin.exe
- \bcdedit.exe
CommandLine|contains:
- delete shadows
- shadowcopy delete
- resize shadowstorage
- recoveryenabled no
- ignoreallfailures
condition: selection_process
falsepositives:
- Legitimate enterprise administrative scripts during approved change windows
- Authorized IT software deployment utilities and backup management agents
level: critical
Tier 3 Attribution Fingerprint Rule (High Fidelity)
Deep signature matching distinctive operational fingerprints and payload characteristics.
rule MALWARE_WIN_PETYA_T3_ATTRIBUTION {
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Petya tradecraft"
tier = "T3 - Attribution Fingerprint"
confidence = "High (Confirmed Family Signature)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
// Core family identifier & heuristic payload signatures
$attrib_str = "petya" ascii wide nocase
$pe_magic = "MZ" ascii
$net_marker = "http" ascii nocase
condition:
uint16(0) == 0x5a4d and ($attrib_str and $net_marker) and filesize < 15MB
}
Containment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Instantly sever network connections to infected endpoints to halt the lateral spread via SMB (EternalBlue).
- If a machine suddenly reboots and displays a fake CHKDSK screen, immediately power it off. This interrupts the MFT encryption process, potentially saving the data.
- Deploy global firewall rules to block lateral SMB traffic (TCP port 445) across internal subnets.
- Do not pay the ransom; in NotPetya variants, the decryption key mechanism is intentionally broken and recovery is impossible.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not allow the fake CHKDSK process to complete; powering off the machine during this phase is the only way to stop the encryption.
- Avoid relying solely on patching to stop the spread; NotPetya also leverages stolen credentials (via Mimikatz) to propagate to fully patched systems.
References & External Analysis
- CISA Advisory: CISA Alert TA17-181A (Petya/NotPetya Ransomware)
- Search "petya" on VirusTotal (External Analysis)
- Search "petya" on Any.Run (Sandbox Sandbox)
- Search "petya" on MalwareBazaar (Malware Samples)
North American Authority Advisory (CISA / NIST)
The Cybersecurity and Infrastructure Security Agency (CISA) has published an official US federal advisory on this family, which can be mapped to NIST Cybersecurity Framework (CSF) incident response controls: CISA Alert TA17-181A (Petya/NotPetya Ransomware) ↗
Frequently Asked Questions
What is Petya / NotPetya?
Petya is an MBR-overwriting ransomware family. In 2017, it was modified by Russian GRU Sandworm into NotPetya, a destructive wiper disguised as ransomware that caused $10 billion in damage worldwide.
Who was indicted for the NotPetya attack?
In October 2020, the U.S. Department of Justice unsealed an indictment charging six officers from Russian GRU Unit 74455 (Sandworm Team) with developing and deploying NotPetya.
Why is NotPetya considered a wiper rather than true ransomware?
NotPetya generated a purely random installation key and overwrote the MFT without storing the decryption key, making data recovery mathematically impossible even if victims paid.
How did NotPetya propagate across networks so rapidly?
NotPetya combined the EternalBlue (CVE-2017-0144) and EternalRomance (CVE-2017-0145) SMB exploits with LSASS credential harvesting, using PsExec and WMI to spread automatically to all reachable hosts.
How can organizations defend against Petya-style attacks?
Organizations must disable SMBv1 across all systems, apply the MS17-010 security patch, segment internal networks, and restrict local administrator credential reuse.
How do I remove the Petya Ransomware from Windows?
Manual removal of Petya is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Petya a virus or a Ransomware?
Petya is classified as a Ransomware. Unlike traditional viruses that infect files, modern malware like Petya typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Petya infection?
Symptoms of Petya can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Protect Your Network Against Ransomwares
Want to prevent Petya and similar threats from compromising your organization? Read our comprehensive defensive guide: Ransomware Containment & Incident Response.
📣 Threat Intel Correction or Update?
Notice an outdated IOC, unlisted alias, or disputed attribution? Threat researchers are invited to propose an update on GitHub or contact the SystemHelpDesk research desk. All community revisions are credited in our public CHANGELOG.
Machine-readable
Get this profile as JSON: https://malware-families-catalog.systemhelpdesk.com/api/petya.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.