Detection rules › Sigma

Sigma rules: 1w

RuleSeverity
ADS Zone.Identifier Deletedlow
AWS IAM S3Browser LoginProfile Creationhigh
Certificate Exported From Local Certificate Storemedium
COLDSTEEL RAT Anonymous User Process Executionhigh
Disable Windows Security Center Notificationsmedium
Disable-WindowsOptionalFeature Command PowerShellhigh
Google Cloud Storage Buckets Enumerationlow
HackTool - Jlaive In-Memory Assembly Executionmedium
Impacket PsExec Executionhigh
Invoke-Obfuscation Obfuscated IEX Invocation - PowerShellhigh
macOS Network Utility Tools for C2high
Permissions changed on a Group Policy (GPO)medium
Possible PrintNightmare Print Driver Install - CVE-2021-1675medium
Potential CommandLine Path Traversal Via Cmd.EXEhigh
Potential CVE-2023-36874 Exploitation - Uncommon Report.Wer Locationmedium
Potential Invoke-Mimikatz PowerShell Scripthigh
Potential Persistence Via LSA Extensionshigh
Potentially Suspicious GrantedAccess Flags On LSASSmedium
PowerShell Write-EventLog Usagemedium
RDS Database Security Group Modificationmedium
Remote File Download Via Findstr.EXEmedium
Remote Schedule Task Recon via ITaskSchedulerServicehigh
Renamed Plink Executionhigh
Service Security Descriptor Tampering Via Sc.EXEmedium
Shai-Hulud NPM Package Malicious Exfiltration via Curlhigh
SNAKE Malware Covert Store Registry Keyhigh
SQL SA admin user enabledhigh
SQLite Firefox Profile Data DB Accesshigh
Successful Account Login Via WMIlow
Suspicious File Created Via OneNote Applicationhigh
Suspicious PowerShell Encoded Command Patternshigh
Suspicious PowerShell Invocation From Script Enginesmedium
Suspicious Process Access of MsMpEng by WerFaultSecure - EDR-Freezehigh
Suspicious Shim Database Patching Activityhigh
Sysmon Discovery Via Default Driver Altitude Using Findstr.EXEhigh
Use Short Name Path in Command Linemedium
User creation via commandlinehigh
Windows Default Domain GPO Modification via GPMEmedium
WordPress Wp2shell Webshell Plugin Accesscritical

ADS Zone.Identifier Deleted

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

Detects the deletion of the "Zone.Identifier" ADS. Attackers can leverage this in order to bypass security restrictions that make use of the ADS such as Microsoft Office apps.

Known False Positives

  • Likely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: ADS Zone.Identifier Deleted
id: 7eac0a16-5832-4e81-865f-0268a6d19e4b
related:
    - id: 3109530e-ab47-4cc6-a953-cac5ebcc93ae
      type: similar
status: test
description: Detects the deletion of the "Zone.Identifier" ADS. Attackers can leverage this in order to bypass security restrictions that make use of the ADS such as Microsoft Office apps.
references:
    - https://securityliterate.com/how-malware-abuses-the-zone-identifier-to-circumvent-detection-and-analysis/
author: frack113
date: 2023-09-04
tags:
    - attack.stealth
    - attack.t1070.004
    - detection.threat-hunting
logsource:
    product: windows
    category: file_delete
detection:
    selection:
        TargetFilename|endswith: ':Zone.Identifier'
    condition: selection
falsepositives:
    - Likely
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: ':Zone.Identifier'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • :Zone.Identifier corpus 6 (sigma 4, splunk 2)
field:"TargetFilename" kind:ends_with value:":Zone.Identifier"

AWS IAM S3Browser LoginProfile Creation

#
Status
test
Severity
high
Author
daniel.bohannon@permiso.io (@danielhbohannon)
Source
github.com/SigmaHQ/sigma

Detects S3 Browser utility performing reconnaissance looking for existing IAM Users without a LoginProfile defined then (when found) creating a LoginProfile.

Known False Positives

  • Valid usage of S3 Browser for IAM LoginProfile listing and/or creation

MITRE ATT&CK Coverage

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: AWS IAM S3Browser LoginProfile Creation
id: db014773-b1d3-46bd-ba26-133337c0ffee
status: test
description: Detects S3 Browser utility performing reconnaissance looking for existing IAM Users without a LoginProfile defined then (when found) creating a LoginProfile.
references:
    - https://permiso.io/blog/s/unmasking-guivil-new-cloud-threat-actor
author: daniel.bohannon@permiso.io (@danielhbohannon)
date: 2023-05-17
tags:
    - attack.execution
    - attack.persistence
    - attack.initial-access
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1059.009
    - attack.t1078.004
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 'iam.amazonaws.com'
        eventName:
            - 'GetLoginProfile'
            - 'CreateLoginProfile'
        userAgent|contains: 'S3 Browser'
    condition: selection
falsepositives:
    - Valid usage of S3 Browser for IAM LoginProfile listing and/or creation
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: 'iam.amazonaws.com'
    eventName:
        - 'GetLoginProfile'
        - 'CreateLoginProfile'
    userAgent|contains: 'S3 Browser'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventNameeq
  • CreateLoginProfile corpus 3 (sigma 2, splunk 1)
  • GetLoginProfile
field:"aws::eventName" kind:eq
eventSourceeq
  • iam.amazonaws.com corpus 22 (sigma 18, splunk 4)
field:"aws::eventSource" kind:eq value:"iam.amazonaws.com"
userAgentmatch
  • S3 Browser corpus 3 (sigma 3)
field:"userAgent" kind:match value:"S3 Browser"

Certificate Exported From Local Certificate Store

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

Detects when an application exports a certificate (and potentially the private key as well) from the local Windows certificate store.

Known False Positives

  • Legitimate application requesting certificate exports will trigger this. Apply additional filters as needed

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: Certificate Exported From Local Certificate Store
id: 58c0bff0-40a0-46e8-b5e8-b734b84d2017
status: test
description: Detects when an application exports a certificate (and potentially the private key as well) from the local Windows certificate store.
references:
    - https://www.splunk.com/en_us/blog/security/breaking-the-chain-defending-against-certificate-services-abuse.html
author: Zach Mathis
date: 2023-05-13
tags:
    - attack.credential-access
    - attack.t1649
logsource:
    product: windows
    service: certificateservicesclient-lifecycle-system
detection:
    selection:
        EventID: 1007 # A certificate has been exported
    condition: selection
falsepositives:
    - Legitimate application requesting certificate exports will trigger this. Apply additional filters as needed
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 1007

COLDSTEEL RAT Anonymous User Process Execution

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

Detects the creation of a process executing as user called "ANONYMOUS" seen used by the "MileStone2016" variant of COLDSTEEL

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique
StealthNo specific technique

Telemetry Coverage

Rule Body

title: COLDSTEEL RAT Anonymous User Process Execution
id: e01b6eb5-1eb4-4465-a165-85d40d874add
status: test
description: Detects the creation of a process executing as user called "ANONYMOUS" seen used by the "MileStone2016" variant of COLDSTEEL
references:
    - https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/cold-steel/NCSC-MAR-Cold-Steel.pdf
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-30
tags:
    - attack.persistence
    - detection.emerging-threats
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|contains:
            - '\Windows\System32\'
            - '\AppData\'
        User|contains: 'ANONYMOUS'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|contains:
        - '\Windows\System32\'
        - '\AppData\'
    User|contains: 'ANONYMOUS'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ParentImagematch
  • \AppData\ corpus 3 (sigma 3)
  • \Windows\System32\
field:"ParentImage" kind:match
Usermatch
  • ANONYMOUS
field:"user" kind:match value:"ANONYMOUS"

Disable Windows Security Center Notifications

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

Detect set UseActionCenterExperience to 0 to disable the Windows security center notification

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Defense Impairment

Telemetry Coverage

Rule Body

title: Disable Windows Security Center Notifications
id: 3ae1a046-f7db-439d-b7ce-b8b366b81fa6
status: test
description: Detect set UseActionCenterExperience to 0 to disable the Windows security center notification
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/40b77d63808dd4f4eafb83949805636735a1fd15/atomics/T1112/T1112.md
author: frack113
date: 2022-08-19
modified: 2023-08-17
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: 'Windows\CurrentVersion\ImmersiveShell\UseActionCenterExperience'
        Details: 'DWORD (0x00000000)'
    condition: selection
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_disable_security_center_notifications/info.yml
simulation:
    - type: atomic-red-team
      name: Disable Windows Security Center Notifications
      technique: T1112
      atomic_guid: 45914594-8df6-4ea9-b3cc-7eb9321a807e

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: 'Windows\CurrentVersion\ImmersiveShell\UseActionCenterExperience'
    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)"
TargetObjectends_with
  • Windows\CurrentVersion\ImmersiveShell\UseActionCenterExperience
field:"TargetObject" kind:ends_with value:"Windows\CurrentVersion\ImmersiveShell\UseActionCenterExperience"

Disable-WindowsOptionalFeature Command PowerShell

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

Detect built in PowerShell cmdlet Disable-WindowsOptionalFeature, Deployment Image Servicing and Management tool. Similar to DISM.exe, this cmdlet is used to enumerate, install, uninstall, configure, and update features and packages in Windows images

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Disable-WindowsOptionalFeature Command PowerShell
id: 99c4658d-2c5e-4d87-828d-7c066ca537c3
status: test
description: |
    Detect built in PowerShell cmdlet Disable-WindowsOptionalFeature, Deployment Image Servicing and Management tool.
    Similar to DISM.exe, this cmdlet is used to enumerate, install, uninstall, configure, and update features and packages in Windows images
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/5b67c9b141fa3918017f8fa44f2f88f0b1ecb9e1/atomics/T1562.001/T1562.001.md
    - https://learn.microsoft.com/en-us/powershell/module/dism/disable-windowsoptionalfeature?view=windowsserver2022-ps
author: frack113
date: 2022-09-10
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_cmd:
        ScriptBlockText|contains|all:
            - 'Disable-WindowsOptionalFeature'
            - '-Online'
            - '-FeatureName'
    selection_feature:
        # Add any important windows features
        ScriptBlockText|contains:
            - 'Windows-Defender-Gui'
            - 'Windows-Defender-Features'
            - 'Windows-Defender'
            - 'Windows-Defender-ApplicationGuard'
            # - 'Containers-DisposableClientVM' # Windows Sandbox
    condition: all of selection*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_disable_windows_optional_feature/info.yml

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_cmd

selection_cmd:
    ScriptBlockText|contains|all:
        - 'Disable-WindowsOptionalFeature'
        - '-Online'
        - '-FeatureName'

Stage 2: selection_feature

selection_feature:
    ScriptBlockText|contains:
        - 'Windows-Defender-Gui'
        - 'Windows-Defender-Features'
        - 'Windows-Defender'
        - 'Windows-Defender-ApplicationGuard'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -FeatureName corpus 2 (sigma 2)
  • -Online corpus 2 (sigma 2)
  • Disable-WindowsOptionalFeature
  • Windows-Defender
  • Windows-Defender-ApplicationGuard
  • Windows-Defender-Features
  • Windows-Defender-Gui
field:"ScriptBlockText" kind:match

Google Cloud Storage Buckets Enumeration

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

Detects when storage bucket is enumerated in Google Cloud.

Known False Positives

  • Storage Buckets being enumerated may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
  • Storage Buckets enumerated from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.

MITRE ATT&CK Coverage

TacticTechniques
DiscoveryNo specific technique

Telemetry Coverage

Rule Body

title: Google Cloud Storage Buckets Enumeration
id: e2feb918-4e77-4608-9697-990a1aaf74c3
status: test
description: Detects when storage bucket is enumerated in Google Cloud.
references:
    - https://cloud.google.com/storage/docs/json_api/v1/buckets
author: Austin Songer @austinsonger
date: 2021-08-14
modified: 2022-10-09
tags:
    - attack.discovery
logsource:
    product: gcp
    service: gcp.audit
detection:
    selection:
        gcp.audit.method_name:
            - storage.buckets.list
            - storage.buckets.listChannels
    condition: selection
falsepositives:
    - Storage Buckets being enumerated may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
    - Storage Buckets enumerated from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    gcp.audit.method_name:
        - storage.buckets.list
        - storage.buckets.listChannels

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
gcp.audit.method_nameeq
  • storage.buckets.list
  • storage.buckets.listChannels
field:"gcp::method_name" kind:eq

HackTool - Jlaive In-Memory Assembly Execution

#
Status
test
Severity
medium
Author
Jose Luis Sanchez Martinez (@Joseliyo_Jstnk)
Source
github.com/SigmaHQ/sigma

Detects the use of Jlaive to execute assemblies in a copied PowerShell

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: HackTool - Jlaive In-Memory Assembly Execution
id: 0a99eb3e-1617-41bd-b095-13dc767f3def
status: test
description: Detects the use of Jlaive to execute assemblies in a copied PowerShell
references:
    - https://jstnk9.github.io/jstnk9/research/Jlaive-Antivirus-Evasion-Tool
    - https://web.archive.org/web/20220514073704/https://github.com/ch2sh/Jlaive
author: Jose Luis Sanchez Martinez (@Joseliyo_Jstnk)
date: 2022-05-24
modified: 2023-02-22
tags:
    - attack.execution
    - attack.t1059.003
logsource:
    product: windows
    category: process_creation
detection:
    parent_selection:
        ParentImage|endswith: '\cmd.exe'
        ParentCommandLine|endswith: '.bat'
    selection1:
        Image|endswith: '\xcopy.exe'
        CommandLine|contains|all:
            - 'powershell.exe'
            - '.bat.exe'
    selection2:
        Image|endswith: '\xcopy.exe'
        CommandLine|contains|all:
            - 'pwsh.exe'
            - '.bat.exe'
    selection3:
        Image|endswith: '\attrib.exe'
        CommandLine|contains|all:
            - '+s'
            - '+h'
            - '.bat.exe'
    condition: parent_selection and (1 of selection*)
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

parent_selection and (1 of selection*)

Stage 1: parent_selection

parent_selection:
    ParentImage|endswith: '\cmd.exe'
    ParentCommandLine|endswith: '.bat'

Stage 2: selection1

selection1:
    Image|endswith: '\xcopy.exe'
    CommandLine|contains|all:
        - 'powershell.exe'
        - '.bat.exe'

Stage 3: selection2

selection2:
    Image|endswith: '\xcopy.exe'
    CommandLine|contains|all:
        - 'pwsh.exe'
        - '.bat.exe'

Stage 4: selection3

selection3:
    Image|endswith: '\attrib.exe'
    CommandLine|contains|all:
        - '+s'
        - '+h'
        - '.bat.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • +h corpus 2 (sigma 1, splunk 1)
  • +s
  • .bat.exe
  • powershell.exe corpus 2 (sigma 2)
  • pwsh.exe corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \attrib.exe corpus 5 (sigma 5)
  • \xcopy.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with
ParentCommandLineends_with
  • .bat
field:"ParentCommandLine" kind:ends_with value:".bat"
ParentImageends_with
  • \cmd.exe corpus 20 (sigma 20)
field:"ParentImage" kind:ends_with value:"\cmd.exe"

Impacket PsExec Execution

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

Detects execution of Impacket's psexec.py.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Impacket PsExec Execution
id: 32d56ea1-417f-44ff-822b-882873f5f43b
status: test
description: Detects execution of Impacket's psexec.py.
references:
    - https://web.archive.org/web/20230329171218/https://blog.menasec.net/2019/02/threat-hunting-3-detecting-psexec.html
author: Bhabesh Raj
date: 2020-12-14
modified: 2022-09-22
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    product: windows
    service: security
    definition: 'The advanced audit policy setting "Object Access > Audit Detailed File Share" must be configured for Success/Failure'
detection:
    selection1:
        EventID: 5145
        ShareName: '\\\\\*\\IPC$' # looking for the string \\*\IPC$
        RelativeTargetName|contains:
            - 'RemCom_stdin'
            - 'RemCom_stdout'
            - 'RemCom_stderr'
    condition: selection1
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection1

Stage 1: selection1

selection1:
    EventID: 5145
    ShareName: '\\\\\*\\IPC$'
    RelativeTargetName|contains:
        - 'RemCom_stdin'
        - 'RemCom_stdout'
        - 'RemCom_stderr'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
RelativeTargetNamematch
  • RemCom_stderr
  • RemCom_stdin
  • RemCom_stdout
field:"RelativeTargetName" kind:match
ShareNameeq
  • \\\\\*\\IPC$ corpus 7 (sigma 7)
field:"ShareName" kind:eq value:"\\\\\*\\IPC$"

Invoke-Obfuscation Obfuscated IEX Invocation - PowerShell

#
Status
test
Severity
high
Author
Daniel Bohannon (@Mandiant/@FireEye), oscd.community
Source
github.com/SigmaHQ/sigma

Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the following code block \u2014

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation Obfuscated IEX Invocation - PowerShell
id: 1b9dc62e-6e9e-42a3-8990-94d7a10007f7
status: test
description: Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the following code block \u2014
references:
    - https://github.com/danielbohannon/Invoke-Obfuscation/blob/f20e7f843edd0a3a7716736e9eddfa423395dd26/Out-ObfuscatedStringCommand.ps1#L873-L888
author: 'Daniel Bohannon (@Mandiant/@FireEye), oscd.community'
date: 2019-11-08
modified: 2022-12-31
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_iex:
        - ScriptBlockText|re: '\$PSHome\[\s*\d{1,3}\s*\]\s*\+\s*\$PSHome\['
        - ScriptBlockText|re: '\$ShellId\[\s*\d{1,3}\s*\]\s*\+\s*\$ShellId\['
        - ScriptBlockText|re: '\$env:Public\[\s*\d{1,3}\s*\]\s*\+\s*\$env:Public\['
        - ScriptBlockText|re: '\$env:ComSpec\[(\s*\d{1,3}\s*,){2}'
        - ScriptBlockText|re: '\*mdr\*\W\s*\)\.Name'
        - ScriptBlockText|re: '\$VerbosePreference\.ToString\('
    condition: selection_iex
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_iex

Stage 1: selection_iex

selection_iex:
    - ScriptBlockText|re: '\$PSHome\[\s*\d{1,3}\s*\]\s*\+\s*\$PSHome\['
    - ScriptBlockText|re: '\$ShellId\[\s*\d{1,3}\s*\]\s*\+\s*\$ShellId\['
    - ScriptBlockText|re: '\$env:Public\[\s*\d{1,3}\s*\]\s*\+\s*\$env:Public\['
    - ScriptBlockText|re: '\$env:ComSpec\[(\s*\d{1,3}\s*,){2}'
    - ScriptBlockText|re: '\*mdr\*\W\s*\)\.Name'
    - ScriptBlockText|re: '\$VerbosePreference\.ToString\('

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextregex_match
  • $PSHome[\s*\d{1,3}\s*]\s*+\s*$PSHome[
  • $ShellId[\s*\d{1,3}\s*]\s*+\s*$ShellId[
  • $VerbosePreference.ToString(
  • $env:ComSpec[(\s*\d{1,3}\s*,){2}
  • $env:Public[\s*\d{1,3}\s*]\s*+\s*$env:Public[
  • *mdr*\W\s*).Name
field:"ScriptBlockText" kind:regex_match

macOS Network Utility Tools for C2

#
Status
experimental
Severity
high
Author
Eric Brown - Nebulock, Inc.
Source
github.com/Nebulock-Inc/macos-coresigma

Detects execution of network utility tools (nc, netcat, socat) commonly used to establish command and control channels or reverse shells. These tools can create arbitrary TCP/UDP connections for data transfer or remote command execution.

Known False Positives

  • Network troubleshooting and testing by administrators
  • Development and testing of network applications
  • Security testing and penetration testing activities

MITRE ATT&CK Coverage

Rule Body

title: macOS Network Utility Tools for C2
id: b74398cf-4d87-4d2b-a7d2-3ffbe1c77d38
status: experimental
description: 'Detects execution of network utility tools (nc, netcat, socat) commonly
  used

  to establish command and control channels or reverse shells. These tools can

  create arbitrary TCP/UDP connections for data transfer or remote command execution.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1071/
- https://attack.mitre.org/techniques/T1059/
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_event:
    esf.event_type: 9
    event.action: exec
  selection_process:
    Image|endswith:
    - /nc
    - /netcat
    - /socat
    - /ncat
  condition: selection_event and selection_process
falsepositives:
- Network troubleshooting and testing by administrators
- Development and testing of network applications
- Security testing and penetration testing activities
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.command_and_control
- attack.t1071
- attack.t1059
level: high

Stages and Predicates

Stage 0: condition

selection_event and selection_process

Stage 1: selection_event

selection_event:
  esf.event_type: 9
  event.action: exec

Stage 2: selection_process

selection_process:
  Image|endswith:
  - /nc
  - /netcat
  - /socat
  - /ncat

Indicators

These rows show field, operator, and value matches.

Permissions changed on a Group Policy (GPO)

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

Detects scenarios where an attacker will attempt to take control over a group policy.

Known False Positives

  • Group policy administrator activity / AGPM activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Permissions changed on a Group Policy (GPO)
description: Detects scenarios where an attacker will attempt to take control over a group policy.
requirements: auditing SACL "Modify permissions" must be placed on the "Policies" container using the Active Directory console (https://www.manageengine.com/products/active-directory-audit/active-directory-auditing-configuration-guide-configure-object-level-auditing-manually.html).
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1222.001-File%20and%20Directory%20Permissions%20Modification
tags:
- attack.privilege_escalation
- attack.t1484.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5136
    AttributeLDAPDisplayName: ntSecurityDescriptor
    ObjectClass: groupPolicyContainer
    OperationType: '%%14674' # Value is added
  filter:
    SubjectUserName: # AGPM servers (to customize)
      - SRVAGPM01$
      - SRVAGPM02$
  condition: selection and not filter
falsepositives:
- Group policy administrator activity / AGPM activity
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 5136
  AttributeLDAPDisplayName: ntSecurityDescriptor
  ObjectClass: groupPolicyContainer
  OperationType: '%%14674'

Stage 2: not filter

filter:
  SubjectUserName:
    - SRVAGPM01$
    - SRVAGPM02$

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AttributeLDAPDisplayNameeq
  • ntSecurityDescriptor corpus 7 (sigma 6, elastic 1)
field:"AttributeLDAPDisplayName" kind:eq value:"ntSecurityDescriptor"
ObjectClasseq
  • groupPolicyContainer corpus 6 (sigma 3, splunk 3)
field:"ObjectClass" kind:eq value:"groupPolicyContainer"
OperationTypeeq
  • %%14674 corpus 16 (sigma 9, splunk 4, elastic 3)
field:"OperationType" kind:eq value:"%%14674"

Exclusions

The rule actively suppresses these predicates.

Possible PrintNightmare Print Driver Install - CVE-2021-1675

#
Status
stable
Severity
medium
Author
@neu5ron (Nate Guagenti)
Source
github.com/SigmaHQ/sigma

Detects the remote installation of a print driver which is possible indication of the exploitation of PrintNightmare (CVE-2021-1675). The occurrence of print drivers being installed remotely via RPC functions should be rare, as print drivers are normally installed locally and or through group policy.

Known False Positives

  • Legitimate remote alteration of a printer driver.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Rule Body

title: Possible PrintNightmare Print Driver Install - CVE-2021-1675
id: 7b33baef-2a75-4ca3-9da4-34f9a15382d8
related:
    - id: 53389db6-ba46-48e3-a94c-e0f2cefe1583
      type: derived
status: stable
description: |
    Detects the remote installation of a print driver which is possible indication of the exploitation of PrintNightmare (CVE-2021-1675).
    The occurrence of print drivers being installed remotely via RPC functions should be rare, as print drivers are normally installed locally and or through group policy.
references:
    - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-par/93d1915d-4d9f-4ceb-90a7-e8f2a59adc29
    - https://github.com/zeek/zeek/blob/691b099de13649d6576c7b9d637f8213ff818832/scripts/base/protocols/dce-rpc/consts.zeek
    - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-34527
    - https://github.com/corelight/CVE-2021-1675
    - https://old.zeek.org/zeekweek2019/slides/bzar.pdf
    - https://www.crowdstrike.com/blog/cve-2021-1678-printer-spooler-relay-security-advisory/
author: '@neu5ron (Nate Guagenti)'
date: 2021-08-23
modified: 2025-11-03
tags:
    - attack.execution
    - cve.2021-1678
    - cve.2021-1675
    - cve.2021-34527
    - detection.emerging-threats
logsource:
    product: zeek
    service: dce_rpc
detection:
    selection:
        operation:
            - 'RpcAsyncInstallPrinterDriverFromPackage' # "76f03f96-cdfd-44fc-a22c-64950a001209",0x3e
            - 'RpcAsyncAddPrintProcessor' # "76f03f96-cdfd-44fc-a22c-64950a001209",0x2c
            - 'RpcAddPrintProcessor' # "12345678-1234-abcd-ef00-0123456789ab",0x0e
            - 'RpcAddPrinterDriverEx' # "12345678-1234-abcd-ef00-0123456789ab",0x59
            - 'RpcAddPrinterDriver' # "12345678-1234-abcd-ef00-0123456789ab",0x09
            - 'RpcAsyncAddPrinterDriver' # "76f03f96-cdfd-44fc-a22c-64950a001209",0x27
    condition: selection
falsepositives:
    - Legitimate remote alteration of a printer driver.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operation:
        - 'RpcAsyncInstallPrinterDriverFromPackage'
        - 'RpcAsyncAddPrintProcessor'
        - 'RpcAddPrintProcessor'
        - 'RpcAddPrinterDriverEx'
        - 'RpcAddPrinterDriver'
        - 'RpcAsyncAddPrinterDriver'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationeq
  • RpcAddPrintProcessor
  • RpcAddPrinterDriver
  • RpcAddPrinterDriverEx
  • RpcAsyncAddPrintProcessor
  • RpcAsyncAddPrinterDriver
  • RpcAsyncInstallPrinterDriverFromPackage
field:"operation" kind:eq

Potential CommandLine Path Traversal Via Cmd.EXE

#
Status
test
Severity
high
Author
xknow @xknow_infosec, Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects potential path traversal attempt via cmd.exe. Could indicate possible command/argument confusion/hijacking

Known False Positives

  • Java tools are known to produce false-positive when loading libraries

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential CommandLine Path Traversal Via Cmd.EXE
id: 087790e3-3287-436c-bccf-cbd0184a7db1
status: test
description: Detects potential path traversal attempt via cmd.exe. Could indicate possible command/argument confusion/hijacking
references:
    - https://hackingiscool.pl/cmdhijack-command-argument-confusion-with-path-traversal-in-cmd-exe/
    - https://twitter.com/Oddvarmoe/status/1270633613449723905
author: xknow @xknow_infosec, Tim Shelton
date: 2020-06-11
modified: 2023-03-06
tags:
    - attack.execution
    - attack.t1059.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - ParentImage|endswith: '\cmd.exe'
        - Image|endswith: '\cmd.exe'
        - OriginalFileName: 'cmd.exe'
    selection_flags:
        - ParentCommandLine|contains:
              - '/c'
              - '/k'
              - '/r'
        - CommandLine|contains:
              - '/c'
              - '/k'
              - '/r'
    selection_path_traversal:
        - ParentCommandLine: '/../../'
        - CommandLine|contains: '/../../'
    filter_java:
        CommandLine|contains: '\Tasktop\keycloak\bin\/../../jre\bin\java'
    condition: all of selection_* and not 1 of filter_*
falsepositives:
    - Java tools are known to produce false-positive when loading libraries
level: high

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_*

Stage 1: selection_img

selection_img:
    - ParentImage|endswith: '\cmd.exe'
    - Image|endswith: '\cmd.exe'
    - OriginalFileName: 'cmd.exe'

Stage 2: selection_flags

selection_flags:
    - ParentCommandLine|contains:
          - '/c'
          - '/k'
          - '/r'
    - CommandLine|contains:
          - '/c'
          - '/k'
          - '/r'

Stage 3: selection_path_traversal

selection_path_traversal:
    - ParentCommandLine: '/../../'
    - CommandLine|contains: '/../../'

Stage 4: not filter_java

filter_java:
    CommandLine|contains: '\Tasktop\keycloak\bin\/../../jre\bin\java'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /../../ corpus 2 (sigma 2)
  • /c corpus 16 (sigma 14, splunk 2)
  • /k
  • /r corpus 4 (sigma 4)
field:"CommandLine" kind:match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
OriginalFileNameeq
  • cmd.exe corpus 75 (sigma 43, splunk 17, elastic 15)
field:"OriginalFileName" kind:eq value:"cmd.exe"
ParentCommandLineeq
  • /../../
field:"ParentCommandLine" kind:eq value:"/../../"
ParentCommandLinematch
  • /c corpus 3 (sigma 3)
  • /k
  • /r corpus 2 (sigma 2)
field:"ParentCommandLine" kind:match
ParentImageends_with
  • \cmd.exe corpus 20 (sigma 20)
field:"ParentImage" kind:ends_with value:"\cmd.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch\Tasktop\keycloak\bin\/../../jre\bin\javaexcludes:CommandLine field:"CommandLine" value:"\Tasktop\keycloak\bin\/../../jre\bin\java"

Potential CVE-2023-36874 Exploitation - Uncommon Report.Wer Location

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

Detects the creation of a "Report.wer" file in an uncommon folder structure. This could be a sign of potential exploitation of CVE-2023-36874.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential CVE-2023-36874 Exploitation - Uncommon Report.Wer Location
id: 92389a99-5215-43b0-a09f-e334453b2ed3
status: test
description: Detects the creation of a "Report.wer" file in an uncommon folder structure. This could be a sign of potential exploitation of CVE-2023-36874.
references:
    - https://github.com/Wh04m1001/CVE-2023-36874
    - https://www.crowdstrike.com/blog/falcon-complete-zero-day-exploit-cve-2023-36874/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-23
tags:
    - attack.execution
    - cve.2023-36874
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|contains: ':\ProgramData\Microsoft\Windows\WER\ReportArchive\'
        TargetFilename|endswith: '\Report.wer'
    filter_main_locations:
        TargetFilename|contains:
            # Note: This list is non exhaustive. Use this as a start for hunting for suspicious folder report
            - '\ReportArchive\AppCrash_'
            - '\ReportArchive\AppHang_'
            - '\ReportArchive\Critical_'
            - '\ReportArchive\Kernel_'
            - '\ReportArchive\NonCritical_'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    TargetFilename|contains: ':\ProgramData\Microsoft\Windows\WER\ReportArchive\'
    TargetFilename|endswith: '\Report.wer'

Stage 2: not filter_main_locations

filter_main_locations:
    TargetFilename|contains:
        - '\ReportArchive\AppCrash_'
        - '\ReportArchive\AppHang_'
        - '\ReportArchive\Critical_'
        - '\ReportArchive\Kernel_'
        - '\ReportArchive\NonCritical_'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Potential Invoke-Mimikatz PowerShell Script

#
Status
test
Severity
high
Author
Tim Rauch, Elastic (idea)
Source
github.com/SigmaHQ/sigma

Detects Invoke-Mimikatz PowerShell script and alike. Mimikatz is a credential dumper capable of obtaining plaintext Windows account logins and passwords.

Known False Positives

  • Mimikatz can be useful for testing the security of networks

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: Potential Invoke-Mimikatz PowerShell Script
id: 189e3b02-82b2-4b90-9662-411eb64486d4
status: test
description: Detects Invoke-Mimikatz PowerShell script and alike. Mimikatz is a credential dumper capable of obtaining plaintext Windows account logins and passwords.
references:
    - https://www.elastic.co/guide/en/security/current/potential-invoke-mimikatz-powershell-script.html#potential-invoke-mimikatz-powershell-script
author: Tim Rauch, Elastic (idea)
date: 2022-09-28
tags:
    - attack.credential-access
    - attack.t1003
logsource:
    category: ps_script
    product: windows
detection:
    selection_1:
        ScriptBlockText|contains|all:
            - 'DumpCreds'
            - 'DumpCerts'
    selection_2:
        ScriptBlockText|contains: 'sekurlsa::logonpasswords'
    selection_3:
        ScriptBlockText|contains|all:
            - 'crypto::certificates'
            - 'CERT_SYSTEM_STORE_LOCAL_MACHINE'
    condition: 1 of selection*
falsepositives:
    - Mimikatz can be useful for testing the security of networks
level: high
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_potential_invoke_mimikatz/info.yml

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_1

selection_1:
    ScriptBlockText|contains|all:
        - 'DumpCreds'
        - 'DumpCerts'

Stage 2: selection_2

selection_2:
    ScriptBlockText|contains: 'sekurlsa::logonpasswords'

Stage 3: selection_3

selection_3:
    ScriptBlockText|contains|all:
        - 'crypto::certificates'
        - 'CERT_SYSTEM_STORE_LOCAL_MACHINE'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • CERT_SYSTEM_STORE_LOCAL_MACHINE
  • DumpCerts corpus 2 (sigma 2)
  • DumpCreds corpus 2 (sigma 2)
  • crypto::certificates
  • sekurlsa::logonpasswords
field:"ScriptBlockText" kind:match

Potential Persistence Via LSA Extensions

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

Detects when an attacker modifies the "REG_MULTI_SZ" value named "Extensions" to include a custom DLL to achieve persistence via lsass. The "Extensions" list contains filenames of DLLs being automatically loaded by lsass.exe. Each DLL has its InitializeLsaExtension() method called after loading.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique

Telemetry Coverage

Rule Body

title: Potential Persistence Via LSA Extensions
id: 41f6531d-af6e-4c6e-918f-b946f2b85a36
status: test
description: |
    Detects when an attacker modifies the "REG_MULTI_SZ" value named "Extensions" to include a custom DLL to achieve persistence via lsass.
    The "Extensions" list contains filenames of DLLs being automatically loaded by lsass.exe. Each DLL has its InitializeLsaExtension() method called after loading.
references:
    - https://persistence-info.github.io/Data/lsaaextension.html
    - https://twitter.com/0gtweet/status/1476286368385019906
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-21
modified: 2023-08-17
tags:
    - attack.persistence
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\SYSTEM\CurrentControlSet\Control\LsaExtensionConfig\LsaSrv\Extensions'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\SYSTEM\CurrentControlSet\Control\LsaExtensionConfig\LsaSrv\Extensions'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \SYSTEM\CurrentControlSet\Control\LsaExtensionConfig\LsaSrv\Extensions
field:"TargetObject" kind:match value:"\SYSTEM\CurrentControlSet\Control\LsaExtensionConfig\LsaSrv\Extensions"

Potentially Suspicious GrantedAccess Flags On LSASS

#
Status
test
Severity
medium
Author
Florian Roth, Roberto Rodriguez, Dimitrios Slamaris, Mark Russinovich, Thomas Patzke, Teymur Kheirkhabarov, Sherif Eldeeb, James Dickenson, Aleksey Potapov, oscd.community
Source
github.com/SigmaHQ/sigma

Detects process access requests to LSASS process with potentially suspicious access flags

Known False Positives

  • Legitimate software such as AV and EDR

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 10: ProcessAccess

Rule Body

title: Potentially Suspicious GrantedAccess Flags On LSASS
id: a18dd26b-6450-46de-8c91-9659150cf088
related:
    - id: 32d0d3e2-e58d-4d41-926b-18b520b2b32d
      type: similar
status: test
description: Detects process access requests to LSASS process with potentially suspicious access flags
references:
    - https://learn.microsoft.com/en-us/windows/win32/procthread/process-security-and-access-rights
    - https://onedrive.live.com/view.aspx?resid=D026B4699190F1E6!2843&ithint=file%2cpptx&app=PowerPoint&authkey=!AMvCRTKB_V1J5ow
    - https://web.archive.org/web/20230208123920/https://cyberwardog.blogspot.com/2017/03/chronicles-of-threat-hunter-hunting-for_22.html
    - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment
    - https://web.archive.org/web/20230420013146/http://security-research.dyndns.org/pub/slides/FIRST2017/FIRST-2017_Tom-Ueltschi_Sysmon_FINAL_notes.pdf
author: Florian Roth, Roberto Rodriguez, Dimitrios Slamaris, Mark Russinovich, Thomas Patzke, Teymur Kheirkhabarov, Sherif Eldeeb, James Dickenson, Aleksey Potapov, oscd.community
date: 2021-11-22
modified: 2026-06-29
tags:
    - attack.credential-access
    - attack.t1003.001
    - attack.s0002
logsource:
    category: process_access
    product: windows
detection:
    selection_target:
        TargetImage|endswith: '\lsass.exe'
    selection_access:
        - GrantedAccess|endswith:
              # - '10'  # covered in rule 678dfc63-fefb-47a5-a04c-26bcf8cc9f65
              - '30'
              - '50'
              - '70'
              - '90'
              - 'B0'
              - 'D0'
              - 'F0'
              - '18'
              - '38'
              - '58'
              - '78'
              - '98'
              - 'B8'
              - 'D8'
              - 'F8'
              - '1A'
              - '3A'
              - '5A'
              - '7A'
              - '9A'
              - 'BA'
              - 'DA'
              - 'FA'
              - '0x14C2'  # https://github.com/b4rtik/ATPMiniDump/blob/76304f93b390af3bb66e4f451ca16562a479bdc9/ATPMiniDump/ATPMiniDump.c
        - GrantedAccess|startswith:
              - '0x100000'
              - '0x1418'    # car.2019-04-004
              - '0x1438'    # car.2019-04-004
              - '0x143a'    # car.2019-04-004
              - '0x1f0fff'
              - '0x1f1fff'
              - '0x1f2fff'
              - '0x1f3fff'
              - '0x40'
              # - '0x1000'  # minimum access requirements to query basic info from service
              # - '0x1010'    # car.2019-04-004
              # - '0x1400'
              # - '0x1410'    # car.2019-04-004 # Covered by 678dfc63-fefb-47a5-a04c-26bcf8cc9f65
    filter_main_generic:
        # When using this rule. Remove this filter and replace it by the path of the specific AV you use
        SourceImage|contains:
            - ':\Program Files (x86)\'
            - ':\Program Files\'
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
    filter_optional_malwarebytes:
        SourceImage|endswith: ':\ProgramData\MALWAREBYTES\MBAMSERVICE\ctlrupdate\mbupdatr.exe'
    filter_optional_vscode:
        SourceImage|endswith: '\AppData\Local\Programs\Microsoft VS Code\Code.exe'
    filter_main_windefend_1:
        SourceImage|contains: ':\ProgramData\Microsoft\Windows Defender\'
        SourceImage|endswith: '\MsMpEng.exe'
    filter_main_windefend_2:
        CallTrace|contains|all:
            - '|?:\ProgramData\Microsoft\Windows Defender\Definition Updates\{'
            - '}\mpengine.dll+'
        GrantedAccess: '0x1418'
    filter_main_windefend_3:
        CallTrace|contains:
            - '|c:\program files\windows defender\mprtp.dll'
            - '|c:\program files\windows defender\MpClient.dll'
    filter_optional_vmwaretools:
        SourceImage|contains: ':\ProgramData\VMware\VMware Tools\'
        SourceImage|endswith: '\vmtoolsd.exe'
    filter_optional_sysinternals_process_explorer:
        SourceImage|endswith:
            - '\PROCEXP64.EXE'
            - '\PROCEXP.EXE'
        GrantedAccess: '0x40'
    filter_optional_mbami:
        SourceImage|endswith: '\MBAMInstallerService.exe'
        GrantedAccess: '0x40'
    filter_optional_nextron:
        SourceImage|endswith:
            - '\aurora-agent-64.exe'
            - '\aurora-agent.exe'
            - '\thor.exe'
            - '\thor64.exe'
        GrantedAccess: '0x40'
    filter_main_explorer:
        SourceImage|endswith: '\explorer.exe'
        GrantedAccess: '0x401'
    filter_optional_sysinternals_handle:
        SourceImage|endswith:
            - '\handle.exe'
            - '\handle64.exe'
            - '\handle64a.exe'
        GrantedAccess: '0x40'
    filter_optional_webex:
        SourceImage|endswith: '\AppData\Local\WebEx\WebexHost.exe'
        GrantedAccess: '0x401'
    filter_optional_steam_apps:
        SourceImage|contains: '\SteamLibrary\steamapps\'
    condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate software such as AV and EDR
level: medium

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection_target

selection_target:
    TargetImage|endswith: '\lsass.exe'

Stage 2: selection_access

selection_access:
    - GrantedAccess|endswith:
          - '30'
          - '50'
          - '70'
          - '90'
          - 'B0'
          - 'D0'
          - 'F0'
          - '18'
          - '38'
          - '58'
          - '78'
          - '98'
          - 'B8'
          - 'D8'
          - 'F8'
          - '1A'
          - '3A'
          - '5A'
          - '7A'
          - '9A'
          - 'BA'
          - 'DA'
          - 'FA'
          - '0x14C2'
    - GrantedAccess|startswith:
          - '0x100000'
          - '0x1418'
          - '0x1438'
          - '0x143a'
          - '0x1f0fff'
          - '0x1f1fff'
          - '0x1f2fff'
          - '0x1f3fff'
          - '0x40'

Stage 3: not filter_main_*

filter_main_generic:
    SourceImage|contains:
        - ':\Program Files (x86)\'
        - ':\Program Files\'
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
filter_main_windefend_1:
    SourceImage|contains: ':\ProgramData\Microsoft\Windows Defender\'
    SourceImage|endswith: '\MsMpEng.exe'
filter_main_windefend_2:
    CallTrace|contains|all:
        - '|?:\ProgramData\Microsoft\Windows Defender\Definition Updates\{'
        - '}\mpengine.dll+'
    GrantedAccess: '0x1418'
filter_main_windefend_3:
    CallTrace|contains:
        - '|c:\program files\windows defender\mprtp.dll'
        - '|c:\program files\windows defender\MpClient.dll'
filter_main_explorer:
    SourceImage|endswith: '\explorer.exe'
    GrantedAccess: '0x401'

Stage 4: not filter_optional_*

filter_optional_malwarebytes:
    SourceImage|endswith: ':\ProgramData\MALWAREBYTES\MBAMSERVICE\ctlrupdate\mbupdatr.exe'
filter_optional_vscode:
    SourceImage|endswith: '\AppData\Local\Programs\Microsoft VS Code\Code.exe'
filter_optional_vmwaretools:
    SourceImage|contains: ':\ProgramData\VMware\VMware Tools\'
    SourceImage|endswith: '\vmtoolsd.exe'
filter_optional_sysinternals_process_explorer:
    SourceImage|endswith:
        - '\PROCEXP64.EXE'
        - '\PROCEXP.EXE'
    GrantedAccess: '0x40'
filter_optional_mbami:
    SourceImage|endswith: '\MBAMInstallerService.exe'
    GrantedAccess: '0x40'
filter_optional_nextron:
    SourceImage|endswith:
        - '\aurora-agent-64.exe'
        - '\aurora-agent.exe'
        - '\thor.exe'
        - '\thor64.exe'
    GrantedAccess: '0x40'
filter_optional_sysinternals_handle:
    SourceImage|endswith:
        - '\handle.exe'
        - '\handle64.exe'
        - '\handle64a.exe'
    GrantedAccess: '0x40'
filter_optional_webex:
    SourceImage|endswith: '\AppData\Local\WebEx\WebexHost.exe'
    GrantedAccess: '0x401'
filter_optional_steam_apps:
    SourceImage|contains: '\SteamLibrary\steamapps\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
GrantedAccessends_with
  • 0x14C2 corpus 4 (sigma 4)
  • 18 corpus 4 (sigma 4)
  • 1A corpus 4 (sigma 4)
  • 30 corpus 4 (sigma 4)
  • 38 corpus 4 (sigma 4)
  • 3A corpus 4 (sigma 4)
  • 50 corpus 4 (sigma 4)
  • 58 corpus 4 (sigma 4)
  • 5A corpus 4 (sigma 4)
  • 70 corpus 4 (sigma 4)
  • 78 corpus 4 (sigma 4)
  • 7A corpus 4 (sigma 4)
  • 90 corpus 4 (sigma 4)
  • 98 corpus 4 (sigma 4)
  • 9A corpus 4 (sigma 4)
  • B0 corpus 4 (sigma 4)
  • B8 corpus 4 (sigma 4)
  • BA corpus 4 (sigma 4)
  • D0 corpus 4 (sigma 4)
  • D8 corpus 4 (sigma 4)
  • DA corpus 4 (sigma 4)
  • F0 corpus 4 (sigma 4)
  • F8 corpus 4 (sigma 4)
  • FA corpus 4 (sigma 4)
field:"GrantedAccess" kind:ends_with
GrantedAccessstarts_with
  • 0x100000
  • 0x1418
  • 0x1438
  • 0x143a
  • 0x1f0fff
  • 0x1f1fff
  • 0x1f2fff
  • 0x1f3fff
  • 0x40
field:"GrantedAccess" kind:starts_with
TargetImageends_with
  • \lsass.exe corpus 17 (sigma 16, splunk 1)
field:"TargetImage" kind:ends_with value:"\lsass.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CallTracematch|?:\ProgramData\Microsoft\Windows Defender\Definition Updates\{excludes:CallTrace field:"CallTrace" value:"|?:\ProgramData\Microsoft\Windows Defender\Definition Updates\{"
CallTracematch}\mpengine.dll+excludes:CallTrace field:"CallTrace" value:"}\mpengine.dll+"
GrantedAccesseq0x1418excludes:GrantedAccess field:"GrantedAccess" value:"0x1418"
GrantedAccesseq0x401excludes:GrantedAccess field:"GrantedAccess" value:"0x401"
SourceImageends_with\explorer.exeexcludes:SourceImage field:"SourceImage" value:"\explorer.exe"
SourceImageends_with\MsMpEng.exeexcludes:SourceImage field:"SourceImage" value:"\MsMpEng.exe"
SourceImagematch:\ProgramData\Microsoft\Windows Defender\excludes:SourceImage field:"SourceImage" value:":\ProgramData\Microsoft\Windows Defender\"
CallTracematch|c:\program files\windows defender\MpClient.dllexcludes:CallTrace field:"CallTrace" value:"|c:\program files\windows defender\MpClient.dll"
CallTracematch|c:\program files\windows defender\mprtp.dllexcludes:CallTrace field:"CallTrace" value:"|c:\program files\windows defender\mprtp.dll"
SourceImagematch:\Program Files (x86)\excludes:SourceImage field:"SourceImage" value:":\Program Files (x86)\"
SourceImagematch:\Program Files\excludes:SourceImage field:"SourceImage" value:":\Program Files\"
SourceImagematch:\Windows\SysWOW64\excludes:SourceImage field:"SourceImage" value:":\Windows\SysWOW64\"
SourceImagematch:\Windows\System32\excludes:SourceImage field:"SourceImage" value:":\Windows\System32\"
SourceImageends_with\PROCEXP.EXEexcludes:SourceImage field:"SourceImage" value:"\PROCEXP.EXE"
SourceImageends_with\PROCEXP64.EXEexcludes:SourceImage field:"SourceImage" value:"\PROCEXP64.EXE"
GrantedAccesseq0x40excludes:GrantedAccess field:"GrantedAccess" value:"0x40"
SourceImageends_with\aurora-agent-64.exeexcludes:SourceImage field:"SourceImage" value:"\aurora-agent-64.exe"
SourceImageends_with\aurora-agent.exeexcludes:SourceImage field:"SourceImage" value:"\aurora-agent.exe"
SourceImageends_with\thor.exeexcludes:SourceImage field:"SourceImage" value:"\thor.exe"
SourceImageends_with\thor64.exeexcludes:SourceImage field:"SourceImage" value:"\thor64.exe"
SourceImageends_with\handle.exeexcludes:SourceImage field:"SourceImage" value:"\handle.exe"
SourceImageends_with\handle64.exeexcludes:SourceImage field:"SourceImage" value:"\handle64.exe"
SourceImageends_with\handle64a.exeexcludes:SourceImage field:"SourceImage" value:"\handle64a.exe"
SourceImageends_with\MBAMInstallerService.exeexcludes:SourceImage field:"SourceImage" value:"\MBAMInstallerService.exe"
SourceImageends_with\AppData\Local\WebEx\WebexHost.exeexcludes:SourceImage field:"SourceImage" value:"\AppData\Local\WebEx\WebexHost.exe"
SourceImageends_with\vmtoolsd.exeexcludes:SourceImage field:"SourceImage" value:"\vmtoolsd.exe"
SourceImagematch:\ProgramData\VMware\VMware Tools\excludes:SourceImage field:"SourceImage" value:":\ProgramData\VMware\VMware Tools\"
SourceImageends_with:\ProgramData\MALWAREBYTES\MBAMSERVICE\ctlrupdate\mbupdatr.exeexcludes:SourceImage field:"SourceImage" value:":\ProgramData\MALWAREBYTES\MBAMSERVICE\ctlrupdate\mbupdatr.exe"
SourceImageends_with\AppData\Local\Programs\Microsoft VS Code\Code.exeexcludes:SourceImage field:"SourceImage" value:"\AppData\Local\Programs\Microsoft VS Code\Code.exe"
SourceImagematch\SteamLibrary\steamapps\excludes:SourceImage field:"SourceImage" value:"\SteamLibrary\steamapps\"

PowerShell Write-EventLog Usage

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

Detects usage of the "Write-EventLog" cmdlet with 'RawData' flag. The cmdlet can be levreage to write malicious payloads to the EventLog and then retrieve them later for later use

Known False Positives

  • Legitimate applications writing events via this cmdlet. Investigate alerts to determine if the action is benign

MITRE ATT&CK Coverage

TacticTechniques
Defense ImpairmentNo specific technique

Telemetry Coverage

Rule Body

title: PowerShell Write-EventLog Usage
id: 35f41cd7-c98e-469f-8a02-ec4ba0cc7a7e
status: test
description: Detects usage of the "Write-EventLog" cmdlet with 'RawData' flag. The cmdlet can be levreage to write malicious payloads to the EventLog and then retrieve them later for later use
references:
    - https://www.blackhillsinfosec.com/windows-event-logs-for-red-teams/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-16
tags:
    - attack.defense-impairment
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'Write-EventLog'
            - '-RawData '
    condition: selection
falsepositives:
    - Legitimate applications writing events via this cmdlet. Investigate alerts to determine if the action is benign
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'Write-EventLog'
        - '-RawData '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -RawData
  • Write-EventLog
field:"ScriptBlockText" kind:match

RDS Database Security Group Modification

#
Status
test
Severity
medium
Author
jamesc-grafana
Source
github.com/SigmaHQ/sigma

Detects changes to the security group entries for RDS databases. This can indicate that a misconfiguration has occurred which potentially exposes the database to the public internet, a wider audience within the VPC or that removal of valid rules has occurred which could impact the availability of the database to legitimate services and users.

Known False Positives

  • Creation of a new Database that needs new security group rules

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: RDS Database Security Group Modification
id: 14f3f1c8-02d5-43a2-a191-91ffb52d3015
status: test
description: |
    Detects changes to the security group entries for RDS databases.
    This can indicate that a misconfiguration has occurred which potentially exposes the database to the public internet, a wider audience within the VPC or that removal of valid rules has occurred which could impact the availability of the database to legitimate services and users.
references:
    - https://www.gorillastack.com/blog/real-time-events/important-aws-cloudtrail-security-events-tracking/
author: jamesc-grafana
date: 2024-07-11
tags:
    - attack.initial-access
    - attack.t1190
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 'rds.amazonaws.com'
        eventName:
            - 'AuthorizeDBSecurityGroupIngress'
            - 'CreateDBSecurityGroup'
            - 'DeleteDBSecurityGroup'
            - 'RevokeDBSecurityGroupIngress'
    condition: selection
falsepositives:
    - Creation of a new Database that needs new security group rules
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: 'rds.amazonaws.com'
    eventName:
        - 'AuthorizeDBSecurityGroupIngress'
        - 'CreateDBSecurityGroup'
        - 'DeleteDBSecurityGroup'
        - 'RevokeDBSecurityGroupIngress'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventNameeq
  • AuthorizeDBSecurityGroupIngress
  • CreateDBSecurityGroup
  • DeleteDBSecurityGroup
  • RevokeDBSecurityGroupIngress
field:"aws::eventName" kind:eq
eventSourceeq
  • rds.amazonaws.com corpus 5 (sigma 4, splunk 1)
field:"aws::eventSource" kind:eq value:"rds.amazonaws.com"

Remote File Download Via Findstr.EXE

#
Status
test
Severity
medium
Author
Furkan CALISKAN, @caliskanfurkan_, @oscd_initiative, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects execution of "findstr" with specific flags and a remote share path. This specific set of CLI flags would allow "findstr" to download the content of the file located on the remote share as described in the LOLBAS entry.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Remote File Download Via Findstr.EXE
id: 587254ee-a24b-4335-b3cd-065c0f1f4baa
related:
    - id: bf6c39fc-e203-45b9-9538-05397c1b4f3f
      type: obsolete
status: test
description: |
    Detects execution of "findstr" with specific flags and a remote share path. This specific set of CLI flags would allow "findstr" to download the content of the file located on the remote share as described in the LOLBAS entry.
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Findstr/
    - https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/
    - https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
author: Furkan CALISKAN, @caliskanfurkan_, @oscd_initiative, Nasreddine Bencherchali (Nextron Systems)
date: 2020-10-05
modified: 2024-03-05
tags:
    - attack.credential-access
    - attack.command-and-control
    - attack.stealth
    - attack.t1218
    - attack.t1564.004
    - attack.t1552.001
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_findstr:
        - CommandLine|contains: findstr
        - Image|endswith: 'findstr.exe'
        - OriginalFileName: 'FINDSTR.EXE'
    selection_cli_download_1:
        CommandLine|contains|windash: ' -v '
    selection_cli_download_2:
        CommandLine|contains|windash: ' -l '
    selection_cli_download_3:
        CommandLine|contains: '\\\\'
    condition: selection_findstr and all of selection_cli_download_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_findstr_download/info.yml

Stages and Predicates

Stage 0: condition

selection_findstr and all of selection_cli_download_*

Stage 1: selection_findstr

selection_findstr:
    - CommandLine|contains: findstr
    - Image|endswith: 'findstr.exe'
    - OriginalFileName: 'FINDSTR.EXE'

Stage 2: selection_cli_download_1

selection_cli_download_1:
    CommandLine|contains|windash: ' -v '

Stage 3: selection_cli_download_2

selection_cli_download_2:
    CommandLine|contains|windash: ' -l '

Stage 4: selection_cli_download_3

selection_cli_download_3:
    CommandLine|contains: '\\\\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -l corpus 3 (sigma 3)
  • -v
  • /l
  • /v
  • –l
  • –v
  • —l
  • —v
  • ―l
  • ―v
  • \\\\ corpus 8 (sigma 5, splunk 3)
  • findstr corpus 7 (sigma 6, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • findstr.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"findstr.exe"
OriginalFileNameeq
  • FINDSTR.EXE corpus 12 (sigma 12)
field:"OriginalFileName" kind:eq value:"FINDSTR.EXE"

Remote Schedule Task Recon via ITaskSchedulerService

#
Status
test
Severity
high
Author
Sagie Dulce, Dekel Paz
Source
github.com/SigmaHQ/sigma

Detects remote RPC calls to read information about scheduled tasks

MITRE ATT&CK Coverage

TacticTechniques
DiscoveryNo specific technique

Telemetry Coverage

Rule Body

title: Remote Schedule Task Recon via ITaskSchedulerService
id: 7f7c49eb-2977-4ac8-8ab0-ab1bae14730e
status: test
description: Detects remote RPC calls to read information about scheduled tasks
references:
    - https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tsch/d1058a28-7e02-4948-8b8d-4a347fa64931
    - https://github.com/jsecurity101/MSRPC-to-ATTACK/blob/ddd4608fe8684fcf2fcf9b48c5f0b3c28097f8a3/documents/MS-TSCH.md
    - https://github.com/zeronetworks/rpcfirewall
    - https://zeronetworks.com/blog/stopping-lateral-movement-via-the-rpc-firewall/
author: Sagie Dulce, Dekel Paz
date: 2022-01-01
tags:
    - attack.discovery
logsource:
    product: rpc_firewall
    category: application
    definition: 'Requirements: install and apply the RPC Firewall to all processes with "audit:true action:block uuid:86d35949-83c9-4044-b424-db363231fd0c"'
detection:
    selection:
        EventLog: RPCFW
        EventID: 3
        InterfaceUuid: 86d35949-83c9-4044-b424-db363231fd0c
    filter:
        OpNum:
            - 1
            - 3
            - 4
            - 10
            - 11
            - 12
            - 13
            - 14
            - 15
    condition: selection and not filter
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    EventLog: RPCFW
    EventID: 3
    InterfaceUuid: 86d35949-83c9-4044-b424-db363231fd0c

Stage 2: not filter

filter:
    OpNum:
        - 1
        - 3
        - 4
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventLogeq
  • RPCFW corpus 17 (sigma 17)
field:"EventLog" kind:eq value:"RPCFW"
InterfaceUuideq
  • 86d35949-83c9-4044-b424-db363231fd0c corpus 2 (sigma 2)
field:"InterfaceUuid" kind:eq value:"86d35949-83c9-4044-b424-db363231fd0c"

Exclusions

The rule actively suppresses these predicates.

Renamed Plink Execution

#

Service Security Descriptor Tampering Via Sc.EXE

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

Detection of sc.exe utility adding a new service with special permission which hides that service.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Service Security Descriptor Tampering Via Sc.EXE
id: 98c5aeef-32d5-492f-b174-64a691896d25
related:
    - id: 99cf1e02-00fb-4c0d-8375-563f978dfd37 # Deny Service Access
      type: similar
    - id: a537cfc3-4297-4789-92b5-345bfd845ad0 # Specific Technique
      type: similar
status: test
description: Detection of sc.exe utility adding a new service with special permission which hides that service.
references:
    - https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html
    - https://www.sans.org/blog/red-team-tactics-hiding-windows-services/
    - https://twitter.com/Alh4zr3d/status/1580925761996828672
    - https://twitter.com/0gtweet/status/1628720819537936386
    - https://itconnect.uw.edu/tools-services-support/it-systems-infrastructure/msinf/other-help/understanding-sddl-syntax/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-28
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.011
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\sc.exe'
        - OriginalFileName: 'sc.exe'
    selection_cli:
        CommandLine|contains: 'sdset'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_sc_sdset_modification/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: 'sdset'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • sdset corpus 5 (sigma 5)
field:"CommandLine" kind:match value:"sdset"
Imageends_with
  • \sc.exe corpus 30 (sigma 30)
field:"Image" kind:ends_with value:"\sc.exe"
OriginalFileNameeq
  • sc.exe corpus 28 (sigma 12, splunk 10, elastic 6)
field:"OriginalFileName" kind:eq value:"sc.exe"

Shai-Hulud NPM Package Malicious Exfiltration via Curl

#
Status
experimental
Severity
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects potential Shai Hulud NPM package attack attempting to exfiltrate data via curl to external webhook sites.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Shai-Hulud NPM Package Malicious Exfiltration via Curl
id: efd2eb09-b72e-4a61-8dc7-b1382a1e8983
status: experimental
description: Detects potential Shai Hulud NPM package attack attempting to exfiltrate data via curl to external webhook sites.
references:
    - https://www.getsafety.com/blog-posts/shai-hulud-npm-attack
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-09-24
tags:
    - attack.exfiltration
    - attack.t1041
    - attack.collection
    - attack.t1005
    - detection.emerging-threats
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/curl'
        CommandLine|contains|all:
            - 'curl'
            - '-d'
            - 'webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '/curl'
    CommandLine|contains|all:
        - 'curl'
        - '-d'
        - 'webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -d corpus 9 (sigma 7, splunk 2)
  • curl corpus 17 (sigma 14, elastic 2, splunk 1)
  • webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7
field:"CommandLine" kind:match
Imageends_with
  • /curl corpus 22 (sigma 22)
field:"Image" kind:ends_with value:"/curl"

SNAKE Malware Covert Store Registry Key

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

Detects any registry event that targets the key 'SECURITY\Policy\Secrets\n' which is a key related to SNAKE malware as described by CISA

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique

Telemetry Coverage

Rule Body

title: SNAKE Malware Covert Store Registry Key
id: d0fa35db-0e92-400e-aa16-d32ae2521618
status: test
description: Detects any registry event that targets the key 'SECURITY\Policy\Secrets\n' which is a key related to SNAKE malware as described by CISA
references:
    - https://media.defense.gov/2023/May/09/2003218554/-1/-1/0/JOINT_CSA_HUNTING_RU_INTEL_SNAKE_MALWARE_20230509.PDF
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-11
tags:
    - attack.persistence
    - detection.emerging-threats
logsource:
    category: registry_event
    product: windows
detection:
    selection:
        TargetObject|endswith: 'SECURITY\Policy\Secrets\n'
    condition: selection
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: 'SECURITY\Policy\Secrets\n'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • SECURITY\Policy\Secrets\n
field:"TargetObject" kind:ends_with value:"SECURITY\Policy\Secrets\n"

SQL SA admin user enabled

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

Detects scenarios where an attacker enables the disabled (recommended) SA admin account on the SQL Server instance.

Known False Positives

  • Recovery situations

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Telemetry Coverage

ProviderRecord / event type
MSSQLSERVEREvent ID 33205

Rule Body

title: SQL SA admin user enabled
description: Detects scenarios where an attacker enables the disabled (recommended) SA admin account on the SQL Server instance.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1136-Create%20account
- https://www.stigviewer.com/stig/microsoft_sql_server_2012_database_instance/2017-12-01/finding/V-40936
- https://www.ultimatewindowssecurity.com/sqlserver/auditlog/sampleevent.aspx
- https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions?view=sql-server-2017
- https://www.sqlshack.com/various-techniques-to-audit-sql-server-databases/
- https://sqlquantumleap.com/reference/server-audit-filter-values-for-action_id/
tags:
- attack.persistence
- attack.t1136
author: mdecrevoisier
status: experimental
logsource:
  product: mssql
  category: application
detection:
  selection:
    EventID: 33205
    action_id: LGEA # Enable
    class_type: SL  # SQL login
    object_name: sa # Default account
  condition: selection
falsepositives:
- Recovery situations
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 33205
  action_id: LGEA
  class_type: SL
  object_name: sa

Indicators

These rows show field, operator, and value matches.

SQLite Firefox Profile Data DB Access

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

Detect usage of the "sqlite" binary to query databases in Firefox and other Gecko-based browsers for potential data stealing.

MITRE ATT&CK Coverage

TacticTechniques
Credential Access
Collection

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: SQLite Firefox Profile Data DB Access
id: 4833155a-4053-4c9c-a997-777fcea0baa7
status: test
description: Detect usage of the "sqlite" binary to query databases in Firefox and other Gecko-based browsers for potential data stealing.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1539/T1539.md#atomic-test-1---steal-firefox-cookies-windows
    - https://blog.cyble.com/2022/04/21/prynt-stealer-a-new-info-stealer-performing-clipper-and-keylogger-activities/
author: frack113
date: 2022-04-08
modified: 2023-01-19
tags:
    - attack.credential-access
    - attack.t1539
    - attack.collection
    - attack.t1005
logsource:
    category: process_creation
    product: windows
detection:
    selection_sql:
        - Product: SQLite
        - Image|endswith:
              - '\sqlite.exe'
              - '\sqlite3.exe'
    selection_firefox:
        CommandLine|contains:
            - 'cookies.sqlite'
            - 'places.sqlite' # Bookmarks, history
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_sql

selection_sql:
    - Product: SQLite
    - Image|endswith:
          - '\sqlite.exe'
          - '\sqlite3.exe'

Stage 2: selection_firefox

selection_firefox:
    CommandLine|contains:
        - 'cookies.sqlite'
        - 'places.sqlite'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • cookies.sqlite corpus 3 (sigma 2, panther 1)
  • places.sqlite corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \sqlite.exe corpus 2 (sigma 2)
  • \sqlite3.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with
Producteq
  • SQLite corpus 2 (sigma 2)
field:"Product" kind:eq value:"SQLite"

Successful Account Login Via WMI

#
Status
stable
Severity
low
Author
Thomas Patzke
Source
github.com/SigmaHQ/sigma

Detects successful logon attempts performed with WMI

Known False Positives

  • Monitoring tools
  • Legitimate system administration

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Successful Account Login Via WMI
id: 5af54681-df95-4c26-854f-2565e13cfab0
status: stable
description: Detects successful logon attempts performed with WMI
references:
    - Internal Research
author: Thomas Patzke
date: 2019-12-04
modified: 2024-01-17
tags:
    - attack.execution
    - attack.t1047
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4624
        ProcessName|endswith: '\WmiPrvSE.exe'
    condition: selection
falsepositives:
    - Monitoring tools
    - Legitimate system administration
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4624
    ProcessName|endswith: '\WmiPrvSE.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ProcessNameends_with
  • \WmiPrvSE.exe corpus 2 (sigma 2)
field:"process_name" kind:ends_with value:"\WmiPrvSE.exe"

Suspicious File Created Via OneNote Application

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

Detects suspicious files created via the OneNote application. This could indicate a potential malicious ".one"/".onepkg" file was executed as seen being used in malware activity in the wild

Known False Positives

  • False positives should be very low with the extensions list cited. Especially if you don't heavily utilize OneNote.
  • Occasional FPs might occur if OneNote is used internally to share different embedded documents

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Suspicious File Created Via OneNote Application
id: fcc6d700-68d9-4241-9a1a-06874d621b06
status: test
description: Detects suspicious files created via the OneNote application. This could indicate a potential malicious ".one"/".onepkg" file was executed as seen being used in malware activity in the wild
references:
    - https://www.bleepingcomputer.com/news/security/hackers-now-use-microsoft-onenote-attachments-to-spread-malware/
    - https://blog.osarmor.com/319/onenote-attachment-delivers-asyncrat-malware/
    - https://twitter.com/MaD_c4t/status/1623414582382567424
    - https://labs.withsecure.com/publications/detecting-onenote-abuse
    - https://www.trustedsec.com/blog/new-attacks-old-tricks-how-onenote-malware-is-evolving/
    - https://app.any.run/tasks/17f2d378-6d11-4d6f-8340-954b04f35e83/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-09
modified: 2023-02-27
tags:
    - attack.stealth
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith:
            - '\onenote.exe'
            - '\onenotem.exe'
            - '\onenoteim.exe'
        TargetFilename|contains: '\AppData\Local\Temp\OneNote\'
        TargetFilename|endswith:
            # TODO: Add more suspicious extensions
            - '.bat'
            - '.chm'
            - '.cmd'
            - '.dll'
            - '.exe'
            - '.hta'
            - '.htm'
            - '.html'
            - '.js'
            - '.lnk'
            - '.ps1'
            - '.vbe'
            - '.vbs'
            - '.wsf'
    condition: selection
falsepositives:
    - False positives should be very low with the extensions list cited. Especially if you don't heavily utilize OneNote.
    - Occasional FPs might occur if OneNote is used internally to share different embedded documents
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\onenote.exe'
        - '\onenotem.exe'
        - '\onenoteim.exe'
    TargetFilename|contains: '\AppData\Local\Temp\OneNote\'
    TargetFilename|endswith:
        - '.bat'
        - '.chm'
        - '.cmd'
        - '.dll'
        - '.exe'
        - '.hta'
        - '.htm'
        - '.html'
        - '.js'
        - '.lnk'
        - '.ps1'
        - '.vbe'
        - '.vbs'
        - '.wsf'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \onenote.exe corpus 6 (sigma 6)
  • \onenoteim.exe corpus 6 (sigma 6)
  • \onenotem.exe
field:"Image" kind:ends_with
TargetFilenameends_with
  • .bat corpus 17 (sigma 17)
  • .chm corpus 4 (sigma 4)
  • .cmd corpus 8 (sigma 8)
  • .dll corpus 24 (sigma 24)
  • .exe corpus 21 (sigma 20, splunk 1)
  • .hta corpus 14 (sigma 14)
  • .htm
  • .html
  • .js corpus 10 (sigma 10)
  • .lnk corpus 6 (sigma 6)
  • .ps1 corpus 17 (sigma 17)
  • .vbe corpus 16 (sigma 16)
  • .vbs corpus 18 (sigma 18)
  • .wsf corpus 7 (sigma 7)
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • \AppData\Local\Temp\OneNote\
field:"TargetFilename" kind:match value:"\AppData\Local\Temp\OneNote\"

Suspicious PowerShell Encoded Command Patterns

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

Detects PowerShell command line patterns in combincation with encoded commands that often appear in malware infection chains

Known False Positives

  • Other tools that work with encoded scripts in the command line instead of script files

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious PowerShell Encoded Command Patterns
id: b9d9cc83-380b-4ba3-8d8f-60c0e7e2930c
status: test
description: Detects PowerShell command line patterns in combincation with encoded commands that often appear in malware infection chains
references:
    - https://app.any.run/tasks/b9040c63-c140-479b-ad59-f1bb56ce7a97/
author: Florian Roth (Nextron Systems)
date: 2022-05-24
modified: 2023-01-05
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.Exe'
              - 'pwsh.dll'
    selection_flags:
        CommandLine|contains:
            - ' -e '
            - ' -en '
            - ' -enc '
            - ' -enco'
    selection_encoded:
        CommandLine|contains:
            - ' JAB'
            - ' SUVYI'
            - ' SQBFAFgA'
            - ' aWV4I'
            - ' IAB'
            - ' PAA'
            - ' aQBlAHgA'
    filter_gcworker:
        ParentImage|contains:
            - 'C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\'
            - '\gc_worker.exe'
    condition: all of selection_* and not 1 of filter_*
falsepositives:
    - Other tools that work with encoded scripts in the command line instead of script files
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_powershell_base64_encoded_cmd_patterns/info.yml

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\powershell.exe'
          - '\pwsh.exe'
    - OriginalFileName:
          - 'PowerShell.Exe'
          - 'pwsh.dll'

Stage 2: selection_flags

selection_flags:
    CommandLine|contains:
        - ' -e '
        - ' -en '
        - ' -enc '
        - ' -enco'

Stage 3: selection_encoded

selection_encoded:
    CommandLine|contains:
        - ' JAB'
        - ' SUVYI'
        - ' SQBFAFgA'
        - ' aWV4I'
        - ' IAB'
        - ' PAA'
        - ' aQBlAHgA'

Stage 4: not filter_gcworker

filter_gcworker:
    ParentImage|contains:
        - 'C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\'
        - '\gc_worker.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -e corpus 17 (sigma 14, elastic 3)
  • -en corpus 5 (sigma 3, elastic 2)
  • -enc corpus 8 (sigma 6, elastic 2)
  • -enco corpus 2 (sigma 2)
  • IAB corpus 2 (sigma 2)
  • JAB corpus 2 (sigma 2)
  • PAA
  • SQBFAFgA corpus 2 (sigma 2)
  • SUVYI corpus 2 (sigma 2)
  • aQBlAHgA corpus 2 (sigma 2)
  • aWV4I corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.Exe corpus 134 (sigma 86, splunk 30, elastic 18)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
field:"OriginalFileName" kind:eq

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ParentImagematchC:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\excludes:ParentImage field:"ParentImage" value:"C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\"
ParentImagematch\gc_worker.exeexcludes:ParentImage field:"ParentImage" value:"\gc_worker.exe"

Suspicious PowerShell Invocation From Script Engines

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

Detects suspicious powershell invocations from interpreters or unusual programs

Known False Positives

  • Microsoft Operations Manager (MOM)
  • Other scripts

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious PowerShell Invocation From Script Engines
id: 95eadcb2-92e4-4ed1-9031-92547773a6db
status: test
description: Detects suspicious powershell invocations from interpreters or unusual programs
references:
    - https://www.securitynewspaper.com/2017/03/20/attackers-leverage-excel-powershell-dns-latest-non-malware-attack/
author: Florian Roth (Nextron Systems)
date: 2019-01-16
modified: 2023-01-05
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
        Image|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
    filter_health_service:
        CurrentDirectory|contains: '\Health Service State\'
    condition: selection and not 1 of filter_*
falsepositives:
    - Microsoft Operations Manager (MOM)
    - Other scripts
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    ParentImage|endswith:
        - '\wscript.exe'
        - '\cscript.exe'
    Image|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'

Stage 2: not filter_health_service

filter_health_service:
    CurrentDirectory|contains: '\Health Service State\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
ParentImageends_with
  • \cscript.exe corpus 17 (sigma 17)
  • \wscript.exe corpus 19 (sigma 19)
field:"ParentImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CurrentDirectorymatch\Health Service State\excludes:CurrentDirectory field:"CurrentDirectory" value:"\Health Service State\"

Suspicious Process Access of MsMpEng by WerFaultSecure - EDR-Freeze

#
Status
experimental
Severity
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects process access events where WerFaultSecure accesses MsMpEng.exe with dbgcore.dll or dbghelp.dll in the call trace, indicating potential EDR freeze techniques. This technique leverages WerFaultSecure.exe running as a Protected Process Light (PPL) with WinTCB protection level to call MiniDumpWriteDump and suspend EDR/AV processes, allowing malicious activity to execute undetected during the suspension period.

Known False Positives

  • Legitimate Windows Error Reporting operations

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 10: ProcessAccess

Rule Body

title: Suspicious Process Access of MsMpEng by WerFaultSecure - EDR-Freeze
id: 387df17d-3b04-448f-8669-9e7fd5e5fd8c
related:
    - id: 8a2f4b1c-3d5e-4f7a-9b2c-1e4f6d8a9c2b
      type: similar
    - id: 1f0b4cac-9c81-41f4-95d0-8475ff46b3e2
      type: similar
status: experimental
description: |
    Detects process access events where WerFaultSecure accesses MsMpEng.exe with dbgcore.dll or dbghelp.dll in the call trace, indicating potential EDR freeze techniques.
    This technique leverages WerFaultSecure.exe running as a Protected Process Light (PPL) with WinTCB protection level to call MiniDumpWriteDump and suspend EDR/AV processes, allowing malicious activity to execute undetected during the suspension period.
references:
    - https://blog.axelarator.net/hunting-for-edr-freeze/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-11-27
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_access
    product: windows
    definition: |
        Requires Sysmon Event ID 10 (ProcessAccess) with CallTrace enabled.
        Example sysmon config snippet with grouping, as logging individual ProcessAccess events can generate excessive logs:
        <ProcessAccess onmatch="include">
            <Rule groupRelation="and">
            <TargetImage condition="end with">\MsMpEng.exe</TargetImage>
            <SourceImage condition="end with">\WerFaultSecure.exe</SourceImage>
            </Rule>
        </ProcessAccess>
detection:
    selection:
        SourceImage|endswith: '\WerFaultSecure.exe'
        TargetImage|endswith: '\MsMpEng.exe'
        CallTrace|contains:
            - '\dbgcore.dll'
            - '\dbghelp.dll'
    condition: selection
falsepositives:
    - Legitimate Windows Error Reporting operations
level: high
regression_tests_path: regression_data/rules/windows/process_access/proc_access_win_werfaultsecure_msmpeng_access/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    SourceImage|endswith: '\WerFaultSecure.exe'
    TargetImage|endswith: '\MsMpEng.exe'
    CallTrace|contains:
        - '\dbgcore.dll'
        - '\dbghelp.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CallTracematch
  • \dbgcore.dll
  • \dbghelp.dll
field:"CallTrace" kind:match
SourceImageends_with
  • \WerFaultSecure.exe
field:"SourceImage" kind:ends_with value:"\WerFaultSecure.exe"
TargetImageends_with
  • \MsMpEng.exe corpus 2 (sigma 1, splunk 1)
field:"TargetImage" kind:ends_with value:"\MsMpEng.exe"

Suspicious Shim Database Patching Activity

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

Detects installation of new shim databases that try to patch sections of known processes for potential process injection or persistence.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Shim Database Patching Activity
id: bf344fea-d947-4ef4-9192-34d008315d3a
status: test
description: Detects installation of new shim databases that try to patch sections of known processes for potential process injection or persistence.
references:
    - https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/pillowmint-fin7s-monkey-thief/
    - https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-01
modified: 2023-12-06
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1546.011
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\'
        TargetObject|endswith:
            # Note: add other application to increase coverage
            - '\csrss.exe'
            - '\dllhost.exe'
            - '\explorer.exe'
            - '\RuntimeBroker.exe'
            - '\services.exe'
            - '\sihost.exe'
            - '\svchost.exe'
            - '\taskhostw.exe'
            - '\winlogon.exe'
            - '\WmiPrvSe.exe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\'
    TargetObject|endswith:
        - '\csrss.exe'
        - '\dllhost.exe'
        - '\explorer.exe'
        - '\RuntimeBroker.exe'
        - '\services.exe'
        - '\sihost.exe'
        - '\svchost.exe'
        - '\taskhostw.exe'
        - '\winlogon.exe'
        - '\WmiPrvSe.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • \RuntimeBroker.exe
  • \WmiPrvSe.exe
  • \csrss.exe
  • \dllhost.exe
  • \explorer.exe
  • \services.exe
  • \sihost.exe
  • \svchost.exe
  • \taskhostw.exe
  • \winlogon.exe
field:"TargetObject" kind:ends_with
TargetObjectmatch
  • \SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\ corpus 2 (sigma 2)
field:"TargetObject" kind:match value:"\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\"

Sysmon Discovery Via Default Driver Altitude Using Findstr.EXE

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

Detects usage of "findstr" with the argument "385201". Which could indicate potential discovery of an installed Sysinternals Sysmon service using the default driver altitude (even if the name is changed).

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Sysmon Discovery Via Default Driver Altitude Using Findstr.EXE
id: 37db85d1-b089-490a-a59a-c7b6f984f480
status: test
description: Detects usage of "findstr" with the argument "385201". Which could indicate potential discovery of an installed Sysinternals Sysmon service using the default driver altitude (even if the name is changed).
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1518.001/T1518.001.md#atomic-test-5---security-software-discovery---sysmon-service
author: frack113
date: 2021-12-16
modified: 2023-11-14
tags:
    - attack.discovery
    - attack.t1518.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\find.exe'
              - '\findstr.exe'
        - OriginalFileName:
              - 'FIND.EXE'
              - 'FINDSTR.EXE'
    selection_cli:
        CommandLine|contains: ' 385201' # Sysmon driver default altitude
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_findstr_sysmon_discovery_via_default_altitude/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\find.exe'
          - '\findstr.exe'
    - OriginalFileName:
          - 'FIND.EXE'
          - 'FINDSTR.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: ' 385201'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 385201
field:"CommandLine" kind:match value:" 385201"
Imageends_with
  • \find.exe corpus 7 (sigma 7)
  • \findstr.exe corpus 11 (sigma 11)
field:"Image" kind:ends_with
OriginalFileNameeq
  • FIND.EXE corpus 7 (sigma 7)
  • FINDSTR.EXE corpus 12 (sigma 12)
field:"OriginalFileName" kind:eq

Use Short Name Path in Command Line

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

Detects the use of short name paths (8.3 format) in command lines, which can be used to obfuscate paths or access restricted locations. Windows creates short 8.3 filenames (like PROGRA~1) for compatibility with MS-DOS-based or 16-bit Windows programs. When investigating, examine: - Commands using short paths to access sensitive directories or files - Web servers on Windows (especially Apache) where short filenames could bypass security controls - Correlation with other suspicious behaviors - baseline of short name usage in your environment and look for deviations

Known False Positives

  • Applications could use this notation occasionally which might generate some false positives. In that case investigate the parent and child process.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Use Short Name Path in Command Line
id: 349d891d-fef0-4fe4-bc53-eee623a15969
related:
    - id: a96970af-f126-420d-90e1-d37bf25e50e1
      type: similar
status: test
description: |
    Detects the use of short name paths (8.3 format) in command lines, which can be used to obfuscate paths or access restricted locations.
    Windows creates short 8.3 filenames (like PROGRA~1) for compatibility with MS-DOS-based or 16-bit Windows programs.
    When investigating, examine:
    - Commands using short paths to access sensitive directories or files
    - Web servers on Windows (especially Apache) where short filenames could bypass security controls
    - Correlation with other suspicious behaviors
    - baseline of short name usage in your environment and look for deviations
references:
    - https://www.acunetix.com/blog/articles/windows-short-8-3-filenames-web-security-problem/
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc959352(v=technet.10)
    - https://twitter.com/frack113/status/1555830623633375232
author: frack113, Nasreddine Bencherchali
date: 2022-08-07
modified: 2025-10-22
tags:
    - attack.stealth
    - attack.t1564.004
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - '~1\'
            - '~2\'
    filter_main_system_process:
        ParentImage:
            - 'C:\Windows\System32\Dism.exe'
            - 'C:\Windows\System32\cleanmgr.exe'
    filter_main_winget:
        - ParentImage|endswith: '\winget.exe'
        - ParentImage|contains: '\AppData\Local\Temp\WinGet\'
    filter_main_csc:
        ParentImage|startswith: 'C:\Windows\Microsoft.NET\Framework64\v'
        ParentImage|endswith: '\csc.exe'
    filter_main_installers:
        - Image|contains|all:
              - '\AppData\'
              - '\Temp\'
        - CommandLine|contains: '\AppData\Local\Temp\' # sometimes installers spawn other installers from temp folder
    filter_optional_dopus:
        ParentImage: 'C:\Program Files\GPSoftware\Directory Opus\dopus.exe'
    filter_optional_aurora:
        ParentImage|endswith:
            - '\aurora-agent-64.exe'
            - '\aurora-agent.exe'
    filter_optional_thor:
        ParentImage|endswith: '\thor\thor64.exe'
    filter_optional_git:
        CommandLine|contains:
            - 'C:\Program Files\Git\post-install.bat'
            - 'C:\Program Files\Git\cmd\scalar.exe'
    filter_optional_webex:
        - ParentImage|endswith: '\WebEx\webexhost.exe'
        - CommandLine|contains: '\appdata\local\webex\webex64\meetings\wbxreport.exe'
    filter_optional_veeam:
        ParentImage|endswith: '\veeam.backup.shell.exe'
    filter_optional_everything:
        ParentImage|endswith: '\Everything\Everything.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Applications could use this notation occasionally which might generate some false positives. In that case investigate the parent and child process.
level: medium
regression_tests_path: regression_data/rules-threat-hunting/windows/process_creation/proc_creation_win_susp_ntfs_short_name_path_use_cli/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:
    CommandLine|contains:
        - '~1\'
        - '~2\'

Stage 2: not filter_main_*

filter_main_system_process:
    ParentImage:
        - 'C:\Windows\System32\Dism.exe'
        - 'C:\Windows\System32\cleanmgr.exe'
filter_main_winget:
    - ParentImage|endswith: '\winget.exe'
    - ParentImage|contains: '\AppData\Local\Temp\WinGet\'
filter_main_csc:
    ParentImage|startswith: 'C:\Windows\Microsoft.NET\Framework64\v'
    ParentImage|endswith: '\csc.exe'
filter_main_installers:
    - Image|contains|all:
          - '\AppData\'
          - '\Temp\'
    - CommandLine|contains: '\AppData\Local\Temp\'

Stage 3: not filter_optional_*

filter_optional_dopus:
    ParentImage: 'C:\Program Files\GPSoftware\Directory Opus\dopus.exe'
filter_optional_aurora:
    ParentImage|endswith:
        - '\aurora-agent-64.exe'
        - '\aurora-agent.exe'
filter_optional_thor:
    ParentImage|endswith: '\thor\thor64.exe'
filter_optional_git:
    CommandLine|contains:
        - 'C:\Program Files\Git\post-install.bat'
        - 'C:\Program Files\Git\cmd\scalar.exe'
filter_optional_webex:
    - ParentImage|endswith: '\WebEx\webexhost.exe'
    - CommandLine|contains: '\appdata\local\webex\webex64\meetings\wbxreport.exe'
filter_optional_veeam:
    ParentImage|endswith: '\veeam.backup.shell.exe'
filter_optional_everything:
    ParentImage|endswith: '\Everything\Everything.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • ~1\
  • ~2\
field:"CommandLine" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagematch\AppData\excludes:Image field:"Image" value:"\AppData\"
Imagematch\Temp\excludes:Image field:"Image" value:"\Temp\"
ParentImageends_with\csc.exeexcludes:ParentImage field:"ParentImage" value:"\csc.exe"
ParentImagestarts_withC:\Windows\Microsoft.NET\Framework64\vexcludes:ParentImage field:"ParentImage" value:"C:\Windows\Microsoft.NET\Framework64\v"
CommandLinematch\AppData\Local\Temp\excludes:CommandLine field:"CommandLine" value:"\AppData\Local\Temp\"
ParentImageends_with\winget.exeexcludes:ParentImage field:"ParentImage" value:"\winget.exe"
ParentImageeqC:\Windows\System32\Dism.exeexcludes:ParentImage field:"ParentImage" value:"C:\Windows\System32\Dism.exe"
ParentImageeqC:\Windows\System32\cleanmgr.exeexcludes:ParentImage field:"ParentImage" value:"C:\Windows\System32\cleanmgr.exe"
ParentImagematch\AppData\Local\Temp\WinGet\excludes:ParentImage field:"ParentImage" value:"\AppData\Local\Temp\WinGet\"
CommandLinematchC:\Program Files\Git\cmd\scalar.exeexcludes:CommandLine field:"CommandLine" value:"C:\Program Files\Git\cmd\scalar.exe"
CommandLinematchC:\Program Files\Git\post-install.batexcludes:CommandLine field:"CommandLine" value:"C:\Program Files\Git\post-install.bat"
CommandLinematch\appdata\local\webex\webex64\meetings\wbxreport.exeexcludes:CommandLine field:"CommandLine" value:"\appdata\local\webex\webex64\meetings\wbxreport.exe"
ParentImageends_with\Everything\Everything.exeexcludes:ParentImage field:"ParentImage" value:"\Everything\Everything.exe"
ParentImageends_with\WebEx\webexhost.exeexcludes:ParentImage field:"ParentImage" value:"\WebEx\webexhost.exe"
ParentImageends_with\aurora-agent-64.exeexcludes:ParentImage field:"ParentImage" value:"\aurora-agent-64.exe"
ParentImageends_with\aurora-agent.exeexcludes:ParentImage field:"ParentImage" value:"\aurora-agent.exe"
ParentImageends_with\thor\thor64.exeexcludes:ParentImage field:"ParentImage" value:"\thor\thor64.exe"
ParentImageends_with\veeam.backup.shell.exeexcludes:ParentImage field:"ParentImage" value:"\veeam.backup.shell.exe"
ParentImageeqC:\Program Files\GPSoftware\Directory Opus\dopus.exeexcludes:ParentImage field:"ParentImage" value:"C:\Program Files\GPSoftware\Directory Opus\dopus.exe"

User creation via commandline

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

Detects scenarios where an attacker attempts to create a user via commandline.

Known False Positives

  • Pentest
  • Administrator activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: User creation via commandline
description: Detects scenarios where an attacker attempts to create a user via commandline.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1136-Create%20account
- https://blogs.jpcert.or.jp/en/2016/01/windows-commands-abused-by-attackers.html
- https://thedfirreport.com/2021/11/15/exchange-exploit-leads-to-domain-wide-ransomware/
- https://attack.mitre.org/software/S0039/
- https://regex101.com/r/S6vTNM/1
tags:
- attack.persistence
- attack.t1136.001
- attack.t1136.002
author: mdecrevoisier
logsource:
  product: windows
  category: process_creation
detection:
  selection: # Full command example: 'net user <username> <password> /ADD'
    NewProcessName|endswith:
      - \net1.exe
      - \net.exe
    CommandLine|contains|all:
      - net
      - user
      - add
  condition: selection
falsepositives:
- Pentest
- Administrator activity
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith:
    - \net1.exe
    - \net.exe
  CommandLine|contains|all:
    - net
    - user
    - add

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • add corpus 30 (sigma 26, splunk 4)
  • net corpus 7 (sigma 7)
  • user corpus 15 (sigma 11, splunk 4)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
field:"Image" kind:ends_with

Windows Default Domain GPO Modification via GPME

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

Detects the use of the Group Policy Management Editor (GPME) to modify Default Domain or Default Domain Controllers Group Policy Objects (GPOs). Adversaries may leverage GPME to make stealthy changes in these default GPOs to deploy malicious GPOs configurations across the domain without raising suspicion.

Known False Positives

  • Legitimate use of GPME to modify GPOs

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Windows Default Domain GPO Modification via GPME
id: dcff7e85-d01f-4eb5-badd-84e2e6be8294
related:
    - id: e5ac86dd-2da1-454b-be74-05d26c769d7d
      type: similar
status: experimental
description: |
    Detects the use of the Group Policy Management Editor (GPME) to modify Default Domain or Default Domain Controllers Group Policy Objects (GPOs).
    Adversaries may leverage GPME to make stealthy changes in these default GPOs to deploy malicious GPOs configurations across the domain without raising suspicion.
references:
    - https://www.trendmicro.com/en_us/research/25/i/unmasking-the-gentlemen-ransomware.html
    - https://adsecurity.org/?p=3377
    - https://sdmsoftware.com/general-stuff/launching-the-new-gp-management-editor-from-the-command-line/
    - https://www.pentestpartners.com/security-blog/living-off-the-land-gpo-style/
author: TropChaud
date: 2025-11-22
tags:
    - attack.privilege-escalation
    - attack.defense-impairment
    - attack.t1484.001
logsource:
    product: windows
    category: process_creation
detection:
    # "C:\Windows\System32\gpme.msc" /s /gpobject:"LDAP://<REDACTED>/cn<REDACTED>,cnpolicies,cnsystem,DC<REDACTED>,DClocal"
    selection_mmc:
        - Image|endswith: '\mmc.exe'
        - OriginalFileName: 'MMC.exe'
    selection_gpme:
        CommandLine|contains|all:
            - 'gpme.msc'
            - 'gpobject:'
    selection_default_gpos:
        CommandLine|contains:
            - '31B2F340-016D-11D2-945F-00C04FB984F9' # Default Domain Policy GUID
            - '6AC1786C-016F-11D2-945F-00C04FB984F9' # Default Domain Controllers Policy GUID
    condition: all of selection_*
falsepositives:
    - Legitimate use of GPME to modify GPOs
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_mmc

selection_mmc:
    - Image|endswith: '\mmc.exe'
    - OriginalFileName: 'MMC.exe'

Stage 2: selection_gpme

selection_gpme:
    CommandLine|contains|all:
        - 'gpme.msc'
        - 'gpobject:'

Stage 3: selection_default_gpos

selection_default_gpos:
    CommandLine|contains:
        - '31B2F340-016D-11D2-945F-00C04FB984F9'
        - '6AC1786C-016F-11D2-945F-00C04FB984F9'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 31B2F340-016D-11D2-945F-00C04FB984F9 corpus 2 (sigma 1, splunk 1)
  • 6AC1786C-016F-11D2-945F-00C04FB984F9 corpus 2 (sigma 1, splunk 1)
  • gpme.msc corpus 2 (sigma 1, splunk 1)
  • gpobject:
field:"CommandLine" kind:match
Imageends_with
  • \mmc.exe corpus 6 (sigma 5, splunk 1)
field:"Image" kind:ends_with value:"\mmc.exe"
OriginalFileNameeq
  • MMC.exe corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"MMC.exe"

WordPress Wp2shell Webshell Plugin Access

#
Status
experimental
Severity
critical
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects post-exploitation access to the wp2shell webshell plugin dropped after successful exploitation of CVE-2026-63030 and CVE-2026-60137. After the pre-auth SQLi-to-admin bridge is established, the attacker can upload a malicious plugin (wp2shell) to the target WordPress instance. At this phase, the attacker accesses the webshell for command execution and persistence.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Rule Body

title: WordPress Wp2shell Webshell Plugin Access
id: c9e6f412-3d50-4f7e-bf94-5b6c7d8e9f0a
status: experimental
description: |
    Detects post-exploitation access to the wp2shell webshell plugin dropped after successful
    exploitation of CVE-2026-63030 and CVE-2026-60137. After the pre-auth SQLi-to-admin bridge is established,
    the attacker can upload a malicious plugin (wp2shell) to the target WordPress instance.
    At this phase, the attacker accesses the webshell for command execution and persistence.
references:
    - https://github.com/Icex0/wp2shell-poc
    - https://slcyber.io/research-center/wp2shell-pre-authentication-rce-in-wordpress-core/
    - https://wordpress.org/news/2026/07/wordpress-7-0-2-release/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2026-07-19
tags:
    - attack.execution
    - attack.persistence
    - attack.t1505.003
    - cve.2026-63030
    - cve.2026-60137
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|contains: '/wp-content/plugins/wp2shell_'
    filter_optional_null_query:
        cs-uri-query: null
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    cs-uri-stem|contains: '/wp-content/plugins/wp2shell_'

Stage 2: not filter_optional_null_query

filter_optional_null_query:
    cs-uri-query: null

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-uri-stemmatch
  • /wp-content/plugins/wp2shell_
field:"cs-uri-stem" kind:match value:"/wp-content/plugins/wp2shell_"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
cs-uri-queryis_null(no value, null check)excludes:cs-uri-query

Back to all Sigma rules