---
title: "CAPEC-568: Capture Credentials via Keylogger"
url: https://radicalnotion.ai/capec/capec-568
type: capec
description: "An adversary deploys a keylogger in an effort to obtain credentials directly from a system's user. After capturing all the keystrokes made by a user, the adversary can analyze the data and determine which string are likely to be passwords or other credential related information."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-568: Capture Credentials via Keylogger

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** High
- **CAPEC catalog version:** 3.9

## Description

An adversary deploys a keylogger in an effort to obtain credentials directly from a system's user. After capturing all the keystrokes made by a user, the adversary can analyze the data and determine which string are likely to be passwords or other credential related information.

## Execution flow

### Step 1: Explore

\[Determine which user's credentials to capture\] Since this is a more targeted attack, an adversary will first identify a particular user they wish the capture the credentials of.

### Step 2: Experiment

\[Deploy keylogger\] Once a user is identified, an adversary will deploy a keylogger to the user's system in one of many ways.

- Send a phishing email with a malicious attachment that installs a keylogger on a user's system
- Conceal a keylogger behind fake software and get the user to download the software
- Get a user to click on a malicious URL that directs them to a webpage that will install a keylogger without their knowledge
- Gain access to the user's system through a vulnerability and manually install a keylogger

### Step 3: Experiment

\[Record keystrokes\] Once the keylogger is deployed on the user's system, the adversary will record keystrokes over a period of time.

### Step 4: Experiment

\[Analyze data and determine credentials\] Using the captured keystrokes, the adversary will be able to determine the credentials of the user.

- Search for repeated sequences that are following by the enter key
- Search for repeated sequences that are not found in a dictionary
- Search for several backspaces in a row. This could indicate a mistyped password. The correct password can then be inferred using the whole key sequence

### Step 5: Exploit

\[Use found credentials\] After the adversary has found the credentials for the target user, they will then use them to gain access to a system in order to perform some follow-up attack

## Prerequisites

- The ability to install the keylogger, either in person or remote.

## Mitigations

- Strong physical security can help reduce the ability of an adversary to install a keylogger.

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-569](https://radicalnotion.ai/capec/capec-569) | Collect Data as Provided by Users |
| Can precede | [CAPEC-151](https://radicalnotion.ai/capec/capec-151) | Identity Spoofing |
| Can precede | [CAPEC-560](https://radicalnotion.ai/capec/capec-560) | Use of Known Domain Credentials |
| Can precede | [CAPEC-561](https://radicalnotion.ai/capec/capec-561) | Windows Admin Shares with Stolen Credentials |
| Can precede | [CAPEC-600](https://radicalnotion.ai/capec/capec-600) | Credential Stuffing |
| Can precede | [CAPEC-653](https://radicalnotion.ai/capec/capec-653) | Use of Known Operating System Credentials |
| Related | [CAPEC-270](https://radicalnotion.ai/capec/capec-270) | Modification of Registry Run Keys |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Input Capture:Keylogging | 1056.001 |

## Frequently asked questions

### What is CAPEC-568?

An adversary deploys a keylogger in an effort to obtain credentials directly from a system's user. After capturing all the keystrokes made by a user, the adversary can analyze the data and determine which string are likely to be passwords or other credential related information.

### How does a Capture Credentials via Keylogger attack work?

It typically unfolds over 5 phases. It begins with: \[Determine which user's credentials to capture\] Since this is a more targeted attack, an adversary will first identify a particular user they wish the capture the credentials of.

### How do you prevent CAPEC-568?

Strong physical security can help reduce the ability of an adversary to install a keylogger.

### How severe is CAPEC-568?

MITRE rates CAPEC-568 as High severity.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/568.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-568). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
