Khalesi (Backdoor:Win32/Khalesi)
Table of Contents
Overview
Backdoor:Win32/Khalesi is an evasive, modular information stealer and Remote Access Trojan (RAT) engineered to harvest corporate banking credentials, system configurations, and user identity artifacts while evading perimeter security controls. Operating by injecting its core payload directly into trusted Windows processes (such as explorer.exe or svchost.exe via process hollowing), Khalesi executes dynamic API hooking against web browsers and desktop applications to record keystrokes, capture screen images, and extract saved passwords. To withstand command infrastructure takedowns, Khalesi incorporates resilient fallback communication routines, including domain generation algorithms (DGA) and encrypted HTTPS tunnels, allowing operators to exfiltrate financial data and download secondary modules without persistent disk artifacts.
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.
- Eastern European Financial Cybercrime Syndicates High confidence
Basis:
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: Khalesi.A · Khalesi Dga Build · Khalesi Banker Loader
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 |
|---|---|---|---|
T1055.012 | Process Hollowing | defense-evasion | ATT&CK ↗ |
T1555 | Credentials from Password Stores | credential-access | ATT&CK ↗ |
T1056.001 | Keylogging | collection | ATT&CK ↗ |
T1113 | Screen Capture | collection | ATT&CK ↗ |
T1568.002 | Domain Generation Algorithms | command-and-control | ATT&CK ↗ |
T1071.001 | Web Protocols | command-and-control | ATT&CK ↗ |
T1547.001 | Registry Run Keys / Startup Folder | persistence | ATT&CK ↗ |
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1056.001: Implement Endpoint Detection and Response (EDR) to monitor for suspicious API calls related to keystroke interception. Enforce Multi-Factor Authentication (MFA) to render stolen passwords useless.
- T1071.001: Implement web filtering and SSL/TLS inspection to detect malicious command and control (C2) traffic hiding in HTTP/HTTPS.
- T1113: Monitor for frequent or unauthorized screen captures or clipboard reads. Restrict background applications from accessing desktop APIs.
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-PHA | Process Hollowing Analysis | Detect | T1055.012 | Inspect unbacked executable memory regions (PAGE_EXECUTE_READWRITE) for replaced PE image headers inside legitimate host processes. |
D3-MFA | Multi-factor Authentication | Harden | T1056.001 | Enforce FIDO2 / WebAuthn physical tokens to render keystroke-intercepted passwords useless. |
D3-WAF | Web Content Filtering & Inspection | Filter | T1071.001 | Block newly registered domains (NRDs) and inspect HTTP Host and URI headers for known C2 profiles. |
D3-SD | Screen Capture Detection | Detect | T1113 | Monitor desktop graphics API calls (BitBlt, GetDC) triggered by non-standard background threads. |
D3-RPM | Registry Persistence Monitoring | Detect | T1547.001 | Audit and restrict write privileges to user and machine-level Registry Run/RunOnce keys using Endpoint Privilege Management. |
D3-PMA | Password Manager Access Control | Harden | T1555 | Enforce device compliance checks and multi-factor biometric authentication before unlocking stored credential vaults. |
D3-DNSR | DNS Reputation Analysis | Detect | T1568.002 | Deploy recursive DNS security resolvers with algorithmic domain scoring (entropy and n-gram models) to automatically sinkhole DGA queries. |
Exploited Vulnerabilities (CVEs)
This malware family is documented weaponizing the following common vulnerabilities and exposures:
- CVE-2015-1641 — In-depth exploitation analysis and catalog intelligence (NIST NVD ↗).
- CVE-2017-11882 — 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 | HTTPS, HTTP |
|---|---|
| Observed ports | 443, 80, 8080 |
| Identifiable from traffic alone | Medium |
Recorded indicators and context
Fields and notes stored in this catalog record may describe historical artifacts, behaviors or general context. Their presence does not establish a current, independently verified indicator. Check sources and evidence limits before operational use.
Recorded file hashes
These are values stored in the record, not a guarantee of specimen identity or current detection coverage. Review their cited provenance before use; this catalog does not distribute malware binaries.
6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b
Recorded delivery context
spearphishing_attachmentsweaponized_office_documents
Recorded persistence context
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Runexplorer.exe process hollowing
Record export: Categories, original JSON values and notes for review. This is not a verified indicator feed or a ready-to-import SIEM/EDR format. Spreadsheet formula prefixes in record/category cells are protected with a leading apostrophe.
Detection rule examples
These generated examples are starting points for local testing. Their detection rate and false-positive rate have not been measured. Correlate any match with endpoint evidence and the primary reports cited below.
Tier 1 Primitive Artifact Rule (Fast Triage)
Matches raw strings and file markers. Vulnerable to binary repacking and simple obfuscation.
rule MALWARE_WIN_KHALESI_T1_ARTIFACT
{
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Khalesi (Infostealer)"
category = "Infostealer"
tier = "T1 - Primitive Artifact"
confidence = "Medium (Fast Triage)"
author = "SystemHelpDesk Threat Research Desk"
reference = "https://malware-families-catalog.systemhelpdesk.com/families/khalesi"
date = "2026-11-21"
strings:
$fam_name = "khalesi" ascii wide nocase
$alias_1 = "khalesi" ascii wide nocase
$alias_2 = "backdoor:win32/khalesi" ascii wide nocase
$alias_3 = "trojan.khalesi" ascii wide nocase
$alias_4 = "win32/khalesi" ascii wide nocase
$alias_5 = "infostealer.khalesi" ascii wide nocase
$alias_6 = "trojan:win32/khalesi" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}
Tier 2 Behavioral Context Rule (Process Chains & Sigma)
Looks for selected process and command-line patterns. Validate the fields against your event source and review approved administration activity.
title: SystemHelpDesk Detection - Khalesi (Infostealer) Execution & Triage
id: c2dda1bd-93c3-52f3-b8bc-2138251bfc20
status: experimental
description: Experimental process-event hunting example associated with Khalesi (Backdoor:Win32/Khalesi).
Measure detection and false-positive rates in your own environment. Shared administration
behavior needs additional incident evidence.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/khalesi
- https://malware-families-catalog.systemhelpdesk.com/defensive/infostealer-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.infostealer
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1055_012
- attack.t1555
- attack.t1056_001
- attack.t1113
- attack.t1568_002
- attack.t1071_001
- attack.t1547_001
logsource:
category: process_creation
product: windows
detection:
selection_process:
Image|endswith:
- \cmd.exe
- \powershell.exe
- \rundll32.exe
CommandLine|contains:
- \Google\Chrome\User Data\Default\Login Data
- \AppData\Roaming\Mozilla\Firefox\Profiles
- \AppData\Local\Microsoft\Edge\User Data
- vaultcmd.exe /list
- dpapi
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 String and PE-marker example
Combines a family-name string with common PE markers. A match needs investigation before family attribution.
rule MALWARE_WIN_KHALESI_T3_ATTRIBUTION
{
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Khalesi tradecraft"
category = "Infostealer"
tier = "T3 - Attribution Fingerprint"
confidence = "Experimental example; validation pending"
author = "SystemHelpDesk Threat Research Desk"
reference = "https://malware-families-catalog.systemhelpdesk.com/families/khalesi"
date = "2026-11-21"
strings:
$attrib_str = "khalesi" ascii wide nocase
$steal_marker1 = "Login Data" ascii wide nocase
$steal_marker2 = "Cookies" ascii wide nocase
$vault_marker = "CryptUnprotectData" ascii
condition:
uint16(0) == 0x5a4d and $attrib_str and (1 of ($steal_marker*) or $vault_marker)
}
Containment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Perform volatile memory analysis to locate and terminate hollowed explorer.exe or svchost.exe processes.
- Deploy network DNS monitoring to detect and block algorithmically generated domains (DGA) used by Khalesi.
- Enforce immediate credential resets for all corporate accounts accessed from suspect workstations.
- Patch vulnerable office suites against memory corruption vulnerabilities CVE-2015-1641 and CVE-2017-11882.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not rely solely on static disk antivirus scanning when hunting for hollowed memory-resident malware.
- Avoid executing unsolicited office documents received from unverified business correspondents.
- Never ignore high-frequency DNS query failures indicative of active DGA beaconing.
References & External Analysis
- Microsoft Security Intelligence: Backdoor:Win32/Khalesi Technical Guidance
- Trend Micro Security Intelligence: Khalesi Trojan Analysis
- NIST National Vulnerability Database CVE-2017-11882
- Search "khalesi" on VirusTotal (External Analysis)
- Search "khalesi" on Any.Run (Sandbox Sandbox)
- Search "khalesi" on MalwareBazaar (Malware Samples)
Frequently Asked Questions
What is Khalesi malware?
Khalesi is a modular banking infostealer and remote backdoor that injects into legitimate processes to harvest passwords, keystrokes, and financial data.
How does Khalesi hide from antivirus detection?
Khalesi utilizes process hollowing to inject its code into legitimate Windows executables like explorer.exe, leaving minimal forensic traces on disk.
How does Khalesi communicate with its command servers?
Khalesi uses encrypted HTTPS beacons and a built-in Domain Generation Algorithm (DGA) to establish resilient command-and-control channels.
What sensitive information does Khalesi target?
Khalesi extracts saved passwords from web browsers, logs keystrokes, captures desktop screenshots, and steals email and VPN credentials.
What vulnerabilities were exploited in Khalesi distribution?
Khalesi campaigns weaponized spear-phishing attachments exploiting Microsoft Office vulnerabilities including CVE-2015-1641 and CVE-2017-11882.
How do I remove the Khalesi Infostealer from Windows?
Manual removal of Khalesi 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 Khalesi a virus or a Infostealer?
Khalesi is classified as a Infostealer. Unlike traditional viruses that infect files, modern malware like Khalesi typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Khalesi infection?
Symptoms of Khalesi 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 Infostealers
Want to prevent Khalesi and similar threats from compromising your organization? Read our comprehensive defensive guide: InfoStealer Protection & Remediation.
📣 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/khalesi.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,982 malware families. The catalog is also published across our ecosystem: Hugging Face, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.