Detection rules › Sigma

System File Execution Location Anomaly

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.

MITRE ATT&CK coverage

TacticTechniques
StealthT1036 Masquerading

Event coverage

Rule body yaml

title: System File Execution Location Anomaly
id: e4a6b256-3e47-40fc-89d2-7a477edd6915
related:
    - id: be58d2e2-06c8-4f58-b666-b99f6dc3b6cd # Dedicated SvcHost rule
      type: derived
status: test
description: |
    Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.
references:
    - https://twitter.com/GelosSnake/status/934900723426439170
    - https://asec.ahnlab.com/en/39828/
    - https://www.splunk.com/en_us/blog/security/inno-setup-malware-redline-stealer-campaign.html
author: Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)
date: 2017-11-27
modified: 2026-02-12
tags:
    - attack.stealth
    - attack.t1036
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\atbroker.exe'
            - '\audiodg.exe'
            - '\bcdedit.exe'
            - '\bitsadmin.exe'
            - '\certreq.exe'
            - '\certutil.exe'
            - '\cmstp.exe'
            - '\conhost.exe'
            - '\consent.exe'
            - '\cscript.exe'
            - '\csrss.exe'
            - '\dashost.exe'
            - '\defrag.exe'
            - '\dfrgui.exe' # Was seen used by Lazarus Group - https://asec.ahnlab.com/en/39828/
            - '\dism.exe'
            - '\dllhost.exe'
            - '\dllhst3g.exe'
            - '\dwm.exe'
            - '\eventvwr.exe'
            - '\fsquirt.exe' # was seen used by sidewinder APT - https://securelist.com/sidewinder-apt/114089/
            - '\finger.exe'
            - '\logonui.exe'
            - '\LsaIso.exe'
            - '\lsass.exe'
            - '\lsm.exe'
            - '\msiexec.exe'
            - '\ntoskrnl.exe'
            - '\powershell_ise.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\runonce.exe'
            - '\RuntimeBroker.exe'
            - '\schtasks.exe'
            - '\services.exe'
            - '\sihost.exe'
            - '\smartscreen.exe'
            - '\smss.exe'
            - '\spoolsv.exe'
            - '\svchost.exe'
            - '\taskhost.exe'
            - '\taskhostw.exe'
            - '\Taskmgr.exe'
            - '\userinit.exe'
            - '\werfault.exe'
            - '\werfaultsecure.exe'
            - '\wininit.exe'
            - '\winlogon.exe'
            - '\winver.exe'
            - '\wlanext.exe'
            - '\wscript.exe'
            - '\wsl.exe'
            - '\wsmprovhost.exe' # Was seen used by Lazarus Group - https://asec.ahnlab.com/en/39828/
    filter_main_generic:
        Image|startswith:
            - 'C:\$WINDOWS.~BT\'
            - 'C:\$WinREAgent\'
            - 'C:\Windows\SoftwareDistribution\'
            - 'C:\Windows\System32\'
            - 'C:\Windows\SystemTemp\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Windows\uus\'
            - 'C:\Windows\WinSxS\'
    filter_optional_system32:
        Image|contains: '\SystemRoot\System32\'
    filter_main_powershell:
        Image|contains:
            - 'C:\Program Files\PowerShell\7\'
            - 'C:\Program Files\PowerShell\7-preview\'
            - 'C:\Program Files\WindowsApps\Microsoft.PowerShellPreview'
            - '\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShellPreview' # pwsh installed from Microsoft Store
        Image|endswith: '\pwsh.exe'
    filter_main_wsl_programfiles:
        Image|startswith:
            - 'C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux'
            - 'C:\Program Files\WSL\'
        Image|endswith: '\wsl.exe'
    filter_main_wsl_appdata:
        Image|startswith: C:\Users\'
        Image|contains: '\AppData\Local\Microsoft\WindowsApps\'
        Image|endswith: '\wsl.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_system_exe_anomaly/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    Image|endswith:
        - '\atbroker.exe'
        - '\audiodg.exe'
        - '\bcdedit.exe'
        - '\bitsadmin.exe'
        - '\certreq.exe'
        - '\certutil.exe'
        - '\cmstp.exe'
        - '\conhost.exe'
        - '\consent.exe'
        - '\cscript.exe'
        - '\csrss.exe'
        - '\dashost.exe'
        - '\defrag.exe'
        - '\dfrgui.exe'
        - '\dism.exe'
        - '\dllhost.exe'
        - '\dllhst3g.exe'
        - '\dwm.exe'
        - '\eventvwr.exe'
        - '\fsquirt.exe'
        - '\finger.exe'
        - '\logonui.exe'
        - '\LsaIso.exe'
        - '\lsass.exe'
        - '\lsm.exe'
        - '\msiexec.exe'
        - '\ntoskrnl.exe'
        - '\powershell_ise.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\runonce.exe'
        - '\RuntimeBroker.exe'
        - '\schtasks.exe'
        - '\services.exe'
        - '\sihost.exe'
        - '\smartscreen.exe'
        - '\smss.exe'
        - '\spoolsv.exe'
        - '\svchost.exe'
        - '\taskhost.exe'
        - '\taskhostw.exe'
        - '\Taskmgr.exe'
        - '\userinit.exe'
        - '\werfault.exe'
        - '\werfaultsecure.exe'
        - '\wininit.exe'
        - '\winlogon.exe'
        - '\winver.exe'
        - '\wlanext.exe'
        - '\wscript.exe'
        - '\wsl.exe'
        - '\wsmprovhost.exe'

Stage 2: not filter_main_*

filter_main_generic:
    Image|startswith:
        - 'C:\$WINDOWS.~BT\'
        - 'C:\$WinREAgent\'
        - 'C:\Windows\SoftwareDistribution\'
        - 'C:\Windows\System32\'
        - 'C:\Windows\SystemTemp\'
        - 'C:\Windows\SysWOW64\'
        - 'C:\Windows\uus\'
        - 'C:\Windows\WinSxS\'
filter_main_powershell:
    Image|contains:
        - 'C:\Program Files\PowerShell\7\'
        - 'C:\Program Files\PowerShell\7-preview\'
        - 'C:\Program Files\WindowsApps\Microsoft.PowerShellPreview'
        - '\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShellPreview'
    Image|endswith: '\pwsh.exe'
filter_main_wsl_programfiles:
    Image|startswith:
        - 'C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux'
        - 'C:\Program Files\WSL\'
    Image|endswith: '\wsl.exe'
filter_main_wsl_appdata:
    Image|startswith: C:\Users\'
    Image|contains: '\AppData\Local\Microsoft\WindowsApps\'
    Image|endswith: '\wsl.exe'

Stage 3: not filter_optional_system32

filter_optional_system32:
    Image|contains: '\SystemRoot\System32\'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
ImagematchC:\Program Files\PowerShell\7-preview\
ImagematchC:\Program Files\PowerShell\7\
ImagematchC:\Program Files\WindowsApps\Microsoft.PowerShellPreview
Imagematch\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShellPreview
Imageends_with\pwsh.exe
Imagestarts_withC:\Program Files\WSL\
Imagestarts_withC:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux
Imageends_with\wsl.exe
Imageends_with\wsl.exe
Imagematch\AppData\Local\Microsoft\WindowsApps\
Imagestarts_withC:\Users\'
Imagestarts_withC:\$WINDOWS.~BT\
Imagestarts_withC:\$WinREAgent\
Imagestarts_withC:\Windows\SoftwareDistribution\
Imagestarts_withC:\Windows\SysWOW64\
Imagestarts_withC:\Windows\System32\
Imagestarts_withC:\Windows\SystemTemp\
Imagestarts_withC:\Windows\WinSxS\
Imagestarts_withC:\Windows\uus\
Imagematch\SystemRoot\System32\

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \LsaIso.exe corpus 2 (sigma 2)
  • \RuntimeBroker.exe corpus 4 (sigma 4)
  • \Taskmgr.exe corpus 5 (sigma 5)
  • \atbroker.exe corpus 2 (sigma 2)
  • \audiodg.exe
  • \bcdedit.exe corpus 5 (sigma 5)
  • \bitsadmin.exe corpus 29 (sigma 29)
  • \certreq.exe corpus 7 (sigma 7)
  • \certutil.exe corpus 43 (sigma 43)
  • \cmstp.exe corpus 8 (sigma 8)
  • \conhost.exe corpus 4 (sigma 4)
  • \consent.exe
  • \cscript.exe corpus 73 (sigma 73)
  • \csrss.exe corpus 3 (sigma 3)
  • \dashost.exe
  • \defrag.exe corpus 2 (sigma 2)
  • \dfrgui.exe
  • \dism.exe corpus 6 (sigma 6)
  • \dllhost.exe corpus 11 (sigma 11)
  • \dllhst3g.exe
  • \dwm.exe
  • \eventvwr.exe
  • \finger.exe corpus 8 (sigma 8)
  • \fsquirt.exe
  • \logonui.exe
  • \lsass.exe corpus 5 (sigma 5)
  • \lsm.exe corpus 2 (sigma 2)
  • \msiexec.exe corpus 21 (sigma 21)
  • \ntoskrnl.exe
  • \powershell.exe corpus 182 (sigma 182)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 168 (sigma 168)
  • \regsvr32.exe corpus 65 (sigma 65)
  • \rundll32.exe corpus 95 (sigma 95)
  • \runonce.exe corpus 4 (sigma 4)
  • \schtasks.exe corpus 56 (sigma 56)
  • \services.exe corpus 2 (sigma 2)
  • \sihost.exe corpus 2 (sigma 2)
  • \smartscreen.exe corpus 2 (sigma 2)
  • \smss.exe corpus 2 (sigma 2)
  • \spoolsv.exe corpus 4 (sigma 4)
  • \svchost.exe corpus 23 (sigma 23)
  • \taskhost.exe corpus 2 (sigma 2)
  • \taskhostw.exe
  • \userinit.exe corpus 2 (sigma 2)
  • \werfault.exe corpus 9 (sigma 9)
  • \werfaultsecure.exe corpus 4 (sigma 4)
  • \wininit.exe corpus 3 (sigma 3)
  • \winlogon.exe corpus 6 (sigma 6)
  • \winver.exe
  • \wlanext.exe
  • \wscript.exe corpus 75 (sigma 75)
  • \wsl.exe corpus 11 (sigma 11)
  • \wsmprovhost.exe corpus 3 (sigma 3)