Zegost

Category: rat · Aliases: Zegost, Trojan:Win32/Zegost, Backdoor.Zegost, Trojan.Zegost, Zegost RAT, Win32/Zegost, Backdoor:Win32/Zegost · Sample count (EMBER 2018): 441 · Enrichment: curated_sourced · Updated: 2026-10-14
Category: RatStatus: Automated SignaturePlatform: WINDOWS, X86, X64Stage: Initial-Access, Execution, Persistence, Defense-Evasion, Credential-Access, Command-And-ControlFirst seen: 2010Actor: East Asian State-Sponsored APT GroupsIndustry: defense, government, aerospace, technology, telecommunicationsMotivation: State-Sponsored Cyber Espionage, Classified Data Exfiltration & Intellectual Property Theft🕸 Explore Relationship Graph⚙ API JSON⚡ Sigma Rule💾 YARA RuleOS: Windows 11, Windows 10, Windows Server 2022
Executive Summary
Trojan:Win32/Zegost (widely documented by threat researchers as Backdoor.Zegost or Zegost RAT) is a sophisticated cyber espionage Remote Access Trojan and rootkit platform developed and utilized by East Asian Advanced Persistent Threat (APT) groups in targeted campaigns against defense contractors, government ministries, and technology corporations.

Table of Contents

Overview

Trojan:Win32/Zegost (widely documented by threat researchers as Backdoor.Zegost or Zegost RAT) is a sophisticated cyber espionage Remote Access Trojan and rootkit platform developed and utilized by East Asian Advanced Persistent Threat (APT) groups in targeted campaigns against defense contractors, government ministries, and technology corporations. Engineered for long-term clandestine surveillance, Zegost deploys kernel-mode rootkit drivers to hide its processes, files, and network sockets from endpoint detection and response (EDR) platforms. Operating with an exhaustive espionage feature set, Zegost records keystrokes, captures screenshots, dumps credentials directly from LSASS process memory, executes interactive command shells, and exfiltrates sensitive intellectual property using heavily encrypted custom C2 protocols disguised as standard web traffic.

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.

→ Explore all Threat Actor & APT Campaign Profiles

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: Zegost V1.X · Zegost Rootkit Build · Zegost Custom C2 Variant

MITRE ATT&CK Techniques

Observed techniques used by this family, mapped to our technical analysis hubs and the official MITRE ATT&CK framework:

→ Explore the complete 226-Technique ATT&CK Threat Matrix

Tactical Mitigations

Based on the techniques used by this family, consider the following defensive strategies:

MITRE D3FEND™ Defensive Countermeasures

Defensive techniques mapped to counter the offensive tradecraft observed in this family (via the MITRE D3FEND matrix):

D3FEND IDCountermeasure NameTacticCountered ATT&CKDefensive Guidance
D3-LSALSA Protection & Credential GuardHardenT1003.001Enable Windows LSA RunAsPPL (Protected Process Light) and Credential Guard to prevent memory dumping of lsass.exe.
D3-KMCKernel Memory Integrity CheckingHardenT1014Enable Hypervisor-Protected Code Integrity (HVCI) and UEFI Secure Boot to prevent unsigned kernel driver execution.
D3-MFAMulti-factor AuthenticationHardenT1056.001Enforce FIDO2 / WebAuthn physical tokens to render keystroke-intercepted passwords useless.
D3-PBAProcess Spawn AnalysisDetectT1059.003Inspect command-line arguments and anomalous parent-child relationships spawning from cmd.exe.
D3-WAFWeb Content Filtering & InspectionFilterT1071.001Block newly registered domains (NRDs) and inspect HTTP Host and URI headers for known C2 profiles.
D3-SDScreen Capture DetectionDetectT1113Monitor desktop graphics API calls (BitBlt, GetDC) triggered by non-standard background threads.
D3-RPMRegistry Persistence MonitoringDetectT1547.001Audit and restrict write privileges to user and machine-level Registry Run/RunOnce keys using Endpoint Privilege Management.

Exploited Vulnerabilities (CVEs)

This malware family is documented weaponizing the following common vulnerabilities and exposures:

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.

ProtocolsTCP, HTTPS
Observed ports443, 8080, 9000
Identifiable from traffic aloneHigh

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.

Delivery vectors

Persistence mechanisms

SIEM / EDR Ingestion: Need these reference indicators for threat hunting?

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_ZEGOST_T1_ARTIFACT {
    meta:
        description = "Tier 1 Primitive Artifact: Raw string matches for Zegost"
        tier = "T1 - Primitive Artifact"
        confidence = "Low-Medium (Fast Triage)"
        author = "SystemHelpdesk Threat Research Desk"
        date = "2026-10-14"
    strings:
        $s1 = "zegost" ascii wide nocase
        $s2 = "zegost" ascii wide nocase
        $s3 = "trojan:win32/zegost" ascii wide nocase
        $s4 = "backdoor.zegost" ascii wide nocase
        $s5 = "trojan.zegost" ascii wide nocase
        $s6 = "zegost rat" ascii wide nocase
        $s7 = "win32/zegost" ascii wide nocase
        $s8 = "backdoor:win32/zegost" 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 - Zegost (Rat) Execution & Triage
id: 50bc467a-476f-509e-82e8-712d6d614402
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
  with the Zegost malware family. Detects unauthorized persistence creation via Windows
  Registry Run keys, scheduled tasks, and privilege escalation indicative of RAT installations.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/zegost
- https://malware-families-catalog.systemhelpdesk.com/defensive/backdoor-rat-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.rat
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1014
- attack.t1056_001
- attack.t1003_001
- attack.t1113
- attack.t1059_003
logsource:
  category: process_creation
  product: windows
detection:
  selection_process:
    Image|endswith:
    - \reg.exe
    - \schtasks.exe
    - \cmd.exe
    - \powershell.exe
    CommandLine|contains:
    - \CurrentVersion\Run
    - /create /tn
    - bypass -enc
    - net user /add
    - net localgroup administrators
  condition: selection_process
falsepositives:
- Legitimate enterprise administrative scripts during approved change windows
- Authorized IT software deployment utilities and backup management agents
level: high

Tier 3 Attribution Fingerprint Rule (High Fidelity)

Deep signature matching distinctive operational fingerprints and payload characteristics.

rule MALWARE_WIN_ZEGOST_T3_ATTRIBUTION {
    meta:
        description = "Tier 3 Attribution Fingerprint: Heuristic detection for Zegost 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 = "zegost" 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
}
SOC & SIEM Rule Downloads: ⬇ Download YARA Rule (.yar) ⬇ Download Sigma Rule (YAML) ⬇ Download Sigma Rule (JSON) ⚙ Threat Profile API (JSON)

Containment & Response Steps

Home Users: If you suspect a malware infection on your personal device, disconnect from the internet immediately and run a full system scan with your antivirus software (see our TotalAV Antivirus & Security Support Guide). The steps below are intended for IT professionals responding to enterprise incidents.

Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.

  1. Isolate compromised workstations immediately and assume nation-state level persistence.
  2. Do not immediately reboot suspect systems; capture live memory to preserve rootkit hook evidence.
  3. Engage specialized Incident Response firm with advanced persistent threat triage experience.
  4. Deploy security updates patching Microsoft Office and OLE vulnerabilities CVE-2012-0158 and CVE-2014-4114.

What to Avoid

Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.

  1. Do not attempt simple file-based deletion, as Zegost kernel rootkit drivers will resist uninstallation.
  2. Avoid communicating incident response details over the compromised enterprise network.
  3. Never open unsolicited spear-phishing correspondence received from external defense contractors.

References & External Analysis

Frequently Asked Questions

What is Zegost RAT?

Zegost is a sophisticated Remote Access Trojan and rootkit used by state-sponsored APT groups for long-term cyber espionage.

How does Zegost hide from security software?

Zegost employs kernel-mode rootkit components that hook system calls to conceal its running processes, files, and network connections.

What surveillance capabilities does Zegost possess?

Zegost can capture keystrokes, record screenshots, dump LSASS credentials from memory, and exfiltrate sensitive files.

Which threat actors deploy Zegost?

Zegost is attributed to East Asian advanced persistent threat groups targeting government and defense sector organizations.

What vulnerabilities were exploited in Zegost campaigns?

Zegost campaigns weaponized spear-phishing attachments exploiting Office flaws including CVE-2012-0158 and CVE-2014-4114 (Sandworm flaw).

How do I remove the Zegost Rat from Windows?

Manual removal of Zegost 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 Zegost a virus or a Rat?

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

What are the main symptoms of a Zegost infection?

Symptoms of Zegost 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 Rats

Want to prevent Zegost and similar threats from compromising your organization? Read our comprehensive defensive guide: Backdoor & RAT Protection for Businesses.

📣 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.

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

Machine-readable

Get this profile as JSON: https://malware-families-catalog.systemhelpdesk.com/api/zegost.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.