Detection rules › Sigma

Sigma rules: 2l

RuleSeverity
.RDP File Created By Uncommon Applicationhigh
Azure Firewall Rule Configuration Modified or Deletedmedium
Azure Network Firewall Policy Modified or Deletedmedium
CodeIntegrity - Disallowed File For Protected Processes Has Been Blockedhigh
End User Consentlow
Execution Of Non-Existing Filehigh
Important Windows Eventlog Clearedhigh
Invoke-Obfuscation Via Use Clip - Securityhigh
Local Network Connection Initiated By Script Interpretermedium
Microsoft Defender threat exclusion added (native)high
MSMQ Corrupted Packet Encounteredhigh
NodeJS Execution of JavaScript Filelow
Pikabot Fake DLL Extension Execution Via Rundll32.EXEhigh
PktMon.EXE Executionmedium
Potential CVE-2023-2283 Exploitationmedium
Potential Persistence Via Powershell Search Order Hijacking - Taskhigh
Potential Privilege Escalation Using Symlink Between Osk and Cmdhigh
Potential Signing Bypass Via Windows Developer Featureshigh
Powershell DNSExfiltrationhigh
PowerShell Remote Session Creationmedium
PowerShell Script With File Upload Capabilitieslow
PSExec and WMI Process Creations Blockhigh
PUA - Mouse Lock Executionmedium
Relevant Anti-Virus Signature Keywords In Application Loghigh
RestrictedAdminMode Registry Value Tampering - ProcCreationhigh
Service Registry Permissions Weakness Checkmedium
Small Sieve Malware CommandLine Indicatorhigh
Suspicious Active Directory DPAPI attributes accessed (Mimikatz, DCSync, RiskySPN)informational
Suspicious Execution Location Of Wermgr.EXEhigh
Suspicious Execution Of Renamed Sysinternals Tools - Registryhigh
Suspicious Invocation of Shell via Rsynchigh
Suspicious Key Manager Accesshigh
Suspicious Scheduled Task Creation Involving Temp Folderhigh
Uncommon Process Access Rights For Target Imagelow
VMMap Unsigned Dbghelp.DLL Potential Sideloadinghigh

.RDP File Created By Uncommon Application

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

Detects creation of a file with an ".rdp" extension by an application that doesn't commonly create such files.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: .RDP File Created By Uncommon Application
id: fccfb43e-09a7-4bd2-8b37-a5a7df33386d
related:
    - id: f748c45a-f8d3-4e6f-b617-fe176f695b8f
      type: derived
status: test
description: |
    Detects creation of a file with an ".rdp" extension by an application that doesn't commonly create such files.
references:
    - https://www.blackhillsinfosec.com/rogue-rdp-revisiting-initial-access-methods/
    - https://web.archive.org/web/20230726144748/https://blog.thickmints.dev/mintsights/detecting-rogue-rdp/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-18
modified: 2024-11-01
tags:
    - attack.stealth
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|endswith: '.rdp'
        Image|endswith:
            # Covers browsers
            - '\brave.exe'
            - '\CCleaner Browser\Application\CCleanerBrowser.exe'
            - '\chromium.exe'
            - '\firefox.exe'
            - '\Google\Chrome\Application\chrome.exe'
            - '\iexplore.exe'
            - '\microsoftedge.exe'
            - '\msedge.exe'
            - '\Opera.exe'
            - '\Vivaldi.exe'
            - '\Whale.exe'
            # Covers email clients
            - '\olk.exe' # Outlook
            - '\Outlook.exe'
            - '\RuntimeBroker.exe' # If the windows mail client is used
            - '\Thunderbird.exe'
            # Covers chat applications
            - '\Discord.exe' # Should open the browser for download, but just in case.
            - '\Keybase.exe'
            - '\msteams.exe'
            - '\Slack.exe'
            - '\teams.exe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: '.rdp'
    Image|endswith:
        - '\brave.exe'
        - '\CCleaner Browser\Application\CCleanerBrowser.exe'
        - '\chromium.exe'
        - '\firefox.exe'
        - '\Google\Chrome\Application\chrome.exe'
        - '\iexplore.exe'
        - '\microsoftedge.exe'
        - '\msedge.exe'
        - '\Opera.exe'
        - '\Vivaldi.exe'
        - '\Whale.exe'
        - '\olk.exe'
        - '\Outlook.exe'
        - '\RuntimeBroker.exe'
        - '\Thunderbird.exe'
        - '\Discord.exe'
        - '\Keybase.exe'
        - '\msteams.exe'
        - '\Slack.exe'
        - '\teams.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \CCleaner Browser\Application\CCleanerBrowser.exe
  • \Discord.exe corpus 2 (sigma 2)
  • \Google\Chrome\Application\chrome.exe
  • \Keybase.exe corpus 2 (sigma 2)
  • \Opera.exe corpus 11 (sigma 11)
  • \Outlook.exe corpus 13 (sigma 13)
  • \RuntimeBroker.exe corpus 4 (sigma 4)
  • \Slack.exe corpus 2 (sigma 2)
  • \Thunderbird.exe corpus 2 (sigma 2)
  • \Vivaldi.exe corpus 11 (sigma 11)
  • \Whale.exe corpus 3 (sigma 3)
  • \brave.exe corpus 11 (sigma 11)
  • \chromium.exe
  • \firefox.exe corpus 6 (sigma 6)
  • \iexplore.exe corpus 4 (sigma 4)
  • \microsoftedge.exe corpus 3 (sigma 3)
  • \msedge.exe corpus 14 (sigma 14)
  • \msteams.exe corpus 2 (sigma 2)
  • \olk.exe
  • \teams.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with
TargetFilenameends_with
  • .rdp corpus 2 (sigma 2)
field:"TargetFilename" kind:ends_with value:".rdp"

Azure Firewall Rule Configuration Modified or Deleted

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

Identifies when a Firewall Rule Configuration is Modified or Deleted.

Known False Positives

  • Firewall Rule Configuration being modified or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
  • Firewall Rule Configuration modified or deleted 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
ImpactNo specific technique

Telemetry Coverage

Rule Body

title: Azure Firewall Rule Configuration Modified or Deleted
id: 2a7d64cf-81fa-4daf-ab1b-ab80b789c067
status: test
description: Identifies when a Firewall Rule Configuration is Modified or Deleted.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
author: Austin Songer @austinsonger
date: 2021-08-08
modified: 2022-08-23
tags:
    - attack.impact
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULECOLLECTIONGROUPS/WRITE
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULECOLLECTIONGROUPS/DELETE
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULEGROUPS/WRITE
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULEGROUPS/DELETE
    condition: selection
falsepositives:
    - Firewall Rule Configuration being modified or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
    - Firewall Rule Configuration modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operationName:
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULECOLLECTIONGROUPS/WRITE
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULECOLLECTIONGROUPS/DELETE
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULEGROUPS/WRITE
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/RULEGROUPS/DELETE

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameeq
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/RULECOLLECTIONGROUPS/DELETE
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/RULECOLLECTIONGROUPS/WRITE
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/RULEGROUPS/DELETE
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/RULEGROUPS/WRITE
field:"operationName" kind:eq

Azure Network Firewall Policy Modified or Deleted

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

Identifies when a Firewall Policy is Modified or Deleted.

Known False Positives

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

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Azure Network Firewall Policy Modified or Deleted
id: 83c17918-746e-4bd9-920b-8e098bf88c23
status: test
description: Identifies when a Firewall Policy is Modified or Deleted.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
author: Austin Songer @austinsonger
date: 2021-09-02
modified: 2022-08-23
tags:
    - attack.impact
    - attack.defense-impairment
    - attack.t1686.001
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/WRITE
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/JOIN/ACTION
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/CERTIFICATES/ACTION
            - MICROSOFT.NETWORK/FIREWALLPOLICIES/DELETE
    condition: selection
falsepositives:
    - Firewall Policy being modified or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
    - Firewall Policy modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operationName:
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/WRITE
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/JOIN/ACTION
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/CERTIFICATES/ACTION
        - MICROSOFT.NETWORK/FIREWALLPOLICIES/DELETE

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameeq
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/CERTIFICATES/ACTION
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/DELETE
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/JOIN/ACTION
  • MICROSOFT.NETWORK/FIREWALLPOLICIES/WRITE
field:"operationName" kind:eq

CodeIntegrity - Disallowed File For Protected Processes Has Been Blocked

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

Detects block events for files that are disallowed by code integrity for protected processes

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Privilege EscalationNo specific technique

Telemetry Coverage

Rule Body

title: CodeIntegrity - Disallowed File For Protected Processes Has Been Blocked
id: 5daf11c3-022b-4969-adb9-365e6c078c7c
status: test
description: Detects block events for files that are disallowed by code integrity for protected processes
references:
    - https://learn.microsoft.com/en-us/windows/security/application-security/application-control/windows-defender-application-control/operations/event-id-explanations
    - https://learn.microsoft.com/en-us/windows/security/application-security/application-control/windows-defender-application-control/operations/event-tag-explanations
    - Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-06-06
tags:
    - attack.privilege-escalation
logsource:
    product: windows
    service: codeintegrity-operational
detection:
    selection:
        EventID: 3104 # Windows blocked file %2 which has been disallowed for protected processes.
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 3104

End User Consent

#

Execution Of Non-Existing File

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

Detects process creation events where the Image field lacks an absolute path, which occurs when the backing file no longer exists on disk at the time of logging - commonly caused by Process Ghosting or other unorthodox process creation techniques.

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: Execution Of Non-Existing File
id: 71158e3f-df67-472b-930e-7d287acaa3e1
status: test
description: |
    Detects process creation events where the Image field lacks an absolute path,
    which occurs when the backing file no longer exists on disk at the time of
    logging - commonly caused by Process Ghosting or other unorthodox process creation techniques.
references:
    - https://pentestlaboratories.com/2021/12/08/process-ghosting/
    - https://www.elastic.co/blog/process-ghosting-a-new-executable-image-tampering-attack
author: Max Altgelt (Nextron Systems)
date: 2021-12-09
modified: 2026-07-05
tags:
    - attack.stealth
    - attack.privilege-escalation
    - attack.t1055
logsource:
    category: process_creation
    product: windows
detection:
    filter_main_image_absolute_path:
        Image|contains: '\'
    filter_optional_null:
        Image: null
    filter_optional_empty:
        Image:
            - '-'
            - ''
    filter_optional_4688:
        - Image:
              - 'MemCompression'
              - 'Registry'
              - 'System'
              - 'vmmem'
              - 'vmmemWSL'
        - CommandLine:
              - 'MemCompression'
              - 'Registry'
              - 'vmmem'
              - 'vmmemWSL'
    condition: not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: not filter_main_image_absolute_path

filter_main_image_absolute_path:
    Image|contains: '\'

Stage 2: not filter_optional_*

filter_optional_null:
    Image: null
filter_optional_empty:
    Image:
        - '-'
        - ''
filter_optional_4688:
    - Image:
          - 'MemCompression'
          - 'Registry'
          - 'System'
          - 'vmmem'
          - 'vmmemWSL'
    - CommandLine:
          - 'MemCompression'
          - 'Registry'
          - 'vmmem'
          - 'vmmemWSL'

Exclusions

The rule actively suppresses these predicates.

Important Windows Eventlog Cleared

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

Detects the clearing of one of the Windows Core Eventlogs. e.g. caused by "wevtutil cl" command execution

Known False Positives

  • Rollout of log collection agents (the setup routine often includes a reset of the local Eventlog)
  • System provisioning (system reset before the golden image creation)

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Important Windows Eventlog Cleared
id: 100ef69e-3327-481c-8e5c-6d80d9507556
related:
    - id: a62b37e0-45d3-48d9-a517-90c1a1b0186b
      type: derived
status: test
description: Detects the clearing of one of the Windows Core Eventlogs. e.g. caused by "wevtutil cl" command execution
references:
    - https://twitter.com/deviouspolack/status/832535435960209408
    - https://www.hybrid-analysis.com/sample/027cc450ef5f8c5f653329641ec1fed91f694e0d229928963b30f6b0d7d3a745?environmentId=100
author: Florian Roth (Nextron Systems), Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
date: 2022-05-17
modified: 2023-11-15
tags:
    - attack.defense-impairment
    - attack.t1685.005
    - car.2016-04-002
logsource:
    product: windows
    service: system
detection:
    selection:
        EventID: 104
        Provider_Name: 'Microsoft-Windows-Eventlog'
        Channel:
            - 'Microsoft-Windows-PowerShell/Operational'
            - 'Microsoft-Windows-Sysmon/Operational'
            - 'PowerShellCore/Operational'
            - 'Security'
            - 'System'
            - 'Windows PowerShell'
    condition: selection
falsepositives:
    - Rollout of log collection agents (the setup routine often includes a reset of the local Eventlog)
    - System provisioning (system reset before the golden image creation)
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 104
    Provider_Name: 'Microsoft-Windows-Eventlog'
    Channel:
        - 'Microsoft-Windows-PowerShell/Operational'
        - 'Microsoft-Windows-Sysmon/Operational'
        - 'PowerShellCore/Operational'
        - 'Security'
        - 'System'
        - 'Windows PowerShell'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Provider_Nameeq
  • Microsoft-Windows-Eventlog corpus 3 (sigma 3)
field:"Provider_Name" kind:eq value:"Microsoft-Windows-Eventlog"

Invoke-Obfuscation Via Use Clip - Security

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

Detects Obfuscated Powershell via use Clip.exe in Scripts

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation Via Use Clip - Security
id: 1a0a2ff1-611b-4dac-8216-8a7b47c618a6
related:
    - id: 63e3365d-4824-42d8-8b82-e56810fefa0c
      type: derived
status: test
description: Detects Obfuscated Powershell via use Clip.exe in Scripts
references:
    - https://github.com/SigmaHQ/sigma/issues/1009 # (Task29)
author: Nikita Nazarov, oscd.community
date: 2020-10-09
modified: 2022-11-29
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    selection:
        EventID: 4697
        ServiceFileName|contains: '(Clipboard|i'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4697
    ServiceFileName|contains: '(Clipboard|i'

Indicators

These rows show field, operator, and value matches.

Local Network Connection Initiated By Script Interpreter

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

Detects a script interpreter (Wscript/Cscript) initiating a local network connection to download or execute a script hosted on a shared folder.

Known False Positives

  • Legitimate scripts

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Local Network Connection Initiated By Script Interpreter
id: 08249dc0-a28d-4555-8ba5-9255a198e08c
related:
    - id: 992a6cae-db6a-43c8-9cec-76d7195c96fc
      type: derived
status: test
description: |
    Detects a script interpreter (Wscript/Cscript) initiating a local network connection to download or execute a script hosted on a shared folder.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/28d190330fe44de6ff4767fc400cc10fa7cd6540/atomics/T1105/T1105.md
author: frack113
date: 2022-08-28
modified: 2024-05-31
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        Image|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
        # Note: This list is added to avoid duplicate alerting with 992a6cae-db6a-43c8-9cec-76d7195c96fc
        DestinationIp|cidr:
            - '127.0.0.0/8'
            - '10.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '169.254.0.0/16'
            - '::1/128'  # IPv6 loopback
            - 'fe80::/10'  # IPv6 link-local addresses
            - 'fc00::/7'  # IPv6 private addresses
    condition: selection
falsepositives:
    - Legitimate scripts
level: medium
regression_tests_path: regression_data/rules/windows/network_connection/net_connection_win_wscript_cscript_local_connection/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Initiated: 'true'
    Image|endswith:
        - '\wscript.exe'
        - '\cscript.exe'
    DestinationIp|cidr:
        - '127.0.0.0/8'
        - '10.0.0.0/8'
        - '172.16.0.0/12'
        - '192.168.0.0/16'
        - '169.254.0.0/16'
        - '::1/128'
        - 'fe80::/10'
        - 'fc00::/7'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationIpcidr_match
  • 10.0.0.0/8 corpus 8 (kusto 5, elastic 2, sigma 1)
  • 127.0.0.0/8 corpus 9 (kusto 5, sigma 2, elastic 2)
  • 169.254.0.0/16 corpus 8 (kusto 5, elastic 2, sigma 1)
  • 172.16.0.0/12 corpus 8 (kusto 5, elastic 2, sigma 1)
  • 192.168.0.0/16 corpus 8 (kusto 5, elastic 2, sigma 1)
  • ::1/128 corpus 3 (sigma 2, elastic 1)
  • fc00::/7 corpus 2 (sigma 1, elastic 1)
  • fe80::/10 corpus 2 (sigma 1, elastic 1)
field:"dest_ip" kind:cidr_match
Imageends_with
  • \cscript.exe corpus 72 (sigma 72)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Microsoft Defender threat exclusion added (native)

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

Detects scenarios where a threat exclusion is added to the antivirus in order to bypass its detection capacities

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Microsoft Defender threat exclusion added (native)
description: Detects scenarios where a threat exclusion is added to the antivirus in order to bypass its detection capacities
references:
- https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-antivirus/troubleshoot-microsoft-defender-antivirus
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1562.001-Impair%20Defenses-Disable%20or%20Modify%20tool
tags:
- attack.defense_evasion
- attack.t1562.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: windefend
detection:
  selection:
    EventID: 5007
    New Value|startswith: 'HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\'
  condition: selection
falsepositives:
- Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 5007
  New Value|startswith: 'HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
New Valuestarts_with
  • HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\
field:"New Value" kind:starts_with value:"HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\"

MSMQ Corrupted Packet Encountered

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

Detects corrupted packets sent to the MSMQ service. Could potentially be a sign of CVE-2023-21554 exploitation

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

Rule Body

title: MSMQ Corrupted Packet Encountered
id: ae94b10d-fee9-4767-82bb-439b309d5a27
status: test
description: Detects corrupted packets sent to the MSMQ service. Could potentially be a sign of CVE-2023-21554 exploitation
references:
    - https://www.randori.com/blog/vulnerability-analysis-queuejumper-cve-2023-21554/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-04-21
tags:
    - attack.execution
    - detection.emerging-threats
logsource:
    product: windows
    service: application
detection:
    selection:
        Provider_Name: 'MSMQ'
        EventID: 2027
        Level: 2
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name: 'MSMQ'
    EventID: 2027
    Level: 2

Indicators

These rows show field, operator, and value matches.

NodeJS Execution of JavaScript File

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

Detects execution of JavaScript or JSC files using NodeJs binary node.exe, that could be potentially suspicious. Node.js is a popular open-source JavaScript runtime that runs code outside browsers and is widely used for both frontend and backend development. Adversaries have been observed abusing Node.js to disguise malware as legitimate processes, evade security defenses, and maintain persistence within target systems. Because Node.js is commonly used, this rule may generate false positives in some environments. However, if such activity is unusual in your environment, it is highly suspicious and warrants immediate investigation.

Known False Positives

  • Legitimate use of node.exe to execute JavaScript or JSC files on your environment

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: NodeJS Execution of JavaScript File
id: ba3874b9-0fae-465f-836c-eb5d071a1789
status: experimental
description: |
    Detects execution of JavaScript or JSC files using NodeJs binary node.exe, that could be potentially suspicious.
    Node.js is a popular open-source JavaScript runtime that runs code outside browsers and is widely used for both frontend and backend development.
    Adversaries have been observed abusing Node.js to disguise malware as legitimate processes, evade security defenses, and maintain persistence within target systems.
    Because Node.js is commonly used, this rule may generate false positives in some environments. However, if such activity is unusual in your environment, it is highly suspicious and warrants immediate investigation.
references:
    - https://www.microsoft.com/en-us/security/blog/2025/04/15/threat-actors-misuse-node-js-to-deliver-malware-and-other-malicious-payloads/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-04-21
tags:
    - attack.execution
    - attack.t1059.007
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\node.exe'
        - OriginalFileName: 'node.exe'
        - Product: 'Node.js'
    selection_cmd:
        CommandLine|contains: '.js'
    condition: all of selection_*
falsepositives:
    - Legitimate use of node.exe to execute JavaScript or JSC files on your environment
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\node.exe'
    - OriginalFileName: 'node.exe'
    - Product: 'Node.js'

Stage 2: selection_cmd

selection_cmd:
    CommandLine|contains: '.js'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .js corpus 9 (sigma 9)
field:"CommandLine" kind:match value:".js"
Imageends_with
  • \node.exe corpus 6 (sigma 6)
field:"Image" kind:ends_with value:"\node.exe"
OriginalFileNameeq
  • node.exe corpus 4 (sigma 3, elastic 1)
field:"OriginalFileName" kind:eq value:"node.exe"
Producteq
  • Node.js corpus 2 (sigma 2)
field:"Product" kind:eq value:"Node.js"

Pikabot Fake DLL Extension Execution Via Rundll32.EXE

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

Detects specific process tree behavior linked to "rundll32" executions, wherein the associated DLL lacks a common ".dll" extension, often signaling potential Pikabot activity.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique
StealthNo specific technique

Telemetry Coverage

Rule Body

title: Pikabot Fake DLL Extension Execution Via Rundll32.EXE
id: 1bf0ba65-9a39-42a2-9271-31d31bf2f0bf
status: test
description: |
    Detects specific process tree behavior linked to "rundll32" executions, wherein the associated DLL lacks a common ".dll" extension, often signaling potential Pikabot activity.
references:
    - https://github.com/pr0xylife/Pikabot
    - https://tria.ge/231004-tp8k6sch9t/behavioral2
    - https://www.virustotal.com/gui/file/56db0c4842a63234ab7fe2dda6eeb63aa7bb68f9a456985b519122f74dea37e2/behavior
    - https://tria.ge/231212-r1bpgaefar/behavioral2
author: Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
date: 2024-01-26
tags:
    - attack.execution
    - detection.emerging-threats
    - attack.stealth
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        ParentImage|endswith:
            - '\cmd.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regsvr32.exe'
            - '\wscript.exe'
        Image|endswith: '\rundll32.exe'
        CommandLine|contains:
            - ':\ProgramData\'
            - ':\Users\Public\'
            - ':\Windows\Installer\'
            - '\AppData\Local\Temp\'
            - '\AppData\Roaming\'
    filter_main_known_extension:
        - CommandLine|contains:
              - '.cpl '
              - '.cpl,'
              - '.dll '
              - '.dll,'
              - '.inf '
              - '.inf,'
        - CommandLine|endswith:
              - '.cpl'
              - '.cpl"'
              - '.dll'
              - '.dll"'
              - '.inf'
              - '.inf"'
              - ".cpl'"
              - ".dll'"
              - ".inf'"
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

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.exe'
        - '\pwsh.exe'
        - '\regsvr32.exe'
        - '\wscript.exe'
    Image|endswith: '\rundll32.exe'
    CommandLine|contains:
        - ':\ProgramData\'
        - ':\Users\Public\'
        - ':\Windows\Installer\'
        - '\AppData\Local\Temp\'
        - '\AppData\Roaming\'

Stage 2: not filter_main_known_extension

filter_main_known_extension:
    - CommandLine|contains:
          - '.cpl '
          - '.cpl,'
          - '.dll '
          - '.dll,'
          - '.inf '
          - '.inf,'
    - CommandLine|endswith:
          - '.cpl'
          - '.cpl"'
          - '.dll'
          - '.dll"'
          - '.inf'
          - '.inf"'
          - ".cpl'"
          - ".dll'"
          - ".inf'"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • :\ProgramData\ corpus 11 (sigma 9, elastic 2)
  • :\Users\Public\ corpus 20 (sigma 18, elastic 2)
  • :\Windows\Installer\
  • \AppData\Local\Temp\ corpus 28 (sigma 26, elastic 2)
  • \AppData\Roaming\ corpus 17 (sigma 16, elastic 1)
field:"CommandLine" kind:match
Imageends_with
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with value:"\rundll32.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)
  • \pwsh.exe corpus 21 (sigma 21)
  • \regsvr32.exe corpus 11 (sigma 11)
  • \wscript.exe corpus 19 (sigma 19)
field:"ParentImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

PktMon.EXE Execution

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

Detects execution of PktMon, a tool that captures network packets.

Known False Positives

  • Legitimate use

MITRE ATT&CK Coverage

TacticTechniques
Credential Access
Discovery

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: PktMon.EXE Execution
id: f956c7c1-0f60-4bc5-b7d7-b39ab3c08908
status: test
description: Detects execution of PktMon, a tool that captures network packets.
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Pktmon/
author: frack113
date: 2022-03-17
modified: 2023-06-23
tags:
    - attack.discovery
    - attack.credential-access
    - attack.t1040
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\pktmon.exe'
        - OriginalFileName: 'PktMon.exe'
    condition: selection
falsepositives:
    - Legitimate use
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_pktmon_execution/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|endswith: '\pktmon.exe'
    - OriginalFileName: 'PktMon.exe'

Indicators

These rows show field, operator, and value matches.

Potential CVE-2023-2283 Exploitation

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

Detects potential exploitation attempt of CVE-2023-2283 an authentication bypass in libSSH. The exploitation method causes an error message stating that keys for curve25519 could not be generated. It is an error message that is a sign of an exploitation attempt. It is not a sign of a successful exploitation.

Known False Positives

  • Errors with the initialization or generation of the X25519 elliptic curve keys may generate the same error message

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Potential CVE-2023-2283 Exploitation
id: 8b244735-5833-4517-a45b-28d8c63924c0
status: test
description: Detects potential exploitation attempt of CVE-2023-2283 an authentication bypass in libSSH. The exploitation method causes an error message stating that keys for curve25519 could not be generated. It is an error message that is a sign of an exploitation attempt. It is not a sign of a successful exploitation.
references:
    - https://twitter.com/kevin_backhouse/status/1666459308941357056?s=20
    - https://git.libssh.org/projects/libssh.git/tree/src/curve25519.c#n420
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2283
    - https://www.blumira.com/cve-2023-2283/
    - https://github.com/github/securitylab/tree/1786eaae7f90d87ce633c46bbaa0691d2f9bf449/SecurityExploits/libssh/pubkey-auth-bypass-CVE-2023-2283
author: Florian Roth (Nextron Systems)
date: 2023-06-09
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2023-2283
    - detection.emerging-threats
logsource:
    product: linux
    service: sshd
detection:
    keywords:
        - 'Failed to generate curve25519 keys'
    condition: keywords
falsepositives:
    - Errors with the initialization or generation of the X25519 elliptic curve keys may generate the same error message
level: medium

Stages and Predicates

Stage 0: condition

keywords

Stage 1: keywords

keywords:
    - 'Failed to generate curve25519 keys'

Potential Persistence Via Powershell Search Order Hijacking - Task

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

Detects suspicious powershell execution via a schedule task where the command ends with an suspicious flags to hide the powershell instance instead of executeing scripts or commands. This could be a sign of persistence via PowerShell "Get-Variable" technique as seen being used in Colibri Loader

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Persistence Via Powershell Search Order Hijacking - Task
id: b66474aa-bd92-4333-a16c-298155b120df
related:
    - id: 6e8811ee-90ba-441e-8486-5653e68b2299
      type: similar
status: test
description: Detects suspicious powershell execution via a schedule task where the command ends with an suspicious flags to hide the powershell instance instead of executeing scripts or commands. This could be a sign of persistence via PowerShell "Get-Variable" technique as seen being used in Colibri Loader
references:
    - https://blog.malwarebytes.com/threat-intelligence/2022/04/colibri-loader-combines-task-scheduler-and-powershell-in-clever-persistence-technique/
author: pH-T (Nextron Systems), Florian Roth (Nextron Systems)
date: 2022-04-08
modified: 2023-02-03
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.persistence
    - attack.t1053.005
    - attack.t1059.001
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        ParentImage: 'C:\WINDOWS\System32\svchost.exe'
        ParentCommandLine|contains|all:
            - '-k netsvcs'
            - '-s Schedule'
        CommandLine|endswith:
            - ' -windowstyle hidden'
            - ' -w hidden'
            - ' -ep bypass'
            - ' -noni'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage: 'C:\WINDOWS\System32\svchost.exe'
    ParentCommandLine|contains|all:
        - '-k netsvcs'
        - '-s Schedule'
    CommandLine|endswith:
        - ' -windowstyle hidden'
        - ' -w hidden'
        - ' -ep bypass'
        - ' -noni'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • -ep bypass
  • -noni
  • -w hidden
  • -windowstyle hidden
field:"CommandLine" kind:ends_with
ParentCommandLinematch
  • -k netsvcs
  • -s Schedule
field:"ParentCommandLine" kind:match
ParentImageeq
  • C:\WINDOWS\System32\svchost.exe corpus 5 (sigma 3, elastic 2)
field:"ParentImage" kind:eq value:"C:\WINDOWS\System32\svchost.exe"

Potential Privilege Escalation Using Symlink Between Osk and Cmd

#

Potential Signing Bypass Via Windows Developer Features

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

Detects when a user enable developer features such as "Developer Mode" or "Application Sideloading". Which allows the user to install untrusted packages.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Signing Bypass Via Windows Developer Features
id: a383dec4-deec-4e6e-913b-ed9249670848
related:
    - id: b110ebaf-697f-4da1-afd5-b536fa27a2c1
      type: similar
status: test
description: Detects when a user enable developer features such as "Developer Mode" or "Application Sideloading". Which allows the user to install untrusted packages.
references:
    - Internal Research
    - https://www.sentinelone.com/labs/inside-malicious-windows-apps-for-malware-deployment/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-11
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\SystemSettingsAdminFlows.exe'
        - OriginalFileName: 'SystemSettingsAdminFlows.EXE'
    selection_flag:
        CommandLine|contains: 'TurnOnDeveloperFeatures'
    selection_options:
        CommandLine|contains:
            - 'DeveloperUnlock'
            - 'EnableSideloading'
    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: '\SystemSettingsAdminFlows.exe'
    - OriginalFileName: 'SystemSettingsAdminFlows.EXE'

Stage 2: selection_flag

selection_flag:
    CommandLine|contains: 'TurnOnDeveloperFeatures'

Stage 3: selection_options

selection_options:
    CommandLine|contains:
        - 'DeveloperUnlock'
        - 'EnableSideloading'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • DeveloperUnlock
  • EnableSideloading
  • TurnOnDeveloperFeatures
field:"CommandLine" kind:match
Imageends_with
  • \SystemSettingsAdminFlows.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"\SystemSettingsAdminFlows.exe"
OriginalFileNameeq
  • SystemSettingsAdminFlows.EXE corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"SystemSettingsAdminFlows.EXE"

Powershell DNSExfiltration

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

DNSExfiltrator allows for transferring (exfiltrate) a file over a DNS request covert channel

Known False Positives

  • Legitimate script

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Powershell DNSExfiltration
id: d59d7842-9a21-4bc6-ba98-64bfe0091355
status: test
description: DNSExfiltrator allows for transferring (exfiltrate) a file over a DNS request covert channel
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1048/T1048.md#atomic-test-3---dnsexfiltration-doh
    - https://github.com/Arno0x/DNSExfiltrator
author: frack113
date: 2022-01-07
tags:
    - attack.exfiltration
    - attack.t1048
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_cmdlet:
        - ScriptBlockText|contains: 'Invoke-DNSExfiltrator'
        - ScriptBlockText|contains|all:
              - ' -i '
              - ' -d '
              - ' -p '
              - ' -doh '
              - ' -t '
    condition: selection_cmdlet
falsepositives:
    - Legitimate script
level: high
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_invoke_dnsexfiltration/info.yml

Stages and Predicates

Stage 0: condition

selection_cmdlet

Stage 1: selection_cmdlet

selection_cmdlet:
    - ScriptBlockText|contains: 'Invoke-DNSExfiltrator'
    - ScriptBlockText|contains|all:
          - ' -i '
          - ' -d '
          - ' -p '
          - ' -doh '
          - ' -t '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -d
  • -doh
  • -i
  • -p
  • -t
  • Invoke-DNSExfiltrator corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match

PowerShell Remote Session Creation

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

Adversaries may abuse PowerShell commands and scripts for execution. PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system

Known False Positives

  • Legitimate administrative script

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: PowerShell Remote Session Creation
id: a0edd39f-a0c6-4c17-8141-261f958e8d8f
status: test
description: |
    Adversaries may abuse PowerShell commands and scripts for execution.
    PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1059.001/T1059.001.md#atomic-test-10---powershell-invoke-downloadcradle
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssession?view=powershell-7.4
author: frack113
date: 2022-01-06
modified: 2023-01-02
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'New-PSSession'
            - '-ComputerName '
    condition: selection
falsepositives:
    - Legitimate administrative script
level: medium
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_remote_session_creation/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'New-PSSession'
        - '-ComputerName '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -ComputerName corpus 3 (sigma 3)
  • New-PSSession
field:"ScriptBlockText" kind:match

PowerShell Script With File Upload Capabilities

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

Detects PowerShell scripts leveraging the "Invoke-WebRequest" cmdlet to send data via either "PUT" or "POST" method.

MITRE ATT&CK Coverage

TacticTechniques
Exfiltration

Telemetry Coverage

Rule Body

title: PowerShell Script With File Upload Capabilities
id: d2e3f2f6-7e09-4bf2-bc5d-90186809e7fb
status: test
description: Detects PowerShell scripts leveraging the "Invoke-WebRequest" cmdlet to send data via either "PUT" or "POST" method.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1020/T1020.md
    - https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.4
author: frack113
date: 2022-01-07
modified: 2025-07-18
tags:
    - attack.exfiltration
    - attack.t1020
logsource:
    product: windows
    category: ps_script
    definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
    selection_cmdlet:
        ScriptBlockText|contains:
            - 'Invoke-RestMethod'
            - 'Invoke-WebRequest'
            - 'irm '
            - 'iwr '
    selection_flag:
        ScriptBlockText|contains:
            - '-Method "POST"'
            - '-Method "PUT"'
            - '-Method POST'
            - '-Method PUT'
            - "-Method 'POST'"
            - "-Method 'PUT'"
    condition: all of selection_*
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_cmdlet

selection_cmdlet:
    ScriptBlockText|contains:
        - 'Invoke-RestMethod'
        - 'Invoke-WebRequest'
        - 'irm '
        - 'iwr '

Stage 2: selection_flag

selection_flag:
    ScriptBlockText|contains:
        - '-Method "POST"'
        - '-Method "PUT"'
        - '-Method POST'
        - '-Method PUT'
        - "-Method 'POST'"
        - "-Method 'PUT'"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -Method "POST"
  • -Method "PUT"
  • -Method 'POST'
  • -Method 'PUT'
  • -Method POST
  • -Method PUT
  • Invoke-RestMethod corpus 4 (sigma 3, splunk 1)
  • Invoke-WebRequest corpus 3 (sigma 3)
  • irm
  • iwr corpus 3 (sigma 3)
field:"ScriptBlockText" kind:match

PSExec and WMI Process Creations Block

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

Detects blocking of process creations originating from PSExec and WMI commands

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: PSExec and WMI Process Creations Block
id: 97b9ce1e-c5ab-11ea-87d0-0242ac130003
status: test
description: Detects blocking of process creations originating from PSExec and WMI commands
references:
    - https://learn.microsoft.com/en-us/defender-endpoint/attack-surface-reduction-rules-reference?view=o365-worldwide#block-process-creations-originating-from-psexec-and-wmi-commands
    - https://twitter.com/duff22b/status/1280166329660497920
author: Bhabesh Raj
date: 2020-07-14
modified: 2022-12-25
tags:
    - attack.execution
    - attack.lateral-movement
    - attack.t1047
    - attack.t1569.002
logsource:
    product: windows
    service: windefend
    definition: 'Requirements:Enabled Block process creations originating from PSExec and WMI commands from Attack Surface Reduction (GUID: d1e49aac-8f56-4280-b9ba-993a6d77406c)'
detection:
    selection:
        EventID: 1121
        ProcessName|endswith:
            - '\wmiprvse.exe'
            - '\psexesvc.exe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 1121
    ProcessName|endswith:
        - '\wmiprvse.exe'
        - '\psexesvc.exe'

Indicators

These rows show field, operator, and value matches.

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

PUA - Mouse Lock Execution

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

In Kaspersky's 2020 Incident Response Analyst Report they listed legitimate tool "Mouse Lock" as being used for both credential access and collection in security incidents.

Known False Positives

  • Legitimate uses of Mouse Lock software

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: PUA - Mouse Lock Execution
id: c9192ad9-75e5-43eb-8647-82a0a5b493e3
status: test
description: In Kaspersky's 2020 Incident Response Analyst Report they listed legitimate tool "Mouse Lock" as being used for both credential access and collection in security incidents.
references:
    - https://github.com/klsecservices/Publications/blob/657deb6a6eb6e00669afd40173f425fb49682eaa/Incident-Response-Analyst-Report-2020.pdf
    - https://sourceforge.net/projects/mouselock/
author: Cian Heasley
date: 2020-08-13
modified: 2023-02-21
tags:
    - attack.credential-access
    - attack.collection
    - attack.t1056.002
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        - Product|contains: 'Mouse Lock'
        - Company|contains: 'Misc314'
        - CommandLine|contains: 'Mouse Lock_'
    condition: selection
falsepositives:
    - Legitimate uses of Mouse Lock software
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Product|contains: 'Mouse Lock'
    - Company|contains: 'Misc314'
    - CommandLine|contains: 'Mouse Lock_'

Indicators

These rows show field, operator, and value matches.

Relevant Anti-Virus Signature Keywords In Application Log

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

Detects potentially highly relevant antivirus events in the application log based on known virus signature names and malware keywords.

Known False Positives

  • Some software piracy tools (key generators, cracks) are classified as hack tools

MITRE ATT&CK Coverage

TacticTechniques
Resource Development

Rule Body

title: Relevant Anti-Virus Signature Keywords In Application Log
id: 78bc5783-81d9-4d73-ac97-59f6db4f72a8
status: test
description: |
    Detects potentially highly relevant antivirus events in the application log based on known virus signature names and malware keywords.
references:
    - https://www.virustotal.com/gui/file/13828b390d5f58b002e808c2c4f02fdd920e236cc8015480fa33b6c1a9300e31
    - https://www.virustotal.com/gui/file/15b57c1b68cd6ce3c161042e0f3be9f32d78151fe95461eedc59a79fc222c7ed
    - https://www.virustotal.com/gui/file/5092b2672b4cb87a8dd1c2e6047b487b95995ad8ed5e9fc217f46b8bfb1b8c01
    - https://www.nextron-systems.com/?s=antivirus
author: Florian Roth (Nextron Systems), Arnim Rupp
date: 2017-02-19
modified: 2024-12-25
tags:
    - attack.resource-development
    - attack.t1588
logsource:
    product: windows
    service: application
detection:
    keywords:
        - 'Adfind'
        - 'ASP/BackDoor '
        - 'ATK/'
        - 'Backdoor.ASP'
        - 'Backdoor.Cobalt'
        - 'Backdoor.JSP'
        - 'Backdoor.PHP'
        - 'Blackworm'
        - 'Brutel'
        - 'BruteR'
        - 'Chopper'
        - 'Cobalt'
        - 'COBEACON'
        - 'Cometer'
        - 'CRYPTES'
        - 'Cryptor'
        - 'Destructor'
        - 'DumpCreds'
        - 'Exploit.Script.CVE'
        - 'FastReverseProxy'
        - 'Filecoder'
        - 'GrandCrab '
        - 'HackTool'
        - 'HKTL'
        - 'HTool-'
        - '/HTool'
        - '.HTool'
        - 'IISExchgSpawnCMD'
        - 'Impacket'
        - 'JSP/BackDoor '
        - 'Keylogger'
        - 'Koadic'
        - 'Krypt'
        - 'Lazagne'
        - 'Metasploit'
        - 'Meterpreter'
        - 'MeteTool'
        - 'mikatz'
        - 'Mimikatz'
        - 'Mpreter'
        - 'MsfShell'
        - 'Nighthawk'
        - 'Packed.Generic.347'
        - 'PentestPowerShell'
        - 'Phobos'
        - 'PHP/BackDoor '
        - 'Potato'
        - 'PowerSploit'
        - 'PowerSSH'
        - 'PshlSpy'
        - 'PSWTool'
        - 'PWCrack'
        - 'PWDump'
        - 'Ransom'
        - 'Rozena'
        - 'Ryzerlo'
        - 'Sbelt'
        - 'Seatbelt'
        - 'SecurityTool '
        - 'SharpDump'
        - 'Shellcode'
        - 'Sliver'
        - 'Splinter'
        - 'Swrort'
        - 'Tescrypt'
        - 'TeslaCrypt'
        - 'TurtleLoader'
        - 'Valyria'
        - 'Webshell'
        # - 'FRP.'
        # - 'Locker'
        # - 'PWS.'
        # - 'PWSX'
        # - 'Razy'
        # - 'Ryuk'
    filter_optional_generic:
        - 'anti_ransomware_service.exe'
        - 'Anti-Ransomware'
        - 'Crack'
        - 'cyber-protect-service.exe'
        - 'encryptor'
        - 'Keygen'
    filter_optional_information:
        Level: 4  # Information level
    filter_optional_restartmanager:
        Provider_Name: 'Microsoft-Windows-RestartManager'
    condition: keywords and not 1 of filter_optional_*
falsepositives:
    - Some software piracy tools (key generators, cracks) are classified as hack tools
level: high

Stages and Predicates

Stage 0: condition

keywords and not 1 of filter_optional_*

Stage 1: keywords

keywords:
    - 'Adfind'
    - 'ASP/BackDoor '
    - 'ATK/'
    - 'Backdoor.ASP'
    - 'Backdoor.Cobalt'
    - 'Backdoor.JSP'
    - 'Backdoor.PHP'
    - 'Blackworm'
    - 'Brutel'
    - 'BruteR'
    - 'Chopper'
    - 'Cobalt'
    - 'COBEACON'
    - 'Cometer'
    - 'CRYPTES'
    - 'Cryptor'
    - 'Destructor'
    - 'DumpCreds'
    - 'Exploit.Script.CVE'
    - 'FastReverseProxy'
    - 'Filecoder'
    - 'GrandCrab '
    - 'HackTool'
    - 'HKTL'
    - 'HTool-'
    - '/HTool'
    - '.HTool'
    - 'IISExchgSpawnCMD'
    - 'Impacket'
    - 'JSP/BackDoor '
    - 'Keylogger'
    - 'Koadic'
    - 'Krypt'
    - 'Lazagne'
    - 'Metasploit'
    - 'Meterpreter'
    - 'MeteTool'
    - 'mikatz'
    - 'Mimikatz'
    - 'Mpreter'
    - 'MsfShell'
    - 'Nighthawk'
    - 'Packed.Generic.347'
    - 'PentestPowerShell'
    - 'Phobos'
    - 'PHP/BackDoor '
    - 'Potato'
    - 'PowerSploit'
    - 'PowerSSH'
    - 'PshlSpy'
    - 'PSWTool'
    - 'PWCrack'
    - 'PWDump'
    - 'Ransom'
    - 'Rozena'
    - 'Ryzerlo'
    - 'Sbelt'
    - 'Seatbelt'
    - 'SecurityTool '
    - 'SharpDump'
    - 'Shellcode'
    - 'Sliver'
    - 'Splinter'
    - 'Swrort'
    - 'Tescrypt'
    - 'TeslaCrypt'
    - 'TurtleLoader'
    - 'Valyria'
    - 'Webshell'

Stage 2: not filter_optional_*

filter_optional_generic:
    - 'anti_ransomware_service.exe'
    - 'Anti-Ransomware'
    - 'Crack'
    - 'cyber-protect-service.exe'
    - 'encryptor'
    - 'Keygen'
filter_optional_information:
    Level: 4
filter_optional_restartmanager:
    Provider_Name: 'Microsoft-Windows-RestartManager'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Leveleq4excludes:Level field:"Level" value:"4"
Provider_NameeqMicrosoft-Windows-RestartManagerexcludes:Provider_Name field:"Provider_Name" value:"Microsoft-Windows-RestartManager"

RestrictedAdminMode Registry Value Tampering - ProcCreation

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

Detects changes to the "DisableRestrictedAdmin" registry value in order to disable or enable RestrictedAdmin mode. RestrictedAdmin mode prevents the transmission of reusable credentials to the remote system to which you connect using Remote Desktop. This prevents your credentials from being harvested during the initial connection process if the remote server has been compromise

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Defense Impairment

Telemetry Coverage

Rule Body

title: RestrictedAdminMode Registry Value Tampering - ProcCreation
id: 28ac00d6-22d9-4a3c-927f-bbd770104573
related:
    - id: d6ce7ebd-260b-4323-9768-a9631c8d4db2 # Registry
      type: similar
status: test
description: |
    Detects changes to the "DisableRestrictedAdmin" registry value in order to disable or enable RestrictedAdmin mode.
    RestrictedAdmin mode prevents the transmission of reusable credentials to the remote system to which you connect using Remote Desktop.
    This prevents your credentials from being harvested during the initial connection process if the remote server has been compromise
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/a8e3cf63e97b973a25903d3df9fd55da6252e564/atomics/T1112/T1112.md
    - https://social.technet.microsoft.com/wiki/contents/articles/32905.remote-desktop-services-enable-restricted-admin-mode.aspx
    - https://thedfirreport.com/2022/05/09/seo-poisoning-a-gootloader-story/
author: frack113
date: 2023-01-13
modified: 2025-08-28
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        CommandLine|contains|all:
            - '\System\CurrentControlSet\Control\Lsa'
            - 'DisableRestrictedAdmin'
    condition: selection
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_reg_lsa_disable_restricted_admin/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - '\System\CurrentControlSet\Control\Lsa'
        - 'DisableRestrictedAdmin'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • DisableRestrictedAdmin corpus 3 (sigma 3)
  • \System\CurrentControlSet\Control\Lsa corpus 5 (sigma 4, splunk 1)
field:"CommandLine" kind:match

Service Registry Permissions Weakness Check

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

Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services. Adversaries may use flaws in the permissions for registry to redirect from the originally specified executable to one that they control, in order to launch their own code at Service start. Windows stores local service configuration information in the Registry under HKLM\SYSTEM\CurrentControlSet\Services

Known False Positives

  • Legitimate administrative script

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Service Registry Permissions Weakness Check
id: 95afc12e-3cbb-40c3-9340-84a032e596a3
status: test
description: |
    Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services.
    Adversaries may use flaws in the permissions for registry to redirect from the originally specified executable to one that they control, in order to launch their own code at Service start.
    Windows stores local service configuration information in the Registry under HKLM\SYSTEM\CurrentControlSet\Services
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1574.011/T1574.011.md#atomic-test-1---service-registry-permissions-weakness
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-acl?view=powershell-7.4
author: frack113
date: 2021-12-30
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574.011
    - stp.2a
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'get-acl'
            - 'REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\'
    condition: selection
falsepositives:
    - Legitimate administrative script
level: medium
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_get_acl_service/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'get-acl'
        - 'REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\
  • get-acl
field:"ScriptBlockText" kind:match

Small Sieve Malware CommandLine Indicator

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

Detects specific command line argument being passed to a binary as seen being used by the malware Small Sieve.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Small Sieve Malware CommandLine Indicator
id: 21117127-21c8-437a-ae03-4b51e5a8a088
status: test
description: Detects specific command line argument being passed to a binary as seen being used by the malware Small Sieve.
references:
    - https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/small-sieve/NCSC-MAR-Small-Sieve.pdf
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-19
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574.001
    - detection.emerging-threats
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        CommandLine|endswith: '.exe Platypus'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|endswith: '.exe Platypus'

Indicators

These rows show field, operator, and value matches.

Suspicious Active Directory DPAPI attributes accessed (Mimikatz, DCSync, RiskySPN)

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

Detects scenarios where an attacker attempts to extract sensitive DPAPI information from Active Directory (RiskySPN PowerShell tool, DCSync and Mimikatz may also trigger this rule).

Known False Positives

  • Active Directory Backup solutions

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Active Directory DPAPI attributes accessed (Mimikatz, DCSync, RiskySPN)
name: dpapi_access # Rule Reference
description: Detects scenarios where an attacker attempts to extract sensitive DPAPI information from Active Directory (RiskySPN PowerShell tool, DCSync and Mimikatz may also trigger this rule).
requirements: extended rights auditing enabled (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/TA0006-Credential%20Access/T1555-Credentials%20from%20Password%20Stores
  - https://docs.microsoft.com/en-us/windows/win32/adschema/extended-rights
  - https://github.com/PSGumshoe/PSGumshoe/blob/master/DirectoryService/PrivateFunctions.ps1
  - https://stealthbits.com/blog/detecting-persistence-through-active-directory-extended-rights/
  - https://cqureacademy.com/blog/extracting-roamed-private-keys
  - https://www.harmj0y.net/blog/redteaming/operational-guidance-for-offensive-user-dpapi-abuse/
  - https://www.mandiant.com/resources/blog/apt29-windows-credential-roaming
  - https://www.dsinternals.com/en/retrieving-dpapi-backup-keys-from-active-directory/
tags:
  - attack.credential_access
  - attack.t1555.004 # Credentials from Password Stores: Windows Credential Manager
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4662
    Properties|contains:
      - 612cb747-c0e8-4f92-9221-fdd5f15b550d # unixUserPassword
      - 6617e4ac-a2f1-43ab-b60c-11fbd1facf05 # ms-PKI-RoamingTimeStamp / Indicates the time of the last synchronization
      - b3f93023-9239-4f7c-b99c-6745d87adbc2 # ms-PKI-DPAPIMasterKeys / Stores the DPAPI Master Keys. These symmetric keys encrypt the private keys and are themselves encrypted.
      - b7ff5a38-0818-42b0-8110-d3d154c97f24 # ms-PKI-Credential-Roaming-Tokens > see Mandiant link
      - b8dfa744-31dc-4ef1-ac7c-84baf7ef9da7 # ms-PKI-AccountCredentials / Stores certificates, certificate signing requests, private keys and saved passwords.
  filter:
    SubjectUserName|endswith: "$"
  condition: selection and not filter
falsepositives:
  - Active Directory Backup solutions
level: informational

---
title: Suspicious Active Directory DPAPI attributes accessed Count
status: experimental
correlation:
  type: value_count
  rules:
    - dpapi_access # Referenced here
  group-by:
    - Computer
  timespan: 30m
  condition:
    gte: 5
    field: ObjectName
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 4662
  Properties|contains:
    - 612cb747-c0e8-4f92-9221-fdd5f15b550d
    - 6617e4ac-a2f1-43ab-b60c-11fbd1facf05
    - b3f93023-9239-4f7c-b99c-6745d87adbc2
    - b7ff5a38-0818-42b0-8110-d3d154c97f24
    - b8dfa744-31dc-4ef1-ac7c-84baf7ef9da7

Stage 2: not filter

filter:
  SubjectUserName|endswith: "$"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Propertiesmatch
  • 612cb747-c0e8-4f92-9221-fdd5f15b550d corpus 2 (sigma 1, elastic 1)
  • 6617e4ac-a2f1-43ab-b60c-11fbd1facf05
  • b3f93023-9239-4f7c-b99c-6745d87adbc2 corpus 2 (sigma 1, elastic 1)
  • b7ff5a38-0818-42b0-8110-d3d154c97f24 corpus 2 (sigma 1, elastic 1)
  • b8dfa744-31dc-4ef1-ac7c-84baf7ef9da7 corpus 2 (sigma 1, elastic 1)
field:"Properties" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SubjectUserNameends_with$excludes:SubjectUserName field:"SubjectUserName" value:"$"

Suspicious Execution Location Of Wermgr.EXE

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

Detects suspicious Windows Error Reporting manager (wermgr.exe) execution location.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

Rule Body

title: Suspicious Execution Location Of Wermgr.EXE
id: 5394fcc7-aeb2-43b5-9a09-cac9fc5edcd5
related:
    - id: 396f6630-f3ac-44e3-bfc8-1b161bc00c4e
      type: similar
status: test
description: Detects suspicious Windows Error Reporting manager (wermgr.exe) execution location.
references:
    - https://www.trendmicro.com/en_us/research/22/j/black-basta-infiltrates-networks-via-qakbot-brute-ratel-and-coba.html
    - https://www.echotrail.io/insights/search/wermgr.exe
    - https://github.com/binderlabs/DirCreate2System
author: Florian Roth (Nextron Systems)
date: 2022-10-14
modified: 2023-08-23
tags:
    - attack.execution
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\wermgr.exe'
    filter_main_legit_location:
        Image|startswith:
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Windows\WinSxS\'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Image|endswith: '\wermgr.exe'

Stage 2: not filter_main_legit_location

filter_main_legit_location:
    Image|startswith:
        - 'C:\Windows\System32\'
        - 'C:\Windows\SysWOW64\'
        - 'C:\Windows\WinSxS\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \wermgr.exe corpus 6 (sigma 5, splunk 1)
field:"Image" kind:ends_with value:"\wermgr.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagestarts_withC:\Windows\SysWOW64\excludes:Image field:"Image" value:"C:\Windows\SysWOW64\"
Imagestarts_withC:\Windows\System32\excludes:Image field:"Image" value:"C:\Windows\System32\"
Imagestarts_withC:\Windows\WinSxS\excludes:Image field:"Image" value:"C:\Windows\WinSxS\"

Suspicious Execution Of Renamed Sysinternals Tools - Registry

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

Detects the creation of the "accepteula" key related to the Sysinternals tools being created from executables with the wrong name (e.g. a renamed Sysinternals tool)

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Resource Development

Telemetry Coverage

Rule Body

title: Suspicious Execution Of Renamed Sysinternals Tools - Registry
id: f50f3c09-557d-492d-81db-9064a8d4e211
related:
    - id: 25ffa65d-76d8-4da5-a832-3f2b0136e133
      type: derived
    - id: 8023f872-3f1d-4301-a384-801889917ab4
      type: similar
status: test
description: Detects the creation of the "accepteula" key related to the Sysinternals tools being created from executables with the wrong name (e.g. a renamed Sysinternals tool)
references:
    - Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-24
modified: 2026-06-29
tags:
    - attack.resource-development
    - attack.t1588.002
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|contains:
            # Please add new values while respecting the alphabetical order
            - '\Active Directory Explorer'
            - '\Handle'
            - '\LiveKd'
            - '\ProcDump'
            - '\Process Explorer'
            - '\PsExec'
            - '\PsLoggedon'
            - '\PsLoglist'
            - '\PsPasswd'
            - '\PsPing'
            - '\PsService'
            - '\SDelete'
        TargetObject|endswith: '\EulaAccepted'
    filter:
        Image|endswith:
            # Please add new values while respecting the alphabetical order
            - '\ADExplorer.exe'
            - '\ADExplorer64.exe'
            - '\ADExplorer64a.exe'
            - '\handle.exe'
            - '\handle64.exe'
            - '\handle64a.exe'
            - '\livekd.exe'
            - '\livekd64.exe'
            - '\procdump.exe'
            - '\procdump64.exe'
            - '\procdump64a.exe'
            - '\procexp.exe'
            - '\procexp64.exe'
            - '\procexp64a.exe'
            - '\PsExec.exe'
            - '\PsExec64.exe'
            - '\PsExec64a.exe'
            - '\PsLoggedon.exe'
            - '\PsLoggedon64.exe'
            - '\psloglist.exe'
            - '\psloglist64.exe'
            - '\psloglist64a.exe'
            - '\pspasswd.exe'
            - '\pspasswd64.exe'
            - '\pspasswd64a.exe'
            - '\PsPing.exe'
            - '\PsPing64.exe'
            - '\PsPing64a.exe'
            - '\PsService.exe'
            - '\PsService64.exe'
            - '\PsService64a.exe'
            - '\sdelete.exe'
    condition: selection and not filter
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_pua_sysinternals_renamed_execution_via_eula/info.yml

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    TargetObject|contains:
        - '\Active Directory Explorer'
        - '\Handle'
        - '\LiveKd'
        - '\ProcDump'
        - '\Process Explorer'
        - '\PsExec'
        - '\PsLoggedon'
        - '\PsLoglist'
        - '\PsPasswd'
        - '\PsPing'
        - '\PsService'
        - '\SDelete'
    TargetObject|endswith: '\EulaAccepted'

Stage 2: not filter

filter:
    Image|endswith:
        - '\ADExplorer.exe'
        - '\ADExplorer64.exe'
        - '\ADExplorer64a.exe'
        - '\handle.exe'
        - '\handle64.exe'
        - '\handle64a.exe'
        - '\livekd.exe'
        - '\livekd64.exe'
        - '\procdump.exe'
        - '\procdump64.exe'
        - '\procdump64a.exe'
        - '\procexp.exe'
        - '\procexp64.exe'
        - '\procexp64a.exe'
        - '\PsExec.exe'
        - '\PsExec64.exe'
        - '\PsExec64a.exe'
        - '\PsLoggedon.exe'
        - '\PsLoggedon64.exe'
        - '\psloglist.exe'
        - '\psloglist64.exe'
        - '\psloglist64a.exe'
        - '\pspasswd.exe'
        - '\pspasswd64.exe'
        - '\pspasswd64a.exe'
        - '\PsPing.exe'
        - '\PsPing64.exe'
        - '\PsPing64a.exe'
        - '\PsService.exe'
        - '\PsService64.exe'
        - '\PsService64a.exe'
        - '\sdelete.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • \EulaAccepted corpus 4 (sigma 4)
field:"TargetObject" kind:ends_with value:"\EulaAccepted"
TargetObjectmatch
  • \Active Directory Explorer corpus 3 (sigma 3)
  • \Handle corpus 3 (sigma 3)
  • \LiveKd corpus 3 (sigma 3)
  • \ProcDump corpus 3 (sigma 3)
  • \Process Explorer corpus 3 (sigma 3)
  • \PsExec corpus 3 (sigma 3)
  • \PsLoggedon
  • \PsLoglist corpus 3 (sigma 3)
  • \PsPasswd corpus 3 (sigma 3)
  • \PsPing
  • \PsService
  • \SDelete corpus 2 (sigma 2)
field:"TargetObject" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\ADExplorer.exeexcludes:Image field:"Image" value:"\ADExplorer.exe"
Imageends_with\ADExplorer64.exeexcludes:Image field:"Image" value:"\ADExplorer64.exe"
Imageends_with\ADExplorer64a.exeexcludes:Image field:"Image" value:"\ADExplorer64a.exe"
Imageends_with\PsExec.exeexcludes:Image field:"Image" value:"\PsExec.exe"
Imageends_with\PsExec64.exeexcludes:Image field:"Image" value:"\PsExec64.exe"
Imageends_with\PsExec64a.exeexcludes:Image field:"Image" value:"\PsExec64a.exe"
Imageends_with\PsLoggedon.exeexcludes:Image field:"Image" value:"\PsLoggedon.exe"
Imageends_with\PsLoggedon64.exeexcludes:Image field:"Image" value:"\PsLoggedon64.exe"
Imageends_with\PsPing.exeexcludes:Image field:"Image" value:"\PsPing.exe"
Imageends_with\PsPing64.exeexcludes:Image field:"Image" value:"\PsPing64.exe"
Imageends_with\PsPing64a.exeexcludes:Image field:"Image" value:"\PsPing64a.exe"
Imageends_with\PsService.exeexcludes:Image field:"Image" value:"\PsService.exe"
Imageends_with\PsService64.exeexcludes:Image field:"Image" value:"\PsService64.exe"
Imageends_with\PsService64a.exeexcludes:Image field:"Image" value:"\PsService64a.exe"
Imageends_with\handle.exeexcludes:Image field:"Image" value:"\handle.exe"
Imageends_with\handle64.exeexcludes:Image field:"Image" value:"\handle64.exe"
Imageends_with\handle64a.exeexcludes:Image field:"Image" value:"\handle64a.exe"
Imageends_with\livekd.exeexcludes:Image field:"Image" value:"\livekd.exe"
Imageends_with\livekd64.exeexcludes:Image field:"Image" value:"\livekd64.exe"
Imageends_with\procdump.exeexcludes:Image field:"Image" value:"\procdump.exe"
Imageends_with\procdump64.exeexcludes:Image field:"Image" value:"\procdump64.exe"
Imageends_with\procdump64a.exeexcludes:Image field:"Image" value:"\procdump64a.exe"
Imageends_with\procexp.exeexcludes:Image field:"Image" value:"\procexp.exe"
Imageends_with\procexp64.exeexcludes:Image field:"Image" value:"\procexp64.exe"
Imageends_with\procexp64a.exeexcludes:Image field:"Image" value:"\procexp64a.exe"
Imageends_with\psloglist.exeexcludes:Image field:"Image" value:"\psloglist.exe"
Imageends_with\psloglist64.exeexcludes:Image field:"Image" value:"\psloglist64.exe"
Imageends_with\psloglist64a.exeexcludes:Image field:"Image" value:"\psloglist64a.exe"
Imageends_with\pspasswd.exeexcludes:Image field:"Image" value:"\pspasswd.exe"
Imageends_with\pspasswd64.exeexcludes:Image field:"Image" value:"\pspasswd64.exe"
Imageends_with\pspasswd64a.exeexcludes:Image field:"Image" value:"\pspasswd64a.exe"
Imageends_with\sdelete.exeexcludes:Image field:"Image" value:"\sdelete.exe"

Suspicious Invocation of Shell via Rsync

#
Status
experimental
Severity
high
Author
Florian Roth
Source
github.com/SigmaHQ/sigma

Detects the execution of a shell as sub process of "rsync" without the expected command line flag "-e" being used, which could be an indication of exploitation as described in CVE-2024-12084. This behavior is commonly associated with attempts to execute arbitrary commands or escalate privileges, potentially leading to unauthorized access or further exploitation.

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Suspicious Invocation of Shell via Rsync
id: 297241f3-8108-4b3a-8c15-2dda9f844594
status: experimental
description: |
    Detects the execution of a shell as sub process of "rsync" without the expected command line flag "-e" being used, which could be an indication of exploitation as described in CVE-2024-12084. This behavior is commonly associated with attempts to execute arbitrary commands or escalate privileges, potentially leading to unauthorized access or further exploitation.
references:
    - https://sysdig.com/blog/detecting-and-mitigating-cve-2024-12084-rsync-remote-code-execution/
    - https://gist.github.com/Neo23x0/a20436375a1e26524931dd8ea1a3af10
author: Florian Roth
date: 2025-01-18
tags:
    - attack.execution
    - attack.t1059
    - attack.t1203
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        ParentImage|endswith:
            - '/rsync'
            - '/rsyncd'
        Image|endswith:
            - '/ash'
            - '/bash'
            - '/csh'
            - '/dash'
            - '/ksh'
            - '/sh'
            - '/tcsh'
            - '/zsh'
    filter_main_expected:
        CommandLine|contains: ' -e '
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    ParentImage|endswith:
        - '/rsync'
        - '/rsyncd'
    Image|endswith:
        - '/ash'
        - '/bash'
        - '/csh'
        - '/dash'
        - '/ksh'
        - '/sh'
        - '/tcsh'
        - '/zsh'

Stage 2: not filter_main_expected

filter_main_expected:
    CommandLine|contains: ' -e '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • /ash corpus 2 (sigma 2)
  • /bash corpus 13 (sigma 13)
  • /csh corpus 4 (sigma 4)
  • /dash corpus 9 (sigma 9)
  • /ksh corpus 5 (sigma 5)
  • /sh corpus 12 (sigma 12)
  • /tcsh corpus 3 (sigma 3)
  • /zsh corpus 7 (sigma 7)
field:"Image" kind:ends_with
ParentImageends_with
  • /rsync
  • /rsyncd
field:"ParentImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch -e excludes:CommandLine field:"CommandLine" value:" -e "

Suspicious Key Manager Access

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

Detects the invocation of the Stored User Names and Passwords dialogue (Key Manager)

Known False Positives

  • Administrative activity

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Key Manager Access
id: a4694263-59a8-4608-a3a0-6f8d3a51664c
status: test
description: Detects the invocation of the Stored User Names and Passwords dialogue (Key Manager)
references:
    - https://twitter.com/NinjaParanoid/status/1516442028963659777
author: Florian Roth (Nextron Systems)
date: 2022-04-21
modified: 2023-02-09
tags:
    - attack.credential-access
    - attack.t1555.004
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\rundll32.exe'
        - OriginalFileName: 'RUNDLL32.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'keymgr'
            - 'KRShowKeyMgr'
    condition: all of selection_*
falsepositives:
    - Administrative activity
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_rundll32_keymgr/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'keymgr'
        - 'KRShowKeyMgr'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • KRShowKeyMgr
  • keymgr
field:"CommandLine" kind:match
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"

Suspicious Scheduled Task Creation Involving Temp Folder

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

Detects the creation of scheduled tasks that involves a temporary folder and runs only once

Known False Positives

  • Administrative activity
  • Software installation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Scheduled Task Creation Involving Temp Folder
id: 39019a4e-317f-4ce3-ae63-309a8c6b53c5
status: test
description: Detects the creation of scheduled tasks that involves a temporary folder and runs only once
references:
    - https://discuss.elastic.co/t/detection-and-response-for-hafnium-activity/266289/3
author: Florian Roth (Nextron Systems)
date: 2021-03-11
modified: 2022-10-09
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.persistence
    - attack.t1053.005
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\schtasks.exe'
        CommandLine|contains|all:
            - ' /create '
            - ' /sc once '
            - '\Temp\'
    condition: selection
falsepositives:
    - Administrative activity
    - Software installation
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|all:
        - ' /create '
        - ' /sc once '
        - '\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /create corpus 15 (sigma 15)
  • /sc once
  • \Temp\ corpus 5 (sigma 5)
field:"CommandLine" kind:match
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"

Uncommon Process Access Rights For Target Image

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

Detects process access request to uncommon target images with a "PROCESS_ALL_ACCESS" access mask.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 10: ProcessAccess

Rule Body

title: Uncommon Process Access Rights For Target Image
id: a24e5861-c6ca-4fde-a93c-ba9256feddf0
status: test
description: |
    Detects process access request to uncommon target images with a "PROCESS_ALL_ACCESS" access mask.
references:
    - https://learn.microsoft.com/en-us/windows/win32/procthread/process-security-and-access-rights
author: Nasreddine Bencherchali (Nextron Systems), frack113
date: 2024-05-27
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055.011
logsource:
    category: process_access
    product: windows
detection:
    selection:
        TargetImage|endswith:
            # Note: Add additional uncommon targets to increase coverage.
            - '\calc.exe'
            - '\calculator.exe'
            - '\mspaint.exe'
            - '\notepad.exe'
            - '\ping.exe'
            - '\wordpad.exe'
            - '\write.exe'
        GrantedAccess: '0x1FFFFF' # PROCESS_ALL_ACCESS - All possible access rights for a process object.
    condition: selection
falsepositives:
    - Unknown
# Note: please upgrade to a higher level after an initial test/tuning.
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetImage|endswith:
        - '\calc.exe'
        - '\calculator.exe'
        - '\mspaint.exe'
        - '\notepad.exe'
        - '\ping.exe'
        - '\wordpad.exe'
        - '\write.exe'
    GrantedAccess: '0x1FFFFF'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
GrantedAccesseq
  • 0x1FFFFF corpus 9 (sigma 7, splunk 1, kusto 1)
field:"GrantedAccess" kind:eq value:"0x1FFFFF"
TargetImageends_with
  • \calc.exe corpus 2 (sigma 2)
  • \calculator.exe corpus 2 (sigma 2)
  • \mspaint.exe corpus 2 (sigma 2)
  • \notepad.exe corpus 2 (sigma 2)
  • \ping.exe corpus 2 (sigma 2)
  • \wordpad.exe corpus 2 (sigma 2)
  • \write.exe corpus 2 (sigma 2)
field:"TargetImage" kind:ends_with

VMMap Unsigned Dbghelp.DLL Potential Sideloading

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

Detects potential DLL sideloading of an unsigned dbghelp.dll by the Sysinternals VMMap.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: VMMap Unsigned Dbghelp.DLL Potential Sideloading
id: 273a8dd8-3742-4302-bcc7-7df5a80fe425
related:
    - id: 98ffaed4-aec2-4e04-9b07-31492fe68b3d
      type: similar
status: test
description: Detects potential DLL sideloading of an unsigned dbghelp.dll by the Sysinternals VMMap.
references:
    - https://techcommunity.microsoft.com/t5/sysinternals-blog/zoomit-v7-1-procdump-2-0-for-linux-process-explorer-v17-05/ba-p/3884766
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-07-28
modified: 2023-09-05
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|contains: 'C:\Debuggers\dbghelp.dll'
        Image|endswith:
            - '\vmmap.exe'
            - '\vmmap64.exe'
    filter_main_signed:
        Signed: 'true'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    ImageLoaded|contains: 'C:\Debuggers\dbghelp.dll'
    Image|endswith:
        - '\vmmap.exe'
        - '\vmmap64.exe'

Stage 2: not filter_main_signed

filter_main_signed:
    Signed: 'true'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \vmmap.exe corpus 3 (sigma 3)
  • \vmmap64.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with
ImageLoadedmatch
  • C:\Debuggers\dbghelp.dll corpus 2 (sigma 2)
field:"ImageLoaded" kind:match value:"C:\Debuggers\dbghelp.dll"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Signedeqtrueexcludes:Signed field:"Signed" value:"true"

Back to all Sigma rules