Safeguard
Application Security•

Detecting Active Setup Persistence on Windows (T1547.014)

Active Setup runs a StubPath program for each user at logon, and attackers can plant their own entry. MITRE T1547.014 explained, with what to log and why prevention is limited.

Safeguard Security Team
2 min read

Active Setup is a Windows mechanism that runs programs when a user logs in. MITRE tracks its abuse as T1547.014, under Boot or Logon Autostart Execution, with Persistence and Privilege Escalation as the tactics.

How attackers use it

An adversary creates a key under HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\ and sets a malicious StubPath value. That value is the program executed when a user logs into the computer.

The program runs in the context of the user and carries that account's permissions. MITRE notes it can be used to keep remote access tools alive across reboots, and that adversaries may use Masquerading so the key looks like it belongs to a legitimate program.

How to detect it

MITRE's detection strategy is a multi-event correlation:

  • A new or changed Active Setup key with a non-standard StubPath.
  • Followed by process execution from an uncommon path, an unsigned binary, or an odd parent and child relationship after logon.

Registry auditing on that key, plus process creation logging with command lines, gives you both halves.

How to reduce the risk

MITRE says this technique cannot be easily mitigated with preventive controls, since it abuses a system feature. Practical steps follow from that: restrict who can write under HKLM, keep a baseline of the components your software installs, and alert on new entries.

Quick check

Which value in an Active Setup component decides what runs at logon?

StubPath.

Sources

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.