Startup persistence is a malware technique that makes malicious code run automatically when a device boots or a user signs in. It usually uses startup folders, registry run keys, services, scheduled tasks or launch agents to survive reboots and maintain execution control.
What Startup Persistence Looks Like in Practice
Startup persistence is not a single trick but a family of autostart mechanisms that make malicious code survive a reboot or logon. Attackers commonly choose the path that best matches the platform they compromised, such as user startup folders, registry run keys, services, scheduled tasks or macOS launch agents.
That breadth matters because the malware does not need to stay resident in memory to remain effective. It can reappear after restart, re-establish control, and keep a foothold even when an endpoint is temporarily cleaned or powered off.
Why It Is Valuable to Attackers
Persistence is attractive because it turns an initial compromise into durable access. Once a startup mechanism is planted, the attacker can count on the system launching their code again without needing to re-exploit the host each time.
In practical terms, that supports repeated credential theft, follow-on payload delivery, command execution and lateral movement. A compromised machine that keeps reviving malicious code is harder to evict than a one-time process injection or file drop.
The tactic is also flexible. The exact mechanism used often depends on privilege level, operating system and what security controls are already present, which is why persistence should be understood as a technique pattern rather than one fixed artifact.
Common Autostart Mechanisms and What They Change
Windows startup folders and registry run keys are popular because they are simple and can be reachable with limited privileges. Services and scheduled tasks can provide stronger or more reliable execution, especially when the attacker has elevated rights or wants the malware to launch before a user fully interacts with the desktop.
On macOS and Linux, launch agents, login items and autostart entries serve a similar role. The important security change is not the specific registry hive or plist file, but the fact that execution is now tied to a trusted boot or sign-in path that defenders often assume is benign.
That trust makes persistence especially useful for malware that needs long dwell time. It can blend into normal startup behaviour, survive routine logoffs, and remain active long enough to stage additional payloads or maintain access through periodic restarts.
How Defenders Find and Remove It
Defenders usually look for this technique by comparing current startup entries against a known-good baseline, reviewing autorun locations, and correlating them with process creation and service creation telemetry. The goal is to identify where a persistent launch path was added, changed or abused.
Removal is not just deleting the visible file. Analysts also need to trace the parent mechanism, confirm whether the malicious binary was dropped elsewhere, and check whether the attacker created a second persistence path as a fallback.
For deeper technique coverage, T1547 Boot or Logon Autostart Execution Defensive Guide covers hardening and eviction across common autostart locations, while MITRE ATT&CK Enterprise Matrix is the broader reference for mapping persistence-related behaviour to adversary techniques.
Practical Security Context for This Technique
Startup persistence often appears after initial access has already been gained, so it should be treated as a sign that an intrusion has moved beyond a one-off event. The defender’s question becomes not only “what is running now?” but also “what will run again after the next reboot or sign-in?”
The technique also shapes incident response. If the malicious code touched autostart infrastructure, responders should expect the compromise to survive a simple process kill and should validate that the launch mechanism, not just the payload, has been removed.
That is why Identity Threat Detection and Response (ITDR) Guide is relevant when persistence is tied to credential abuse or repeated sign-in activity, and why Salt Typhoon telecom intrusions 2025 is a useful real-world example of long-term persistence built on stolen access and repeated re-entry.
Risk and Threat Considerations
Startup persistence matters because it converts a temporary compromise into a recurring one. Once the attacker owns an autostart path, they can keep regaining execution after reboot, which increases dwell time, complicates cleanup and can preserve access even when the original intrusion point is closed.
Failure mechanism: The attacker plants a trusted launch entry, such as a run key, scheduled task, service or login item, so the operating system re-executes malware automatically on boot or sign-in.
Impact: The host can repeatedly reinfect itself from the same persistence path, enabling long-term access, repeated credential theft, lateral movement and delayed detection.
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 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1547 — Boot or Logon Autostart Execution | Covers persistence via startup folders, run keys, services and login items. |
| Recommendation — Map startup artefacts to T1547 and hunt for unauthorized autostart entries in endpoint telemetry. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Supports detecting persistence through startup changes, service creation and logon activity. |
| CIS-4 — Secure Configuration of Enterprise Assets and Software | Applies to hardening autorun locations and reducing persistence opportunities. | |
| Recommendation — Centralize endpoint logs so new services, scheduled tasks and autoruns are reviewable. Harden startup paths and remove unnecessary autostart surfaces across endpoints. | ||
| NIST CSF 2.0 | DE.CM-01 — The network is monitored to detect potential cybersecurity events | Persistence is found by monitoring autostart changes and anomalous re-execution. |
| PR.PS-01 — Configurations, software and external connections are managed according to policy, security requirements and design | Autostart locations are configuration surfaces that require policy-controlled management. | |
| Recommendation — Monitor for unexpected boot, logon and autorun activity as potential compromise indicators. Control startup configurations so only approved autostart entries can execute. | ||
Practitioner Guidance
What to watch for: Treat new or unusual autostart entries as high-signal investigation items, especially when they appear alongside unsigned binaries, unexpected service changes or unexplained sign-in activity. Persistence is often easiest to miss when defenders focus on the payload and ignore the mechanism that relaunches it.
Practitioner takeaway: A complete response removes the startup mechanism as well as the malware it launches, otherwise the compromise may survive the next reboot.
Related resources from NHI Mgmt Group
- What breaks when package install hooks or startup hooks are used as persistence mechanisms in enterprise environments?
- What breaks when malicious Python packages install persistence through cron, .pth files, and shell startup hooks?
- How should security teams reduce the risk of Python startup hooks being used for persistence?
- Why do malware changes to Windows registry startup keys create a persistence risk?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org