cve.bz

CAPEC-270

Modification of Registry Run Keys

Medium severityMedium likelihoodDetailed pattern

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.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-270: Modification of Registry Run Keys: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/270.html and https://cve.bz/cve/capec/270?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

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

  2. Experiment

    They probe what they found.

    1. [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.

      2 techniques
      • 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

    They carry out the attack.

    1. [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

What a successful attack can lead to
ImpactAffectsNote
Modify Data, Gain PrivilegesIntegrity

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.

Weaknesses it exploits

  • CWE-15 External Control of System or Configuration Setting

Recent CVEs with these weaknesses

  1. 6.7CVE-2026-126796

    A LibreOffice Writer document can contain its own database. When the document was opened, that database was registered in the user's settings under a name the document chose, replacing any database the user had registered under that name. …

  2. 8.3CVE-2026-134792

    When the proxy option isn't set, HttpClient takes the proxy from environment variables like http_proxy or HTTP_PROXY. On web servers, it ignores HTTP_PROXY, because PHP puts the Proxy request header there (the httpoxy issue). On the CLI SA…

  3. 7.8CVE-2026-130164

    Hermes Agent is an open-source autonomous AI agent built by Nous Research for running tool-using workflows across CLI, desktop, and messaging interfaces. From 0.21.6 to 0.23.1, when Bot Desktop is hosted inside a non-local terminal backend…

  4. 5.3CVE-2026-135287

    LiteLLM Proxy 1.62.4 before 1.84.0 contains a callback injection vulnerability that allows authenticated API key holders to register process-wide logging callbacks by supplying callbacks fields in request bodies. Attackers can name an unen…

  5. 8.1CVE-2026-131305

    In Splunk AI Assistant versions below 2.0.0, a user who does not hold the "admin" or "power" Splunk roles could submit client-controlled feature settings through the Representational State Transfer (REST) API. This could modify limited res…

  6. 7.8CVE-2026-133198

    In JetBrains Junie before 252.819.35, 253.819.35 code execution was possible via terminal environment settings in project files

  7. 8.0CVE-2026-133017

    In JetBrains TeamCity before 2026.2.1, 2026.1.5 remote code execution was possible via Git VCS root settings

  8. 7.5CVE-2026-132895

    In JetBrains TeamCity before 2026.2, 2026.1.4, 2025.11.8 remote code execution was possible via Subversion VCS root settings

The newest records naming one of them. Each weakness's page lists them all.

Part of
Can lead to
Can follow
  • CAPEC-555 Remote Services with Stolen Credentials

Examples

An adversary can place a malicious executable (RAT) on the target system and then configure it to automatical…

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 legi…

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

MITRE's words, unchanged: CAPEC-270 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.