Mokes

Category: rat · Aliases: Backdoor:Win32/Mokes.A, Backdoor:Win32/Mokes, Backdoor.OSX.Mokes, Backdoor.Linux.Mokes, Trojan.Mokes, Win32/Mokes · Sample count (EMBER 2018): 35 · Enrichment: curated_sourced · Updated: 2026-10-15
Category: RatStatus: Automated SignatureFirst seen: 2016Motivation: Espionage, Host Surveillance & Sensitive Data Theft🕸 Explore Relationship Graph⚙ API JSON⚡ Sigma Rule💾 YARA RuleOS: Windows 11, Windows 10, Windows 8.1
Executive Summary
Mokes (extensively analyzed by Kaspersky Lab under Backdoor:Win32/Mokes.a, Backdoor.OSX.Mokes, and Backdoor.Linux.Mokes) is a sophisticated multi-platform remote access backdoor and surveillance framework first discovered in 2016.

Table of Contents

Overview

Mokes (extensively analyzed by Kaspersky Lab under Backdoor:Win32/Mokes.a, Backdoor.OSX.Mokes, and Backdoor.Linux.Mokes) is a sophisticated multi-platform remote access backdoor and surveillance framework first discovered in 2016. Written in C++ utilizing the Qt cross-platform application framework, Mokes was engineered to target Windows, macOS, and Linux operating systems with near-identical surveillance capabilities. Once executed on Windows, Mokes decrypts AES-256 strings in memory, establishes persistence via the CurrentVersion\Run registry key, and connects to remote C2 servers over TCP port 443 with custom encryption. Mokes implements exhaustive espionage modules including continuous keystroke logging, scheduled desktop screenshots, microphone audio capture, webcam surveillance, monitoring removable drives for Office documents, and exfiltrating harvested files packaged inside encrypted temporary archives.

Known aliases

Threat reports may refer to this family under multiple names:

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: Backdoor:Win32/Mokes.A · Backdoor.Osx.Mokes.A · Backdoor.Linux.Mokes.A

MITRE ATT&CK Techniques

This family has been observed using the following ATT&CK techniques: T1056.001 · T1113 · T1123 · T1125 · T1071.001

→ 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-MFAMulti-factor AuthenticationHardenT1056.001Enforce FIDO2 / WebAuthn physical tokens to render keystroke-intercepted passwords useless.
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-HACHardware Device Access ControlIsolateT1125Enforce Group Policy hardware access restrictions on integrated webcams and microphones.

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_MOKES_T1_ARTIFACT {
    meta:
        description = "Tier 1 Primitive Artifact: Raw string matches for Mokes"
        tier = "T1 - Primitive Artifact"
        confidence = "Low-Medium (Fast Triage)"
        author = "SystemHelpdesk Threat Research Desk"
        date = "2026-10-14"
    strings:
        $s1 = "mokes" ascii wide nocase
        $s2 = "backdoor:win32/mokes.a" ascii wide nocase
        $s3 = "backdoor:win32/mokes" ascii wide nocase
        $s4 = "backdoor.osx.mokes" ascii wide nocase
        $s5 = "backdoor.linux.mokes" ascii wide nocase
        $s6 = "trojan.mokes" ascii wide nocase
        $s7 = "win32/mokes" 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 - Mokes (Rat) Execution & Triage
id: 11c4e5c1-79fe-574a-b7a5-75e194b1c59a
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
  with the Mokes 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/mokes
- 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.t1056_001
- attack.t1113
- attack.t1123
- attack.t1125
- attack.t1071_001
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_MOKES_T3_ATTRIBUTION {
    meta:
        description = "Tier 3 Attribution Fingerprint: Heuristic detection for Mokes 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 = "mokes" 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)

References & External Analysis

Frequently Asked Questions

What is Backdoor:Win32/Mokes?

Mokes is a sophisticated cross-platform backdoor and espionage tool built with the Qt framework that targets Windows, macOS, and Linux systems.

What surveillance capabilities does Mokes feature?

Mokes captures keystrokes, records ambient microphone audio, captures webcam photos and screenshots, and exfiltrates Office documents.

How does Mokes communicate with its command and control infrastructure?

It connects to remote C2 servers over TCP port 443 using proprietary binary protocols encrypted with AES-256 CBC.

Why is the Qt framework significant in the design of Mokes?

Using Qt allowed the author to maintain a single codebase that compiled cleanly across Windows, Linux, and macOS platforms.

How can organizations protect against Mokes infections?

Deploy behavioral endpoint security, monitor for unauthorized audio/video device capture, restrict execution of unapproved Qt executables, and inspect outbound encrypted traffic.

How do I remove the Mokes Rat from Windows?

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

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

What are the main symptoms of a Mokes infection?

Symptoms of Mokes 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 Mokes 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 Threat Intelligence Team.

Machine-readable

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