Real-world malware families using Boot or Logon Autostart Execution

Below is an operational, SOC-ready expansion of Boot or Logon Autostart Execution (T1547), mapping it to real-world malware families and providing a practical detection checklist you can directly adapt into SOC runbooks, SIEM use-cases, or EDR policies.


1. Mapping to Real-World Malware Families

Attackers across all sophistication levels rely on autostart persistence. Below is a technical mapping showing how major malware families implement Boot/Logon Autostart Execution.


Malware Family → Autostart Technique Mapping

Malware FamilyPlatformAutostart MechanismTechnical DetailsPrivilege Level
EmotetWindowsRegistry Run Keys, ServicesAdds payload under HKCU/HKLM\...\Run, later installs services for SYSTEM persistenceUser → SYSTEM
TrickBotWindowsScheduled Tasks, ServicesCreates hidden scheduled tasks (At startup) and service-based loadersSYSTEM
QakBot (QBot)WindowsRegistry Run KeysUses randomized Run key names pointing to %AppData% DLL loadersUser
Agent TeslaWindowsStartup FolderDrops EXE/LNK into Startup folder to evade registry monitoringUser
Cobalt Strike (Beacon)WindowsServices, Scheduled TasksRed teams & APTs register stealthy services or logon-triggered tasksSYSTEM
Ryuk / ContiWindowsServicesRegisters ransomware as a Windows service to survive reboot before encryptionSYSTEM
LockBitWindowsScheduled TasksUses schtasks /create /sc onstart to re-trigger encryption or C2SYSTEM
APT29 (Cozy Bear)WindowsRegistry + ServicesMasqueraded service names, often mimicking OS componentsSYSTEM
APT41WindowsDLL Search Order HijackingAutostarted legit app loads malicious DLL on bootUser / SYSTEM
Mirai (Linux)LinuxCron @rebootWrites @reboot cron jobs to respawn botnet processRoot
XorDDoSLinuxsystemd ServicesDrops fake .service files enabled at bootRoot
ShlayermacOSLaunch AgentsInstalls plist files with RunAtLoad=trueUser
OSX.DokmacOSLaunch DaemonsSystem-level persistence via LaunchDaemonsRoot

Key Observations from Malware Usage

  • Commodity malware prefers Run keys & Startup folders
  • Ransomware heavily favors services & scheduled tasks
  • APTs use stealthy mechanisms:
    • Masquerading names
    • DLL hijacking
    • SYSTEM-level execution
  • Linux malware overwhelmingly relies on cron & systemd
  • macOS malware almost exclusively uses LaunchAgents/Daemons

2. SOC Detection Checklist (Operational)

This checklist is designed for Tier 1 → Tier 3 SOC analysts and aligns with SIEM, EDR, and DFIR workflows.


A. Preventive Controls (Hardening)

✔ Enforce least privilege (block HKLM/service creation by users)
✔ Restrict schtasks / sc / reg add via AppLocker or WDAC
✔ Require signed services & drivers only
✔ Disable unused startup locations
✔ Monitor changes to startup paths with FIM


B. Continuous Monitoring Checklist

Windows Monitoring

ItemWhat to MonitorData Source
Registry Run KeysNew or modified Run/RunOnce entriesEDR, Sysmon (Event 13)
ServicesNew service creationEvent ID 4697
Scheduled TasksTasks with At startup/logon triggersEvent ID 106
Startup FolderFile creation/modificationEDR, FIM
Parent-Child Anomaliesservices.exe → cmd.exe / powershell.exeEDR

Linux Monitoring

ItemWhat to MonitorData Source
systemdNew .service filesAuditd
CronNew @reboot entries/var/log/syslog
Shell ProfilesModifications to .bashrc, .profileFIM
Boot ProcessesUnexpected root-owned processesps, EDR

macOS Monitoring

ItemWhat to MonitorData Source
LaunchAgentsNew plist filesUnified Logs
LaunchDaemonsSystem-level plist creationEDR
Persistence FlagsRunAtLoad=truePlist inspection
Unsigned BinariesExecuted at loginGatekeeper / EDR

C. Behavioral Detection (High-Fidelity)

  1. Executables spawning immediately after boot/logon
  2. Unsigned binaries running as SYSTEM/root
  3. Startup entries pointing to:
  • %AppData%
  • /tmp
  • /var/tmp
  • User-writable directories

4. Randomized or OS-masquerading names (WinUpdateSvc, SystemHost)


D. Threat Hunting Queries (Conceptual)

  • Startup entry created within 5 minutes of suspicious download
  • Service binary not present on clean gold image
  • Scheduled task with obfuscated command-line
  • Startup execution followed by outbound C2 traffic

E. Incident Response Checklist (SOC Workflow)

1️⃣ Triage

  • Identify persistence mechanism
  • Confirm binary hash reputation
  • Check execution context (user vs SYSTEM)

2️⃣ Containment

  • Disable service/task/autostart entry
  • Isolate endpoint if C2 observed
  • Preserve disk & memory artifacts

3️⃣ Eradication

  • Remove startup artifacts
  • Delete payload from disk
  • Reset credentials if privilege escalation occurred

4️⃣ Recovery

  • Reboot and validate clean startup
  • Re-enable only approved autostart entries
  • Patch exploited vulnerabilities

5️⃣ Post-Incident Actions

  • Add detection rules for abused startup path
  • Update threat intel with new IOC patterns
  • Review alert gaps

SOC Analyst Quick Reference (Table)

PhaseKey Question
DetectionWhy is this process starting at boot/logon?
ValidationIs this startup entry business-approved?
ScopeHow many hosts have this persistence?
ImpactSYSTEM/root execution achieved?
ClosureAre all autostart artifacts removed?

Final Takeaway

Boot or Logon Autostart Execution is one of the most abused persistence techniques across all malware tiers.
A mature SOC must:

  • Monitor every startup extensibility point
  • Correlate creation + execution + network behavior
  • Treat unknown startup entries as high-risk by default