---
title: "CAPEC-270: Modification of Registry Run Keys"
url: https://radicalnotion.ai/capec/capec-270
type: capec
description: "An adversary adds a new entry to the \"run keys\" in the Windows registry so that an application of their choosing is executed when a user logs in. In this way, the adversary can get their executable to operate and run on the target system with the authorized user's level of permissions. This attack is a good way for an adversary to run persistent spyware on a user's machine, such as a keylogger."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-270: Modification of Registry Run Keys

- **Abstraction:** Detailed
- **Status:** Stable
- **Typical severity:** Medium
- **Likelihood of attack:** Medium
- **CAPEC catalog version:** 3.9

## Description

An adversary adds a new entry to the "run keys" in the Windows registry so that an application of their choosing is executed when a user logs in. In this way, the adversary can get their executable to operate and run on the target system with the authorized user's level of permissions. This attack is a good way for an adversary to run persistent spyware on a user's machine, such as a keylogger.

## Execution flow

### Step 1: Explore

\[Determine target system\] The adversary must first determine the system they wish to target. This attack only works on Windows.

### Step 2: Experiment

\[Gain access to the system\] The adversary needs to gain access to the system in some way so that they can modify the Windows registry.

- Gain physical access to a system either through shoulder surfing a password or accessing a system that is left unlocked.
- Gain remote access to a system through a variety of means.

### Step 3: Exploit

\[Modify Windows registry\] The adversary will modify the Windows registry by adding a new entry to the "run keys" referencing a desired program. This program will be run whenever the user logs in.

## Prerequisites

- The adversary must have gained access to the target system via physical or logical means in order to carry out this attack.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Modify Data, Gain Privileges | - |

## Mitigations

- Identify programs that may be used to acquire process information and block them by using a software restriction policy or tools that restrict program execution by using a process allowlist.

## Example instances

An adversary can place a malicious executable (RAT) on the target system and then configure it to automatically run when the user logs in to maintain persistence on the target system.

Through the modification of registry "run keys" the adversary can masquerade a malicious executable as a legitimate program.

## Related weaknesses (CWE)

- [CWE-15](https://radicalnotion.ai/cwe/cwe-15): External Control of System or Configuration Setting

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-203](https://radicalnotion.ai/capec/capec-203) | Manipulate Registry Information |
| Can precede | [CAPEC-529](https://radicalnotion.ai/capec/capec-529) | Malware-Directed Internal Reconnaissance |
| Can precede | [CAPEC-568](https://radicalnotion.ai/capec/capec-568) | Capture Credentials via Keylogger |
| Can precede | [CAPEC-646](https://radicalnotion.ai/capec/capec-646) | Peripheral Footprinting |
| Can follow | [CAPEC-555](https://radicalnotion.ai/capec/capec-555) | Remote Services with Stolen Credentials |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Boot or Logon Autostart Execution: Registry Run Keys / Start Folder | 1547.001 |
| ATTACK | Boot or Logon Autostart Execution: Active | 1547.014 |

## Frequently asked questions

### What is CAPEC-270?

An adversary adds a new entry to the "run keys" in the Windows registry so that an application of their choosing is executed when a user logs in. In this way, the adversary can get their executable to operate and run on the target system with the authorized user's level of permissions. This attack is a good way for an adversary to run persistent spyware on a user's machine, such as a keylogger.

### How does a Modification of Registry Run Keys attack work?

It typically unfolds over 3 phases. It begins with: \[Determine target system\] The adversary must first determine the system they wish to target. This attack only works on Windows.

### How do you prevent CAPEC-270?

Identify programs that may be used to acquire process information and block them by using a software restriction policy or tools that restrict program execution by using a process allowlist.

### What weaknesses does CAPEC-270 target?

CAPEC-270 exploits one CWE weakness: CWE-15 (External Control of System or Configuration Setting).

### How severe is CAPEC-270?

MITRE rates CAPEC-270 as Medium severity with medium likelihood of attack.

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

---

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