{"id":"207b0396-3689-42d9-8399-4222658efc99","title":"Potential Privilege Escalation To LOCAL SYSTEM","description":"Detects unknown program using commandline flags usually used by tools such as PsExec and PAExec to start programs with SYSTEM Privileges","author":"Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2021-05-22","modified":"2024-03-05","tags":["attack.resource-development","attack.t1587.001"],"technique_ids":["T1587.001"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Weird admins that rename their tools","Software companies that bundle PsExec/PAExec with their software and rename it, so that it is less embarrassing"],"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"],"source_path":"rules/windows/process_creation/proc_creation_win_sysinternals_susp_psexec_paexec_flags.yml","source_sha256":"f87f2076a89da5b73ac1ebeb8b1d3d7832f0c06783de3114769470d3d8cca7f8","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_sysinternals_susp_psexec_paexec_flags.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential Privilege Escalation To LOCAL SYSTEM\nid: 207b0396-3689-42d9-8399-4222658efc99\nrelated:\n    - id: 8834e2f7-6b4b-4f09-8906-d2276470ee23 # PsExec specific rule\n      type: similar\nstatus: test\ndescription: Detects unknown program using commandline flags usually used by tools such as PsExec and PAExec to start programs with SYSTEM Privileges\nreferences:\n    - https://learn.microsoft.com/en-us/sysinternals/downloads/psexec\n    - https://www.poweradmin.com/paexec/\n    - https://www.fireeye.com/blog/threat-research/2020/10/kegtap-and-singlemalt-with-a-ransomware-chaser.html\nauthor: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)\ndate: 2021-05-22\nmodified: 2024-03-05\ntags:\n    - attack.resource-development\n    - attack.t1587.001\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        # Escalation to LOCAL_SYSTEM\n        CommandLine|contains|windash:\n            # Note that you don't need to add the \".exe\" part when using psexec/paexec\n            # The \"-\" can also be replaced with \"/\"\n            # The order of args isn't important\n            # \"cmd\" can be replaced by \"powershell\", \"pwsh\" or any other console like software\n            - ' -s cmd'\n            - ' -s -i cmd'\n            - ' -i -s cmd'\n            # Pwsh (For PowerShell 7)\n            - ' -s pwsh'\n            - ' -s -i pwsh'\n            - ' -i -s pwsh'\n            # PowerShell (For PowerShell 5)\n            - ' -s powershell'\n            - ' -s -i powershell'\n            - ' -i -s powershell'\n    filter_main_exclude_coverage:\n        # This filter exclude strings covered by 8834e2f7-6b4b-4f09-8906-d2276470ee23\n        CommandLine|contains:\n            - 'paexec'\n            - 'PsExec'\n            - 'accepteula'\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Weird admins that rename their tools\n    - Software companies that bundle PsExec/PAExec with their software and rename it, so that it is less embarrassing\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1587.001","id":"T1587.001","name":"Malware","page":"techniques/enterprise/T1587.001/"}],"data_path":"data/detection-rules/207b0396-3689-42d9-8399-4222658efc99.json","kind":"sigma"}
