Skip to main content
Mallory
← Back to News
credential-access-methoddetection-content-updateproof-of-concept-releaseendpoint-software-vulnerability

Windows Hotkey Keyloggers Detected Through win32k Kernel Table Inspection

Attack Tradecraft · 4 sources · Updated 2mo ago · First seen Oct 17, 2025

Windows Hotkey Keyloggers Detected Through win32k Kernel Table Inspection

Elastic Security Labs detailed a Windows keylogging technique that abuses the RegisterHotKey API to register individual keys as global hotkeys and collect the resulting WM_HOTKEY messages. The Hotkeyz proof of concept temporarily unregisters a captured hotkey, replays the user’s original keystroke via keybd_event, re-registers the hotkey, and records its virtual-key code, allowing keystroke collection with little visible disruption.

The researchers found that Event Tracing for Windows does not produce telemetry for RegisterHotKey or UnregisterHotKey, limiting direct API-based detection. They instead created a kernel-driver-based detector that examines the undocumented gphkHashTable structure in win32kfull.sys for excessive alphanumeric hotkey registrations; registering 36 or more unmodified alphanumeric keys is identified as a likely indicator of hotkey-based keylogging. Elastic released the detector and demonstrated that it detects Hotkeyz.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · 2025
  1. Reported Mar 4, 20252y ago

    Elastic releases detector for hotkey-based keyloggers

    Elastic Security Labs released a GitHub proof-of-concept detector that scans the undocumented win32kfull.sys gphkHashTable structure for broad individual alphanumeric hotkey registrations. The detector alerted on Hotkeyz using a threshold of 36 unmodified alphanumeric hotkeys.

    Detecting Hotkey-Based Keyloggers Using an Undocumented Kernel Data Structure
  2. 2025

    Hotkey-based keylogger detection research presented at NULLCON Goa

    Elastic Security Labs presented its research on detecting Windows hotkey-based keyloggers, including the kernel-memory inspection approach and Hotkeyz detection demonstration, at NULLCON Goa 2025.

    Detecting Hotkey-Based Keyloggers Using an Undocumented Kernel Data Structure
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Malware

1 linked

Affected products

1 linked
Windows 10
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.