Gandcrab
Table of Contents
Overview
GandCrab is a landmark ransomware family that revolutionized the modern cyber extortion industry by pioneering and popularizing the Ransomware-as-a-Service (RaaS) affiliate model. First appearing on underground cybercrime forums in January 2018, GandCrab was developed and maintained by an elite cybercrime group known as PINCHY SPIDER. The operators recruited vetted affiliates through Russian-language forums like Exploit.in and XSS, granting them customized builds and management panels in exchange for a 20% to 30% cut of all extorted ransom payments. Between January 2018 and June 2019, GandCrab underwent rapid, aggressive technological iteration spanning versions v1 through v5.2. The ransomware integrated sophisticated anti-analysis techniques, process termination routines targeting database and backup services (`sql.exe`, `oracle.exe`, `vssadmin.exe`), and multi-threaded file encryption using RSA-2048 and Salsa20 cryptographic algorithms. Affiliates distributed GandCrab through an array of exploit kits (Rig, GrandSoft, Fallout), spear-phishing campaigns with malicious Word documents, and brute-force Remote Desktop Protocol (RDP) intrusions. In May 2019, the operators announced their 'retirement' on underground forums, publicly boasting that they had extorted more than $2 billion in ransom payments and laundered their profits into legitimate businesses. However, threat intelligence researchers and law enforcement quickly established that the core PINCHY SPIDER development team did not retire; rather, they restructured their operation to launch REvil (Sodinokibi), utilizing a directly inherited codebase to execute high-profile enterprise big-game hunting.
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.
- PINCHY SPIDER (Core Group) / Ancestor to REvil (Sodinokibi) High confidence
Basis: Operated by the Russian-speaking cybercriminal group PINCHY SPIDER on top-tier underground forums. Code analysis confirms that GandCrab's codebase directly evolved into the REvil (Sodinokibi) ransomware. [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: Gandcrab V1 · Gandcrab V2 · Gandcrab V3 · Gandcrab V4 · Gandcrab V5.0.4 · Gandcrab V5.2 · Revil (Successor)
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to our technical analysis hubs and the official MITRE ATT&CK framework:
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1059.003: Restrict execution of Windows Command Shell (cmd.exe) and block unauthorized batch scripts.
- T1566.001: Scan email attachments for malicious macros, scripts, or suspicious archive files.
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-BDA | Binary De-obfuscation & Unpacking | Analyze | T1027 | Utilize memory dump scanners and entropy inspection to unpack encrypted stagers during process creation. |
D3-PBA | Process Spawn Analysis | Detect | T1059.003 | Inspect command-line arguments and anomalous parent-child relationships spawning from cmd.exe. |
D3-SDA | System Discovery Analysis | Detect | T1082 | Alert on rapid enumerations of systeminfo, hostname, and registry hardware trees in short intervals. |
D3-FAED | File Alteration Early Detection | Detect | T1486 | Deploy canary files and monitor mass rename/encryption I/O spikes to terminate ransomware threads immediately. |
D3-SPP | Service Protection Policies | Harden | T1489 | Configure strict DACLs on Windows Service Control Manager to prevent unauthorized termination of antivirus and backup services. |
D3-VSS | Volume Shadow & Snapshot Hardening | Harden | T1490 | Block execution of vssadmin.exe and wmic shadowcopy delete; maintain air-gapped immutable backup repositories. |
D3-FS | File Sandboxing (Attachment Detonation) | Isolate | T1566.001 | Detonate macro-enabled documents, ISOs, and password-protected archives inside an isolated hypervisor. |
Exploited Vulnerabilities (CVEs)
This malware family is documented weaponizing the following common vulnerabilities and exposures:
- CVE-2018-0886 — In-depth exploitation analysis and catalog intelligence (NIST NVD ↗).
- CVE-2018-8174 — 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 | HTTP, Tor, DNS |
|---|---|
| Observed ports | 80, 443, 9050 |
| Infrastructure model | Tor-hosted dedicated negotiation portals and compromised WordPress blogs used to route payment data and host public key verification systems. |
| Encryption / encoding | Hybrid cryptographic scheme combining Salsa20 stream encryption for local files with RSA-2048 public key encryption safeguarding the per-session symmetric keys. |
| Traffic fingerprint | Outbound connections to Tor proxy nodes and .onion dark web portals; DNS resolution to dynamic top-level domains (.bit, .top) for affiliate tracking. |
| Identifiable from traffic alone | High |
Network detection ideas
- Detect execution of vssadmin.exe delete shadows and bcdedit commands disabling recovery
- Inspect outbound connections to known Tor gateway nodes and .onion domains
- Flag rapid encryption and renaming of network share files to random extensions (e.g. .gdcb, .crab, .[random])
Sources: CISA Alert AA21-209A: Ransomware Affiliates (GandCrab & Sodinokibi), Bitdefender / Europol GandCrab Decryptor Initiative
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.
23a9eeec841e06fa99e90059c1187428f5c88b7bc2d44933dd2a4bbdfec3bf9237df32a84393ce0ff5b0d0c3eb15220c58e1465608034a7fbff25ad0f5d02636
Delivery vectors
Spear-phishing emails containing malicious macros or PDF attachments exploiting CVE-2018-8174Drive-by compromises via Rig and Fallout exploit kits targeting unpatched browser pluginsBrute-force compromise of exposed Remote Desktop Protocol (RDP) servers
Persistence mechanisms
Registry Run keys in HKCU\Software\Microsoft\Windows\CurrentVersion\Run referencing dropped binariesScheduled tasks created under names masquerading as Windows Update services
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_GANDCRAB_T1_ARTIFACT {
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Gandcrab"
tier = "T1 - Primitive Artifact"
confidence = "Low-Medium (Fast Triage)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
$s1 = "gandcrab" ascii wide nocase
$s2 = "gandcrab" ascii wide nocase
$s3 = "gandcrab v1-v5.2" ascii wide nocase
$s4 = "gdcb" 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 - Gandcrab (Ransomware) Execution & Triage
id: 53ece1ba-744d-5ec9-bd69-bccbc38a77c4
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
with the Gandcrab 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/gandcrab
- 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.t1486
- attack.t1489
- attack.t1490
- attack.t1082
- attack.t1059_003
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_GANDCRAB_T3_ATTRIBUTION {
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Gandcrab 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 = "gandcrab" 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.
- Disconnect infected devices from the network immediately to prevent lateral spread and network share encryption.
- Verify what version of GandCrab infected the host (versions v1, v4, and v5.0.4-v5.1 have free decryptors available through No More Ransom).
- Preserve encrypted files and ransom notes for key validation against available law enforcement decryptor keys.
- Inspect exposed RDP ports and enforce multi-factor authentication across all external access points.
- Restore systems from verified offline, immutable backups.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not pay ransom demands without checking the No More Ransom portal first, as multiple versions have public decryptors.
- Do not allow RDP services to remain exposed directly to the public internet without a VPN and MFA.
References & External Analysis
- Malwarebytes: GandCrab ransomware
- CISA Advisory: CISA Alert AA21-209A (Ransomware Affiliates: From GandCrab to Sodinokibi)
- Search "gandcrab" on VirusTotal (External Analysis)
- Search "gandcrab" on Any.Run (Sandbox Sandbox)
- Search "gandcrab" 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 AA21-209A (Ransomware Affiliates: From GandCrab to Sodinokibi) ↗
Frequently Asked Questions
What was GandCrab?
GandCrab was a dominant Ransomware-as-a-Service (RaaS) operation active between 2018 and 2019 that claimed over $2 billion in extortion payouts before evolving into REvil (Sodinokibi).
Who operated GandCrab?
GandCrab was developed and managed by the Russian-speaking cybercrime group PINCHY SPIDER, who recruited affiliates on dark web forums.
Are there free decryptors for GandCrab?
Yes. A joint effort between Bitdefender, Europol, the FBI, and Romanian Police released free decryptors for GandCrab versions 1, 4, 5, and 5.0.4 through 5.1 on the No More Ransom website.
What was the connection between GandCrab and REvil?
When GandCrab operators announced their retirement in May 2019, they immediately reorganized and launched REvil (Sodinokibi), sharing substantial code, affiliate networks, and operational infrastructure.
How did GandCrab gain initial access to networks?
GandCrab gained access primarily through spear-phishing emails, exploit kits (Rig and Fallout), and brute-forced Remote Desktop Protocol (RDP) credentials.
How do I remove Gandcrab from Windows?
Manual removal of Gandcrab 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.
What are the main symptoms of a Gandcrab infection?
Symptoms of Gandcrab 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 Gandcrab 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/gandcrab.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.