Hotkeyz
- Type
- Spyware
- Capabilities
- KeyloggingDefense evasion
- Platforms
- Windows
Hotkeyz is a Windows proof-of-concept hotkey-based keylogger created by Jonathan Bar Or. It abuses the Windows RegisterHotKey API by registering individual alphanumeric keys and selected additional keys as global hotkeys. It collects resulting WM_HOTKEY messages, extracts virtual-key codes, and records them to a text file. To preserve normal user input behavior, it temporarily unregisters the intercepted hotkey, simulates the original keystroke, and registers the hotkey again. Hotkeyz demonstrates a keylogging approach that does not rely on conventional keyboard hooks, polling, Raw Input, or DirectInput mechanisms.
Techniques & procedures
4 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
For instance, the following code snippet demonstrates how to use the RegisterHotKey API to register the A key (with a virtual-key code of 0x41) as a global hotkey... In Hotkeyz, it first registers each alphanumeric virtual-key code ... as individual hotkeys by using the RegisterHotKey API.
Credential Access
2 techniques
Credential Access
ユーザにキーロガーの存在を気取られないため、メッセージからvirtual-key codeを取り出した時点で、いったんそのキーのホットキー登録をUnregisterHotKey APIを使って解除し、その上でkeybd_eventを使ってキーを送信することです。これにより、ユーザからは問題無くキーが入力出来ているように見え、キーが裏で窃取されていることに気が付かれにくくなります。
Hotkeyz first registers each alphanumeric virtual-key code and additional keys as individual hotkeys using RegisterHotKey. When a WM_HOTKEY message is detected, the virtual-key code is extracted and eventually saved to a text file.
Collection
3 techniques
Collection
ユーザにキーロガーの存在を気取られないため、メッセージからvirtual-key codeを取り出した時点で、いったんそのキーのホットキー登録をUnregisterHotKey APIを使って解除し、その上でkeybd_eventを使ってキーを送信することです。これにより、ユーザからは問題無くキーが入力出来ているように見え、キーが裏で窃取されていることに気が付かれにくくなります。
Hotkeyz first registers each alphanumeric virtual-key code and additional keys as individual hotkeys using RegisterHotKey. When a WM_HOTKEY message is detected, the virtual-key code is extracted and eventually saved to a text file.
When a WM_HOTKEY message is detected, the virtual-key code it contains is extracted and eventually saved to a text file.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.