Cybersecurity

What is Keylogger?

Quick answer

Software or hardware that secretly records the keys a user types, often to steal passwords and other sensitive information.

Keylogger, explained

A keylogger captures every keystroke on a device and sends or stores the log for someone else to review. Software keyloggers usually arrive as part of malware, through phishing emails, malicious downloads, or compromised websites. Hardware keyloggers are small devices plugged between a keyboard and a computer.

Attackers use keyloggers to harvest login credentials, banking details, and private messages. Some monitoring software with keylogging features is marketed to employers or parents, which raises legal and ethical questions and may be restricted by local laws. Defenses include keeping systems updated, using reputable endpoint security, being cautious with attachments and downloads, using a password manager with autofill, and enabling multi-factor authentication so stolen passwords alone are not enough.

Related terms

Guides that mention Keylogger