Detection rules › Sigma

Files With System Process Name In Unsuspected Locations

Status
test
Severity
medium
Log source
product windows, category file_event
Author
Sander Wiebing, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the creation of an executable with a system process name in folders other than the system ones (System32, SysWOW64, etc.). It is highly recommended to perform an initial baseline before using this rule in production.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: Files With System Process Name In Unsuspected Locations
id: d5866ddf-ce8f-4aea-b28e-d96485a20d3d
status: test
description: |
    Detects the creation of an executable with a system process name in folders other than the system ones (System32, SysWOW64, etc.).
    It is highly recommended to perform an initial baseline before using this rule in production.
references:
    - Internal Research
author: Sander Wiebing, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
date: 2020-05-26
modified: 2026-02-04
tags:
    - attack.stealth
    - attack.t1036.005
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|endswith:
            - '\AtBroker.exe'
            - '\audiodg.exe'
            - '\backgroundTaskHost.exe'
            - '\bcdedit.exe'
            - '\bitsadmin.exe'
            - '\cmdl32.exe'
            - '\cmstp.exe'
            - '\conhost.exe'
            - '\csrss.exe'
            - '\dasHost.exe'
            - '\dfrgui.exe'
            - '\dllhost.exe'
            - '\dwm.exe'
            - '\eventcreate.exe'
            - '\eventvwr.exe'
            - '\explorer.exe'
            - '\extrac32.exe'
            - '\fontdrvhost.exe'
            - '\fsquirt.exe' # was seen used by sidewinder APT - https://securelist.com/sidewinder-apt/114089/
            - '\ipconfig.exe'
            - '\iscsicli.exe'
            - '\iscsicpl.exe'
            - '\logman.exe'
            - '\LogonUI.exe'
            - '\LsaIso.exe'
            - '\lsass.exe'
            - '\lsm.exe'
            - '\msiexec.exe'
            - '\msinfo32.exe'
            - '\mstsc.exe'
            - '\nbtstat.exe'
            - '\odbcconf.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regini.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\RuntimeBroker.exe'
            - '\schtasks.exe'
            - '\SearchFilterHost.exe'
            - '\SearchIndexer.exe'
            - '\SearchProtocolHost.exe'
            - '\SecurityHealthService.exe'
            - '\SecurityHealthSystray.exe'
            - '\services.exe'
            - '\ShellAppRuntime.exe'
            - '\sihost.exe'
            - '\smartscreen.exe'
            - '\smss.exe'
            - '\spoolsv.exe'
            - '\svchost.exe'
            - '\SystemSettingsBroker.exe'
            - '\taskhost.exe'
            - '\taskhostw.exe'
            - '\Taskmgr.exe'
            - '\TiWorker.exe'
            - '\vssadmin.exe'
            - '\w32tm.exe'
            - '\WerFault.exe'
            - '\WerFaultSecure.exe'
            - '\wermgr.exe'
            - '\wevtutil.exe'
            - '\wininit.exe'
            - '\winlogon.exe'
            - '\winrshost.exe'
            - '\WinRTNetMUAHostServer.exe'
            - '\wlanext.exe'
            - '\wlrmdr.exe'
            - '\WmiPrvSE.exe'
            - '\wslhost.exe'
            - '\WSReset.exe'
            - '\WUDFHost.exe'
            - '\WWAHost.exe'
    filter_main_generic:
        # Note: It is recommended to use a more robust filter instead of this generic one, to avoid false negatives.
        TargetFilename|contains:
            # - '\SystemRoot\System32\'
            - 'C:\$WINDOWS.~BT\'
            - 'C:\$WinREAgent\'
            - 'C:\Windows\SoftwareDistribution\'
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Windows\WinSxS\'
            - 'C:\Windows\uus\'
    filter_main_tiworker:
        Image|endswith:
            - '\TiWorker.exe'
            - '\wuaucltcore.exe'
        TargetFilename|startswith: 'C:\Windows\Temp\'
    filter_main_svchost:
        Image|endswith:
            - 'C:\Windows\system32\svchost.exe'
            - 'C:\Windows\SysWOW64\svchost.exe'
        TargetFilename|contains:
            - 'C:\Program Files\WindowsApps\'
            - 'C:\Program Files (x86)\WindowsApps\'
            - '\AppData\Local\Microsoft\WindowsApps\'
    filter_main_wuauclt:
        Image:
            - 'C:\Windows\System32\wuauclt.exe'
            - 'C:\Windows\SysWOW64\wuauclt.exe'
            - 'C:\Windows\UUS\arm64\wuaucltcore.exe'
    filter_main_explorer:
        TargetFilename|endswith: 'C:\Windows\explorer.exe'
    filter_main_msiexec:
        # This filter handles system processes who are updated/installed using misexec.
        Image|endswith:
            - 'C:\WINDOWS\system32\msiexec.exe'
            - 'C:\WINDOWS\SysWOW64\msiexec.exe'
        # Add more processes if you find them or simply filter msiexec on its own. If the list grows big
        TargetFilename|startswith:
            - 'C:\Program Files\PowerShell\7\pwsh.exe'
            - 'C:\Program Files\PowerShell\7-preview\pwsh.exe'
            - 'C:\Program Files\WindowsApps\Microsoft.PowerShellPreview\'
    filter_main_healtray:
        TargetFilename|contains: 'C:\Windows\System32\SecurityHealth\'
        TargetFilename|endswith: '\SecurityHealthSystray.exe'
        Image|endswith: '\SecurityHealthSetup.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - System processes copied outside their default folders for testing purposes
    - Third party software naming their software with the same names as the processes mentioned here
# Note: Upgrade to high after an initial baseline to your environement.
level: medium
regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_creation_system_file/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    TargetFilename|endswith:
        - '\AtBroker.exe'
        - '\audiodg.exe'
        - '\backgroundTaskHost.exe'
        - '\bcdedit.exe'
        - '\bitsadmin.exe'
        - '\cmdl32.exe'
        - '\cmstp.exe'
        - '\conhost.exe'
        - '\csrss.exe'
        - '\dasHost.exe'
        - '\dfrgui.exe'
        - '\dllhost.exe'
        - '\dwm.exe'
        - '\eventcreate.exe'
        - '\eventvwr.exe'
        - '\explorer.exe'
        - '\extrac32.exe'
        - '\fontdrvhost.exe'
        - '\fsquirt.exe'
        - '\ipconfig.exe'
        - '\iscsicli.exe'
        - '\iscsicpl.exe'
        - '\logman.exe'
        - '\LogonUI.exe'
        - '\LsaIso.exe'
        - '\lsass.exe'
        - '\lsm.exe'
        - '\msiexec.exe'
        - '\msinfo32.exe'
        - '\mstsc.exe'
        - '\nbtstat.exe'
        - '\odbcconf.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\regini.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\RuntimeBroker.exe'
        - '\schtasks.exe'
        - '\SearchFilterHost.exe'
        - '\SearchIndexer.exe'
        - '\SearchProtocolHost.exe'
        - '\SecurityHealthService.exe'
        - '\SecurityHealthSystray.exe'
        - '\services.exe'
        - '\ShellAppRuntime.exe'
        - '\sihost.exe'
        - '\smartscreen.exe'
        - '\smss.exe'
        - '\spoolsv.exe'
        - '\svchost.exe'
        - '\SystemSettingsBroker.exe'
        - '\taskhost.exe'
        - '\taskhostw.exe'
        - '\Taskmgr.exe'
        - '\TiWorker.exe'
        - '\vssadmin.exe'
        - '\w32tm.exe'
        - '\WerFault.exe'
        - '\WerFaultSecure.exe'
        - '\wermgr.exe'
        - '\wevtutil.exe'
        - '\wininit.exe'
        - '\winlogon.exe'
        - '\winrshost.exe'
        - '\WinRTNetMUAHostServer.exe'
        - '\wlanext.exe'
        - '\wlrmdr.exe'
        - '\WmiPrvSE.exe'
        - '\wslhost.exe'
        - '\WSReset.exe'
        - '\WUDFHost.exe'
        - '\WWAHost.exe'

Stage 2: not filter_main_*

filter_main_generic:
    TargetFilename|contains:
        - 'C:\$WINDOWS.~BT\'
        - 'C:\$WinREAgent\'
        - 'C:\Windows\SoftwareDistribution\'
        - 'C:\Windows\System32\'
        - 'C:\Windows\SysWOW64\'
        - 'C:\Windows\WinSxS\'
        - 'C:\Windows\uus\'
filter_main_tiworker:
    Image|endswith:
        - '\TiWorker.exe'
        - '\wuaucltcore.exe'
    TargetFilename|startswith: 'C:\Windows\Temp\'
filter_main_svchost:
    Image|endswith:
        - 'C:\Windows\system32\svchost.exe'
        - 'C:\Windows\SysWOW64\svchost.exe'
    TargetFilename|contains:
        - 'C:\Program Files\WindowsApps\'
        - 'C:\Program Files (x86)\WindowsApps\'
        - '\AppData\Local\Microsoft\WindowsApps\'
filter_main_wuauclt:
    Image:
        - 'C:\Windows\System32\wuauclt.exe'
        - 'C:\Windows\SysWOW64\wuauclt.exe'
        - 'C:\Windows\UUS\arm64\wuaucltcore.exe'
filter_main_explorer:
    TargetFilename|endswith: 'C:\Windows\explorer.exe'
filter_main_msiexec:
    Image|endswith:
        - 'C:\WINDOWS\system32\msiexec.exe'
        - 'C:\WINDOWS\SysWOW64\msiexec.exe'
    TargetFilename|startswith:
        - 'C:\Program Files\PowerShell\7\pwsh.exe'
        - 'C:\Program Files\PowerShell\7-preview\pwsh.exe'
        - 'C:\Program Files\WindowsApps\Microsoft.PowerShellPreview\'
filter_main_healtray:
    TargetFilename|contains: 'C:\Windows\System32\SecurityHealth\'
    TargetFilename|endswith: '\SecurityHealthSystray.exe'
    Image|endswith: '\SecurityHealthSetup.exe'

Exclusions

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

FieldKindExcluded values
Imageends_withC:\WINDOWS\SysWOW64\msiexec.exe
Imageends_withC:\WINDOWS\system32\msiexec.exe
TargetFilenamestarts_withC:\Program Files\PowerShell\7-preview\pwsh.exe
TargetFilenamestarts_withC:\Program Files\PowerShell\7\pwsh.exe
TargetFilenamestarts_withC:\Program Files\WindowsApps\Microsoft.PowerShellPreview\
Imageends_withC:\Windows\SysWOW64\svchost.exe
Imageends_withC:\Windows\system32\svchost.exe
TargetFilenamematchC:\Program Files (x86)\WindowsApps\
TargetFilenamematchC:\Program Files\WindowsApps\
TargetFilenamematch\AppData\Local\Microsoft\WindowsApps\
Imageends_with\TiWorker.exe
Imageends_with\wuaucltcore.exe
TargetFilenamestarts_withC:\Windows\Temp\
Imageends_with\SecurityHealthSetup.exe
TargetFilenameends_with\SecurityHealthSystray.exe
TargetFilenamematchC:\Windows\System32\SecurityHealth\
ImageeqC:\Windows\SysWOW64\wuauclt.exe
ImageeqC:\Windows\System32\wuauclt.exe
ImageeqC:\Windows\UUS\arm64\wuaucltcore.exe
TargetFilenameends_withC:\Windows\explorer.exe
TargetFilenamematchC:\$WINDOWS.~BT\
TargetFilenamematchC:\$WinREAgent\
TargetFilenamematchC:\Windows\SoftwareDistribution\
TargetFilenamematchC:\Windows\SysWOW64\
TargetFilenamematchC:\Windows\System32\
TargetFilenamematchC:\Windows\WinSxS\
TargetFilenamematchC:\Windows\uus\

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
TargetFilenameends_with
  • \AtBroker.exe
  • \LogonUI.exe
  • \LsaIso.exe
  • \RuntimeBroker.exe
  • \SearchFilterHost.exe
  • \SearchIndexer.exe
  • \SearchProtocolHost.exe
  • \SecurityHealthService.exe
  • \SecurityHealthSystray.exe
  • \ShellAppRuntime.exe
  • \SystemSettingsBroker.exe
  • \Taskmgr.exe
  • \TiWorker.exe
  • \WSReset.exe
  • \WUDFHost.exe
  • \WWAHost.exe
  • \WerFault.exe corpus 3 (sigma 3)
  • \WerFaultSecure.exe
  • \WinRTNetMUAHostServer.exe
  • \WmiPrvSE.exe
  • \audiodg.exe
  • \backgroundTaskHost.exe
  • \bcdedit.exe
  • \bitsadmin.exe
  • \cmdl32.exe
  • \cmstp.exe
  • \conhost.exe
  • \csrss.exe
  • \dasHost.exe
  • \dfrgui.exe
  • \dllhost.exe
  • \dwm.exe
  • \eventcreate.exe
  • \eventvwr.exe
  • \explorer.exe
  • \extrac32.exe
  • \fontdrvhost.exe
  • \fsquirt.exe
  • \ipconfig.exe
  • \iscsicli.exe
  • \iscsicpl.exe
  • \logman.exe
  • \lsass.exe
  • \lsm.exe
  • \msiexec.exe
  • \msinfo32.exe
  • \mstsc.exe
  • \nbtstat.exe
  • \odbcconf.exe
  • \powershell.exe
  • \pwsh.exe
  • \regini.exe
  • \regsvr32.exe
  • \rundll32.exe
  • \schtasks.exe
  • \services.exe
  • \sihost.exe
  • \smartscreen.exe
  • \smss.exe
  • \spoolsv.exe
  • \svchost.exe
  • \taskhost.exe
  • \taskhostw.exe
  • \vssadmin.exe
  • \w32tm.exe
  • \wermgr.exe corpus 2 (sigma 2)
  • \wevtutil.exe
  • \wininit.exe
  • \winlogon.exe
  • \winrshost.exe
  • \wlanext.exe
  • \wlrmdr.exe
  • \wslhost.exe