Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Registry Run Key Persistence
Threats, Abuse & Incident Response

Registry Run Key Persistence

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Threats, Abuse & Incident Response

Registry Run Key Persistence is a Windows persistence technique where malware or an unauthorized program adds itself to registry locations that launch automatically at logon or startup. Technically, attackers modify keys such as Run or RunOnce so code executes when a user signs in, helping the threat survive reboots and maintain access.

What Registry Run Key Persistence Means in Practice

Registry Run Key Persistence is a Windows autostart technique, so the core idea is not the registry itself but the abuse of startup logic that turns a normal logon into an execution event. Defenders treat it as a persistence mechanism because it can survive reboots, blend into routine system behaviour, and quietly re-launch code whenever a user signs in.

The technique matters because it exploits a trusted launch path. Once a malicious entry is in a Run or RunOnce location, the payload no longer needs an interactive user action to execute, and that makes it attractive for maintaining access after initial compromise.

How Run and RunOnce Keys Are Abused

Run key persistence usually means adding a command, script, or binary reference to a registry location that Windows processes during logon or startup. The exact location and timing can vary, but the security property being abused is the same, automatic execution through a trusted configuration source.

Attackers often prefer these keys because they are simple to modify, easy to hide among legitimate software settings, and effective even without deeper system changes. That makes them a common persistence choice after phishing, malware installation, or credential-based intrusion.

On Windows, persistence mechanisms of this kind are part of the broader Persistence Techniques Guide, which places Run keys alongside other autostart methods such as services, scheduled tasks, and startup folders.

Why Registry Run Key Persistence Is Hard to Notice

This technique can evade casual review because registry autoruns are a normal part of endpoint administration. A malicious entry may look like a legitimate updater, helper process, or user startup item unless the defender validates the command path, parent process, signing status, and business justification for the entry.

It is also durable in a practical sense. If the payload is dormant until the next logon, security teams may miss the initial compromise window and only see the effect later, when the same code reappears after restart or sign-in.

Defenders investigating Windows autoruns should understand the surrounding operating system context, and Windows Internals for Defenders Guide is especially useful for understanding tokens, privileges, registry autoruns, and related telemetry.

Detection and Remediation Strategy

Detection starts with inventorying expected autorun entries and comparing them to current state. The most useful question is not simply whether a Run key exists, but whether that exact command belongs there, whether it was recently added or changed, and whether the referenced file or script is known and approved.

Response should include removing the malicious autorun entry, isolating the host if compromise is suspected, and checking for any secondary persistence mechanisms that may have been planted alongside it. A single Run key is often a symptom of a broader intrusion rather than the whole problem.

Because persistence often accompanies broader identity abuse, the Identity Threat Detection and Response (ITDR) Guide helps connect persistence to credential theft, session abuse, and compromise review.

How Organisations Should Think About the Control Problem

Registry Run Key Persistence is ultimately a control failure around startup authority. If too many users or processes can write to autostart locations, or if defenders lack visibility into autorun changes, the environment becomes easier to persist in and harder to clean up.

That is why detection and hardening need to be paired. Removing one malicious key is useful, but the better outcome is making autorun modification observable, reviewable, and tightly limited so persistence attempts are harder to establish in the first place.

For ATT&CK-aligned detection and evasion analysis, the MITRE D3FEND Guide provides a useful control-coverage lens for registry key creation, modification, and logon-session-related artefacts.

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 NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1547.001 — Boot or Logon Autostart Execution: Registry Run Keys / Startup FolderRun key persistence is the ATT&CK technique for autorun registry persistence.
Recommendation — Monitor and remove unauthorized Run and RunOnce autoruns, then hunt for related persistence.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingAutorun changes must be reviewed through audit logging and alerting.
CM-5 — Access Restrictions for ChangeLimiting who can change startup configuration reduces persistence abuse.
SI-4 — System MonitoringPersistent malware is detected through host monitoring and behavioural alerting.
Recommendation — Alert on registry autorun creation or modification and review changes promptly. Restrict write access to autorun registry locations to approved administrative paths. Correlate registry autorun changes with process and logon telemetry to spot persistence.
CIS Controls v8CIS-8 — Audit Log ManagementRegistry persistence is found through consistent logging and review of endpoint events.
Recommendation — Centralise and review endpoint logs for autorun changes and suspicious execution.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org