Join our Newsletter — 33% off our NHI Course

Registry Autorun Key

A Registry Autorun Key is a Windows Registry location that causes a program or command to run automatically when a user signs in or the system starts. Attackers often abuse common autorun locations to persist without installing a service, so security tools monitor changes to those keys and the referenced executables.

What the Registry Autorun Key Does

A registry autorun key is an autostart mechanism, not a program itself. It tells Windows to launch a referenced executable or command at logon or startup, which makes it a convenient persistence point for legitimate software and for attackers.

Because the behaviour is driven by configuration rather than an installed service, changes can be subtle. A new value, a renamed binary, or a command line that points into a user-writable path can be enough to create automatic execution on the next sign-in or reboot.

Why Attackers Target Autorun Locations

Autorun locations are attractive because they execute early, often with the context of the signed-in user, and they blend into normal system behaviour. Attackers use them to maintain persistence after a restart, re-launch payloads, and reduce the need for noisier mechanisms such as new services.

That makes registry autoruns part of the broader boot or logon autostart execution technique. Persistence Techniques Guide covers how run keys fit into common persistence chains, while the ATT&CK-focused T1547 Boot or Logon Autostart Execution Defensive Guide explains the autostart family in a defender-oriented way.

How Defenders Find and Validate Autorun Entries

Defenders usually look at the registry value itself, the referenced file path, the command line, the parent key, and the file reputation or signature of the launched binary. A suspicious autorun entry is often one that points to an unexpected location, uses a disguised name, or launches a script interpreter, downloader, or living-off-the-land binary.

Baseline comparison matters because not every autorun entry is malicious. Tools such as Autoruns show the complete set of startup points, and Sysinternals is often used to confirm whether a key is new, altered, or tied to an unexpected executable. Sysinternals for Incident Responders Guide is useful for that triage workflow.

Registry change telemetry is also important. When you monitor registry key creation or modification events alongside process creation, you can connect the autorun entry to the process that wrote it and identify whether the change came from an installer, an admin task, or a malicious tool.

Autorun keys can expose more than persistence. They can point to tampered binaries, abused user context, or commands that stage follow-on activity after logon. If the referenced executable is replaced, deleted and recreated, or hosted in a weak location, the key can become a durable control point for re-entry.

That is why registry autoruns are often analysed together with other startup artefacts, including startup folders, scheduled tasks, and service configuration. Windows Internals for Defenders Guide provides the Windows context needed to understand why these locations are so useful to both defenders and adversaries.

The practical security lesson is that the registry value is only half the story. The path it launches, the permissions on that path, and the surrounding startup logic determine whether the key is a harmless setting or a persistence mechanism.

Risk and Threat Considerations

Registry autorun keys are risky because they give an attacker a low-friction way to regain execution on reboot or sign-in, often without creating a service or other obvious persistence object. If defenders do not track changes to these keys and the launched binaries, malware can survive cleanup and repeatedly re-establish itself.

Failure mechanism: An attacker writes or alters an autorun value, then points it at a malicious or replaced executable, script, or command that runs automatically at the next logon or startup.

Impact: The system can repeatedly launch attacker-controlled code, enabling persistence, post-reboot reinfection, credential theft staging, and continued access even after a partial incident response.

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.

Framework Control / Reference Relevance
MITRE ATT&CK T1547.001 — Registry Run Keys / Startup Folder Registry autorun keys are the core autostart persistence mechanism described by T1547.001.
Recommendation — Map observed autorun changes to T1547.001 and hunt for adjacent persistence artefacts.
NIST SP 800-53 Rev 5 AU-12 — Audit Record Generation Registry autorun abuse depends on collecting auditable change events for key modification and process creation.
SI-4 — System Monitoring Autorun keys require continuous monitoring to spot malicious persistence and post-patch reentry.
CM-7 — Least Functionality Restricting unnecessary startup paths reduces the attack surface for autorun persistence.
Recommendation — Generate and retain registry and process audit records for startup-path changes. Correlate startup registry changes with process telemetry to detect persistence abuse. Disable unnecessary autostart locations and remove unneeded startup entries.
CIS Controls v8 CIS-8 — Audit Log Management Registry autorun abuse is best detected through centralized logging of key modifications and process launches.
Recommendation — Collect and review registry-change and process-creation logs for unauthorized startup entries.

Practitioner Guidance

What to watch for: Treat new or changed autorun entries as a change-management event, especially when the command line points to temp directories, user profile paths, script hosts, or unsigned binaries. Unexpected values should be validated against an approved baseline before they are allowed to remain.

Practitioner note: The most useful review is not just “does the key exist,” but “what exactly will run, under which account, from which file path, and is that path writable by the attacker who created the entry?” That question usually separates legitimate software configuration from persistence abuse.