Detection rules › Sigma

Sigma rules: 0w

Brutforce enumeration with non existing users (login)

#
Status
experimental
Severity
high
Time window
30m
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attempts to enumerate potential existing users, resulting in failed logins with unexisting or invalid accounts.

Known False Positives

  • Missconfigured application

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: Brutforce enumeration with non existing users (login)
name: login_non_existing_user
description: Detects scenarios where an attacker attempts to enumerate potential existing users, resulting in failed logins with unexisting or invalid accounts.
references:
  - https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1110.xxx-Brut%20force
  - https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4625
tags:
  - attack.credential_access
  - attack.t1110
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4625
    SubStatus: "0xc0000064" # user not found | Failure code can be defined in "Status" or "Substatus" fields. Usually, if Substatus == 0x0, refers to Status.
  filter:
    IpAddress: "%domain_controllers_ips%" # reduce amount of false positives
  condition: selection and not filter
falsepositives:
  - Missconfigured application
level: high

---
title: Brutforce enumeration with non existing users (login) Count
status: experimental
correlation:
  type: value_count
  rules:
    - login_non_existing_user # Referenced here
  group-by:
    - Computer
  timespan: 30m
  condition:
    gte: 20
    field: TargetUserName
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 4625
  SubStatus: "0xc0000064"

Stage 2: not filter

filter:
  IpAddress: "%domain_controllers_ips%"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
SubStatuseq
  • 0xc0000064 corpus 2 (sigma 2)
field:"SubStatus" kind:eq value:"0xc0000064"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
IpAddresseq%domain_controllers_ips%excludes:IpAddress field:"IpAddress" value:"%domain_controllers_ips%"

Decode Base64 Encoded Text -MacOs

#
Status
test
Severity
low
Author
Daniil Yugoslavskiy, oscd.community
Source
github.com/SigmaHQ/sigma

Detects usage of base64 utility to decode arbitrary base64-encoded text

Known False Positives

  • Legitimate activities

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Decode Base64 Encoded Text -MacOs
id: 719c22d7-c11a-4f2c-93a6-2cfdd5412f68
status: test
description: Detects usage of base64 utility to decode arbitrary base64-encoded text
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1027/T1027.md
author: Daniil Yugoslavskiy, oscd.community
date: 2020-10-19
modified: 2022-11-26
tags:
    - attack.stealth
    - attack.t1027
logsource:
    category: process_creation
    product: macos
detection:
    selection:
        Image: '/usr/bin/base64'
        CommandLine|contains: '-d'
    condition: selection
falsepositives:
    - Legitimate activities
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image: '/usr/bin/base64'
    CommandLine|contains: '-d'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -d corpus 9 (sigma 7, splunk 2)
field:"CommandLine" kind:match value:"-d"
Imageeq
  • /usr/bin/base64
field:"Image" kind:eq value:"/usr/bin/base64"

Disable PUA Protection on Windows Defender

#
Status
test
Severity
high
Author
Austin Songer @austinsonger
Source
github.com/SigmaHQ/sigma

Detects disabling Windows Defender PUA protection

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Disable PUA Protection on Windows Defender
id: 8ffc5407-52e3-478f-9596-0a7371eafe13
status: test
description: Detects disabling Windows Defender PUA protection
references:
    - https://www.tenforums.com/tutorials/32236-enable-disable-microsoft-defender-pua-protection-windows-10-a.html
author: Austin Songer @austinsonger
date: 2021-08-04
modified: 2023-08-17
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Policies\Microsoft\Windows Defender\PUAProtection'
        Details: 'DWORD (0x00000000)'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\Policies\Microsoft\Windows Defender\PUAProtection'
    Details: 'DWORD (0x00000000)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailseq
  • DWORD (0x00000000) corpus 36 (sigma 36)
field:"Details" kind:eq value:"DWORD (0x00000000)"
TargetObjectmatch
  • \Policies\Microsoft\Windows Defender\PUAProtection
field:"TargetObject" kind:match value:"\Policies\Microsoft\Windows Defender\PUAProtection"

DSRM password changed (Reg via command)

#
Status
experimental
Severity
high
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker reset or synchronize with another domain account the DSRM (Directory Services Restore Mode) password in order to escalate privileges.

Known False Positives

  • Disaster recovery situation

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Telemetry Coverage

Rule Body

title: DSRM password changed (Reg via command)
description: Detects scenarios where an attacker reset or synchronize with another domain account the DSRM (Directory Services Restore Mode) password in order to escalate privileges.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1003-Credential%20dumping
- https://adsecurity.org/?p=1714
- https://adsecurity.org/?p=1785
- https://book.hacktricks.xyz/windows/active-directory-methodology/dsrm-credentials
- https://www.hackingarticles.in/domain-persistence-dsrm/
- https://azurecloudai.blog/2020/06/19/how-to-reset-the-directory-service-restore-mode-dsrm-password/
tags:
- attack.persistence
- attack.t1098
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4688
    NewProcessName|endswith: \reg.exe
    CommandLine|contains|all:
      - REG ADD
      - '\SYSTEM\CurrentControlSet\Control\Lsa'
      - DsrmAdminLogonBehavior
  condition: selection
falsepositives:
- Disaster recovery situation
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  NewProcessName|endswith: \reg.exe
  CommandLine|contains|all:
    - REG ADD
    - '\SYSTEM\CurrentControlSet\Control\Lsa'
    - DsrmAdminLogonBehavior

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • DsrmAdminLogonBehavior
  • REG ADD corpus 13 (sigma 13)
  • \SYSTEM\CurrentControlSet\Control\Lsa corpus 5 (sigma 4, splunk 1)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"

Equation Group DLL_U Export Function Load

#
Status
stable
Severity
critical
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects a specific export function name used by one of EquationGroup tools

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Equation Group DLL_U Export Function Load
id: d465d1d8-27a2-4cca-9621-a800f37cf72e
status: stable
description: Detects a specific export function name used by one of EquationGroup tools
references:
    - https://github.com/00derp/EquationGroupLeak/search?utf8=%E2%9C%93&q=dll_u&type=
    - https://twitter.com/cyb3rops/status/972186477512839170
author: Florian Roth (Nextron Systems)
date: 2019-03-04
modified: 2023-03-09
tags:
    - attack.stealth
    - attack.g0020
    - attack.t1218.011
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - CommandLine|contains: '-export dll_u'
        - CommandLine|endswith:
              - ',dll_u'
              - ' dll_u'
    condition: selection
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - CommandLine|contains: '-export dll_u'
    - CommandLine|endswith:
          - ',dll_u'
          - ' dll_u'

Indicators

These rows show field, operator, and value matches.

Esentutl Steals Browser Information

#
Status
test
Severity
medium
Author
frack113
Source
github.com/SigmaHQ/sigma

One way Qbot steals sensitive information is by extracting browser data from Internet Explorer and Microsoft Edge by using the built-in utility esentutl.exe

Known False Positives

  • Legitimate use

MITRE ATT&CK Coverage

TacticTechniques
Collection

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Esentutl Steals Browser Information
id: 6a69f62d-ce75-4b57-8dce-6351eb55b362
status: test
description: One way Qbot steals sensitive information is by extracting browser data from Internet Explorer and Microsoft Edge by using the built-in utility esentutl.exe
references:
    - https://thedfirreport.com/2022/02/07/qbot-likes-to-move-it-move-it/
    - https://redcanary.com/threat-detection-report/threats/qbot/
    - https://thedfirreport.com/2022/10/31/follina-exploit-leads-to-domain-compromise/
author: frack113
date: 2022-02-13
modified: 2024-03-05
tags:
    - attack.collection
    - attack.t1005
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\esentutl.exe'
        - OriginalFileName: 'esentutl.exe'
    selection_flag:
        CommandLine|contains|windash: '-r'
    selection_webcache:
        CommandLine|contains: '\Windows\WebCache'
    condition: all of selection*
falsepositives:
    - Legitimate use
level: medium

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\esentutl.exe'
    - OriginalFileName: 'esentutl.exe'

Stage 2: selection_flag

selection_flag:
    CommandLine|contains|windash: '-r'

Stage 3: selection_webcache

selection_webcache:
    CommandLine|contains: '\Windows\WebCache'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -r corpus 9 (sigma 9)
  • /r corpus 4 (sigma 4)
  • \Windows\WebCache
  • –r
  • —r
  • ―r
field:"CommandLine" kind:match
Imageends_with
  • \esentutl.exe corpus 7 (sigma 7)
field:"Image" kind:ends_with value:"\esentutl.exe"
OriginalFileNameeq
  • esentutl.exe corpus 4 (sigma 2, elastic 1, splunk 1)
field:"OriginalFileName" kind:eq value:"esentutl.exe"

Log4j RCE CVE-2021-44228 Generic

#
Status
test
Severity
high
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects exploitation attempt against log4j RCE vulnerability reported as CVE-2021-44228 (Log4Shell)

Known False Positives

  • Vulnerability scanning

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Log4j RCE CVE-2021-44228 Generic
id: 5ea8faa8-db8b-45be-89b0-151b84c82702
status: test
description: Detects exploitation attempt against log4j RCE vulnerability reported as CVE-2021-44228 (Log4Shell)
references:
    - https://web.archive.org/web/20231230220738/https://www.lunasec.io/docs/blog/log4j-zero-day/
    - https://news.ycombinator.com/item?id=29504755
    - https://github.com/tangxiaofeng7/apache-log4j-poc
    - https://gist.github.com/Neo23x0/e4c8b03ff8cdf1fa63b7d15db6e3860b
    - https://github.com/YfryTchsGD/Log4jAttackSurface
    - https://twitter.com/shutingrz/status/1469255861394866177?s=21
author: Florian Roth (Nextron Systems)
date: 2021-12-10
modified: 2022-02-06
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    keywords:
        - '${jndi:ldap:/'
        - '${jndi:rmi:/'
        - '${jndi:ldaps:/'
        - '${jndi:dns:/'
        - '/$%7bjndi:'
        - '%24%7bjndi:'
        - '$%7Bjndi:'
        - '%2524%257Bjndi'
        - '%2F%252524%25257Bjndi%3A'
        - '${jndi:${lower:'
        - '${::-j}${'
        - '${jndi:nis'
        - '${jndi:nds'
        - '${jndi:corba'
        - '${jndi:iiop'
        - 'Reference Class Name: foo'
        - '${${env:BARFOO:-j}'
        - '${::-l}${::-d}${::-a}${::-p}'
        - '${base64:JHtqbmRp'
        - '${${env:ENV_NAME:-j}ndi${env:ENV_NAME:-:}$'
        - '${${lower:j}ndi:'
        - '${${upper:j}ndi:'
        - '${${::-j}${::-n}${::-d}${::-i}:'
    filter:
        - 'w.nessus.org/nessus'
        - '/nessus}'
    condition: keywords and not filter
falsepositives:
    - Vulnerability scanning
level: high

Stages and Predicates

Stage 0: condition

keywords and not filter

Stage 1: keywords

keywords:
    - '${jndi:ldap:/'
    - '${jndi:rmi:/'
    - '${jndi:ldaps:/'
    - '${jndi:dns:/'
    - '/$%7bjndi:'
    - '%24%7bjndi:'
    - '$%7Bjndi:'
    - '%2524%257Bjndi'
    - '%2F%252524%25257Bjndi%3A'
    - '${jndi:${lower:'
    - '${::-j}${'
    - '${jndi:nis'
    - '${jndi:nds'
    - '${jndi:corba'
    - '${jndi:iiop'
    - 'Reference Class Name: foo'
    - '${${env:BARFOO:-j}'
    - '${::-l}${::-d}${::-a}${::-p}'
    - '${base64:JHtqbmRp'
    - '${${env:ENV_NAME:-j}ndi${env:ENV_NAME:-:}$'
    - '${${lower:j}ndi:'
    - '${${upper:j}ndi:'
    - '${${::-j}${::-n}${::-d}${::-i}:'

Stage 2: not filter

filter:
    - 'w.nessus.org/nessus'
    - '/nessus}'

Mimispool printer driver installation (PrintNightmare vulnerability - CVE-2021-36958)

#
Status
experimental
Severity
high
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Help to detect scenarios where an attacker exploit the Mimispool print driver to escalate privileges.

Known False Positives

  • none

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Mimispool printer driver installation (PrintNightmare vulnerability - CVE-2021-36958)
description: Help to detect scenarios where an attacker exploit the Mimispool print driver to escalate privileges.
requirements: event logs 'PrintService\*' must be enabled.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0004-Privilege%20Escalation/T1574-DLL%20side-loading
- https://github.com/GossiTheDog/SystemNightmare
- https://github.com/outflanknl/PrintNightmare
- https://github.com/cube0x0/CVE-2021-1675
- https://github.com/xbufu/Mimispool
- https://github.com/gentilkiwi/mimikatz/tree/master/mimispool
- https://www.theregister.com/2021/09/21/microsoft_printnightmare/
- https://www.exabeam.com/information-security/detecting-the-printnightmare-cve-2021-1675-34527-vulnerability-using-exabeam/
tags:
- attack.privilege_escalation
- attack.t1574.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: printservice
detection:
  selection_load:
    Channel: Microsoft-Windows-PrintService/Admin
    EventID: 808 # Print spooler failed to load plug-in module
    PluginDllName|endswith: .dll # If too many false positives, replace by 'mimispool.dll'

  selection_init:
    Channel: Microsoft-Windows-PrintService/Admin
    EventID: 354 # Legit Printer initialization
    Param2|endswith: .dll # If too many false positives, replace by 'mimispool.dll'

  selection_install:
    EventID: 321
    Channel: Microsoft-Windows-PrintService/Operational
  selection_install_add1:
    Param1|contains: mimispool
  selection_install_add2:
    Param2|contains: printnightmare.gentilkiwi.com

  condition: selection_load or selection_init or (selection_install and (selection_install_add1 or selection_install_add2))
falsepositives:
- none
level: high

Stages and Predicates

Stage 0: condition

selection_load or selection_init or (selection_install and (selection_install_add1 or selection_install_add2))

Stage 1: selection_load

selection_load:
  Channel: Microsoft-Windows-PrintService/Admin
  EventID: 808
  PluginDllName|endswith: .dll

Stage 2: selection_init

selection_init:
  Channel: Microsoft-Windows-PrintService/Admin
  EventID: 354
  Param2|endswith: .dll

Stage 3: selection_install

selection_install:
  EventID: 321
  Channel: Microsoft-Windows-PrintService/Operational

Stage 4: selection_install_add1

selection_install_add1:
  Param1|contains: mimispool

Stage 5: selection_install_add2

selection_install_add2:
  Param2|contains: printnightmare.gentilkiwi.com

Indicators

These rows show field, operator, and value matches.

New RUN Key Pointing to Suspicious Folder

#
Status
experimental
Severity
high
Author
Florian Roth (Nextron Systems), Markus Neis, Sander Wiebing, Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious new RUN key element pointing to an executable in a suspicious folder

Known False Positives

  • Software using weird folders for updates

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: New RUN Key Pointing to Suspicious Folder
id: 02ee49e2-e294-4d0f-9278-f5b3212fc588
status: experimental
description: Detects suspicious new RUN key element pointing to an executable in a suspicious folder
references:
    - https://www.fireeye.com/blog/threat-research/2018/08/fin7-pursuing-an-enigmatic-and-evasive-global-criminal-operation.html
    - https://github.com/HackTricks-wiki/hacktricks/blob/e4c7b21b8f36c97c35b7c622732b38a189ce18f7/src/windows-hardening/windows-local-privilege-escalation/privilege-escalation-with-autorun-binaries.md
author: Florian Roth (Nextron Systems), Markus Neis, Sander Wiebing, Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2018-08-25
modified: 2025-10-06
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
logsource:
    category: registry_set
    product: windows
detection:
    selection_target:
        TargetObject|contains:
            - '\Software\Microsoft\Windows\CurrentVersion\Run'
            - '\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run'
            - '\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
    selection_suspicious_paths_1:
        Details|contains:
            - ':\Perflogs'
            - :\ProgramData'
            - ':\Windows\Temp'
            - ':\Temp'
            - '\AppData\Local\Temp'
            - '\AppData\Roaming'
            - ':\$Recycle.bin'
            - ':\Users\Default'
            - ':\Users\public'
            - '%temp%'
            - '%tmp%'
            - '%Public%'
            - '%AppData%'
    selection_suspicious_paths_user_1:
        Details|contains: ':\Users\'
    selection_suspicious_paths_user_2:
        Details|contains:
            - '\Favorites'
            - '\Favourites'
            - '\Contacts'
            - '\Music'
            - '\Pictures'
            - '\Documents'
            - '\Photos'
    filter_main_windows_update:
        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\'
        Image|startswith: 'C:\Windows\SoftwareDistribution\Download\'
        Details|contains|all:
            - 'rundll32.exe '
            - 'C:\WINDOWS\system32\advpack.dll,DelNodeRunDLL32'
        Details|contains:
            - '\AppData\Local\Temp\'
            - 'C:\Windows\Temp\'
    filter_optional_spotify:
        Image|endswith:
            - 'C:\Program Files\Spotify\Spotify.exe'
            - 'C:\Program Files (x86)\Spotify\Spotify.exe'
            - '\AppData\Roaming\Spotify\Spotify.exe'
        TargetObject|endswith: 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Spotify'
        Details|endswith: 'Spotify.exe --autostart --minimized'
    condition: selection_target and (selection_suspicious_paths_1 or (all of selection_suspicious_paths_user_* )) and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Software using weird folders for updates
level: high
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_susp_run_key_img_folder/info.yml

Stages and Predicates

Stage 0: condition

selection_target and (selection_suspicious_paths_1 or (all of selection_suspicious_paths_user_* )) and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection_target

selection_target:
    TargetObject|contains:
        - '\Software\Microsoft\Windows\CurrentVersion\Run'
        - '\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run'
        - '\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'

Stage 2: selection_suspicious_paths_1

selection_suspicious_paths_1:
    Details|contains:
        - ':\Perflogs'
        - :\ProgramData'
        - ':\Windows\Temp'
        - ':\Temp'
        - '\AppData\Local\Temp'
        - '\AppData\Roaming'
        - ':\$Recycle.bin'
        - ':\Users\Default'
        - ':\Users\public'
        - '%temp%'
        - '%tmp%'
        - '%Public%'
        - '%AppData%'

Stage 3: selection_suspicious_paths_user_1

selection_suspicious_paths_user_1:
    Details|contains: ':\Users\'

Stage 4: selection_suspicious_paths_user_2

selection_suspicious_paths_user_2:
    Details|contains:
        - '\Favorites'
        - '\Favourites'
        - '\Contacts'
        - '\Music'
        - '\Pictures'
        - '\Documents'
        - '\Photos'

Stage 5: not filter_main_windows_update

filter_main_windows_update:
    TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\'
    Image|startswith: 'C:\Windows\SoftwareDistribution\Download\'
    Details|contains|all:
        - 'rundll32.exe '
        - 'C:\WINDOWS\system32\advpack.dll,DelNodeRunDLL32'
    Details|contains:
        - '\AppData\Local\Temp\'
        - 'C:\Windows\Temp\'

Stage 6: not filter_optional_spotify

filter_optional_spotify:
    Image|endswith:
        - 'C:\Program Files\Spotify\Spotify.exe'
        - 'C:\Program Files (x86)\Spotify\Spotify.exe'
        - '\AppData\Roaming\Spotify\Spotify.exe'
    TargetObject|endswith: 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Spotify'
    Details|endswith: 'Spotify.exe --autostart --minimized'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsmatch
  • %AppData% corpus 3 (sigma 3)
  • %Public%
  • %temp% corpus 4 (sigma 4)
  • %tmp% corpus 4 (sigma 4)
  • :\$Recycle.bin
  • :\Perflogs
  • :\ProgramData'
  • :\Temp
  • :\Users\ corpus 4 (sigma 4)
  • :\Users\Default
  • :\Users\public
  • :\Windows\Temp
  • \AppData\Local\Temp
  • \AppData\Roaming
  • \Contacts
  • \Documents
  • \Favorites
  • \Favourites
  • \Music
  • \Photos
  • \Pictures
field:"Details" kind:match
TargetObjectmatch
  • \Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run corpus 3 (sigma 3)
  • \Software\Microsoft\Windows\CurrentVersion\Run corpus 4 (sigma 4)
  • \Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run corpus 3 (sigma 3)
field:"TargetObject" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
DetailsmatchC:\Windows\Temp\excludes:Details field:"Details" value:"C:\Windows\Temp\"
Detailsmatch\AppData\Local\Temp\excludes:Details field:"Details" value:"\AppData\Local\Temp\"
DetailsmatchC:\WINDOWS\system32\advpack.dll,DelNodeRunDLL32excludes:Details field:"Details" value:"C:\WINDOWS\system32\advpack.dll,DelNodeRunDLL32"
Detailsmatchrundll32.exe excludes:Details field:"Details" value:"rundll32.exe "
Imagestarts_withC:\Windows\SoftwareDistribution\Download\excludes:Image field:"Image" value:"C:\Windows\SoftwareDistribution\Download\"
TargetObjectmatch\Microsoft\Windows\CurrentVersion\RunOnce\excludes:TargetObject field:"TargetObject" value:"\Microsoft\Windows\CurrentVersion\RunOnce\"
Imageends_withC:\Program Files (x86)\Spotify\Spotify.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Spotify\Spotify.exe"
Imageends_withC:\Program Files\Spotify\Spotify.exeexcludes:Image field:"Image" value:"C:\Program Files\Spotify\Spotify.exe"
Imageends_with\AppData\Roaming\Spotify\Spotify.exeexcludes:Image field:"Image" value:"\AppData\Roaming\Spotify\Spotify.exe"
Detailsends_withSpotify.exe --autostart --minimizedexcludes:Details field:"Details" value:"Spotify.exe --autostart --minimized"
TargetObjectends_withSOFTWARE\Microsoft\Windows\CurrentVersion\Run\Spotifyexcludes:TargetObject field:"TargetObject" value:"SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Spotify"

No Suitable Encryption Key Found For Generating Kerberos Ticket

#
Status
test
Severity
low
Author
@SerkinValery
Source
github.com/SigmaHQ/sigma

Detects errors when a target server doesn't have suitable keys for generating kerberos tickets. This issue can occur for example when a service uses a user account or a computer account that is configured for only DES encryption on a computer that is running Windows 7 which has DES encryption for Kerberos authentication disabled.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: No Suitable Encryption Key Found For Generating Kerberos Ticket
id: b1e0b3f5-b62e-41be-886a-daffde446ad4
status: test
description: |
    Detects errors when a target server doesn't have suitable keys for generating kerberos tickets.
    This issue can occur for example when a service uses a user account or a computer account that is configured for only DES encryption on a computer that is running Windows 7 which has DES encryption for Kerberos authentication disabled.
references:
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/dd348773(v=ws.10)
    - https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/kdc-event-16-27-des-encryption-disabled
author: '@SerkinValery'
date: 2024-03-07
modified: 2025-09-22
tags:
    - attack.credential-access
    - attack.t1558.003
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name:
            - 'Kerberos-Key-Distribution-Center'
            - 'Microsoft-Windows-Kerberos-Key-Distribution-Center'
        EventID:
            - 16 # KDCEVENT_NO_KEY_INTERSECTION_TGS
            - 27 # KDCEVENT_UNSUPPORTED_ETYPE_REQUEST_TGS
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name:
        - 'Kerberos-Key-Distribution-Center'
        - 'Microsoft-Windows-Kerberos-Key-Distribution-Center'
    EventID:
        - 16
        - 27

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Provider_Nameeq
  • Kerberos-Key-Distribution-Center corpus 3 (sigma 3)
  • Microsoft-Windows-Kerberos-Key-Distribution-Center corpus 4 (sigma 4)
field:"Provider_Name" kind:eq

Okta 2023 Breach Indicator Of Compromise

#
Status
test
Severity
medium
Author
Muhammad Faisal (@faisalusuf)
Source
github.com/SigmaHQ/sigma

Detects new user account creation or activation with specific names related to the Okta Support System 2023 breach. This rule can be enhanced by filtering out known and legitimate username used in your environnement.

MITRE ATT&CK Coverage

TacticTechniques
Credential AccessNo specific technique

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: Okta 2023 Breach Indicator Of Compromise
id: 00a8e92a-776b-425f-80f2-82d8f8fab2e5
status: test
description: |
    Detects new user account creation or activation with specific names related to the Okta Support System 2023 breach.
    This rule can be enhanced by filtering out known and legitimate username used in your environnement.
author: Muhammad Faisal (@faisalusuf)
date: 2023-10-25
modified: 2026-04-27
references:
    - https://www.beyondtrust.com/blog/entry/okta-support-unit-breach
    - https://developer.okta.com/docs/reference/api/event-types/
tags:
    - attack.credential-access
    - detection.emerging-threats
logsource:
    service: okta
    product: okta
detection:
    selection:
        eventType:
            - 'user.lifecycle.create'
            - 'user.lifecycle.activate'
        target.displayName|contains: 'svc_network_backup'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventType:
        - 'user.lifecycle.create'
        - 'user.lifecycle.activate'
    target.displayName|contains: 'svc_network_backup'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventTypeeq
  • user.lifecycle.activate
  • user.lifecycle.create corpus 2 (sigma 2)
field:"eventType" kind:eq
target.displayNamematch
  • svc_network_backup
field:"target.displayName" kind:match value:"svc_network_backup"

OpenCanary - MySQL Login Attempt

#
Status
test
Severity
high
Author
Security Onion Solutions
Source
github.com/SigmaHQ/sigma

Detects instances where a MySQL service on an OpenCanary node has had a login attempt.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Rule Body

title: OpenCanary - MySQL Login Attempt
id: e7d79a1b-25ed-4956-bd56-bd344fa8fd06
status: test
description: Detects instances where a MySQL service on an OpenCanary node has had a login attempt.
references:
    - https://opencanary.readthedocs.io/en/latest/starting/configuration.html#services-configuration
    - https://github.com/thinkst/opencanary/blob/a0896adfcaf0328cfd5829fe10d2878c7445138e/opencanary/logger.py#L52
author: Security Onion Solutions
date: 2024-03-08
tags:
    - attack.credential-access
    - attack.collection
    - attack.t1003
    - attack.t1213
logsource:
    category: application
    product: opencanary
detection:
    selection:
        logtype: 8001
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    logtype: 8001

Indicators

These rows show field, operator, and value matches.

Potential Crypto Mining Activity

#
Status
stable
Severity
high
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects command line parameters or strings often used by crypto miners

Known False Positives

  • Legitimate use of crypto miners
  • Some build frameworks

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Potential Crypto Mining Activity
id: 66c3b204-9f88-4d0a-a7f7-8a57d521ca55
status: stable
description: Detects command line parameters or strings often used by crypto miners
references:
    - https://www.poolwatch.io/coin/monero
author: Florian Roth (Nextron Systems)
date: 2021-10-26
modified: 2023-02-13
tags:
    - attack.impact
    - attack.t1496
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - ' --cpu-priority='
            - '--donate-level=0'
            - ' -o pool.'
            - ' --nicehash'
            - ' --algo=rx/0 '
            - 'stratum+tcp://'
            - 'stratum+udp://'
            # base64 encoded: --donate-level=
            - 'LS1kb25hdGUtbGV2ZWw9'
            - '0tZG9uYXRlLWxldmVsP'
            - 'tLWRvbmF0ZS1sZXZlbD'
            # base64 encoded: stratum+tcp:// and stratum+udp://
            - 'c3RyYXR1bSt0Y3A6Ly'
            - 'N0cmF0dW0rdGNwOi8v'
            - 'zdHJhdHVtK3RjcDovL'
            - 'c3RyYXR1bSt1ZHA6Ly'
            - 'N0cmF0dW0rdWRwOi8v'
            - 'zdHJhdHVtK3VkcDovL'
    filter:
        CommandLine|contains:
            - ' pool.c '
            - ' pool.o '
            - 'gcc -'
    condition: selection and not filter
falsepositives:
    - Legitimate use of crypto miners
    - Some build frameworks
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    CommandLine|contains:
        - ' --cpu-priority='
        - '--donate-level=0'
        - ' -o pool.'
        - ' --nicehash'
        - ' --algo=rx/0 '
        - 'stratum+tcp://'
        - 'stratum+udp://'
        - 'LS1kb25hdGUtbGV2ZWw9'
        - '0tZG9uYXRlLWxldmVsP'
        - 'tLWRvbmF0ZS1sZXZlbD'
        - 'c3RyYXR1bSt0Y3A6Ly'
        - 'N0cmF0dW0rdGNwOi8v'
        - 'zdHJhdHVtK3RjcDovL'
        - 'c3RyYXR1bSt1ZHA6Ly'
        - 'N0cmF0dW0rdWRwOi8v'
        - 'zdHJhdHVtK3VkcDovL'

Stage 2: not filter

filter:
    CommandLine|contains:
        - ' pool.c '
        - ' pool.o '
        - 'gcc -'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • --algo=rx/0 corpus 2 (sigma 2)
  • --cpu-priority= corpus 2 (sigma 2)
  • --nicehash corpus 2 (sigma 2)
  • -o pool. corpus 2 (sigma 2)
  • --donate-level=0 corpus 2 (sigma 2)
  • 0tZG9uYXRlLWxldmVsP corpus 2 (sigma 2)
  • LS1kb25hdGUtbGV2ZWw9 corpus 2 (sigma 2)
  • N0cmF0dW0rdGNwOi8v corpus 2 (sigma 2)
  • N0cmF0dW0rdWRwOi8v corpus 2 (sigma 2)
  • c3RyYXR1bSt0Y3A6Ly corpus 2 (sigma 2)
  • c3RyYXR1bSt1ZHA6Ly corpus 2 (sigma 2)
  • stratum+tcp:// corpus 2 (sigma 2)
  • stratum+udp:// corpus 2 (sigma 2)
  • tLWRvbmF0ZS1sZXZlbD corpus 2 (sigma 2)
  • zdHJhdHVtK3RjcDovL corpus 2 (sigma 2)
  • zdHJhdHVtK3VkcDovL corpus 2 (sigma 2)
field:"CommandLine" kind:match

Exclusions

The rule actively suppresses these predicates.

Potential CVE-2024-3400 Exploitation - Palo Alto GlobalProtect OS Command Injection

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects potential exploitation attempts of CVE-2024-3400 - an OS command injection in Palo Alto GlobalProtect. This detection looks for suspicious strings that indicate a potential directory traversal attempt or command injection.

MITRE ATT&CK Coverage

TacticTechniques
Initial AccessNo specific technique
PersistenceNo specific technique
Privilege EscalationNo specific technique
StealthNo specific technique

Rule Body

title: Potential CVE-2024-3400 Exploitation - Palo Alto GlobalProtect OS Command Injection
id: f130a5f1-73ba-42f0-bf1e-b66a8361cb8f
status: test
description: |
    Detects potential exploitation attempts of CVE-2024-3400 - an OS command injection in Palo Alto GlobalProtect.
    This detection looks for suspicious strings that indicate a potential directory traversal attempt or command injection.
references:
    - https://security.paloaltonetworks.com/CVE-2024-3400
    - https://labs.watchtowr.com/palo-alto-putting-the-protecc-in-globalprotect-cve-2024-3400/
    - https://attackerkb.com/topics/SSTk336Tmf/cve-2024-3400/rapid7-analysis
author: Nasreddine Bencherchali (Nextron Systems)
date: 2024-04-18
modified: 2025-11-22
tags:
    - attack.initial-access
    - attack.persistence
    - attack.privilege-escalation
    - cve.2024-3400
    - detection.emerging-threats
    - attack.stealth
logsource:
    category: appliance
    product: paloalto
    service: globalprotect
    definition: 'Requirements: Palo Alto GlobalProtect "mp-log" and "gpsvc.log" log files need to be ingested'
detection:
    keywords_generic:
        - 'failed to unmarshal session(../'
        - 'failed to unmarshal session(./../'
        - 'failed to unmarshal session(/..'
        - 'failed to unmarshal session(%2E%2E%2F'
        - 'failed to unmarshal session(%2F%2E%2E'
        - 'failed to unmarshal session(%2E%2F%2E%2E%2F'
        - 'failed to unmarshal session(%252E%252E%252F'
        - 'failed to unmarshal session(%252F%252E%252E'
        - 'failed to unmarshal session(%252E%252F%252E%252E%252F'
    keywords_telemetry_exploit:
        - '{IFS}'
        - 'base64'
        - 'bash'
        - 'curl'
        - 'http'
    keywords_telemetry_path:
        - '/opt/panlogs/tmp/device_telemetry/'
    condition: keywords_generic or (keywords_telemetry_exploit and keywords_telemetry_path)
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

keywords_generic or (keywords_telemetry_exploit and keywords_telemetry_path)

Stage 1: keywords_generic

keywords_generic:
    - 'failed to unmarshal session(../'
    - 'failed to unmarshal session(./../'
    - 'failed to unmarshal session(/..'
    - 'failed to unmarshal session(%2E%2E%2F'
    - 'failed to unmarshal session(%2F%2E%2E'
    - 'failed to unmarshal session(%2E%2F%2E%2E%2F'
    - 'failed to unmarshal session(%252E%252E%252F'
    - 'failed to unmarshal session(%252F%252E%252E'
    - 'failed to unmarshal session(%252E%252F%252E%252E%252F'

Stage 2: keywords_telemetry_exploit

keywords_telemetry_exploit:
    - '{IFS}'
    - 'base64'
    - 'bash'
    - 'curl'
    - 'http'

Stage 3: keywords_telemetry_path

keywords_telemetry_path:
    - '/opt/panlogs/tmp/device_telemetry/'

Potential Persistence Via AutodialDLL

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects change the the "AutodialDLL" key which could be used as a persistence method to load custom DLL via the "ws2_32" library

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique

Telemetry Coverage

Rule Body

title: Potential Persistence Via AutodialDLL
id: e6fe26ee-d063-4f5b-b007-39e90aaf50e3
status: test
description: Detects change the the "AutodialDLL" key which could be used as a persistence method to load custom DLL via the "ws2_32" library
references:
    - https://www.hexacorn.com/blog/2015/01/13/beyond-good-ol-run-key-part-24/
    - https://persistence-info.github.io/Data/autodialdll.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-10
modified: 2023-08-17
tags:
    - attack.persistence
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Services\WinSock2\Parameters\AutodialDLL'
    condition: selection
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_persistence_autodial_dll/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\Services\WinSock2\Parameters\AutodialDLL'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \Services\WinSock2\Parameters\AutodialDLL
field:"TargetObject" kind:match value:"\Services\WinSock2\Parameters\AutodialDLL"

Potential Pikabot Discovery Activity

#
Status
test
Severity
high
Author
Andreas Braathen (mnemonic.io)
Source
github.com/SigmaHQ/sigma

Detects system discovery activity carried out by Pikabot, such as incl. network, user info and domain groups. The malware Pikabot has been seen to use this technique as part of its C2-botnet registration with a short collection time frame (less than 1 minute).

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Pikabot Discovery Activity
id: 698d4431-514f-4c82-af4d-cf573872a9f5
status: test
description: |
    Detects system discovery activity carried out by Pikabot, such as incl. network, user info and domain groups.
    The malware Pikabot has been seen to use this technique as part of its C2-botnet registration with a short collection time frame (less than 1 minute).
references:
    - https://www.virustotal.com/gui/file/72f1a5476a845ea02344c9b7edecfe399f64b52409229edaf856fcb9535e3242
    - https://tria.ge/231023-lpw85she57/behavioral2
author: Andreas Braathen (mnemonic.io)
date: 2023-10-27
modified: 2024-01-26
tags:
    - attack.discovery
    - attack.t1016
    - attack.t1049
    - attack.t1087
    - detection.emerging-threats
logsource:
    product: windows
    category: process_creation
    definition: 'Requirements: By default the process_creation type event might not contain the GrandParentImage. Make sure you collect such fields in order to use this rule'
detection:
    selection_parent:
        - GrandParentImage|endswith: '\rundll32.exe'
        - ParentImage|endswith:
              - '\SearchFilterHost.exe'
              - '\SearchProtocolHost.exe'
    selection_child:
        CommandLine:
            # Note: Only add strings as seen used by Pikabot to avoid collision with other strains of malware
            - 'ipconfig.exe /all'
            - 'netstat.exe -aon'
            - 'whoami.exe /all'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    - GrandParentImage|endswith: '\rundll32.exe'
    - ParentImage|endswith:
          - '\SearchFilterHost.exe'
          - '\SearchProtocolHost.exe'

Stage 2: selection_child

selection_child:
    CommandLine:
        - 'ipconfig.exe /all'
        - 'netstat.exe -aon'
        - 'whoami.exe /all'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineeq
  • ipconfig.exe /all
  • netstat.exe -aon
  • whoami.exe /all
field:"CommandLine" kind:eq
GrandParentImageends_with
  • \rundll32.exe
field:"GrandParentImage" kind:ends_with value:"\rundll32.exe"
ParentImageends_with
  • \SearchFilterHost.exe
  • \SearchProtocolHost.exe corpus 2 (sigma 2)
field:"ParentImage" kind:ends_with

Potential UAC Bypass Via Sdclt.EXE

#
Status
test
Severity
medium
Author
Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
Source
github.com/SigmaHQ/sigma

A General detection for sdclt being spawned as an elevated process. This could be an indicator of sdclt being used for bypass UAC techniques.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential UAC Bypass Via Sdclt.EXE
id: 40f9af16-589d-4984-b78d-8c2aec023197
status: test
description: A General detection for sdclt being spawned as an elevated process. This could be an indicator of sdclt being used for bypass UAC techniques.
references:
    - https://github.com/OTRF/detection-hackathon-apt29/issues/6
    - https://github.com/OTRF/ThreatHunter-Playbook/blob/2d4257f630f4c9770f78d0c1df059f891ffc3fec/docs/evals/apt29/detections/3.B.2_C36B49B5-DF58-4A34-9FE9-56189B9DEFEA.md
author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
date: 2020-05-02
modified: 2024-12-01
tags:
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: 'sdclt.exe'
        IntegrityLevel:
            - 'High'
            - 'S-1-16-12288' # High
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: 'sdclt.exe'
    IntegrityLevel:
        - 'High'
        - 'S-1-16-12288'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • sdclt.exe
field:"Image" kind:ends_with value:"sdclt.exe"
IntegrityLeveleq
  • High corpus 18 (sigma 17, splunk 1)
  • S-1-16-12288 corpus 18 (sigma 17, splunk 1)
field:"IntegrityLevel" kind:eq

Powershell Token Obfuscation - Process Creation

#
Status
test
Severity
high
Author
frack113
Source
github.com/SigmaHQ/sigma

Detects TOKEN OBFUSCATION technique from Invoke-Obfuscation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Powershell Token Obfuscation - Process Creation
id: deb9b646-a508-44ee-b7c9-d8965921c6b6
related:
    - id: f3a98ce4-6164-4dd4-867c-4d83de7eca51
      type: similar
status: test
description: Detects TOKEN OBFUSCATION technique from Invoke-Obfuscation
references:
    - https://github.com/danielbohannon/Invoke-Obfuscation
author: frack113
date: 2022-12-27
modified: 2026-03-16
tags:
    - attack.stealth
    - attack.t1027.009
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        # Examples:
        #   IN`V`o`Ke-eXp`ResSIOn (Ne`W-ob`ject Net.WebClient).DownloadString
        #   &('In'+'voke-Expressi'+'o'+'n') (.('New-Ob'+'jec'+'t') Net.WebClient).DownloadString
        #   &("{2}{3}{0}{4}{1}"-f 'e','Expression','I','nvok','-') (&("{0}{1}{2}"-f'N','ew-O','bject') Net.WebClient).DownloadString
        - CommandLine|re: '\w+`(?:\w+|-|.)`[\w+|\s]'
        # - CommandLine|re: '\((\'(\w|-|\.)+\'\+)+\'(\w|-|\.)+\'\)' TODO: fixme
        - CommandLine|re: '"(?:\{\d\})+"\s*-f'
        #   ${e`Nv:pATh}
        - CommandLine|re: '(?i)\$\{`?e`?n`?v`?:`?p`?a`?t`?h`?\}'
    filter_main_envpath:
        CommandLine|contains: '${env:path}'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_powershell_token_obfuscation/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    - CommandLine|re: '\w+`(?:\w+|-|.)`[\w+|\s]'
    - CommandLine|re: '"(?:\{\d\})+"\s*-f'
    - CommandLine|re: '(?i)\$\{`?e`?n`?v`?:`?p`?a`?t`?h`?\}'

Stage 2: not filter_main_envpath

filter_main_envpath:
    CommandLine|contains: '${env:path}'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineregex_match
  • "(?:{\d})+"\s*-f
  • (?i)${`?e`?n`?v`?:`?p`?a`?t`?h`?}
  • \w+`(?:\w+|-|.)`[\w+|\s]
field:"CommandLine" kind:regex_match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch${env:path}excludes:CommandLine field:"CommandLine" value:"${env:path}"

Renamed Remote Utilities RAT (RURAT) Execution

#
Status
test
Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects execution of renamed Remote Utilities (RURAT) via Product PE header field

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique
DiscoveryNo specific technique
CollectionNo specific technique
Command & ControlNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed Remote Utilities RAT (RURAT) Execution
id: 9ef27c24-4903-4192-881a-3adde7ff92a5
status: test
description: Detects execution of renamed Remote Utilities (RURAT) via Product PE header field
references:
    - https://redcanary.com/blog/misbehaving-rats/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-19
modified: 2023-02-03
tags:
    - attack.collection
    - attack.command-and-control
    - attack.discovery
    - attack.stealth
    - attack.s0592
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Product: 'Remote Utilities'
    filter:
        Image|endswith:
            - '\rutserv.exe'
            - '\rfusclient.exe'
    condition: selection and not filter
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    Product: 'Remote Utilities'

Stage 2: not filter

filter:
    Image|endswith:
        - '\rutserv.exe'
        - '\rfusclient.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Producteq
  • Remote Utilities corpus 2 (sigma 2)
field:"Product" kind:eq value:"Remote Utilities"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\rfusclient.exeexcludes:Image field:"Image" value:"\rfusclient.exe"
Imageends_with\rutserv.exeexcludes:Image field:"Image" value:"\rutserv.exe"

Scheduled task enumerated

#
Status
experimental
Severity
medium
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker enumerates scheduled task configuration.

Known False Positives

  • Administrator checking task status

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Scheduled task enumerated
description: Detects scenarios where an attacker enumerates scheduled task configuration.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1016-System%20Network%20Configuration%20Discovery
- https://strontic.github.io/xcyclopedia/library/schtasks.exe-5BD86A7193D38880F339D4AFB1F9B63A.html
- https://enigma0x3.net/2016/05/25/userland-persistence-with-scheduled-tasks-and-com-handler-hijacking/
tags:
- attack.discovery
- attack.t1016
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    EventID: 4688
    NewProcessName|endswith: \schtasks.exe
    CommandLine|contains|all: # full command: "schtasks /query /xml"
      - schtasks
      - query
  condition: selection
falsepositives:
- Administrator checking task status
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  NewProcessName|endswith: \schtasks.exe
  CommandLine|contains|all:
    - schtasks
    - query

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • query corpus 8 (sigma 7, splunk 1)
  • schtasks corpus 5 (sigma 5)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"

SQL Server database's table enumeration

#
Status
experimental
Severity
medium
Time window
5m
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attempts to enumerate local SQL Server tables (specially Veeam Backup).

Known False Positives

  • maintenance script
  • backup process

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: SQL Server database's table enumeration
description: Detects scenarios where an attacker attempts to enumerate local SQL Server tables (specially Veeam Backup).
references:
- https://labs.withsecure.com/publications/fin7-target-veeam-servers
- https://blog.checkymander.com/red%20team/veeam/decrypt-veeam-passwords/
tags:
- attack.discovery
- attack.t1518 # Software discovery
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection: # sqlcmd.exe -S localhos\VEEAMSQL2016 -E -Q "use VeeamBackup SELECT top 100 * FROM Ssh_creds;"
    NewProcessName|endswith: '\sqlcmd.exe'
    CommandLine|contains: # specify the database\instance'
      - /S
      - -S
    CommandLine|contains:
      - select
      - use
      - top
      - from
  condition: selection | count() by Computer > 20
  timeframe: 5m
falsepositives:
- maintenance script
- backup process 
level: medium

Stages and Predicates

Stage 0: condition

selection | count() by Computer > 20

Stage 1: selection

selection:
  NewProcessName|endswith: '\sqlcmd.exe'
  CommandLine|contains:
    - /S
    - -S
  CommandLine|contains:
    - select
    - use
    - top
    - from
Threshold
> 20

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • from
  • select corpus 4 (sigma 4)
  • top corpus 2 (sigma 2)
  • use corpus 3 (sigma 2, splunk 1)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \sqlcmd.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with value:"\sqlcmd.exe"

Suspicious C2 Activities

#
Status
test
Severity
medium
Author
Marie Euler
Source
github.com/SigmaHQ/sigma

Detects suspicious activities as declared by Florian Roth in its 'Best Practice Auditd Configuration'. This includes the detection of the following commands; wget, curl, base64, nc, netcat, ncat, ssh, socat, wireshark, rawshark, rdesktop, nmap. These commands match a few techniques from the tactics "Command and Control", including not exhaustively the following; Application Layer Protocol (T1071), Non-Application Layer Protocol (T1095), Data Encoding (T1132)

Known False Positives

  • Admin or User activity

MITRE ATT&CK Coverage

TacticTechniques
Command & ControlNo specific technique

Rule Body

title: Suspicious C2 Activities
id: f7158a64-6204-4d6d-868a-6e6378b467e0
status: test
description: |
    Detects suspicious activities as declared by Florian Roth in its 'Best Practice Auditd Configuration'.
    This includes the detection of the following commands; wget, curl, base64, nc, netcat, ncat, ssh, socat, wireshark, rawshark, rdesktop, nmap.
    These commands match a few techniques from the tactics "Command and Control", including not exhaustively the following; Application Layer Protocol (T1071), Non-Application Layer Protocol (T1095), Data Encoding (T1132)
references:
    - https://github.com/Neo23x0/auditd
author: Marie Euler
date: 2020-05-18
modified: 2021-11-27
tags:
    - attack.command-and-control
logsource:
    product: linux
    service: auditd
    definition: |
        Required auditd configuration:
        -w /usr/bin/wget -p x -k susp_activity
        -w /usr/bin/curl -p x -k susp_activity
        -w /usr/bin/base64 -p x -k susp_activity
        -w /bin/nc -p x -k susp_activity
        -w /bin/netcat -p x -k susp_activity
        -w /usr/bin/ncat -p x -k susp_activity
        -w /usr/bin/ss -p x -k susp_activity
        -w /usr/bin/netstat -p x -k susp_activity
        -w /usr/bin/ssh -p x -k susp_activity
        -w /usr/bin/scp -p x -k susp_activity
        -w /usr/bin/sftp -p x -k susp_activity
        -w /usr/bin/ftp -p x -k susp_activity
        -w /usr/bin/socat -p x -k susp_activity
        -w /usr/bin/wireshark -p x -k susp_activity
        -w /usr/bin/tshark -p x -k susp_activity
        -w /usr/bin/rawshark -p x -k susp_activity
        -w /usr/bin/rdesktop -p x -k susp_activity
        -w /usr/local/bin/rdesktop -p x -k susp_activity
        -w /usr/bin/wlfreerdp -p x -k susp_activity
        -w /usr/bin/xfreerdp -p x -k susp_activity
        -w /usr/local/bin/xfreerdp -p x -k susp_activity
        -w /usr/bin/nmap -p x -k susp_activity
        (via https://github.com/Neo23x0/auditd/blob/ddf2603dbc985f97538d102f13b4e4446b402bae/audit.rules#L336)
detection:
    selection:
        key: 'susp_activity'
    condition: selection
falsepositives:
    - Admin or User activity
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    key: 'susp_activity'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
keyeq
  • susp_activity
field:"key" kind:eq value:"susp_activity"

Suspicious New Service Creation

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects creation of a new service via "sc" command or the powershell "new-service" cmdlet with suspicious binary paths

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious New Service Creation
id: 17a1be64-8d88-40bf-b5ff-a4f7a50ebcc8
related:
    - id: 7fe71fc9-de3b-432a-8d57-8c809efc10ab
      type: derived
status: test
description: Detects creation of a new service via "sc" command or the powershell "new-service" cmdlet with suspicious binary paths
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.003/T1543.003.md
    - https://web.archive.org/web/20180331144337/https://www.fireeye.com/blog/threat-research/2018/03/sanny-malware-delivery-method-updated-in-recently-observed-attacks.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-14
modified: 2022-11-18
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1543.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_sc:
        Image|endswith: '\sc.exe'
        CommandLine|contains|all:
            - 'create'
            - 'binPath='
    selection_posh:
        CommandLine|contains|all:
            - 'New-Service'
            - '-BinaryPathName'
    susp_binpath:
        CommandLine|contains:
            # Add more suspicious commands or binaries
            - 'powershell'
            - 'mshta'
            - 'wscript'
            - 'cscript'
            - 'svchost'
            - 'dllhost'
            - 'cmd '
            - 'cmd.exe /c'
            - 'cmd.exe /k'
            - 'cmd.exe /r'
            - 'rundll32'
            # Add more suspicious paths
            - 'C:\Users\Public'
            - '\Downloads\'
            - '\Desktop\'
            - '\Microsoft\Windows\Start Menu\Programs\Startup\'
            - 'C:\Windows\TEMP\'
            - '\AppData\Local\Temp'
    condition: 1 of selection* and susp_binpath
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_service_creation/info.yml

Stages and Predicates

Stage 0: condition

1 of selection* and susp_binpath

Stage 1: selection_sc

selection_sc:
    Image|endswith: '\sc.exe'
    CommandLine|contains|all:
        - 'create'
        - 'binPath='

Stage 2: selection_posh

selection_posh:
    CommandLine|contains|all:
        - 'New-Service'
        - '-BinaryPathName'

Stage 3: susp_binpath

susp_binpath:
    CommandLine|contains:
        - 'powershell'
        - 'mshta'
        - 'wscript'
        - 'cscript'
        - 'svchost'
        - 'dllhost'
        - 'cmd '
        - 'cmd.exe /c'
        - 'cmd.exe /k'
        - 'cmd.exe /r'
        - 'rundll32'
        - 'C:\Users\Public'
        - '\Downloads\'
        - '\Desktop\'
        - '\Microsoft\Windows\Start Menu\Programs\Startup\'
        - 'C:\Windows\TEMP\'
        - '\AppData\Local\Temp'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -BinaryPathName corpus 2 (sigma 2)
  • C:\Users\Public corpus 2 (sigma 2)
  • C:\Windows\TEMP\ corpus 7 (sigma 7)
  • New-Service corpus 2 (sigma 2)
  • \AppData\Local\Temp corpus 8 (sigma 8)
  • \Desktop\ corpus 13 (sigma 13)
  • \Downloads\ corpus 15 (sigma 14, elastic 1)
  • \Microsoft\Windows\Start Menu\Programs\Startup\ corpus 3 (sigma 3)
  • binPath= corpus 2 (sigma 2)
  • cmd corpus 2 (sigma 2)
  • cmd.exe /c corpus 3 (sigma 3)
  • cmd.exe /k corpus 3 (sigma 3)
  • cmd.exe /r corpus 3 (sigma 3)
  • create corpus 29 (sigma 17, splunk 7, elastic 5)
  • cscript corpus 15 (sigma 15)
  • dllhost corpus 2 (sigma 2)
  • mshta corpus 14 (sigma 14)
  • powershell corpus 24 (sigma 24)
  • rundll32 corpus 23 (sigma 23)
  • svchost corpus 2 (sigma 2)
  • wscript corpus 16 (sigma 16)
field:"CommandLine" kind:match
Imageends_with
  • \sc.exe corpus 30 (sigma 30)
field:"Image" kind:ends_with value:"\sc.exe"

Suspicious Query of MachineGUID

#
Status
test
Severity
low
Author
frack113
Source
github.com/SigmaHQ/sigma

Use of reg to get MachineGuid information

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: Suspicious Query of MachineGUID
id: f5240972-3938-4e56-8e4b-e33893176c1f
status: test
description: Use of reg to get MachineGuid information
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1082/T1082.md#atomic-test-8---windows-machineguid-discovery
author: frack113
date: 2022-01-01
tags:
    - attack.discovery
    - attack.t1082
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\reg.exe'
        CommandLine|contains|all:
            - 'SOFTWARE\Microsoft\Cryptography'
            - '/v '
            - 'MachineGuid'
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\reg.exe'
    CommandLine|contains|all:
        - 'SOFTWARE\Microsoft\Cryptography'
        - '/v '
        - 'MachineGuid'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /v corpus 2 (sigma 2)
  • MachineGuid
  • SOFTWARE\Microsoft\Cryptography
field:"CommandLine" kind:match
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"

Suspicious Service DACL Modification Via Set-Service Cmdlet - PS

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects usage of the "Set-Service" powershell cmdlet to configure a new SecurityDescriptor that allows a service to be hidden from other utilities such as "sc.exe", "Get-Service"...etc. (Works only in powershell 7)

Known False Positives

  • Rare intended use of hidden services
  • Rare FP could occur due to the non linearity of the ScriptBlockText log

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Service DACL Modification Via Set-Service Cmdlet - PS
id: 22d80745-6f2c-46da-826b-77adaededd74
related:
    - id: a95b9b42-1308-4735-a1af-abb1c5e6f5ac
      type: similar
status: test
description: Detects usage of the "Set-Service" powershell cmdlet to configure a new SecurityDescriptor that allows a service to be hidden from other utilities such as "sc.exe", "Get-Service"...etc. (Works only in powershell 7)
references:
    - https://twitter.com/Alh4zr3d/status/1580925761996828672
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-7.2
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-24
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.011
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_sddl_flag:
        ScriptBlockText|contains:
            - '-SecurityDescriptorSddl '
            - '-sd '
    selection_set_service:
        ScriptBlockText|contains|all:
            - 'Set-Service '
            - 'D;;'
        ScriptBlockText|contains:
            - ';;;IU'
            - ';;;SU'
            - ';;;BA'
            - ';;;SY'
            - ';;;WD'
    condition: all of selection_*
falsepositives:
    - Rare intended use of hidden services
    - Rare FP could occur due to the non linearity of the ScriptBlockText log
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_sddl_flag

selection_sddl_flag:
    ScriptBlockText|contains:
        - '-SecurityDescriptorSddl '
        - '-sd '

Stage 2: selection_set_service

selection_set_service:
    ScriptBlockText|contains|all:
        - 'Set-Service '
        - 'D;;'
    ScriptBlockText|contains:
        - ';;;IU'
        - ';;;SU'
        - ';;;BA'
        - ';;;SY'
        - ';;;WD'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -SecurityDescriptorSddl corpus 2 (sigma 2)
  • -sd corpus 2 (sigma 2)
  • ;;;BA
  • ;;;IU
  • ;;;SU
  • ;;;SY
  • ;;;WD
  • D;;
  • Set-Service corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match

UAC Bypass via Event Viewer

#
Status
test
Severity
high
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects UAC bypass method using Windows event viewer

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: UAC Bypass via Event Viewer
id: 7c81fec3-1c1d-43b0-996a-46753041b1b6
status: test
description: Detects UAC bypass method using Windows event viewer
references:
    - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/
    - https://www.hybrid-analysis.com/sample/e122bc8bf291f15cab182a5d2d27b8db1e7019e4e96bb5cdbd1dfe7446f3f51f?environmentId=100
author: Florian Roth (Nextron Systems)
date: 2017-03-19
modified: 2023-09-28
tags:
    - attack.privilege-escalation
    - attack.t1548.002
    - car.2019-04-001
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|endswith: '\mscfile\shell\open\command'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: '\mscfile\shell\open\command'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • \mscfile\shell\open\command
field:"TargetObject" kind:ends_with value:"\mscfile\shell\open\command"

Uncommon One Time Only Scheduled Task At 00:00

#
Status
test
Severity
high
Author
pH-T (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects scheduled task creation events that include suspicious actions, and is run once at 00:00

Known False Positives

  • Software installation

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Uncommon One Time Only Scheduled Task At 00:00
id: 970823b7-273b-460a-8afc-3a6811998529
status: test
description: Detects scheduled task creation events that include suspicious actions, and is run once at 00:00
references:
    - https://www.trendmicro.com/vinfo/us/security/news/ransomware-spotlight/ransomware-spotlight-blackbyte
author: pH-T (Nextron Systems)
date: 2022-07-15
modified: 2023-02-03
tags:
    - attack.execution
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1053.005
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|contains: '\schtasks.exe'
        - OriginalFileName: 'schtasks.exe'
    selection_cli:
        CommandLine|contains:
            - 'wscript'
            - 'vbscript'
            - 'cscript'
            - 'wmic '
            - 'wmic.exe'
            - 'regsvr32.exe'
            - 'powershell'
            - '\AppData\'
    selection_time:
        CommandLine|contains|all:
            - 'once'
            - '00:00'
    condition: all of selection_*
falsepositives:
    - Software installation
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|contains: '\schtasks.exe'
    - OriginalFileName: 'schtasks.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - 'wscript'
        - 'vbscript'
        - 'cscript'
        - 'wmic '
        - 'wmic.exe'
        - 'regsvr32.exe'
        - 'powershell'
        - '\AppData\'

Stage 3: selection_time

selection_time:
    CommandLine|contains|all:
        - 'once'
        - '00:00'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 00:00
  • \AppData\ corpus 11 (sigma 8, elastic 3)
  • cscript corpus 15 (sigma 15)
  • once
  • powershell corpus 24 (sigma 24)
  • regsvr32.exe corpus 3 (sigma 3)
  • vbscript corpus 3 (sigma 2, splunk 1)
  • wmic corpus 2 (sigma 2)
  • wmic.exe corpus 2 (sigma 2)
  • wscript corpus 16 (sigma 16)
field:"CommandLine" kind:match
Imagematch
  • \schtasks.exe
field:"Image" kind:match value:"\schtasks.exe"
OriginalFileNameeq
  • schtasks.exe corpus 29 (sigma 18, elastic 7, splunk 4)
field:"OriginalFileName" kind:eq value:"schtasks.exe"

Unsigned or Unencrypted SMB Connection to Share Established

#
Status
experimental
Severity
medium
Author
Mohamed Abdelghani
Source
github.com/SigmaHQ/sigma

Detects SMB server connections to shares without signing or encryption enabled. This could indicate potential lateral movement activity using unsecured SMB shares.

Known False Positives

  • Connections from local or private IP addresses to SMB shares without signing or encryption enabled for older systems or misconfigured environments. Apply additional tuning as needed.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Unsigned or Unencrypted SMB Connection to Share Established
id: 8d91f6e4-9f3b-4c21-ae41-2c5b7d9f7a12
status: experimental
description: |
    Detects SMB server connections to shares without signing or encryption enabled.
    This could indicate potential lateral movement activity using unsecured SMB shares.
author: Mohamed Abdelghani
date: 2025-10-19
references:
    - https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/overview-server-message-block-signing
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    product: windows
    service: smbserver-connectivity
detection:
    selection_shares:
        EventID: 4000
        ShareName|contains:
            - 'IPC$'
            - 'ADMIN$'
            - 'C$'
    selection_status:
        - SigningUsed: 'false'
        - EncyptionUsed: 'false' # Note: typo in the original event field name
    filter_main_local_ips:
        - ClientAddress|cidr:
              # IPv4
              # - '10.0.0.0/8'
              - '127.0.0.0/8'
              - '169.254.0.0/16'
              # - '172.16.0.0/12'
              # - '192.168.0.0/16'
              # IPv6
              - '::1/128'  # IPv6 loopback
              - 'fe80::/10'  # IPv6 link-local addresses
              - 'fc00::/7'  # IPv6 private addresses
        # The filters below cover the XML raw log
        - ClientAddress|contains:
              # IPv6
              - '00000000000000000000000000000001' # ::1 - IPv6 loopback
              - 'FE80000000000000' # fe80:: - IPv6 link-local addresses
              - 'FC00000000000000' # fc00:: - IPv6 private addresses
              # IPv4
              # The "?" are meant to represent the port
              # - '0200????C0A8' # 192.168.
              # - '0200????AC' # 172.
              # - '0200????0A' # 10.
              - '0200????7F' # 127
              - '0200????A9FE' # 169.254.
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Connections from local or private IP addresses to SMB shares without signing or encryption enabled for older systems or misconfigured environments. Apply additional tuning as needed.
level: medium

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_shares

selection_shares:
    EventID: 4000
    ShareName|contains:
        - 'IPC$'
        - 'ADMIN$'
        - 'C$'

Stage 2: selection_status

selection_status:
    - SigningUsed: 'false'
    - EncyptionUsed: 'false'

Stage 3: not filter_main_local_ips

filter_main_local_ips:
    - ClientAddress|cidr:
          - '127.0.0.0/8'
          - '169.254.0.0/16'
          - '::1/128'
          - 'fe80::/10'
          - 'fc00::/7'
    - ClientAddress|contains:
          - '00000000000000000000000000000001'
          - 'FE80000000000000'
          - 'FC00000000000000'
          - '0200????7F'
          - '0200????A9FE'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Windows Defender Threat Detection Service Disabled

#
Status
stable
Severity
medium
Author
Ján Trenčanský, frack113
Source
github.com/SigmaHQ/sigma

Detects when the "Windows Defender Threat Protection" service is disabled.

Known False Positives

  • Administrator actions
  • Auto updates of Windows Defender causes restarts

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Windows Defender Threat Detection Service Disabled
id: 6c0a7755-6d31-44fa-80e1-133e57752680
related:
    - id: fe34868f-6e0e-4882-81f6-c43aa8f15b62
      type: derived
status: stable
description: Detects when the "Windows Defender Threat Protection" service is disabled.
references:
    - https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
author: Ján Trenčanský, frack113
date: 2020-07-28
modified: 2024-07-02
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    service: system
detection:
    selection:
        EventID: 7036
        Provider_Name: 'Service Control Manager'
        # Note: The service name and messages are localized
        param1:
            - 'Windows Defender Antivirus Service'
            - 'Service antivirus Microsoft Defender' # French OS
        param2:
            - 'stopped'
            - 'arrêté' # French OS
    condition: selection
falsepositives:
    - Administrator actions
    - Auto updates of Windows Defender causes restarts
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 7036
    Provider_Name: 'Service Control Manager'
    param1:
        - 'Windows Defender Antivirus Service'
        - 'Service antivirus Microsoft Defender'
    param2:
        - 'stopped'
        - 'arrêté'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"
param1eq
  • Service antivirus Microsoft Defender
  • Windows Defender Antivirus Service
field:"param1" kind:eq
param2eq
  • arrêté
  • stopped corpus 2 (sigma 1, splunk 1)
field:"param2" kind:eq

Back to all Sigma rules