Keylogging
Adversaries may log user keystrokes to intercept credentials as the user types them. Keylogging is likely to be used to acquire credentials for new access opportunities when OS Credential Dumping efforts are not effective, and may require an adversary to intercept keystrokes on a system for a substantial period of time before credentials can be successfully captured. In order to increase the likelihood of capturing credentials quickly, an adversary may also perform actions such as clearing browser cookies to force users to reauthenticate to systems. Keylogging is the most prevalent type of input capture, with many different ways of intercepting keystrokes. Some methods include: * Hooking API callbacks used for processing keystrokes. Unlike Credential API Hooking, this focuses solely on API functions intended for processing keystroke data. * Reading raw keystroke data from the hardware buffer. * Windows Registry modifications. * Custom drivers. * Modify System Image may provide adversaries with hooks into the operating system of network devices to read raw keystrokes for login sessions.
Open detection, hunting, mitigation, and evidence workspace
Detection logic
Keyloggers may take many forms, possibly involving modification to the Registry and installation of a driver, setting a hook, or polling to intercept keystrokes. Commonly used API calls include `SetWindowsHook`, `GetKeyState`, and `GetAsyncKeyState`. Monitor the Registry and file system for such changes, monitor driver installs, and look for common keylogging API calls. API calls alone are not an indicator of keylogging, but may provide behavioral data that is useful when combined with other information such as new files written to disk and unusual processes.
Observed actors
G0082APT3
G0022Kimsuky
G0094Volt Typhoon
G1017APT41
G0096menuPass
G0045APT32
G0050Sandworm Team
G0034APT39
G0087OilRig
G0049Ke3chang
G0004Group5
G0043Darkhotel
G0012APT28
G0007APT5
G1023Tonto Team
G0131Lazarus Group
G0032FIN4
G0085Sowbug
G0054HEXANE
G1001PLATINUM
G0068Magic Hound
G0059Ajax Security Team
G0130Threat Group-3390
G0027FIN13
G1016