Keystroke logging is the recording of keyboard input. A keylogger may capture passwords, messages, search terms, or other information as a person types. It can operate through malicious software on a device or, less commonly, through a physical device attached to a keyboard.
Attackers may use keylogging malware to steal account credentials or monitor sensitive communications after a device is compromised. In spyware investigations, a reported keylogging capability indicates a potential risk, not proof that victims were infected or that data was collected. Defenders can reduce exposure by keeping systems updated, using reputable security tools, investigating suspicious files or messages, and enabling multifactor authentication. Password managers can also limit how often credentials must be typed, though they do not prevent all forms of input monitoring.


