Join our Newsletter — 33% off our NHI Course

How do attackers use Windows Registry Run Keys?

Windows Registry Run Keys are registry locations that start programs when a user logs on, so attackers use them for persistence. They often point to a payload in an unusual path, a temporary folder, or a renamed system binary. Defenders should monitor changes to common autostart locations and verify the referenced executable and signer.

Why Run Keys Matter to Attackers

Windows registry run keys are attractive because they are simple, durable, and executed automatically at logon. That makes them a low-friction persistence mechanism: once an attacker can write the right registry value, their payload can relaunch every time the user signs in, often without requiring a service install or obvious startup artifact.

Attackers usually pair the Run Key with concealment. A common pattern is to point the entry at a payload buried in a temporary directory, a user-writable path, or a file name that resembles a legitimate binary. That helps the persistence blend into normal software activity and makes casual inspection less useful unless defenders verify the referenced file, path, and signer.

Run Keys also fit broader persistence tradecraft. The same family of techniques is covered in NHIMG’s Persistence Techniques Guide, which places registry autostarts alongside scheduled tasks, services, WMI subscriptions, and other logon mechanisms that attackers reuse when they want reliable execution.

What Makes Run Key Persistence Effective

Run Keys work because they sit on a trusted execution path that many environments rarely scrutinise after installation. If the system allows a standard user, a script, or a compromised application context to modify an autostart location, the attacker does not need a complex implant to keep returning. The persistence mechanism itself becomes the launcher for later stages.

This also means the visible registry entry may be only part of the problem. A Run Key can launch a second-stage loader, a renamed living-off-the-land binary, or a script that fetches the real payload later. In practice, defenders should treat the registry value, the target executable, and the surrounding directory as one investigation unit, not three separate checks.

When the payload references an executable that should never have been there in the first place, comparison against known-good software baselines matters. That is why ATT&CK-style analysis and defensive mapping remain useful, and why a broader control view such as MITRE D3FEND Guide helps teams think in terms of key deletion, service verification, process lineage, and executable validation rather than only registry monitoring.

What Defenders Should Check First

The first question is whether the Run Key is expected. If it is not tied to approved software, scheduled business automation, or a documented endpoint agent, treat it as suspicious until proven otherwise. The second question is whether the referenced file still exists, where it lives, and whether it is signed by a trusted publisher.

From a detection perspective, useful signals include new or changed values in common autostart locations, unexpected parent-child process chains at logon, and registry writes by tools that do not normally manage startup settings. If the entry launches a binary from a user profile, temp folder, downloads directory, or another writable location, the confidence of malicious intent rises quickly.

Teams that want a threat-focused view of this pattern can compare it with known adversary persistence behaviour in NHIMG’s The State of NHI & AI Agent Breach Report 2026, which discusses how attackers use durable access paths, stolen secrets, and follow-on execution to stay embedded after initial compromise.

Risk and Threat Considerations

Run Key abuse is valuable to attackers because it turns one-time access into recurring execution. If defenders miss the registry change, the attacker can survive reboots, re-logons, and many routine cleanup actions. The risk is highest when the referenced payload can also reach credentials, tokens, or internal systems after it starts.

Failure mechanism: An attacker gains write access to an autostart location and plants a registry value that launches malicious code at logon, often from a path that looks routine but is actually attacker-controlled or writable.

Impact: The attacker preserves persistence, can re-establish access after remediation, and may use the surviving launcher to deploy additional payloads, steal data, or move laterally if the host is not fully cleaned.

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 sets the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
MITRE ATT&CK T1547.001 — Registry Run Keys / Startup Folder Directly models logon persistence through Windows Registry Run Keys.
T1036 — Masquerading Attackers often hide Run Key payloads behind misleading names or paths.
Recommendation — Hunt for registry autostart persistence and correlate it with logon execution. Verify file names, paths, and signatures to expose masqueraded payloads.
CIS Controls v8 CIS-10 — Malware Defenses Run Key abuse is a common malware persistence technique requiring detection and response.
CIS-8 — Audit Log Management Registry changes and logon execution need audit visibility to detect persistence.
Recommendation — Monitor autostart locations and isolate hosts when persistence is discovered. Collect and review registry modification and logon execution events.

Practitioner Guidance

What to verify: Confirm that every Run Key value maps to an approved application, a documented maintenance function, or a known endpoint control. Validate the full on-disk path, signer, hash, and parent process that created the entry before you trust it.

Decision rule: If the registry value points to an executable in a writable or unexpected location, prioritise containment and persistence removal before you spend time proving whether the payload has already executed. The launcher itself is enough to justify urgent investigation.

Practitioner takeaway: Treat Run Keys as an execution surface, not just a configuration artifact, because the real security question is whether the logon path has been quietly turned into a reliable re-entry point.