Keystroke Logging
Keystroke logging is the recording of the keys a person presses on a keyboard as they type. Attackers often use it maliciously by installing software or hardware on a victim's device to secretly capture and store what is typed, which can include passwords and other sensitive information.
Keystroke logging (keylogging) is the action of recording the keys pressed on a keyboard, typically implemented through software (a form of malware) or dedicated hardware that intercepts and stores keyboard input. In an attack context, adversaries compromise a target device and install a keylogger to capture typed data such as credentials, potentially exposing knowledge-factor secrets used in authentication. Note that the evidence provided describes keystroke logging at a general level and does not detail specific interception techniques, mitigations, or its interaction with particular authentication mechanisms; those are out of scope for this definition.
Why it matters
Keystroke logging directly threatens knowledge-factor secrets, passwords, PINs, and answers to security questions, because it captures exactly what a user types before that input is protected by hashing, transport encryption, or other downstream controls. When an attacker compromises a device and installs a keylogger, the credentials a user enters can be recorded at the moment of typing, undermining authentication regardless of how strong the underlying password may be. This makes keylogging a persistent concern for anyone whose security model still depends on typed secrets.
For identity and access teams, the significance is that keylogging attacks target the point of credential entry rather than the identity provider or directory itself. A stolen password harvested from an endpoint can enable an attacker to authenticate as a legitimate principal, so the compromise of a single device can translate into unauthorized access across systems that trust that credential. The evidence provided describes keylogging at a general level and does not detail specific mitigations or how keylogging interacts with particular authentication mechanisms, so any defensive measures should be evaluated against your own deployment context.
Who it's relevant to
Inside Keystroke Logging
Common questions
Answers to the questions practitioners most commonly ask about Keystroke Logging.
