Skip to content

Keylogger

Risk Level

A keylogger (keystroke logger) records every keystroke typed on a device, capturing passwords, messages, emails, credit card numbers, and other sensitive input. Keyloggers are a core component of spyware and are widely used in credential theft campaigns.

MilestoneYearDetails
Hardware keyloggers1980s+Inline PS/2, USB devices
Software keyloggers1990s+API hooking, kernel drivers
Commercial spyware2000s+“Parental control” / “Employee monitoring”
Banking trojans2007+Zeus, SpyEye form grabbing
TypeMechanismDetection Difficulty
HardwareInline PS/2/USB, firmwareVery High (invisible to OS)
User-mode APISetWindowsHookEx (WH_KEYBOARD)Low (visible in hook chain)
Kernel driverKeyboard class filter driverHigh (Ring 0)
Form grabberHook browser APIs (PR_Read, etc.)Medium-High
AcousticAudio analysis of keystrokesVery High (air-gap capable)
VideoScreen/keystroke video captureMedium
KeyloggerTypeDelivery
Zeus/ZbotForm grabber + kernelTrojan, drive-by
SpyEyeForm grabberTrojan
Agent TeslaUser-mode hookPhishing, SMTP
HawkEyeUser-mode + kernelPhishing, RAT
SnakeKeylogger.NET, user-modePhishing, Agent Tesla fork
  • FIDO2/WebAuthn — Phishing-resistant, no passwords to steal
  • Password manager — Auto-fill bypasses keyloggers
  • Virtual keyboard — For high-value entry (banking)
  • EDR with kernel callback monitoring — Detect filter drivers
  • Hardware security keys — FIDO2, no secrets in memory
  • ✅ Regular AV/EDR scans
  • ✅ On-screen keyboard for sensitive entry (mitigates user-mode)
TechniqueIDDescription
KeyloggingT1056.001Keystroke capture
Input CaptureT1056All input capture methods