A software keylogger is malicious code installed on an endpoint to record keystrokes and often related activity such as screenshots, clipboard content, and browsing history. It commonly arrives through phishing, deceptive downloads, or exploited vulnerabilities. Because it runs inside the operating environment, it can be hidden and exfiltrate data remotely.
How software keyloggers work
Software keyloggers are malicious programs that sit between user input and the operating system or application layer, capturing keystrokes as they are typed. They are often designed to run quietly, survive reboot, and blend into normal endpoint activity so that defenders do not immediately notice the interception layer.
Because the capture point is inside the endpoint, a keylogger can record data before application security controls or browser protections can reduce exposure. That makes it useful not only for password theft, but also for harvesting secrets, message content, and other sensitive text entered into legitimate systems.
Common delivery and hiding techniques
Keyloggers usually arrive through social engineering, malicious installers, trojanised software, or exploitation of an endpoint weakness that allows code execution. Once present, they may use persistence mechanisms, process injection, API hooking, or kernel-level components to keep recording input while reducing the chance of easy removal.
Some variants also expand beyond keystrokes to screenshots, clipboard monitoring, and browser form capture. That broader collection can defeat simple password-only thinking, because the attacker may obtain session data, recovery codes, or other material that never appears in a password manager field.
Why software keyloggers are dangerous
The main danger is credential and data interception at the point of entry. A captured username, password, one-time code, or recovery secret can be reused immediately, and captured session material can sometimes let an attacker bypass the need to log in again. The issue is especially serious when the victim uses the endpoint for privileged work or access to sensitive business systems.
LastPass breach 2022 is a useful reminder that keystroke capture is often only one part of a wider compromise path, because stolen secrets can be used to reach vaults, backups, and other trusted assets. The defender’s problem is not just the logger itself, but the value of whatever it observes.
Detection and response considerations
Defending against software keyloggers means looking for both the malware and the consequences of stolen input. Endpoint detection tools, unusual process behaviour, suspicious browser extensions or injected modules, abnormal outbound connections, and unexpected authentication activity can all be part of the review. If compromise is suspected, assume that any secrets entered on the affected device may already be exposed.
After removal, the response should include reviewing recent logins, invalidating exposed sessions, and rotating credentials or other secrets that may have been captured. Malware Guide gives the broader context for how malware families hide, persist, and evade detection, which is why incident response should treat keylogging as a malware case, not just a password problem.
Risk and Threat Considerations
Software keyloggers matter because they turn a trusted endpoint into an observation point for attackers. Once deployed, they can quietly convert normal user activity into a stream of reusable secrets, which makes subsequent account takeover, lateral movement, and data theft much easier.
Failure mechanism: The logger captures credentials, tokens, recovery data, or sensitive text before a user realises the endpoint is compromised, then exfiltrates that material over time.
Impact: Organisations may face account compromise, privileged access abuse, disclosure of confidential data, and a broader trust collapse in the affected device or user session.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1056.001 — Keylogging | Keylogging is the canonical ATT&CK technique for captured keystrokes and input interception. |
| Recommendation — Map detections and hunting logic to T1056.001 and investigate parent processes, injection, and exfiltration paths. | ||
| CIS Controls v8 | CIS-10 — Malware Defenses | Software keyloggers are malware on endpoints and need preventive and detective malware controls. |
| Recommendation — Harden endpoint malware defenses and alert on suspicious persistence, injection, and outbound exfiltration. | ||
| NIST SP 800-53 Rev 5 | SI-3 — Malicious Code Protection | Keyloggers are malicious code that must be detected, quarantined, and removed on endpoints. |
| IA-5 — Authenticator Management | Captured credentials and secrets are central to the harm caused by keylogging. | |
| AU-6 — Audit Record Review, Analysis, and Reporting | Investigating keylogger activity depends on reviewing logs and correlating unusual account use. | |
| Recommendation — Deploy malicious code protection and tune it for endpoint behaviours associated with keylogging. Rotate exposed authenticators and invalidate compromised secrets after suspected keylogging. Correlate endpoint, authentication, and network logs to confirm compromise and scope impacted accounts. | ||
Practitioner Guidance
What to watch for: Treat keylogging as an endpoint and identity exposure event, not only a malware removal task. If a suspect device was used for admin work, finance, support, or access to sensitive systems, the safer assumption is that entered secrets, sessions, and recovery paths may need review.
Practitioner takeaway: The practical question is not whether a keylogger was present, but what it may have seen before it was removed.
Related resources from NHI Mgmt Group
- Guide: Keyloggers Guide
- How should security teams handle exposed secrets in modern software pipelines?
- What is the difference between software supply chain risk and NHI risk?
- Why do leaked secrets need a different reporting path than ordinary software bugs?
- What is the difference between SaaS supply chain security and software supply chain security?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org