Keylogger
Malware or hardware that records keystrokes to capture credentials and input.
What it is
A keylogger is malware (or a hardware implant) that silently records keystrokes (and often clipboard content or screenshots) to capture credentials, messages, and other sensitive input as the user types, then exfiltrates or stores that data for the attacker.
Why it matters
Keyloggers defeat password complexity and rotation entirely, since they capture the credential at the moment of use rather than attacking the stored hash. Their presence means every credential typed on that host should be considered compromised and rotated.
In practice
A keylogger bundled with a cracked software download quietly captures a user's banking credentials the next time they log in.
What to look for
- Keyboard hooks such as SetWindowsHookEx in unusual processes.
- Log files of captured keystrokes.
- Exfiltration of small text files at intervals.
Common mistake
Resetting passwords on the infected device. Change them from a clean device after removal.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- File Triage
Drop any file. It names the format from its first bytes, hashes it, and opens the parser that reads it: PE, ELF, Mach-O, Office, PDF, plist, or entropy and strings.
- Rule Range
Write a regex, a Sigma rule, a YARA rule and a query pipeline, each graded live against samples, some of which you never see.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
CrowdStrike Falcon Commercial
An EDR agent that records process, file and network activity on each host and flags this kind of behavior.
-
Microsoft Defender for Endpoint Commercial
Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.
-
Velociraptor Open source
Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.
-
Sysmon Free
Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.
Read next
- Remote Access Trojan: Malware giving an operator interactive remote control of a host.
- Credential Dumping: Harvesting passwords and hashes from a compromised host.