Donut

Category: ransomware · Aliases: HackTool.Donut, Tool.DonutShellcode, Riskware.Donut · Sample count (EMBER 2018): 1 · Enrichment: insufficient_information · Updated: 2026-07-01T16:37:00Z
Category: RansomwareActor: Unknown / CybercriminalIndustry: Global / OpportunisticMotivation: Opportunistic

Overview

Executive Summary

Donut is a highly sophisticated, open-source offensive security framework designed to generate position-independent shellcode from .NET, VBScript, JScript, and standard PE (Portable Executable) files. While originally developed for legitimate penetration testing and Red Team operations, Donut is heavily abused by Advanced Persistent Threat (APT) groups and ransomware operators to facilitate highly evasive, in-memory execution of malicious payloads.

Technical Architecture and Exploitation

Donut is not malware itself; rather, it is a tool used by attackers to obfuscate and deliver their actual malware (e.g., Cobalt Strike beacons, Mimikatz, or custom RATs). The core functionality of Donut involves:

Threat Impact

The detection of Donut-generated shellcode indicates a sophisticated, targeted attack utilizing advanced evasion techniques. It allows threat actors to silently load powerful post-exploitation tools, facilitating rapid privilege escalation, credential dumping, and lateral movement while blinding local security sensors.

Defense and Resilience Strategies

Known aliases

Threat reports may refer to this family under multiple names:

MITRE ATT&CK Techniques

This family has been observed using the following ATT&CK techniques: T1055 T1562.001 T1027.005 T1620

Generated Detections (Boilerplate)

These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.

YARA Rule

rule MALWARE_WIN_DONUT {
    meta:
        description = "Detects Donut (ransomware)"
        author = "SystemHelpdesk Boilerplate Generator"
        date = "2026-07-06"
    strings:
        $s1 = "donut" ascii wide nocase
        $s2 = "hacktool.donut" ascii wide nocase
        $s3 = "tool.donutshellcode" ascii wide nocase
        $s4 = "riskware.donut" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

Sigma Rule

title: Suspicious Donut Activity
id: 81bdd90fd4bc5a1c9b7b603014ff1388
status: experimental
description: Detects generic indicators of the donut malware family.
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
        CommandLine|contains:
            - "*donut*"
            - "*hacktool.donut*"
            - "*tool.donutshellcode*"
            - "*riskware.donut*"
    condition: selection
level: medium

References & External Analysis

Frequently Asked Questions

How do I remove the Donut Ransomware from Windows?

Manual removal of Donut 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 Donut a virus or a Ransomware?

Donut is classified as a Ransomware. Unlike traditional viruses that infect files, modern malware like Donut typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.

What are the main symptoms of a Donut infection?

Symptoms of Donut 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.

Related Families (Category: ransomware)

Explore other malware families in the same category:

Protect Your Network Against Ransomwares

Want to prevent Donut and similar threats from compromising your organization? Read our comprehensive defensive guide: Ransomware Protection Guide.

Need help with an active incident? Published by the SystemHelpdesk team.

Machine-readable

Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/donut.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.