Name |
Modification of Registry Run Keys |
|
Likelyhood of attack |
Typical severity |
Medium |
Medium |
|
Summary |
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. |
Prerequisites |
The adversary must have gained access to the target system via physical or logical means in order to carry out this attack. |
Execution Flow |
Step |
Phase |
Description |
Techniques |
1 |
Explore |
[Determine target system] The adversary must first determine the system they wish to target. This attack only works on Windows. |
|
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.
|
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. |
|
|
Solutions | 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. |
Related Weaknesses |
CWE ID
|
Description
|
CWE-15 |
External Control of System or Configuration Setting |
|
Related CAPECS |
CAPEC ID
|
Description
|
CAPEC-203 |
An adversary exploits a weakness in authorization in order to modify content within a registry (e.g., Windows Registry, Mac plist, application registry). Editing registry information can permit the adversary to hide configuration information or remove indicators of compromise to cover up activity. Many applications utilize registries to store configuration and service information. As such, modification of registry information can affect individual services (affecting billing, authorization, or even allowing for identity spoofing) or the overall configuration of a targeted application. For example, both Java RMI and SOAP use registries to track available services. Changing registry values is sometimes a preliminary step towards completing another attack pattern, but given the long term usage of many registry values, manipulation of registry information could be its own end. |
CAPEC-529 |
Adversary uses malware or a similarly controlled application installed inside an organizational perimeter to gather information about the composition, configuration, and security mechanisms of a targeted application, system or network. |
CAPEC-555 |
This pattern of attack involves an adversary that uses stolen credentials to leverage remote services such as RDP, telnet, SSH, and VNC to log into a system. Once access is gained, any number of malicious activities could be performed. |
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. |
CAPEC-646 |
Adversaries may attempt to obtain information about attached peripheral devices and components connected to a computer system. Examples may include discovering the presence of iOS devices by searching for backups, analyzing the Windows registry to determine what USB devices have been connected, or infecting a victim system with malware to report when a USB device has been connected. This may allow the adversary to gain additional insight about the system or network environment, which may be useful in constructing further attacks. |
|
Taxonomy: ATTACK |
Entry ID
|
Entry Name
|
1547.001 |
Boot or Logon Autostart Execution: Registry Run Keys / Start Folder |
1547.014 |
Boot or Logon Autostart Execution: Active |
|