Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How can security teams detect Active Setup?
Threats, Abuse & Incident Response

How can security teams detect Active Setup?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Threats, Abuse & Incident Response

Security teams detect Active Setup by watching for changes to the Windows components used to run commands the next time a user logs on. Monitor creation or modification of Active Setup entries and compare them to approved software installations. Unexpected entries, especially those launching scripts or binaries from writable locations, often indicate persistence.

What Active Setup leaves behind in the Windows logon path

Active Setup is useful to attackers because it runs at user logon, not just at install time. That makes it a persistence point with a clear operational footprint: a component registration exists, Windows evaluates it during logon, and the command or payload is launched in the user context if the entry is present and differs from what the system expects.

The practical detection challenge is to separate normal software registration from abuse. Security teams should baseline approved Active Setup entries, then look for new or changed components that point to script interpreters, oddly named binaries, or executables stored in writable paths. If the entry is tied to a legitimate product but the payload path or command line does not match that product’s install pattern, it deserves immediate review.

How to monitor for suspicious entry creation and modification

Detection works best when you watch the places where Active Setup is registered and compare them to approved software change activity. Monitor for creation, alteration, or deletion of those entries, then correlate each change with known deployment events, package installs, imaging activity, or configuration management runs. That correlation is what turns a registry event into a useful alert.

Unexpected paths are often the strongest signal. A newly registered component that launches from temp folders, user profile locations, downloads directories, or other writable locations is much more suspicious than one that points to a signed program under Program Files. The same is true for entries that chain into PowerShell, WScript, or other script hosts without an obvious enterprise software rationale.

For broader persistence hunting, compare Active Setup findings with other logon execution points that Persistence Techniques Guide covers, because attackers often combine several logon mechanisms to survive partial cleanup. A single suspicious entry may be enough, but a cluster of related changes usually raises confidence.

How to confirm persistence versus legitimate software behavior

Start with provenance. Ask which package, installer, or admin workflow should have created the entry, and whether the command, versioning, publisher, and file location match that expected source. If the answer is unclear, the component should be treated as suspicious even if it is not obviously malicious yet.

Then inspect the payload chain. Active Setup entries that reference local scripts, downloaded binaries, encoded commands, or staged loaders deserve closer scrutiny because they often serve as first-stage execution before a larger persistence or defense-evasion sequence. If the entry is tied to a legitimate product, verify that the referenced file is part of the vendor installation and not an added side component.

When the environment includes Windows domain endpoints, it is worth checking whether the change pattern fits the organisation’s normal identity and configuration baseline. The Active Directory and Entra ID Hardening Guide is useful for understanding where logon-time execution and privileged change control should be tightly governed, especially in hybrid environments where persistence can hide in ordinary administrative activity.

Risk and Threat Considerations

Active Setup is risky because it executes at the next logon, which gives an attacker a durable way to keep running code without needing a service, scheduled task, or startup folder entry. That makes it attractive for stealthy persistence and for delayed execution that blends in with normal user activity.

Failure mechanism: An attacker or unauthorized change adds or alters an Active Setup component so Windows runs a chosen command when users sign in, often using a benign-looking registry artifact or a writable payload path to avoid obvious alarms.

Impact: Compromised endpoints can regain malicious code at every logon, surviving partial remediation and creating repeated opportunities for credential theft, lateral movement, and re-entry after cleanup.

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, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1547.014 — Active SetupDirectly models persistence via Active Setup logon execution.
Recommendation — Map logon-triggered registry changes to T1547.014 and hunt for persistence activity.
CIS Controls v8CIS-8 — Audit Log ManagementDetection depends on collecting and reviewing configuration and logon-change evidence.
Recommendation — Log Active Setup changes and alert on unapproved logon-execution entries.
NIST CSF 2.0DE.CM-03 — Detect anomalies and eventsSuspicious Active Setup changes are anomaly signals in endpoint monitoring.
Recommendation — Correlate Active Setup modifications with approved change activity and investigate anomalies.
NIST SP 800-53 Rev 5SI-4 — System MonitoringActive Setup detection is continuous monitoring for suspicious persistence changes.
Recommendation — Monitor endpoint configuration changes for unexpected logon-time execution paths.

Practitioner Guidance

What to verify: Build alerts around changes to Active Setup registration and require a matching software change record or deployment event before treating the entry as benign. The most useful triage question is whether the entry exists because of an approved install, or because someone introduced a new logon-time execution path.

Common mistake: Teams often focus only on startup folders and services, then miss logon-triggered persistence that sits in registry-based setup logic. Also verify the referenced binary path, not just the presence of the key, because the payload location is often what exposes abuse.

Practitioner takeaway: Treat unexpected Active Setup changes as persistence until proven otherwise, and judge them by command provenance, file location, and fit with approved software installation rather than by the registry change alone.

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.

NHIMG Editorial Note
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