Keydoor
Table of Contents
Overview
Executive Summary
Keydoor is a highly specialized malware family that combines the stealth capabilities of a sophisticated backdoor with the data-harvesting functions of an advanced keylogger. Primarily utilized in targeted espionage campaigns, Keydoor is engineered to silently infiltrate a system, establish a covert communication channel, and continuously record user activity—specifically focusing on intercepting credentials and sensitive communications before they can be encrypted.Infection Vector and Technical Capabilities
Keydoor is predominantly deployed via spear-phishing campaigns utilizing weaponized attachments (e.g., Office documents with malicious macros) or delivered as a secondary payload by initial access brokers who have already compromised the perimeter. Once executed, Keydoor's operations are divided into access and espionage:- Covert Backdoor Access: Keydoor establishes a persistent, encrypted connection to a remote command-and-control (C2) server. Unlike noisy botnets, it often "beacons" infrequently (e.g., once every 24 hours) to evade detection by edge firewalls and network anomaly monitoring. This backdoor allows the attacker to silently upload secondary modules, exfiltrate data, or open an interactive remote shell.
- Deep Keylogging (API Hooking): The malware implements a sophisticated keylogger by hooking deep into the Windows API (e.g., using `SetWindowsHookEx` or even kernel-mode drivers). This allows it to intercept keystrokes across all applications, specifically targeting web browsers, password managers, and enterprise SSO portals.
- Clipboard and Screen Capture: To supplement keylogging, Keydoor frequently monitors the system clipboard (stealing copied passwords or cryptocurrency addresses) and takes periodic screenshots of the active desktop.
Threat Assessment
A Keydoor infection is a critical security incident indicating active, targeted espionage. The malware allows attackers to completely bypass Multi-Factor Authentication (MFA) by stealing the plaintext passwords as they are typed, leading to immediate account compromise and lateral movement.Incident Response and Remediation
- Immediate Network Isolation: Isolate the infected endpoint from the LAN immediately to sever the backdoor connection and halt data exfiltration.
- Comprehensive Credential Reset: Assume all credentials utilized on the infected machine, as well as any stored in browsers or password managers, are fully compromised. Initiate an immediate, organization-wide password reset.
- Forensic Memory Analysis: Because Keydoor relies heavily on API hooking, perform memory forensics (using tools like Volatility) to identify the specific hooks and extract the C2 configuration from volatile memory before rebooting the system.
Known aliases
Threat reports may refer to this family under multiple names:
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 |
|---|---|---|---|
T1056.001 | Keylogging | Credential Access | ATT&CK ↗ |
T1059 | Command and Scripting Interpreter | Execution | ATT&CK ↗ |
T1113 | Screen Capture | Collection | ATT&CK ↗ |
T1115 | Clipboard Data | Collection | 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.
- T1059: Restrict execution of scripting languages such as PowerShell, VBScript, or Python to authorized administrators. Enforce Script Block Logging.
- 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-MFA | Multi-factor Authentication | Harden | T1056.001 | Enforce FIDO2 / WebAuthn physical tokens to render keystroke-intercepted passwords useless. |
D3-SEA | Script Execution Analysis | Detect | T1059 | Analyze script block syntax and command arguments at runtime to detect malicious automation. |
D3-SD | Screen Capture Detection | Detect | T1113 | Monitor desktop graphics API calls (BitBlt, GetDC) triggered by non-standard background threads. |
D3-CAC | Clipboard Access Control | Isolate | T1115 | Isolate virtual desktop infrastructure (VDI) clipboards and alert on rapid background clipboard querying by non-foreground processes. |
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_KEYDOOR_T1_ARTIFACT {
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Keydoor"
tier = "T1 - Primitive Artifact"
confidence = "Low-Medium (Fast Triage)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
$s1 = "keydoor" ascii wide nocase
$s2 = "trojan.keydoor" ascii wide nocase
$s3 = "backdoor.keydoor" ascii wide nocase
$s4 = "keylogger.win32.keydoor" 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 - Keydoor (Backdoor) Execution & Triage
id: 8ea0056d-a998-595a-ae5c-5bc50170ed31
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
with the Keydoor malware family. Detects proxy execution, reflective DLL loading,
and remote command injection associated with modular enterprise backdoors.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/keydoor
- 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.backdoor
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1056_001
- attack.t1059
- attack.t1113
- attack.t1115
logsource:
category: process_creation
product: windows
detection:
selection_process:
Image|endswith:
- \powershell.exe
- \cmd.exe
- \rundll32.exe
- \regsvr32.exe
CommandLine|contains:
- DownloadString
- IEX(
- '/s /n /u /i:'
- sc create
- start-process
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_KEYDOOR_T3_ATTRIBUTION {
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Keydoor 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 = "keydoor" 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.
- Immediately isolate the compromised host from internal LAN and WAN environments to cut off interactive remote shell sessions established by Keydoor.
- Inspect active socket listeners and outbound established network connections ('netstat -ano') to identify and sever covert TCP/UDP channels used by Keydoor.
- Scan Windows Services, Scheduled Tasks, and Startup folders to locate and eliminate persistent backdoor listeners configured by Keydoor.
- Invalidate all active VPN profiles, local administrator credentials, and session tokens that may have been harvested by the Keydoor operator.
- Re-image the affected host using a validated golden image prior to reconnecting it to enterprise network segments.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not attempt to interact with or send messages through the Keydoor remote terminal, as this alerts the attacker and may cause them to execute destructive anti-forensic commands.
- Avoid relying solely on static file signatures, as Keydoor payloads frequently execute reflectively in memory without writing binaries to disk.
References & External Analysis
- Search "keydoor" on VirusTotal (External Analysis)
- Search "keydoor" on Any.Run (Sandbox Sandbox)
- Search "keydoor" on MalwareBazaar (Malware Samples)
Frequently Asked Questions
What is Keydoor and what threat category does it belong to?
Keydoor is classified as a Backdoor. Documented across security telemetry, it is engineered to execute unauthorized operations, establish persistent footholds on target endpoints, and facilitate malicious campaigns targeting enterprise and individual environments.
How does Keydoor establish persistence and evade defensive controls?
Keydoor typically establishes persistence through registry run keys, scheduled tasks, or service installations, while evading signature-based antivirus solutions through code obfuscation, memory injection, or anti-analysis sandbox checks.
What are the essential incident response steps for mitigating a Keydoor compromise?
Security teams responding to Keydoor should immediately isolate affected endpoints from the network, perform memory triage to capture volatile forensic artifacts, audit registry and startup persistence mechanisms, revoke exposed user credentials, and restore systems from verified, clean backups.
What remote administrative and surveillance capabilities does Trojan.Keydoor provide to threat actors?
As an interactive backdoor and remote access tool, Trojan.Keydoor grants operators comprehensive control over the victim host. Common surveillance and management modules include real-time keystroke logging, desktop screen capture, remote VNC streaming, webcam and audio recording, arbitrary shell command execution, reverse proxy pivoting, and bidirectional file transfer capabilities.
How does Trojan.Keydoor traverse firewalls and sustain resilient command-and-control (C2) connections?
Trojan.Keydoor establishes persistent outbound TCP or TLS connections back to threat actor infrastructure, effectively bypassing inbound firewall filtering. To maintain connection resilience against IP takedowns, variants frequently employ dynamic DNS services, fallback command servers, encrypted dead-drop resolvers on social platforms, or DNS over HTTPS (DoH) querying.
How do I remove the Keydoor Backdoor from Windows?
Manual removal of Keydoor 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 Keydoor a virus or a Backdoor?
Keydoor is classified as a Backdoor. Unlike traditional viruses that infect files, modern malware like Keydoor typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Keydoor infection?
Symptoms of Keydoor 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 Backdoors
Want to prevent Keydoor 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.
Machine-readable
Get this profile as JSON: https://malware-families-catalog.systemhelpdesk.com/api/keydoor.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.