Attackers use a startup directory to place a program or shortcut that runs automatically when a user signs in. This gives persistence without needing elevated privileges on some systems. Defenders should monitor startup folder contents, check for unexpected additions, and alert on new autoruns from untrusted locations or user profiles.
Why startup directories are attractive to attackers
A startup directory is a persistence point because anything placed there can run automatically when the user signs in. That makes it useful after an initial foothold, especially when the attacker does not yet have administrative rights. The key security issue is not the folder itself, but the automatic execution path it creates for user-level persistence.
Attackers prefer startup folders because they are simple, low-noise, and often blend into normal desktop behaviour. A shortcut, script, or small loader can survive reboots and logoffs without triggering the same scrutiny as a service install or scheduled task.
On Windows, this behaviour overlaps with a broader autorun category that defenders should treat as a routine persistence surface. The MITRE D3FEND Guide is useful here because it maps defensive techniques for script execution analysis, scheduled job analysis, file creation analysis, and user session init config analysis to the kinds of artefacts attackers leave behind.
How startup-folder persistence is usually established
In practice, an attacker needs only the ability to write to a startup location that the target account reads at logon. That may be the current user profile, a roaming profile location, or another folder that the user shell processes automatically. Once the file or shortcut is in place, the payload can launch quietly each time the user signs in.
The payload itself is often mundane. Common examples include a renamed executable, a script launched through an interpreter, or a shortcut that points to a staged binary elsewhere. The point is not sophistication, but dependable re-execution with minimal setup and low operational cost.
That is why this technique appears repeatedly in post-compromise tradecraft. Attackers do not need a kernel exploit or a privileged service when a user-started autorun point is available. For a broader attacker view of persistence and living-off-the-land abuse, The State of NHI & AI Agent Breach Report 2026 is relevant because it highlights how stolen credentials, tokens, and service access are used to hold access after initial compromise.
What defenders should watch for in startup folders
Security teams should review startup folders as part of basic autorun monitoring, not as an isolated hunt activity. Unexpected files, recently modified shortcuts, new scripts in user-writable locations, and entries that point to odd paths are the main signals. Correlate those changes with logon events, new processes at user sign-in, and any preceding email, download, or browser activity that could explain the initial drop.
It also helps to distinguish benign software from opportunistic persistence. Legitimate applications may register startup behaviour, but they usually do so through known installers, predictable paths, and signed binaries. Untrusted locations, hidden folders, profile directories that should be idle, and filenames that imitate common utilities deserve immediate scrutiny.
For organisations that already use endpoint detection, this is a high-value place to attach simple detections. The MITRE ATT&CK Enterprise Matrix helps analysts connect startup-folder autoruns to persistence, user execution, and follow-on credential or lateral movement activity, while CISA cyber threat advisories are useful for seeing how persistence commonly appears in real intrusion chains.
Risk and Threat Considerations
Startup-directory persistence is risky because it turns a normal login step into a repeatable execution channel. If the attacker can place or replace content in that path, they can regain code execution every time the victim signs in, which extends dwell time and increases the chance of credential theft, lateral movement, or secondary payload delivery.
Failure mechanism: The attacker abuses a trusted user profile location that is processed automatically at logon, so the payload launches without needing elevated privileges or repeated manual execution.
Impact: The compromise can persist across reboots and sessions, making cleanup harder and giving the attacker a stable foothold for follow-on actions such as data theft, remote control, or staging additional malware.
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 SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1547.001 — Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder | Startup-folder persistence is a direct ATT&CK autostart technique. |
| Recommendation — Detect and remove unauthorized logon autoruns, especially startup-folder persistence. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Monitoring startup-folder changes depends on logging and alerting for suspicious file additions. |
| Recommendation — Log and alert on new autoruns, file creation, and sign-in-linked execution events. | ||
| NIST SP 800-53 Rev 5 | CM-7 — Least Functionality | Blocking unnecessary autorun paths reduces the attacker's ability to persist through startup items. |
| Recommendation — Restrict unauthorized autorun mechanisms and remove unneeded startup execution paths. | ||
Practitioner Guidance
What to verify: Confirm which startup locations are actually enabled in your environment, then baseline the normal contents for each user population. If a new autorun item appears in a user profile without an approved software change, treat it as suspicious until the provenance is explained.
Decision rule: If the startup item launches from a user-writable path, or if it points to a binary, script, or shortcut that the user would not normally install, prioritise containment and removal before you spend time on attribution. The risk is execution on logon, not just the presence of an unfamiliar file.
What practitioners underestimate: The simplest persistence path is often the most durable because it hides inside expected behaviour. The important question is not whether the file looks advanced, but whether the autorun location gives an attacker a reliable re-entry point after every sign-in.
Practitioner takeaway: Treat startup folders as a low-friction persistence control point, and focus on unexpected additions, unusual target paths, and any autorun item that can re-launch attacker code from a user profile.
Related resources from NHI Mgmt Group
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 October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org