Stockertim Dictionary · Cybersecurity
Keylogger
Also called keystroke logger, keystroke logging
In short
Software or a small hardware device that secretly records the keys pressed on a keyboard, capturing passwords, card numbers and messages and sending them to an attacker.
- Beginner
- Attack or threat
- Checked
In detail
A keylogger watches typing. Software keyloggers are a form of spyware: once installed, often through a phishing attachment, a fake download or a malicious browser extension, they record keystrokes and frequently also take screenshots, copy the clipboard and note which website or app was open. The captured data is sent at intervals to a server run by the attacker, who sifts it for usernames, passwords, card details and private conversations.
Hardware keyloggers are small devices plugged in between a keyboard and a computer, or hidden inside a keyboard, and are mainly a risk on shared or public machines. On phones, malicious apps can abuse accessibility features to read what is typed or shown on screen, achieving the same result. Some banking trojans include keylogging along with tools to change web pages and intercept codes, so that the victim sees a normal banking session while the criminal collects everything needed to steal from it.
Keyloggers are not always criminal. Some employers use monitoring software on work devices, and parental control tools may log activity, though data protection and employment law limit how such tools can be used and require transparency. The defences against malicious keyloggers are the same as for other malware: updated software, apps only from official stores, security software, caution with attachments, and multi-factor authentication, which means a stolen password alone is not enough to get in.
In practice
Avoid logging into bank or investment accounts on shared or public computers. On phones, be wary of any app asking for accessibility permissions it does not obviously need. Password managers that fill in details automatically and passkeys reduce what a keylogger can capture.
Watch out
- A keylogger leaves the computer working normally, so lack of symptoms is no reassurance.
- Changing a password on an infected device simply hands the new password to the attacker; clean the device first.
Official sources
- Key logger (glossary) · NIST Computer Security Resource Center
- Mitigating malware and ransomware attacks · National Cyber Security Centre
Facts last checked on 1 November 2026.
Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.