Keyloggers - How They Steal Your Passwords
About 2 min read
A keylogger is a type of malware that secretly records keyboard input. There are software-based and hardware-based types, and software-based keyloggers are distributed embedded in Trojan horses and the like. The recorded data is sent to the attacker, and confidential information such as passwords and credit card numbers is stolen.
How Keyloggers Work
Software-based keyloggers record keystrokes by methods such as hooking the API functions that process keystrokes. Advanced ones also capture screenshots and monitor the clipboard. Hardware-based types are small devices physically inserted between the USB connector and the keyboard, and they are difficult to find with software-based scans.
Why Discovering a Keylogger Does Not End with Removal
A distinctive feature of keylogger damage is that, at the moment of discovery, the scope of the damage has already been determined retroactively. Recording continues throughout the period from infection to discovery, so removal only stops the recording from that point on; input that has already been transmitted cannot be taken back. For this reason, the response after discovery must assume that everything typed on the device during the infection period (passwords for each service, the contents of emails and documents, credit card numbers, and so on) has reached a third party. Passwords in particular affect every service that was typed into, so identifying the affected accounts and changing their passwords becomes the core of the response. This is also why pinpointing when the infection began matters: if the period cannot be determined, there is no choice but to cast a wider net and change more.
Concrete Damage Scenarios
One example scenario is one in which a hardware-based keylogger is planted on a shared PC in a hotel business center or an airport lounge. When a business traveler logs in to their email or online banking, all of their credentials are recorded.
Practical Countermeasures
Using the auto-fill feature of a password manager reduces typing on the keyboard. With two-factor authentication set up, a leaked password alone is less likely to be enough for an unauthorized login.
Was this article helpful?
Related Terms
- Spyware - How It Tracks You and How to Remove ItSpyware silently monitors your activity and sends personal data to third parties. Learn how it installs, the warning signs, and the steps for removing it.
- Ransomware - How It Spreads and How to Stop ItRansomware locks your files with encryption and demands payment for the key. Understand infection vectors, prevention strategies, and recovery options.
- Privacy Policy - How to Read One in MinutesA privacy policy explains what personal data a service collects, why, and who it is shared with. Learn the legal background (GDPR, CalOPPA) and the five sections worth checking before you sign up.
- Shoulder Surfing - Preventing Visual Password TheftShoulder surfing is the act of watching someone enter a password or PIN in public. Privacy screens, biometric unlock, and awareness are ways to reduce the risk.