Join our Newsletter — 33% off our NHI Course

How can organisations reduce the risk of boot or logon autostart execution?

Review and restrict persistence points that start automatically at boot or user logon, and alert on new entries outside approved software installation paths. Use least privilege, application control, and startup-item monitoring so attackers cannot survive reboots or user sign-in by placing code in autostart locations.

What boot and logon autostart persistence looks like

Boot and logon autostart execution is the set of locations and configuration hooks that cause code to run automatically when a system starts or when a user signs in. Those mechanisms are attractive to attackers because they survive reboots, blend into normal administration, and can be used to regain execution even after an initial payload is removed.

The practical security problem is not just “malware at startup,” but any unmanaged persistence point that can launch code before users notice it. That includes startup folders, run keys, services, scheduled tasks, login scripts, shell or profile files, and platform-specific autostart mechanisms. If those locations are not tightly controlled, the system can quietly re-infect itself after every restart.

Good defence starts with inventory and ownership. Treat every autostart mechanism as a controlled persistence surface, define which software is allowed to register there, and require a clear business reason for each entry. When startup items are unmanaged, the defender often discovers the problem only after repeated cleanup attempts fail.

How to reduce the attack surface

The most effective reduction is to narrow who can create or change autostart entries. Use least privilege so ordinary users cannot write into system-level persistence locations, and separate administrative rights from day-to-day use. Pair that with application control so only approved binaries, scripts, and installers can place code into trusted startup paths.

Restricting the path matters as much as restricting the account. Many persistence techniques work by copying or linking a payload into a location that is automatically executed at boot or logon, or by modifying an existing object that already runs in that phase. If your controls only watch for “new software” but not for changes to startup locations, the attacker can still survive through a seemingly legitimate entry point.

Monitoring should focus on creation, modification, and deletion events in known autostart locations, not just on the presence of suspicious filenames. A useful alert is one that distinguishes approved software installation paths from everything else, because legitimate installers can be whitelisted while unexpected entries become high-confidence review items.

Why startup-item monitoring has to be specific

Generic malware detection is often too late for autostart abuse because the malicious code may not need to run long or loudly to be effective. Monitoring must understand the persistence mechanism itself, including where the operating system reads startup configuration, which users can change it, and what normal change activity looks like during software installation or patching.

That specificity also helps reduce false positives. A good control does not merely flag every startup change, it correlates the change with a trusted installer, change window, or approved deployment process. Without that context, teams either miss the real abuse or drown in alerts and start ignoring them.

When persistence is already present, the question is no longer only “what changed?” but “what else does this entry enable?” A startup item can be a launch point for credential theft, remote access, or privilege escalation, so the monitoring signal should feed incident response and host investigation, not just logging.

Risk and Threat Considerations

Autostart persistence is risky because it gives an intruder a low-friction way to remain resident across reboots and user sessions. Once code is planted in a startup path, the attacker can regain execution even after a partial cleanup, and the persistence can be used to re-establish control, stage additional payloads, or maintain access while appearing operationally normal.

Failure mechanism: The control fails when users or services have write access to persistence locations, when startup entries are not inventoried, or when changes are accepted without validation against approved installation paths. In that situation, a malicious entry can look like routine system configuration and continue executing automatically.

Impact: The likely impact is repeated reinfection after reboot, hidden execution at logon, delayed detection, and a larger blast radius if the startup item launches with elevated privileges or under a trusted service context. That can turn a single host compromise into durable foothold and repeated post-exploitation activity.

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

Framework Control / Reference Relevance
MITRE ATT&CK T1547 — Boot or Logon Autostart Execution Directly covers persistence via startup and logon execution paths.
Recommendation — Detect and restrict autostart persistence points before attackers can survive reboots.
NIST SP 800-53 Rev 5 CM-7 — Least Functionality Limits unnecessary startup mechanisms and executable paths that enable persistence.
AC-6 — Least Privilege Reduces who can write to autostart locations or modify persistence settings.
SI-3 — Malicious Code Protection Supports detection and blocking of malicious code placed into autostart paths.
Recommendation — Remove unneeded startup mechanisms and only allow required autostart behaviour. Restrict write access to startup locations to authorised administrators only. Scan and block malicious executables and scripts used for persistence.

Practitioner Guidance

What to verify: Confirm which autostart paths are actually enabled in your environment, who can write to them, and whether change detection distinguishes approved installer activity from manual tampering. If you cannot answer those three questions quickly, the environment is not ready to trust startup-item controls.

Decision rule: If a startup entry is outside a sanctioned software deployment path, treat it as suspicious until proven legitimate; if it is inside an approved path, validate the signer, parent process, and change ticket before suppressing the alert. That rule prevents “looks normal” from becoming a blanket exception.

What good looks like: Administrators have no routine ability to add persistence at the boot or logon layer, approved installers are the only common source of new entries, and alerts are rare enough that investigators can review them as high-signal events rather than noise.

Practitioner takeaway: The goal is not to eliminate every autostart mechanism, but to make persistence creation visible, tightly delegated, and hard to confuse with legitimate software installation.