Skip to main content
T1547Persistencemedium difficulty

Boot or Logon Autostart Execution

T1547 Boot or Logon Autostart Execution is persistence through the startup plumbing of the OS: Run and RunOnce registry keys, Startup folders and Winlogon values on Windows, init scripts and systemd units on Linux. Detect it with Sysmon Event IDs 12 and 13 for registry writes and 11 for Startup folder files, then check which process made the change.

Practice detecting Boot or Logon Autostart Execution on realistic XDR, SIEM alerts in SOCSimulator Operations.

XDRSIEM

What is Boot or Logon Autostart Execution?

“Boot or Logon Autostart Execution is documented as technique T1547 in MITRE ATT&CK® v19.1 under the Persistence tactic. Detection requires visibility into XDR, SIEM telemetry.”

Detection Strategies

The following detection strategies help SOC analysts identify Boot or Logon Autostart Execution activity. These methods apply across XDR, SIEM environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

  1. 1

    Watch Sysmon Event ID 13 (RegistryEvent, Value Set) and Event ID 12 (key create and delete) where TargetObject contains \Software\Microsoft\Windows\CurrentVersion\Run or \RunOnce, the keys the SigmaHQ ASEP rule selects. Match on the path after the hive, since Sysmon abbreviates root key names (HKEY_LOCAL_MACHINE to HKLM, HKEY_USERS to HKU). Then read Image and Details: a command line pointing into AppData or Temp, written by powershell.exe or wscript.exe, is the alert. RunOnce values are deleted before their command runs, so by the time you look the key may be empty and only the Sysmon record shows what ran.

  2. 2

    Sysmon Event ID 11 (FileCreate) is the event Microsoft points to for autostart locations like the Startup folder. Cover both paths: C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup and C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp. A .lnk, .js, .vbs or .exe dropped there by an Office application or a script host is worth escalating.

  3. 3

    Winlogon persistence sits under HKLM and HKCU \Software\Microsoft\Windows NT\CurrentVersion\Winlogon: Userinit points to userinit.exe and Shell to explorer.exe, and anything appended after a comma ("explorer.exe, <payload>") is a finding. Without Sysmon, Security event 4657 gives you Object Name, Object Value Name, Old Value, New Value and Process Name, but only when Audit Registry is on and the key's SACL audits Set Value.

  4. 4

    Monitor service creation and modification events, focusing on services created outside of standard software installation processes or services pointing to executables in non-standard locations.

  5. 5

    Implement file integrity monitoring on autostart script locations on Linux systems including /etc/init.d/, systemd unit directories, and user-specific .bashrc and .profile files that execute on login.

  6. 6

    For response, run autorunsc -a * -c -h -s -m * on the host: every autostart category, CSV output, file hashes, signature checks, Microsoft entries hidden, all user profiles. Diff the output against the same command on a clean machine of the same build; unsigned entries in user-writable paths go to the top of the list.

Example Alerts

These realistic alert examples show what Boot or Logon Autostart Execution looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

HighXDR

Malicious Registry Run Key Added

Registry modification detected adding a new value to HKCU\Software\Microsoft\Windows\CurrentVersion\Run. The entry points to a file in %AppData%\Microsoft\Windows named svchost32.exe, which is not a legitimate Windows system file. The file was created 3 minutes prior by a PowerShell process with encoded command line arguments.

MediumXDR

Suspicious File Added to Startup Folder

File creation detected in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp. The file is a JavaScript file disguised with a PDF icon. Upon execution it connects to a remote server and downloads additional payloads. The file was created by an Office process following macro execution in a received document.

CriticalSIEM

New Malicious Service Registered

New Windows service registered with display name "Windows Security Health Monitor" using sc.exe. The service executable resides in C:\ProgramData\Microsoft\Temp and is not digitally signed. The service is configured for automatic startup and runs as SYSTEM. Hash of the executable matches a known remote access trojan in threat intelligence databases.

Frequently Asked Questions

How do SOC analysts detect Boot or Logon Autostart Execution?
Detection centers on XDR, SIEM telemetry for the persistence phase of the attack. Watch Sysmon Event ID 13 (RegistryEvent, Value Set) and Event ID 12 (key create and delete) where TargetObject contains \Software\Microsoft\Windows\CurrentVersion\Run or \RunOnce, the keys the SigmaHQ ASEP rule selects. Match on the path after the hive, since Sysmon abbreviates root key names (HKEY_LOCAL_MACHINE to HKLM, HKEY_USERS to HKU). Then read Image and Details: a command line pointing into AppData or Temp, written by powershell.exe or wscript.exe, is the alert. RunOnce values are deleted before their command runs, so by the time you look the key may be empty and only the Sysmon record shows what ran. Sysmon Event ID 11 (FileCreate) is the event Microsoft points to for autostart locations like the Startup folder. Cover both paths: C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup and C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp. A .lnk, .js, .vbs or .exe dropped there by an Office application or a script host is worth escalating.
What does a Boot or Logon Autostart Execution alert look like?
A representative XDR detection is "Malicious Registry Run Key Added" (high severity): Registry modification detected adding a new value to HKCU\Software\Microsoft\Windows\CurrentVersion\Run. The entry points to a file in %AppData%\Microsoft\Windows named svchost32.exe, which is not a legitimate Windows system file. The file was created 3 minutes prior by a PowerShell process with encoded command line arguments.
Which tools detect Boot or Logon Autostart Execution, and how can I practice?
Boot or Logon Autostart Execution (T1547) is best surfaced with XDR, SIEM telemetry, which exposes the persistence signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.

Practice Boot or Logon Autostart Execution in a Free Room

Investigate Boot or Logon Autostart Execution on realistic SIEM, XDR, and firewall consoles, free.

Playbook

Macro-Enabled Document Malware Investigation: Investigation Playbook

When XDR detects a Microsoft Office process spawning scripting interpreters, Word launching PowerShell, Excel spawning c…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Free Room

StealC: Cheat Tool to Emptied Wallet

easy difficulty room covering T1547.001

Read more
Free Room

Copyright Lure to Rhadamanthys Stealer

medium difficulty room covering T1547.001

Read more
Glossary

What is Persistence? SOC Glossary

Persistence is the set of techniques an adversary uses to keep access to a compromised system after whatever gave them t…

Read more
Glossary

What is EDR? SOC Glossary

EDR (endpoint detection and response) is security software that puts an agent on each laptop, server and workstation, re…

Read more
Glossary

What is Threat Hunting? SOC Glossary

Threat hunting is the proactive search through security telemetry for attackers that existing controls missed. The hunte…

Read more
Glossary

What is IOC (Indicator of Compromise)? SOC Glossary

In cyber security, an indicator of compromise (IOC) is forensic evidence, such as a file hash, IP, or domain, that links…

Read more
Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Career Path

Detection Engineer Career Guide: Salary & Skills

Detection Engineers build the rules, analytics, and automated workflows that determine what the SOC can see. You transla…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more