Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 663

Keylogger

Reviewed byCybersecurity entrepreneur & security researcher

What is Keylogger?

KeyloggerSoftware or hardware that records the keystrokes a user types, used to steal passwords, financial data, or messages.


A keylogger captures keyboard input and either stores it locally or exfiltrates it to an attacker. Software keyloggers run as user-mode hooks (SetWindowsHookEx), kernel drivers, or malicious browser extensions; hardware keyloggers sit inline between keyboard and computer or hide inside modified peripherals. Attackers use them to harvest credentials, manually typed OTPs, banking data, chat messages, and intellectual property, and they ship as standard modules of info-stealers, banking trojans, and espionage toolkits like Agent Tesla, HawkEye, and Snake Keylogger.

Keylogging is older than the PC. In one of the most elegant operations of the Cold War, the Soviets bugged IBM Selectric typewriters at the U.S. Embassy in Moscow from roughly 1976 to 1984: magnetometers hidden in a hollow support bar sensed the rotation and tilt of the printing "golf ball," then burst encrypted keystrokes over radio. The NSA's Project GUNMAN finally uncovered the implants after a technician spotted an extra coil in a power switch — proof that capturing what people type needs no software at all.

Defences include EDR with behavioural monitoring, phishing-resistant MFA based on hardware keys (FIDO2/WebAuthn) so a stolen password is useless, OS credential-input protections, physical inspection of workstation cables, and disabling unused USB ports.

flowchart LR
  K[User presses keys] --> C[Keylogger captures input]
  C --> S[Software hook / driver]
  C --> H[Hardware inline device]
  S --> E[Encode and buffer]
  H --> E
  E --> X[Exfiltrate to attacker C2]
  X --> U[Credential / data theft]

Examples

  1. 01

    HawkEye and Agent Tesla, commodity info-stealers with built-in keylogging.

  2. 02

    USB "keyboard-style" hardware keyloggers inserted into shared workstations.

Frequently asked questions

What is Keylogger?

Software or hardware that records the keystrokes a user types, used to steal passwords, financial data, or messages. It belongs to the Malware category of cybersecurity.

What does Keylogger mean?

Software or hardware that records the keystrokes a user types, used to steal passwords, financial data, or messages.

How do you defend against Keylogger?

Defences for Keylogger typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Keylogger?

Common alternative names include: Keystroke logger, Keylogging malware.

Related terms

See also