Detect Create or Modify System Process in IBM QRadar
Adversaries may create or modify system-level processes to repeatedly execute malicious payloads as part of persistence. When operating systems boot up, they can start processes that perform background system functions. On Windows and Linux, these system processes are referred to as services. On macOS, launchd processes known as Launch Daemon and Launch Agent are run to finish system initialization and load user specific parameters. Adversaries may install new services, daemons, or agents that can be configured to execute at startup or a repeatable interval in order to establish persistence. Similarly, adversaries may modify existing services, daemons, or agents to achieve the same effect. Services, daemons, or agents may be created with administrator privileges but executed under root/SYSTEM privileges. Adversaries may leverage this functionality to create or modify system processes in order to escalate privileges.
MITRE ATT&CK
- Tactic
- Persistence Privilege Escalation
- Technique
- T1543 Create or Modify System Process
- Canonical reference
- https://attack.mitre.org/techniques/T1543/
QRadar Detection Query
SELECT
DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS event_time,
sourceip,
LOGSOURCENAME(logsourceid) AS log_source,
username,
QIDNAME(qid) AS event_name,
EventID,
CommandLine,
ParentProcessPath,
ProcessPath,
CASE
WHEN EventID IN (7045, 4697) THEN 'security_service_install_event'
WHEN EventID = 1 AND CommandLine ILIKE '%sc.exe%create%' THEN 'sc_exe_service_creation'
WHEN EventID = 1 AND (CommandLine ILIKE '%New-Service%' OR CommandLine ILIKE '%Set-Service%') THEN 'powershell_service_creation'
WHEN EventID = 1 AND CommandLine ILIKE '%sc.exe%create%'
AND ParentProcessPath ILIKE ANY ('%winword.exe', '%excel.exe', '%powerpnt.exe',
'%wscript.exe', '%cscript.exe', '%mshta.exe', '%rundll32.exe') THEN 'unusual_parent_service_creation'
WHEN EventID IN (12, 13) AND RegistryPath ILIKE '%CurrentControlSet\\Services%' THEN 'registry_service_modification'
ELSE 'unknown'
END AS detection_branch,
CASE
WHEN CommandLine ILIKE ANY ('%\\Temp\\%', '%\\AppData\\%', '%\\Downloads\\%',
'%\\Public\\%', '%TEMP%', '%APPDATA%') THEN 1
ELSE 0
END AS suspicious_path,
CASE
WHEN CommandLine ILIKE ANY ('%powershell.exe%', '%cmd.exe%', '%wscript.exe%',
'%cscript.exe%', '%mshta.exe%', '%rundll32.exe%',
'%regsvr32.exe%', '%certutil.exe%', '%bitsadmin.exe%') THEN 1
ELSE 0
END AS lolbin_service,
CASE
WHEN EventID = 1 AND ParentProcessPath ILIKE ANY
('%winword.exe', '%excel.exe', '%powerpnt.exe', '%outlook.exe',
'%wscript.exe', '%cscript.exe', '%mshta.exe', '%rundll32.exe') THEN 1
ELSE 0
END AS unusual_parent
FROM events
WHERE
LOGSOURCETYPEID IN (12, 13, 14, 397) -- Windows Security, Sysmon, System
AND (
EventID IN (7045, 4697)
OR (
EventID = 1 AND (
(CommandLine ILIKE '%sc.exe%' AND (CommandLine ILIKE '%create%' OR CommandLine ILIKE '%config%'))
OR (CommandLine ILIKE '%powershell%' AND (CommandLine ILIKE '%New-Service%' OR CommandLine ILIKE '%Set-Service%'))
)
)
OR (
EventID IN (12, 13) AND
RegistryPath ILIKE '%SYSTEM\\CurrentControlSet\\Services%' AND
(
RegistryPath ILIKE '%ImagePath%' OR
RegistryPath ILIKE '%\\Start'
)
)
)
AND (
suspicious_path = 1 OR lolbin_service = 1 OR unusual_parent = 1 OR EventID IN (7045, 4697)
)
ORDER BY starttime DESC
LAST 24 HOURS Detects Windows service creation and modification events using QRadar AQL against Windows Security Event Log (EventIDs 7045, 4697), Sysmon process creation (EventID 1 with sc.exe or PowerShell), and Sysmon registry events (EventIDs 12/13) targeting the Services registry hive. Scores events by suspicious path, LOLBin usage, and unusual parent process.
Data Sources
Required Tables
False Positives & Tuning
- Software deployment systems (SCCM, PDQ Deploy, Chocolatey) routinely create services — correlate with known software deployment windows and authorized maintenance accounts
- Security monitoring agents (CrowdStrike Falcon, Cylance, Carbon Black) update their own services and may trigger registry modification alerts — build exclusions for signed binaries from known security vendors
- Development and testing environments may have developers creating test services via PowerShell New-Service — separate production and non-production log source groups
Other platforms for T1543
Testing Methodology
Validate this detection against 4 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.
- Test 1Create Malicious Windows Service via sc.exe
Expected signal: Security Event ID 4697 and System Event ID 7045: New service 'ArgusTestSvc' installed with ServiceFileName containing cmd.exe. Sysmon Event ID 1: sc.exe process creation with CommandLine containing 'create ArgusTestSvc'. Sysmon Event ID 13: Registry value set at HKLM\SYSTEM\CurrentControlSet\Services\ArgusTestSvc\ImagePath.
- Test 2Create Persistent Service via PowerShell New-Service
Expected signal: Sysmon Event ID 1: powershell.exe process creation with CommandLine containing 'New-Service'. Security Event ID 4697 and System Event ID 7045: service 'ArgusTestPSSvc' installed with ServiceFileName = powershell.exe. Sysmon Event ID 13: registry modification at HKLM\SYSTEM\CurrentControlSet\Services\ArgusTestPSSvc\.
- Test 3Service Installed in User-Writable Path
Expected signal: Sysmon Event ID 11: file created at %TEMP%\svchost32.exe (copy of cmd.exe). Sysmon Event ID 1: sc.exe execution with TEMP path in command line. Security Event ID 4697 / System Event ID 7045: new service with ServiceFileName in user Temp directory. Sysmon Event ID 13: ImagePath registry value containing \Temp\ path.
- Test 4Modify Existing Service Binary Path (Service Hijacking)
Expected signal: Sysmon Event ID 1: sc.exe with 'config' and 'binPath' in command line targeting 'wuauserv'. Sysmon Event ID 13: registry value modification at HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\ImagePath. Security Event ID 4697 may fire depending on Windows version and audit policy. Note: this test modifies a real service — run only in isolated test environments.
References (9)
- https://attack.mitre.org/techniques/T1543/
- https://technet.microsoft.com/en-us/library/cc772408.aspx
- https://learn.microsoft.com/en-us/windows/win32/services/service-control-manager
- https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1543.003/T1543.003.md
- https://www.mandiant.com/resources/blog/iocs-yellow-liderc-imaploader
- https://www.cisa.gov/sites/default/files/2024-04/aa24-109a-stopransomware-akira_0.pdf
- https://www.sans.org/white-papers/33492/
- https://github.com/SigmaHQ/sigma/tree/master/rules/windows/registry/registry_set
Unlock Pro Content
Get the full detection package for T1543 including response playbook, investigation guide, and atomic red team tests.