T1547 IBM QRadar · QRadar

Detect Boot or Logon Autostart Execution in IBM QRadar

Adversaries may configure system settings to automatically execute a program during system boot or logon to maintain persistence or gain higher-level privileges on compromised systems. Operating systems may have mechanisms for automatically running a program on system boot or account logon, including automatically executing programs that are placed in specially designated directories or are referenced by repositories that store configuration information, such as the Windows Registry. An adversary may achieve the same goal by modifying or extending features of the kernel. Since some boot or logon autostart programs run with higher privileges, an adversary may leverage these to elevate privileges.

MITRE ATT&CK

Tactic
Persistence Privilege Escalation
Technique
T1547 Boot or Logon Autostart Execution
Canonical reference
https://attack.mitre.org/techniques/T1547/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT DATEFORMAT(devicetime, 'yyyy-MM-dd HH:mm:ss') AS event_time,
  sourceip,
  username,
  QIDNAME(qid) AS event_name,
  "RegistryKey",
  "RegistryValueName",
  "RegistryValueData",
  "ProcessName",
  "ProcessCommandLine",
  LOGSOURCENAME(logsourceid) AS log_source
FROM events
WHERE LOGSOURCETYPENAME(devicetype) = 'Microsoft Windows Security Event Log'
  AND qid IN (
    SELECT qid FROM QIDmap WHERE name LIKE '%Registry%'
  )
  AND LOWER("RegistryKey") MATCHES '.*\\(currentversion\\run|currentversion\\runonce|currentversion\\runonceex|currentversion\\runservices|currentversion\\runservicesonce|currentversion\\policies\\explorer\\run|currentversion\\winlogon|active setup\\installed components|control\\lsa|control\\print\\monitors|control\\print\\environments|services\\w32time\\timeproviders|explorer\\shell folders|explorer\\user shell folders).*'
  AND LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log', 'Sysmon')
  AND devicetime > (CURRENT_TIMESTAMP - 86400000)
ORDER BY devicetime DESC
high severity medium confidence

Detects creation and modification of Windows autostart registry keys associated with T1547 persistence techniques. Queries Windows Security Event Log and Sysmon sources in QRadar for registry events targeting Run keys, Winlogon, LSA packages, Print Monitors, and Shell Folder paths.

Data Sources

Windows Security Event Log (via QRadar WinCollect)Sysmon operational log forwarded to QRadar

Required Tables

events

False Positives & Tuning

  • Software deployment tools such as SCCM or Intune may write to RunOnce keys to schedule post-reboot installation steps, generating high volumes of benign alerts during patch cycles
  • Security agents (EDR, antivirus) frequently register themselves in HKLM Run keys upon installation or version upgrade, which will match this detection
  • Legitimate IT automation scripts (PowerShell DSC, Ansible) managing Winlogon notification packages or LSA security packages will match when run by privileged accounts
Download portable Sigma rule (.yml)

Other platforms for T1547


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Add Registry Run Key for Persistence

    Expected signal: Sysmon Event ID 13: Registry value set on HKCU\Software\Microsoft\Windows\CurrentVersion\Run with value name 'df00tech-test'. DeviceRegistryEvents with ActionType 'RegistryValueSet'.

  2. Test 2Drop File in Startup Folder

    Expected signal: Sysmon Event ID 11: FileCreate in the Startup directory. DeviceFileEvents with ActionType 'FileCreated' in the Startup folder path.

  3. Test 3Modify Winlogon Shell Value

    Expected signal: Sysmon Event ID 13: Registry value set on Winlogon\Shell. DeviceRegistryEvents with RegistryKey containing 'Winlogon' and RegistryValueName 'Shell'.

Unlock Pro Content

Get the full detection package for T1547 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections