Join our Newsletter — 33% off our NHI Course

Boot or Logon Autostart Execution

Boot or Logon Autostart Execution is code or commands configured to run automatically when a system starts or a user logs on. Adversaries use these mechanisms for persistence so malware survives reboots and sign-ins. Defenders should review startup locations, scheduled entries and autorun settings, and alert on new or modified launch points.

What Boot or Logon Autostart Execution Means in Practice

Boot or logon autostart execution is a persistence mechanism, not just a startup convenience. It gives code a reliable chance to run before or alongside normal user activity, which is why attackers value it for surviving reboots and ordinary sign-ins.

In defensive terms, the important idea is that the launch point itself becomes security-relevant. A benign-looking autorun entry, scheduled task, service, script hook or startup folder item can become an execution path that outlives the original compromise if it is not reviewed and constrained.

Common Autostart Locations and Why They Matter

Autostart execution appears across operating systems and user environments in many forms, including registry run keys, startup folders, scheduled tasks, login scripts, launch agents, services and other platform-specific launch points. The exact mechanism differs, but the security issue is the same: trusted startup logic can be redirected to attacker-controlled code.

That breadth makes inventory important. Defenders need to know which launch points exist on endpoints, servers and user profiles, because persistence often hides in places that are operationally normal but security-sensitive. NHIMG’s Persistence Techniques Guide is a useful map of the major launch-point families and the attack paths they support.

How Attackers Abuse Autostart for Persistence

Attackers use autostart execution to make malware reappear after restarts, to maintain access when a session ends, and to reduce the chance that a one-time cleanup removes the intrusion. Because these mechanisms often run automatically and repeatedly, they are attractive for maintaining footholds without needing a fresh exploit each time.

The abuse is usually about trust and timing. If a malicious entry is placed where the operating system, shell or user profile expects legitimate startup logic, it can blend into routine activity. That is why persistence review should include both obvious autoruns and less visible launch hooks such as scripts, helper components and scheduled execution.

For a broader adversary view of how persistence fits into intrusion chains, see MITRE ATT&CK Enterprise Matrix, which connects startup persistence to other attacker behaviors such as privilege escalation and lateral movement.

Detection and Removal After a Suspected Compromise

Detection is strongest when it combines configuration review with change monitoring. New or modified autorun entries, unexpected scheduled items, altered service definitions and unfamiliar startup scripts are all signs that a launch point may have been abused.

After remediation, organisations should verify that the original execution path is gone and that no secondary launch point was left behind. Persistence often appears in more than one place, so post-patch or post-cleanup review should confirm the system no longer starts attacker-controlled code at boot or logon. A control-oriented reference point is NIST SP 800-53 Rev 5 Security and Privacy Controls, which includes controls for configuration management, auditability and system integrity.

Risk and Threat Considerations

Boot or logon autostart execution is risky because it turns a durable operating-system convenience into a durable attacker foothold. If adversaries gain the ability to create or modify a launch point, they can preserve execution across reboots, re-logins and many routine cleanup actions.

Failure mechanism: A malicious or altered startup entry is trusted by the platform and invoked automatically, allowing persistence to survive ordinary user activity and some remediation steps.

Impact: The compromise can remain active longer, re-establish access after restart, and continue exposing credentials, data, system control or downstream internal movement paths.

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 — Boot or Logon Autostart Execution Directly defines this persistence technique and its abuse path.
Recommendation — Map startup persistence findings to T1547 and hunt for new or altered autostart entries.
NIST SP 800-53 Rev 5 CM-7 — Least Functionality Autostart mechanisms should be limited to necessary launch paths only.
CM-6 — Configuration Settings This technique depends on startup configuration that can be monitored and controlled.
SI-3 — Malicious Code Protection Persistence often accompanies malware that must be detected and contained.
Recommendation — Restrict unnecessary autoruns and startup hooks to reduce persistence options. Baseline and monitor startup-related configuration to detect unauthorized changes. Scan and block malicious startup code before it executes on boot or logon.
CIS Controls v8 CIS-8 — Audit Log Management Autostart modifications are a high-value event for detection and response.
Recommendation — Log and review changes to startup mechanisms so persistence changes are visible.

Practitioner Guidance

What to watch for: Treat this term as a launch-point governance problem as much as a malware problem. The practical question is whether every autorun, scheduled launch and startup hook is known, justified and monitored, especially on administrative systems and shared endpoints.

Practitioner takeaway: The fastest way to reduce persistence risk is to make launch points inventoryable, reviewable and alertable, so a new execution path is visible before it becomes the attacker’s preferred foothold.