Sigma rule: PsExec/PAExec Escalation to LOCAL SYSTEM
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-20f352bde047, updated 2024-03-05T00:00:00.000Z.
Rule
- Title
- PsExec/PAExec Escalation to LOCAL SYSTEM
- Status
- test
- Level
- high
- Author
- Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- Date
- 2021-11-23
- Modified
- 2024-03-05
- File
- rules/windows/process_creation/proc_creation_win_sysinternals_psexec_paexec_escalate_system.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects suspicious commandline flags used by PsExec and PAExec to escalate a command line to LOCAL_SYSTEM rights
Log source
- product
- windows
- category
- process_creation
Detection
selection_sys: # Escalation to LOCAL_SYSTEM
CommandLine|contains|windash:
# Note that you don't need to add the ".exe" part when using psexec/paexec
# The "-" can also be replaced with "/"
# The order of args isn't important
# "cmd" can be replaced by "powershell", "pwsh" or any other console like software
- ' -s cmd'
- ' -s -i cmd'
- ' -i -s cmd'
# Pwsh (For PowerShell 7)
- ' -s pwsh'
- ' -s -i pwsh'
- ' -i -s pwsh'
# PowerShell (For PowerShell 5)
- ' -s powershell'
- ' -s -i powershell'
- ' -i -s powershell'
selection_other:
CommandLine|contains:
- 'psexec'
- 'paexec'
- 'accepteula'
condition: all of selection_*False positives (as the rule lists them)
- Admins that use PsExec or PAExec to escalate to the SYSTEM account for maintenance purposes (rare)
- Users that debug Microsoft Intune issues using the commands mentioned in the official documentation; see https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension
Tags
- attack.resource-development
- attack.t1587.001
MITRE ATT&CK ids this rule names
Related rules
References
- https://learn.microsoft.com/en-us/sysinternals/downloads/psexec
- https://www.poweradmin.com/paexec/
- https://www.fireeye.com/blog/threat-research/2020/10/kegtap-and-singlemalt-with-a-ransomware-chaser.html
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_sysinternals_psexec_paexec_escalate_system.yml
Sources and licences
SigmaHQ
"PsExec/PAExec Escalation to LOCAL SYSTEM" by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_sysinternals_psexec_paexec_escalate_system.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: PsExec/PAExec Escalation to LOCAL SYSTEM",
entity page, dataset version ref-20f352bde047, updated 2024-03-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/8834e2f7-6b4b-4f09-8906-d2276470ee23 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 8834e2f7-6b4b-4f09-8906-d2276470ee23, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.