Detection rules › Sigma

Sigma rules: 0n

Computer account renamed without a trailing $ (CVE-2021-42278/42287)

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

Detects scenarios where an attacker attempts to spoof the SAM account name of a a domain controller in order to impersonate it. Vulnerability comes from that computer accounts should have a trailing $ in their name (i.e. sAMAccountName attribute) but no validation process existed until the patch was released. During the offensive phase, attacker will create and rename the sAMAccountName of a computer account to look like the one of a domain controller. Once the attack is done, attacker will rollback the sAMAccountName to its original name.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Computer account renamed without a trailing $ (CVE-2021-42278/42287)
description: Detects scenarios where an attacker attempts to spoof the SAM account name of a a domain controller in order to impersonate it. Vulnerability comes from that computer accounts should have a trailing $ in their name (i.e. sAMAccountName attribute) but no validation process existed until the patch was released. During the offensive phase, attacker will create and rename the sAMAccountName of a computer account to look like the one of a domain controller. Once the attack is done, attacker will rollback the sAMAccountName to its original name.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1098.xxx-Account%20manipulation
- https://exploit.ph/cve-2021-42287-cve-2021-42278-weaponisation.html
- https://www.thehacker.recipes/ad/movement/kerberos/samaccountname-spoofing
- https://support.microsoft.com/en-us/topic/kb5008380-authentication-updates-cve-2021-42287-9dafac11-e0d0-4cb8-959a-143bd0201041
- https://github.com/WazeHell/sam-the-admin
- https://github.com/cube0x0/noPac
- https://github.com/ly4k/Pachine
- https://cloudbrothers.info/en/exploit-kerberos-samaccountname-spoofing/
- https://medium.com/@mvelazco/hunting-for-samaccountname-spoofing-cve-2021-42287-and-domain-controller-impersonation-f704513c8a45
tags:
- attack.persistence
- attack.t1098 # account manipulation
- attack.defense_evasion
- attack.t1036 # masquerading
- attack.privilege_escalation
- attack.t1068 # exploitation for privilege escalation
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection_baseline:
    EventID: 4781 # account renamed

  selection_change:
    OldTargetUserName|endswith: $
  filter_change:
    NewTargetUserName|endswith: $ # new name looks a user account (no '$' at the end)

  selection_rollback:
    NewTargetUserName|endswith: $
  filter_rollback:
    OldTargetUserName|endswith: $

  condition: selection_baseline and ((selection_change and not filter_change) or (selection_rollback and not filter_rollback))
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection_baseline and ((selection_change and not filter_change) or (selection_rollback and not filter_rollback))

Stage 1: selection_baseline

selection_baseline:
  EventID: 4781

Stage 2: selection_change

selection_change:
  OldTargetUserName|endswith: $

Stage 3: not filter_change

filter_change:
  NewTargetUserName|endswith: $

Stage 4: selection_rollback

selection_rollback:
  NewTargetUserName|endswith: $

Stage 5: not filter_rollback

filter_rollback:
  OldTargetUserName|endswith: $

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
NewTargetUserNameends_with
  • $ corpus 2 (sigma 2)
field:"NewTargetUserName" kind:ends_with value:"$"
OldTargetUserNameends_with
  • $ corpus 4 (splunk 2, sigma 1, elastic 1)
field:"OldTargetUserName" kind:ends_with value:"$"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
NewTargetUserNameends_with$excludes:NewTargetUserName field:"NewTargetUserName" value:"$"
OldTargetUserNameends_with$excludes:OldTargetUserName field:"OldTargetUserName" value:"$"

Delete All Scheduled Tasks

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

Detects the usage of schtasks with the delete flag and the asterisk symbol to delete all tasks from the schedule of the local computer, including tasks scheduled by other users.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Delete All Scheduled Tasks
id: 220457c1-1c9f-4c2e-afe6-9598926222c1
status: test
description: Detects the usage of schtasks with the delete flag and the asterisk symbol to delete all tasks from the schedule of the local computer, including tasks scheduled by other users.
references:
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-delete
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-09
tags:
    - attack.impact
    - attack.t1489
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\schtasks.exe'
        CommandLine|contains|all:
            - ' /delete '
            - '/tn \*'
            - ' /f'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|all:
        - ' /delete '
        - '/tn \*'
        - ' /f'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /delete corpus 2 (sigma 2)
  • /f corpus 3 (sigma 3)
  • /tn \*
field:"CommandLine" kind:match
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"

Discovery for print spooler bug abuse (NTLM hash retrivial) via named pipe

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

Detects scenarios where an attacker with a responder in place initiates an authenticated callback request from a targeted host with the print spooler service enabled (RpcRemoteFindFirstPrinterChangeNotification abuse). In case the targeted host answers to the responder, the NTLM hash of the computer account will be disclosed. Following that, the hash can be used for different type of abuse like Silver ticket generation or unconstrained delegation abuse. The rule is designed to detect the following scripts > printerbug.py, dementor.py, SpoolSample.exe and Get-SpoolStatus.ps1.

Known False Positives

  • vulnerability scanners

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Discovery for print spooler bug abuse (NTLM hash retrivial) via named pipe
description: Detects scenarios where an attacker with a responder in place initiates an authenticated callback request from a targeted host with the print spooler service enabled (RpcRemoteFindFirstPrinterChangeNotification abuse). In case the targeted host answers to the responder, the NTLM hash of the computer account will be disclosed. Following that, the hash can be used for different type of abuse like Silver ticket generation or unconstrained delegation abuse. The rule is designed to detect the following scripts > printerbug.py, dementor.py, SpoolSample.exe and Get-SpoolStatus.ps1.
correlation: correlate SubjectLogonId + IpPort from ID 5145 with ID TargetLogonId + IpPort from 4624.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1557-Man%20in%20the%20middle
- https://github.com/dirkjanm/krbrelayx/blob/master/printerbug.py
- https://github.com/NotMedic/NetNTLMtoSilverTicket?s=09
- https://github.com/leechristensen/SpoolSample/
- https://github.com/vletoux/SpoolerScanner
- https://posts.specterops.io/hunting-in-active-directory-unconstrained-delegation-forests-trusts-71f2b33688e1
- https://book.hacktricks.xyz/windows/active-directory-methodology/printers-spooler-service-abuse
- https://stealthbits.com/blog/impersonating-service-accounts-with-silver-tickets/
- https://blog.cymulate.com/compromising-a-domain
- https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rprn/b8b414d9-f1cd-4191-bb6b-87d09ab2fd83
tags:
- attack.credential_access
- attack.t1557.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5145
    ShareName: '\\*\IPC$'
    RelativeTargetName: spoolss
    AccessMask:
      - 0x3 # printerbug.py, dementor.py
      - 0x12019F # Get-SpoolStatus.ps1
  condition: selection | count(Computer) by IpAddress > 20
falsepositives:
- vulnerability scanners
level: high

Stages and Predicates

Stage 0: condition

selection | count(Computer) by IpAddress > 20

Stage 1: selection

selection:
  EventID: 5145
  ShareName: '\\*\IPC$'
  RelativeTargetName: spoolss
  AccessMask:
    - 0x3
    - 0x12019F
Threshold
> 20

Indicators

These rows show field, operator, and value matches.

Dllhost.EXE Initiated Network Connection To Non-Local IP Address

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

Detects Dllhost.EXE initiating a network connection to a non-local IP address. Aside from Microsoft own IP range that needs to be excluded. Network communication from Dllhost will depend entirely on the hosted DLL. An initial baseline is recommended before deployment.

Known False Positives

  • Communication to other corporate systems that use IP addresses from public address spaces

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Dllhost.EXE Initiated Network Connection To Non-Local IP Address
id: cfed2f44-16df-4bf3-833a-79405198b277
status: test
description: |
    Detects Dllhost.EXE initiating a network connection to a non-local IP address.
    Aside from Microsoft own IP range that needs to be excluded. Network communication from Dllhost will depend entirely on the hosted DLL.
    An initial baseline is recommended before deployment.
references:
    - https://redcanary.com/blog/child-processes/
    - https://nasbench.medium.com/what-is-the-dllhost-exe-process-actually-running-ef9fe4c19c08
author: bartblaze
date: 2020-07-13
modified: 2024-07-16
tags:
    - attack.stealth
    - attack.t1218
    - attack.execution
    - attack.t1559.001
    - detection.threat-hunting
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Image|endswith: '\dllhost.exe'
        Initiated: 'true'
    filter_main_local_ranges:
        DestinationIp|cidr:
            - '::1/128'  # IPv6 loopback
            - '10.0.0.0/8'
            - '127.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '169.254.0.0/16'
            - 'fc00::/7'  # IPv6 private addresses
            - 'fe80::/10'  # IPv6 link-local addresses
    filter_main_msrange:
        DestinationIp|cidr:
            - '20.184.0.0/13' # Microsoft Corporation
            - '20.192.0.0/10' # Microsoft Corporation
            - '23.72.0.0/13'  # Akamai International B.V.
            - '51.10.0.0/15'  # Microsoft Corporation
            - '51.103.0.0/16' # Microsoft Corporation
            - '51.104.0.0/15' # Microsoft Corporation
            - '52.224.0.0/11'  # Microsoft Corporation
            - '150.171.0.0/19'  # Microsoft Corporation
            - '204.79.197.0/24' # Microsoft Corporation'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Communication to other corporate systems that use IP addresses from public address spaces
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Image|endswith: '\dllhost.exe'
    Initiated: 'true'

Stage 2: not filter_main_*

filter_main_local_ranges:
    DestinationIp|cidr:
        - '::1/128'
        - '10.0.0.0/8'
        - '127.0.0.0/8'
        - '172.16.0.0/12'
        - '192.168.0.0/16'
        - '169.254.0.0/16'
        - 'fc00::/7'
        - 'fe80::/10'
filter_main_msrange:
    DestinationIp|cidr:
        - '20.184.0.0/13'
        - '20.192.0.0/10'
        - '23.72.0.0/13'
        - '51.10.0.0/15'
        - '51.103.0.0/16'
        - '51.104.0.0/15'
        - '52.224.0.0/11'
        - '150.171.0.0/19'
        - '204.79.197.0/24'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \dllhost.exe corpus 11 (sigma 11)
field:"Image" kind:ends_with value:"\dllhost.exe"
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
DestinationIpcidr_match10.0.0.0/8excludes:DestinationIp field:"DestinationIp" value:"10.0.0.0/8"
DestinationIpcidr_match127.0.0.0/8excludes:DestinationIp field:"DestinationIp" value:"127.0.0.0/8"
DestinationIpcidr_match150.171.0.0/19excludes:DestinationIp field:"DestinationIp" value:"150.171.0.0/19"
DestinationIpcidr_match169.254.0.0/16excludes:DestinationIp field:"DestinationIp" value:"169.254.0.0/16"
DestinationIpcidr_match172.16.0.0/12excludes:DestinationIp field:"DestinationIp" value:"172.16.0.0/12"
DestinationIpcidr_match192.168.0.0/16excludes:DestinationIp field:"DestinationIp" value:"192.168.0.0/16"
DestinationIpcidr_match20.184.0.0/13excludes:DestinationIp field:"DestinationIp" value:"20.184.0.0/13"
DestinationIpcidr_match20.192.0.0/10excludes:DestinationIp field:"DestinationIp" value:"20.192.0.0/10"
DestinationIpcidr_match204.79.197.0/24excludes:DestinationIp field:"DestinationIp" value:"204.79.197.0/24"
DestinationIpcidr_match23.72.0.0/13excludes:DestinationIp field:"DestinationIp" value:"23.72.0.0/13"
DestinationIpcidr_match51.10.0.0/15excludes:DestinationIp field:"DestinationIp" value:"51.10.0.0/15"
DestinationIpcidr_match51.103.0.0/16excludes:DestinationIp field:"DestinationIp" value:"51.103.0.0/16"
DestinationIpcidr_match51.104.0.0/15excludes:DestinationIp field:"DestinationIp" value:"51.104.0.0/15"
DestinationIpcidr_match52.224.0.0/11excludes:DestinationIp field:"DestinationIp" value:"52.224.0.0/11"
DestinationIpcidr_match::1/128excludes:DestinationIp field:"DestinationIp" value:"::1/128"
DestinationIpcidr_matchfc00::/7excludes:DestinationIp field:"DestinationIp" value:"fc00::/7"
DestinationIpcidr_matchfe80::/10excludes:DestinationIp field:"DestinationIp" value:"fe80::/10"

DNS Query To Visual Studio Code Tunnels Domain

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

Detects DNS query requests to Visual Studio Code tunnel domains. Attackers can abuse that feature to establish a reverse shell or persistence on a machine.

Known False Positives

  • Legitimate use of Visual Studio Code tunnel will also trigger this.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 22: DNSEvent (DNS query)

Rule Body

title: DNS Query To Visual Studio Code Tunnels Domain
id: b3e6418f-7c7a-4fad-993a-93b65027a9f1
related:
    - id: 9501f8e6-8e3d-48fc-a8a6-1089dd5d7ef4 # Net Connection DevTunnels
      type: similar
    - id: 4b657234-038e-4ad5-997c-4be42340bce4 # Net Connection VsCode
      type: similar
    - id: 1cb0c6ce-3d00-44fc-ab9c-6d6d577bf20b # DNS DevTunnels
      type: similar
status: test
description: |
    Detects DNS query requests to Visual Studio Code tunnel domains. Attackers can abuse that feature to establish a reverse shell or persistence on a machine.
references:
    - https://ipfyx.fr/post/visual-studio-code-tunnel/
    - https://badoption.eu/blog/2023/01/31/code_c2.html
    - https://cydefops.com/vscode-data-exfiltration
author: citron_ninja
date: 2023-10-25
modified: 2023-11-20
tags:
    - attack.command-and-control
    - attack.t1071.001
logsource:
    product: windows
    category: dns_query
detection:
    selection:
        QueryName|endswith: '.tunnels.api.visualstudio.com'
    condition: selection
falsepositives:
    - Legitimate use of Visual Studio Code tunnel will also trigger this.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    QueryName|endswith: '.tunnels.api.visualstudio.com'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
QueryNameends_with
  • .tunnels.api.visualstudio.com
field:"QueryName" kind:ends_with value:".tunnels.api.visualstudio.com"

First Time Seen Remote Named Pipe - Zeek

#
Status
test
Severity
high
Author
Samir Bousseaden, @neu5ron, Tim Shelton
Source
github.com/SigmaHQ/sigma

This detection excludes known namped pipes accessible remotely and notify on newly observed ones, may help to detect lateral movement and remote exec using named pipes

Known False Positives

  • Update the excluded named pipe to filter out any newly observed legit named pipe

MITRE ATT&CK Coverage

Rule Body

title: First Time Seen Remote Named Pipe - Zeek
id: 021310d9-30a6-480a-84b7-eaa69aeb92bb
related:
    - id: 52d8b0c6-53d6-439a-9e41-52ad442ad9ad
      type: derived
status: test
description: This detection excludes known namped pipes accessible remotely and notify on newly observed ones, may help to detect lateral movement and remote exec using named pipes
references:
    - https://twitter.com/menasec1/status/1104489274387451904
author: Samir Bousseaden, @neu5ron, Tim Shelton
date: 2020-04-02
modified: 2022-12-27
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    product: zeek
    service: smb_files
detection:
    selection:
        path: '\\\\\*\\IPC$' # Looking for the string \\*\IPC$
    filter_keywords:
        - 'samr'
        - 'lsarpc'
        - 'winreg'
        - 'netlogon'
        - 'srvsvc'
        - 'protected_storage'
        - 'wkssvc'
        - 'browser'
        - 'netdfs'
        - 'svcctl'
        - 'spoolss'
        - 'ntsvcs'
        - 'LSM_API_service'
        - 'HydraLsPipe'
        - 'TermSrv_API_service'
        - 'MsFteWds'
    condition: selection and not 1 of filter_*
falsepositives:
    - Update the excluded named pipe to filter out any newly observed legit named pipe
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    path: '\\\\\*\\IPC$'

Stage 2: not filter_keywords

filter_keywords:
    - 'samr'
    - 'lsarpc'
    - 'winreg'
    - 'netlogon'
    - 'srvsvc'
    - 'protected_storage'
    - 'wkssvc'
    - 'browser'
    - 'netdfs'
    - 'svcctl'
    - 'spoolss'
    - 'ntsvcs'
    - 'LSM_API_service'
    - 'HydraLsPipe'
    - 'TermSrv_API_service'
    - 'MsFteWds'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
patheq
  • \\\\\*\\IPC$
field:"path" kind:eq value:"\\\\\*\\IPC$"

HackTool - LaZagne Execution

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

Detects the execution of the LaZagne. A utility used to retrieve multiple types of passwords stored on a local computer. LaZagne has been leveraged multiple times by threat actors in order to dump credentials.

Known False Positives

  • Some false positive is expected from tools with similar command line flags.

MITRE ATT&CK Coverage

TacticTechniques
Credential AccessNo specific technique

Telemetry Coverage

Rule Body

title: HackTool - LaZagne Execution
id: c2b86e67-b880-4eec-b045-50bc98ef4844
status: experimental
description: |
    Detects the execution of the LaZagne. A utility used to retrieve multiple types of passwords stored on a local computer.
    LaZagne has been leveraged multiple times by threat actors in order to dump credentials.
references:
    - https://github.com/AlessandroZ/LaZagne/tree/master
    - https://thedfirreport.com/2022/05/09/seo-poisoning-a-gootloader-story/
    - https://cloud.google.com/blog/topics/threat-intelligence/alphv-ransomware-backup/
    - https://securelist.com/defttorero-tactics-techniques-and-procedures/107610/
    - https://github.com/CyberMonitor/APT_CyberCriminal_Campagin_Collections/raw/800c0e06571993a54e39571cf27fd474dcc5c0bc/2017/2017.11.14.Muddying_the_Water/muddying-the-water-targeted-attacks.pdf
author: Nasreddine Bencherchali, Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2024-06-24
modified: 2025-10-07
tags:
    - attack.credential-access
logsource:
    product: windows
    category: process_creation
detection:
    selection_img_metadata:
        Image|endswith: '\lazagne.exe'
    selection_img_cli:
        # Note: This selection can be prone to FP. An initial baseline is required
        Image|contains:
            - ':\PerfLogs\'
            - ':\ProgramData\'
            - ':\Temp\'
            - ':\Tmp\'
            - ':\Users\Public\'
            - ':\Windows\Temp\'
            - '\$Recycle.bin'
            - '\AppData\'
            - '\Desktop\'
            - '\Downloads\'
            - '\Favorites\'
            - '\Links\'
            - '\Music\'
            - '\Photos\'
            - '\Pictures\'
            - '\Saved Games\'
            - '\Searches\'
            - '\Users\Contacts\'
            - '\Users\Default\'
            - '\Users\Searches\'
            - '\Videos\'
            - '\Windows\addins\'
            - '\Windows\Fonts\'
            - '\Windows\IME\'
        CommandLine|endswith:
            - '.exe all'
            - '.exe browsers'
            - '.exe chats'
            - '.exe databases'
            - '.exe games'
            - '.exe git'
            - '.exe mails'
            - '.exe maven'
            - '.exe memory'
            - '.exe multimedia'
            # - '.exe php' # Might be prone to FP
            # - '.exe svn' # Might be prone to FP
            - '.exe sysadmin'
            - '.exe unused'
            - '.exe wifi'
            - '.exe windows'
    selection_cli_modules:
        CommandLine|contains:
            - ' all '
            - ' browsers '
            - ' chats '
            - ' databases '
            - ' games '
            - ' mails '
            - ' maven '
            - ' memory '
            - ' multimedia '
            - ' php '
            - ' svn '
            - ' sysadmin '
            - ' unused '
            - ' wifi '
    selection_cli_options:
        CommandLine|contains:
            - '-1Password'
            - '-apachedirectorystudio'
            - '-autologon'
            - '-ChromiumBased'
            - '-coreftp'
            - '-credfiles'
            - '-credman'
            - '-cyberduck'
            - '-dbvis'
            - '-EyeCon'
            - '-filezilla'
            - '-filezillaserver'
            - '-ftpnavigator'
            - '-galconfusion'
            - '-gitforwindows'
            - '-hashdump'
            - '-iisapppool'
            - '-IISCentralCertP'
            - '-kalypsomedia'
            - '-keepass'
            - '-keepassconfig'
            - '-lsa_secrets'
            - '-mavenrepositories'
            - '-memory_dump'
            - '-Mozilla'
            - '-mRemoteNG'
            - '-mscache'
            - '-opensshforwindows'
            - '-openvpn'
            - '-outlook'
            - '-pidgin'
            - '-postgresql'
            - '-psi-im'
            - '-puttycm'
            - '-pypykatz'
            - '-Rclone'
            - '-rdpmanager'
            - '-robomongo'
            - '-roguestale'
            - '-skype'
            - '-SQLDeveloper'
            - '-squirrel'
            - '-tortoise'
            - '-turba'
            - '-UCBrowser'
            - '-unattended'
            - '-vault'
            - '-vaultfiles'
            - '-vnc'
            - '-winscp'
    condition: 1 of selection_img_* or all of selection_cli_*
falsepositives:
    - Some false positive is expected from tools with similar command line flags.
# Note: Increase the level to "high" after an initial baseline
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_img_* or all of selection_cli_*

Stage 1: selection_img_metadata

selection_img_metadata:
    Image|endswith: '\lazagne.exe'

Stage 2: selection_img_cli

selection_img_cli:
    Image|contains:
        - ':\PerfLogs\'
        - ':\ProgramData\'
        - ':\Temp\'
        - ':\Tmp\'
        - ':\Users\Public\'
        - ':\Windows\Temp\'
        - '\$Recycle.bin'
        - '\AppData\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Favorites\'
        - '\Links\'
        - '\Music\'
        - '\Photos\'
        - '\Pictures\'
        - '\Saved Games\'
        - '\Searches\'
        - '\Users\Contacts\'
        - '\Users\Default\'
        - '\Users\Searches\'
        - '\Videos\'
        - '\Windows\addins\'
        - '\Windows\Fonts\'
        - '\Windows\IME\'
    CommandLine|endswith:
        - '.exe all'
        - '.exe browsers'
        - '.exe chats'
        - '.exe databases'
        - '.exe games'
        - '.exe git'
        - '.exe mails'
        - '.exe maven'
        - '.exe memory'
        - '.exe multimedia'
        - '.exe sysadmin'
        - '.exe unused'
        - '.exe wifi'
        - '.exe windows'

Stage 3: selection_cli_modules

selection_cli_modules:
    CommandLine|contains:
        - ' all '
        - ' browsers '
        - ' chats '
        - ' databases '
        - ' games '
        - ' mails '
        - ' maven '
        - ' memory '
        - ' multimedia '
        - ' php '
        - ' svn '
        - ' sysadmin '
        - ' unused '
        - ' wifi '

Stage 4: selection_cli_options

selection_cli_options:
    CommandLine|contains:
        - '-1Password'
        - '-apachedirectorystudio'
        - '-autologon'
        - '-ChromiumBased'
        - '-coreftp'
        - '-credfiles'
        - '-credman'
        - '-cyberduck'
        - '-dbvis'
        - '-EyeCon'
        - '-filezilla'
        - '-filezillaserver'
        - '-ftpnavigator'
        - '-galconfusion'
        - '-gitforwindows'
        - '-hashdump'
        - '-iisapppool'
        - '-IISCentralCertP'
        - '-kalypsomedia'
        - '-keepass'
        - '-keepassconfig'
        - '-lsa_secrets'
        - '-mavenrepositories'
        - '-memory_dump'
        - '-Mozilla'
        - '-mRemoteNG'
        - '-mscache'
        - '-opensshforwindows'
        - '-openvpn'
        - '-outlook'
        - '-pidgin'
        - '-postgresql'
        - '-psi-im'
        - '-puttycm'
        - '-pypykatz'
        - '-Rclone'
        - '-rdpmanager'
        - '-robomongo'
        - '-roguestale'
        - '-skype'
        - '-SQLDeveloper'
        - '-squirrel'
        - '-tortoise'
        - '-turba'
        - '-UCBrowser'
        - '-unattended'
        - '-vault'
        - '-vaultfiles'
        - '-vnc'
        - '-winscp'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • .exe all
  • .exe browsers
  • .exe chats
  • .exe databases
  • .exe games
  • .exe git
  • .exe mails
  • .exe maven
  • .exe memory
  • .exe multimedia
  • .exe sysadmin
  • .exe unused
  • .exe wifi
  • .exe windows
field:"CommandLine" kind:ends_with
CommandLinematch
  • all
  • browsers
  • chats
  • databases
  • games
  • mails
  • maven
  • memory
  • multimedia
  • php
  • svn
  • sysadmin
  • unused
  • wifi
  • -1Password
  • -ChromiumBased
  • -EyeCon
  • -IISCentralCertP
  • -Mozilla
  • -Rclone
  • -SQLDeveloper
  • -UCBrowser
  • -apachedirectorystudio
  • -autologon
  • -coreftp
  • -credfiles
  • -credman
  • -cyberduck
  • -dbvis
  • -filezilla
  • -filezillaserver
  • -ftpnavigator
  • -galconfusion
  • -gitforwindows
  • -hashdump
  • -iisapppool
  • -kalypsomedia
  • -keepass
  • -keepassconfig
  • -lsa_secrets
  • +24 more values (see full rule source)
field:"CommandLine" kind:match
Imageends_with
  • \lazagne.exe
field:"Image" kind:ends_with value:"\lazagne.exe"
Imagematch
  • :\PerfLogs\ corpus 9 (sigma 9)
  • :\ProgramData\ corpus 5 (sigma 3, elastic 1, splunk 1)
  • :\Temp\ corpus 11 (sigma 11)
  • :\Tmp\
  • :\Users\Public\ corpus 13 (sigma 13)
  • :\Windows\Temp\ corpus 8 (sigma 8)
  • \$Recycle.bin corpus 2 (sigma 2)
  • \AppData\ corpus 6 (sigma 6)
  • \Desktop\ corpus 6 (sigma 6)
  • \Downloads\ corpus 9 (sigma 9)
  • \Favorites\ corpus 5 (sigma 5)
  • \Links\
  • \Music\ corpus 3 (sigma 3)
  • \Photos\
  • \Pictures\ corpus 4 (sigma 4)
  • \Saved Games\
  • \Searches\
  • \Users\Contacts\ corpus 2 (sigma 2)
  • \Users\Default\ corpus 3 (sigma 3)
  • \Users\Searches\ corpus 2 (sigma 2)
  • \Videos\ corpus 3 (sigma 3)
  • \Windows\Fonts\ corpus 2 (sigma 2)
  • \Windows\IME\ corpus 2 (sigma 2)
  • \Windows\addins\ corpus 4 (sigma 4)
field:"Image" kind:match

HH.EXE Execution

#
Status
test
Severity
low
Author
E.M. Anhaus (originally from Atomic Blue Detections, Dan Beavin), oscd.community
Source
github.com/SigmaHQ/sigma

Detects the execution of "hh.exe" to open ".chm" files.

Known False Positives

  • False positives are expected with legitimate ".CHM"

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: HH.EXE Execution
id: 68c8acb4-1b60-4890-8e82-3ddf7a6dba84
status: test
description: Detects the execution of "hh.exe" to open ".chm" files.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1218.001/T1218.001.md
    - https://eqllib.readthedocs.io/en/latest/analytics/b25aa548-7937-11e9-8f5c-d46d6d62a49e.html
    - https://www.zscaler.com/blogs/security-research/unintentional-leak-glimpse-attack-vectors-apt37
author: E.M. Anhaus (originally from Atomic Blue Detections, Dan Beavin), oscd.community
date: 2019-10-24
modified: 2023-12-11
tags:
    - attack.stealth
    - attack.t1218.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - OriginalFileName: 'HH.exe'
        - Image|endswith: '\hh.exe'
    selection_cli:
        CommandLine|contains: '.chm'
    condition: all of selection_*
falsepositives:
    - False positives are expected with legitimate ".CHM"
level: low
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_hh_chm_execution/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - OriginalFileName: 'HH.exe'
    - Image|endswith: '\hh.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: '.chm'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .chm corpus 2 (sigma 2)
field:"CommandLine" kind:match value:".chm"
Imageends_with
  • \hh.exe corpus 15 (sigma 15)
field:"Image" kind:ends_with value:"\hh.exe"
OriginalFileNameeq
  • HH.exe corpus 11 (sigma 5, splunk 4, elastic 2)
field:"OriginalFileName" kind:eq value:"HH.exe"

LSASS Process Dump Artefact In CrashDumps Folder

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

Detects the presence of an LSASS dump file in the "CrashDumps" folder. This could be a sign of LSASS credential dumping. Techniques such as the LSASS Shtinkering have been seen abusing the Windows Error Reporting to dump said process.

Known False Positives

  • Rare legitimate dump of the process by the operating system due to a crash of lsass

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: LSASS Process Dump Artefact In CrashDumps Folder
id: 6902955a-01b7-432c-b32a-6f5f81d8f625
status: test
description: Detects the presence of an LSASS dump file in the "CrashDumps" folder. This could be a sign of LSASS credential dumping. Techniques such as the LSASS Shtinkering have been seen abusing the Windows Error Reporting to dump said process.
references:
    - https://github.com/deepinstinct/Lsass-Shtinkering
    - https://media.defcon.org/DEF%20CON%2030/DEF%20CON%2030%20presentations/Asaf%20Gilboa%20-%20LSASS%20Shtinkering%20Abusing%20Windows%20Error%20Reporting%20to%20Dump%20LSASS.pdf
author: '@pbssubhash'
date: 2022-12-08
tags:
    - attack.credential-access
    - attack.t1003.001
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|startswith: 'C:\Windows\System32\config\systemprofile\AppData\Local\CrashDumps\'
        TargetFilename|contains: 'lsass.exe.'
        TargetFilename|endswith: '.dmp'
    condition: selection
falsepositives:
    - Rare legitimate dump of the process by the operating system due to a crash of lsass
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|startswith: 'C:\Windows\System32\config\systemprofile\AppData\Local\CrashDumps\'
    TargetFilename|contains: 'lsass.exe.'
    TargetFilename|endswith: '.dmp'

Indicators

These rows show field, operator, and value matches.

macOS Network Upload Activity

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

Detects execution of HTTP tools with upload methods (PUT, POST, --upload-file) which may indicate data exfiltration. Adversaries use curl/wget to upload stolen data to external servers or cloud storage.

Known False Positives

  • Legitimate API interactions and data submissions
  • Software updates and telemetry uploads
  • Development and testing activities
  • Automated system reporting

MITRE ATT&CK Coverage

Rule Body

title: macOS Network Upload Activity
id: 379ef2f6-75a0-4ca8-8f2f-63eaa470489f
status: experimental
description: 'Detects execution of HTTP tools with upload methods (PUT, POST, --upload-file)

  which may indicate data exfiltration. Adversaries use curl/wget to upload stolen

  data to external servers or cloud storage.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1041/
- https://attack.mitre.org/techniques/T1567/
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_event:
    esf.event_type: 9
    event.action: exec
  selection_process:
    Image|endswith:
    - /curl
    - /wget
  selection_upload:
    CommandLine|contains:
    - --upload-file
    - '-T '
    - -X PUT
    - -X POST
    - --data
    - --data-binary
  condition: selection_event and selection_process and selection_upload
falsepositives:
- Legitimate API interactions and data submissions
- Software updates and telemetry uploads
- Development and testing activities
- Automated system reporting
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.exfiltration
- attack.t1041
- attack.t1567
level: medium

Stages and Predicates

Stage 0: condition

selection_event and selection_process and selection_upload

Stage 1: selection_event

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

Stage 2: selection_process

selection_process:
  Image|endswith:
  - /curl
  - /wget

Stage 3: selection_upload

selection_upload:
  CommandLine|contains:
  - --upload-file
  - '-T '
  - -X PUT
  - -X POST
  - --data
  - --data-binary

Indicators

These rows show field, operator, and value matches.

Microsoft Defender critical security components disabled (command)

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

Detects scenarios where an attacker attempts to disable Defender security features

Known False Positives

  • None

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Microsoft Defender critical security components disabled (command)
description: Detects scenarios where an attacker attempts to disable Defender security features
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1562.001-Impair%20Defenses-Disable%20or%20Modify%20tool
- https://github.com/swagkarna/Defeat-Defender-V1.2
- https://docs.microsoft.com/en-us/powershell/module/defender/set-mppreference?view=windowsserver2019-ps
- https://docs.microsoft.com/en-us/windows/client-management/mdm/defender-csp
- https://powershell.one/wmi/root/microsoft/windows/defender/msft_mppreference
- https://gist.github.com/pe3zx/7c5e0080c3b0869ccba1f1dc2ea0c5e0
- https://research.nccgroup.com/2022/08/19/back-in-black-unlocking-a-lockbit-3-0-ransomware-attack/
- https://cloudbrothers.info/en/current-limits-defender-av-tamper-protection/
tags:
- attack.defense_evasion
- attack.t1562.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection: # Set-MpPreference -DisableRealtimeMonitoring $true
  selection:
    EventID: 4688
    EventData|contains|all:
      - Set-MpPreference
      - Add-MpPreference
    CommandLine|contains:
      - '1'
      - '$true'
    CommandLine|contains:
      - DisableRealtimeMonitoring
      - DisableBehaviorMonitoring
      - DisableIOAVProtection # scans downloaded files and attachment
      - DisableIntrusionPreventionSystem # network protection against exploitation of known vulnerabilities
      - DisableInboundConnectionFiltering
  condition: selection
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  EventData|contains|all:
    - Set-MpPreference
    - Add-MpPreference
  CommandLine|contains:
    - '1'
    - '$true'
  CommandLine|contains:
    - DisableRealtimeMonitoring
    - DisableBehaviorMonitoring
    - DisableIOAVProtection
    - DisableIntrusionPreventionSystem
    - DisableInboundConnectionFiltering

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • DisableBehaviorMonitoring corpus 2 (sigma 2)
  • DisableIOAVProtection corpus 2 (sigma 2)
  • DisableInboundConnectionFiltering
  • DisableIntrusionPreventionSystem corpus 2 (sigma 2)
  • DisableRealtimeMonitoring corpus 2 (sigma 2)
field:"CommandLine" kind:match
EventDatamatch
  • Add-MpPreference corpus 4 (sigma 4)
  • Set-MpPreference corpus 5 (sigma 5)
field:"EventData" kind:match

Network Connection Initiated To AzureWebsites.NET By Non-Browser Process

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

Detects an initiated network connection by a non browser process on the system to "azurewebsites.net". The latter was often used by threat actors as a malware hosting and exfiltration site.

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Network Connection Initiated To AzureWebsites.NET By Non-Browser Process
id: 5c80b618-0dbb-46e6-acbb-03d90bcb6d83
related:
    - id: e043f529-8514-4205-8ab0-7f7d2927b400
      type: derived
status: test
description: |
    Detects an initiated network connection by a non browser process on the system to "azurewebsites.net". The latter was often used by threat actors as a malware hosting and exfiltration site.
references:
    - https://www.sentinelone.com/labs/wip26-espionage-threat-actors-abuse-cloud-infrastructure-in-targeted-telco-attacks/
    - https://symantec-enterprise-blogs.security.com/threat-intelligence/harvester-new-apt-attacks-asia
    - https://www.ptsecurity.com/ww-en/analytics/pt-esc-threat-intelligence/higaisa-or-winnti-apt-41-backdoors-old-and-new/
    - https://intezer.com/blog/research/how-we-escaped-docker-in-azure-functions/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2024-06-24
modified: 2024-07-16
tags:
    - attack.command-and-control
    - attack.t1102
    - attack.t1102.001
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        DestinationHostname|endswith: 'azurewebsites.net'
    # Note: Add/Remove browsers/applications that you don't use or those that have custom install locations
    # Note: To avoid complex conditions the filters for some apps are generic by name only. A custom tuning is recommended for best results
    filter_main_chrome:
        Image:
            - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
            - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
    filter_main_chrome_appdata:
        Image|startswith: 'C:\Users\'
        Image|endswith: '\AppData\Local\Google\Chrome\Application\chrome.exe'
    filter_main_firefox:
        Image:
            - 'C:\Program Files\Mozilla Firefox\firefox.exe'
            - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
    filter_main_firefox_appdata:
        Image|startswith: 'C:\Users\'
        Image|endswith: '\AppData\Local\Mozilla Firefox\firefox.exe'
    filter_main_ie:
        Image:
            - 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
            - 'C:\Program Files\Internet Explorer\iexplore.exe'
    filter_main_edge_1:
        - Image|startswith: 'C:\Program Files (x86)\Microsoft\EdgeWebView\Application\'
        - Image|endswith: '\WindowsApps\MicrosoftEdge.exe'
        - Image:
              - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
              - 'C:\Program Files\Microsoft\Edge\Application\msedge.exe'
    filter_main_edge_2:
        Image|startswith:
            - 'C:\Program Files (x86)\Microsoft\EdgeCore\'
            - 'C:\Program Files\Microsoft\EdgeCore\'
        Image|endswith:
            - '\msedge.exe'
            - '\msedgewebview2.exe'
    filter_main_safari:
        Image|contains:
            - 'C:\Program Files (x86)\Safari\'
            - 'C:\Program Files\Safari\'
        Image|endswith: '\safari.exe'
    filter_main_defender:
        Image|contains:
            - 'C:\Program Files\Windows Defender Advanced Threat Protection\'
            - 'C:\Program Files\Windows Defender\'
            - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
        Image|endswith:
            - '\MsMpEng.exe' # Microsoft Defender executable
            - '\MsSense.exe' # Windows Defender Advanced Threat Protection Service Executable
    filter_main_prtg:
        # Paessler's PRTG Network Monitor
        Image|endswith:
            - 'C:\Program Files (x86)\PRTG Network Monitor\PRTG Probe.exe'
            - 'C:\Program Files\PRTG Network Monitor\PRTG Probe.exe'
    filter_main_brave:
        Image|startswith: 'C:\Program Files\BraveSoftware\'
        Image|endswith: '\brave.exe'
    filter_main_maxthon:
        Image|contains: '\AppData\Local\Maxthon\'
        Image|endswith: '\maxthon.exe'
    filter_main_opera:
        Image|contains: '\AppData\Local\Programs\Opera\'
        Image|endswith: '\opera.exe'
    filter_main_seamonkey:
        Image|startswith:
            - 'C:\Program Files\SeaMonkey\'
            - 'C:\Program Files (x86)\SeaMonkey\'
        Image|endswith: '\seamonkey.exe'
    filter_main_vivaldi:
        Image|contains: '\AppData\Local\Vivaldi\'
        Image|endswith: '\vivaldi.exe'
    filter_main_whale:
        Image|startswith:
            - 'C:\Program Files\Naver\Naver Whale\'
            - 'C:\Program Files (x86)\Naver\Naver Whale\'
        Image|endswith: '\whale.exe'
    # Note: The TOR browser shouldn't be something you allow in your corporate network.
    # filter_main_tor:
    #     Image|contains: '\Tor Browser\'
    filter_main_whaterfox:
        Image|startswith:
            - 'C:\Program Files\Waterfox\'
            - 'C:\Program Files (x86)\Waterfox\'
        Image|endswith: '\Waterfox.exe'
    filter_main_slimbrowser:
        Image|startswith:
            - 'C:\Program Files\SlimBrowser\'
            - 'C:\Program Files (x86)\SlimBrowser\'
        Image|endswith: '\slimbrowser.exe'
    filter_main_flock:
        Image|contains: '\AppData\Local\Flock\'
        Image|endswith: '\Flock.exe'
    filter_main_phoebe:
        Image|contains: '\AppData\Local\Phoebe\'
        Image|endswith: '\Phoebe.exe'
    filter_main_falkon:
        Image|startswith:
            - 'C:\Program Files\Falkon\'
            - 'C:\Program Files (x86)\Falkon\'
        Image|endswith: '\falkon.exe'
    filter_main_qtweb:
        Image|startswith:
            - 'C:\Program Files (x86)\QtWeb\'
            - 'C:\Program Files\QtWeb\'
        Image|endswith: '\QtWeb.exe'
    filter_main_avant:
        Image|startswith:
            - 'C:\Program Files (x86)\Avant Browser\'
            - 'C:\Program Files\Avant Browser\'
        Image|endswith: '\avant.exe'
    filter_main_discord:
        Image|contains: '\AppData\Local\Discord\'
        Image|endswith: '\Discord.exe'
    filter_main_null:
        Image: null
    filter_main_empty:
        Image: ''
    # filter_optional_qlik:
    #     Image|endswith: '\Engine.exe' # Process from qlik.com app
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Initiated: 'true'
    DestinationHostname|endswith: 'azurewebsites.net'

Stage 2: not filter_main_*

filter_main_chrome:
    Image:
        - 'C:\Program Files\Google\Chrome\Application\chrome.exe'
        - 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
filter_main_chrome_appdata:
    Image|startswith: 'C:\Users\'
    Image|endswith: '\AppData\Local\Google\Chrome\Application\chrome.exe'
filter_main_firefox:
    Image:
        - 'C:\Program Files\Mozilla Firefox\firefox.exe'
        - 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe'
filter_main_firefox_appdata:
    Image|startswith: 'C:\Users\'
    Image|endswith: '\AppData\Local\Mozilla Firefox\firefox.exe'
filter_main_ie:
    Image:
        - 'C:\Program Files (x86)\Internet Explorer\iexplore.exe'
        - 'C:\Program Files\Internet Explorer\iexplore.exe'
filter_main_edge_1:
    - Image|startswith: 'C:\Program Files (x86)\Microsoft\EdgeWebView\Application\'
    - Image|endswith: '\WindowsApps\MicrosoftEdge.exe'
    - Image:
          - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
          - 'C:\Program Files\Microsoft\Edge\Application\msedge.exe'
filter_main_edge_2:
    Image|startswith:
        - 'C:\Program Files (x86)\Microsoft\EdgeCore\'
        - 'C:\Program Files\Microsoft\EdgeCore\'
    Image|endswith:
        - '\msedge.exe'
        - '\msedgewebview2.exe'
filter_main_safari:
    Image|contains:
        - 'C:\Program Files (x86)\Safari\'
        - 'C:\Program Files\Safari\'
    Image|endswith: '\safari.exe'
filter_main_defender:
    Image|contains:
        - 'C:\Program Files\Windows Defender Advanced Threat Protection\'
        - 'C:\Program Files\Windows Defender\'
        - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
    Image|endswith:
        - '\MsMpEng.exe'
        - '\MsSense.exe'
filter_main_prtg:
    Image|endswith:
        - 'C:\Program Files (x86)\PRTG Network Monitor\PRTG Probe.exe'
        - 'C:\Program Files\PRTG Network Monitor\PRTG Probe.exe'
filter_main_brave:
    Image|startswith: 'C:\Program Files\BraveSoftware\'
    Image|endswith: '\brave.exe'
filter_main_maxthon:
    Image|contains: '\AppData\Local\Maxthon\'
    Image|endswith: '\maxthon.exe'
filter_main_opera:
    Image|contains: '\AppData\Local\Programs\Opera\'
    Image|endswith: '\opera.exe'
filter_main_seamonkey:
    Image|startswith:
        - 'C:\Program Files\SeaMonkey\'
        - 'C:\Program Files (x86)\SeaMonkey\'
    Image|endswith: '\seamonkey.exe'
filter_main_vivaldi:
    Image|contains: '\AppData\Local\Vivaldi\'
    Image|endswith: '\vivaldi.exe'
filter_main_whale:
    Image|startswith:
        - 'C:\Program Files\Naver\Naver Whale\'
        - 'C:\Program Files (x86)\Naver\Naver Whale\'
    Image|endswith: '\whale.exe'
filter_main_whaterfox:
    Image|startswith:
        - 'C:\Program Files\Waterfox\'
        - 'C:\Program Files (x86)\Waterfox\'
    Image|endswith: '\Waterfox.exe'
filter_main_slimbrowser:
    Image|startswith:
        - 'C:\Program Files\SlimBrowser\'
        - 'C:\Program Files (x86)\SlimBrowser\'
    Image|endswith: '\slimbrowser.exe'
filter_main_flock:
    Image|contains: '\AppData\Local\Flock\'
    Image|endswith: '\Flock.exe'
filter_main_phoebe:
    Image|contains: '\AppData\Local\Phoebe\'
    Image|endswith: '\Phoebe.exe'
filter_main_falkon:
    Image|startswith:
        - 'C:\Program Files\Falkon\'
        - 'C:\Program Files (x86)\Falkon\'
    Image|endswith: '\falkon.exe'
filter_main_qtweb:
    Image|startswith:
        - 'C:\Program Files (x86)\QtWeb\'
        - 'C:\Program Files\QtWeb\'
    Image|endswith: '\QtWeb.exe'
filter_main_avant:
    Image|startswith:
        - 'C:\Program Files (x86)\Avant Browser\'
        - 'C:\Program Files\Avant Browser\'
    Image|endswith: '\avant.exe'
filter_main_discord:
    Image|contains: '\AppData\Local\Discord\'
    Image|endswith: '\Discord.exe'
filter_main_null:
    Image: null
filter_main_empty:
    Image: ''

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationHostnameends_with
  • azurewebsites.net corpus 2 (sigma 1, elastic 1)
field:"DestinationHostname" kind:ends_with value:"azurewebsites.net"
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\MsMpEng.exeexcludes:Image field:"Image" value:"\MsMpEng.exe"
Imageends_with\MsSense.exeexcludes:Image field:"Image" value:"\MsSense.exe"
ImagematchC:\Program Files\Windows Defender Advanced Threat Protection\excludes:Image field:"Image" value:"C:\Program Files\Windows Defender Advanced Threat Protection\"
ImagematchC:\Program Files\Windows Defender\excludes:Image field:"Image" value:"C:\Program Files\Windows Defender\"
ImagematchC:\ProgramData\Microsoft\Windows Defender\Platform\excludes:Image field:"Image" value:"C:\ProgramData\Microsoft\Windows Defender\Platform\"
Imageends_with\msedge.exeexcludes:Image field:"Image" value:"\msedge.exe"
Imageends_with\msedgewebview2.exeexcludes:Image field:"Image" value:"\msedgewebview2.exe"
Imagestarts_withC:\Program Files (x86)\Microsoft\EdgeCore\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\EdgeCore\"
Imagestarts_withC:\Program Files\Microsoft\EdgeCore\excludes:Image field:"Image" value:"C:\Program Files\Microsoft\EdgeCore\"
ImagematchC:\Program Files (x86)\Safari\excludes:Image field:"Image" value:"C:\Program Files (x86)\Safari\"
ImagematchC:\Program Files\Safari\excludes:Image field:"Image" value:"C:\Program Files\Safari\"
Imageends_with\safari.exeexcludes:Image field:"Image" value:"\safari.exe"
Imagestarts_withC:\Program Files (x86)\Avant Browser\excludes:Image field:"Image" value:"C:\Program Files (x86)\Avant Browser\"
Imagestarts_withC:\Program Files\Avant Browser\excludes:Image field:"Image" value:"C:\Program Files\Avant Browser\"
Imageends_with\avant.exeexcludes:Image field:"Image" value:"\avant.exe"
Imagestarts_withC:\Program Files (x86)\Falkon\excludes:Image field:"Image" value:"C:\Program Files (x86)\Falkon\"
Imagestarts_withC:\Program Files\Falkon\excludes:Image field:"Image" value:"C:\Program Files\Falkon\"
Imageends_with\falkon.exeexcludes:Image field:"Image" value:"\falkon.exe"
Imagestarts_withC:\Program Files (x86)\Naver\Naver Whale\excludes:Image field:"Image" value:"C:\Program Files (x86)\Naver\Naver Whale\"
Imagestarts_withC:\Program Files\Naver\Naver Whale\excludes:Image field:"Image" value:"C:\Program Files\Naver\Naver Whale\"
Imageends_with\whale.exeexcludes:Image field:"Image" value:"\whale.exe"
Imagestarts_withC:\Program Files (x86)\QtWeb\excludes:Image field:"Image" value:"C:\Program Files (x86)\QtWeb\"
Imagestarts_withC:\Program Files\QtWeb\excludes:Image field:"Image" value:"C:\Program Files\QtWeb\"
Imageends_with\QtWeb.exeexcludes:Image field:"Image" value:"\QtWeb.exe"
Imagestarts_withC:\Program Files (x86)\SeaMonkey\excludes:Image field:"Image" value:"C:\Program Files (x86)\SeaMonkey\"
Imagestarts_withC:\Program Files\SeaMonkey\excludes:Image field:"Image" value:"C:\Program Files\SeaMonkey\"
Imageends_with\seamonkey.exeexcludes:Image field:"Image" value:"\seamonkey.exe"
Imagestarts_withC:\Program Files (x86)\SlimBrowser\excludes:Image field:"Image" value:"C:\Program Files (x86)\SlimBrowser\"
Imagestarts_withC:\Program Files\SlimBrowser\excludes:Image field:"Image" value:"C:\Program Files\SlimBrowser\"
Imageends_with\slimbrowser.exeexcludes:Image field:"Image" value:"\slimbrowser.exe"
Imagestarts_withC:\Program Files (x86)\Waterfox\excludes:Image field:"Image" value:"C:\Program Files (x86)\Waterfox\"
Imagestarts_withC:\Program Files\Waterfox\excludes:Image field:"Image" value:"C:\Program Files\Waterfox\"
Imageends_with\Waterfox.exeexcludes:Image field:"Image" value:"\Waterfox.exe"
Imageends_with\AppData\Local\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"\AppData\Local\Google\Chrome\Application\chrome.exe"
Imagestarts_withC:\Users\excludes:Image field:"Image" value:"C:\Users\"
Imageends_with\AppData\Local\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"\AppData\Local\Mozilla Firefox\firefox.exe"
Imageends_with\Discord.exeexcludes:Image field:"Image" value:"\Discord.exe"
Imagematch\AppData\Local\Discord\excludes:Image field:"Image" value:"\AppData\Local\Discord\"
Imageends_with\Flock.exeexcludes:Image field:"Image" value:"\Flock.exe"
Imagematch\AppData\Local\Flock\excludes:Image field:"Image" value:"\AppData\Local\Flock\"
Imageends_with\Phoebe.exeexcludes:Image field:"Image" value:"\Phoebe.exe"
Imagematch\AppData\Local\Phoebe\excludes:Image field:"Image" value:"\AppData\Local\Phoebe\"
Imageends_with\brave.exeexcludes:Image field:"Image" value:"\brave.exe"
Imagestarts_withC:\Program Files\BraveSoftware\excludes:Image field:"Image" value:"C:\Program Files\BraveSoftware\"
Imageends_with\maxthon.exeexcludes:Image field:"Image" value:"\maxthon.exe"
Imagematch\AppData\Local\Maxthon\excludes:Image field:"Image" value:"\AppData\Local\Maxthon\"
Imageends_with\opera.exeexcludes:Image field:"Image" value:"\opera.exe"
Imagematch\AppData\Local\Programs\Opera\excludes:Image field:"Image" value:"\AppData\Local\Programs\Opera\"
Imageends_with\vivaldi.exeexcludes:Image field:"Image" value:"\vivaldi.exe"
Imagematch\AppData\Local\Vivaldi\excludes:Image field:"Image" value:"\AppData\Local\Vivaldi\"
Imageends_withC:\Program Files (x86)\PRTG Network Monitor\PRTG Probe.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\PRTG Network Monitor\PRTG Probe.exe"
Imageends_withC:\Program Files\PRTG Network Monitor\PRTG Probe.exeexcludes:Image field:"Image" value:"C:\Program Files\PRTG Network Monitor\PRTG Probe.exe"
Imageends_with\WindowsApps\MicrosoftEdge.exeexcludes:Image field:"Image" value:"\WindowsApps\MicrosoftEdge.exe"
ImageeqC:\Program Files (x86)\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
ImageeqC:\Program Files (x86)\Internet Explorer\iexplore.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Internet Explorer\iexplore.exe"
ImageeqC:\Program Files (x86)\Microsoft\Edge\Application\msedge.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
ImageeqC:\Program Files (x86)\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
ImageeqC:\Program Files\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"C:\Program Files\Google\Chrome\Application\chrome.exe"
ImageeqC:\Program Files\Internet Explorer\iexplore.exeexcludes:Image field:"Image" value:"C:\Program Files\Internet Explorer\iexplore.exe"
ImageeqC:\Program Files\Microsoft\Edge\Application\msedge.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft\Edge\Application\msedge.exe"
ImageeqC:\Program Files\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"C:\Program Files\Mozilla Firefox\firefox.exe"
Imageis_null(no value, null check)excludes:Image
Imagestarts_withC:\Program Files (x86)\Microsoft\EdgeWebView\Application\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\EdgeWebView\Application\"

OpenCanary - Host Port Scan (SYN Scan)

#
Status
experimental
Severity
high
Author
Marco Pedrinazzi (@pedrinazziM)
Source
github.com/SigmaHQ/sigma

Detects instances where an OpenCanary node has been targeted by a SYN port scan.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Rule Body

title: OpenCanary - Host Port Scan (SYN Scan)
id: 974be8d2-283e-4033-ab08-7505b84204d0
status: experimental
description: Detects instances where an OpenCanary node has been targeted by a SYN port scan.
references:
    - https://opencanary.readthedocs.io/en/latest/starting/configuration.html#services-configuration
    - https://github.com/thinkst/opencanary/blob/a0896adfcaf0328cfd5829fe10d2878c7445138e/opencanary/logger.py#L52
author: Marco Pedrinazzi (@pedrinazziM)
date: 2026-01-06
tags:
    - attack.discovery
    - attack.t1046
logsource:
    category: application
    product: opencanary
detection:
    selection:
        logtype: 5001
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    logtype: 5001

Indicators

These rows show field, operator, and value matches.

Potential CVE-2024-35250 Exploitation Activity

#
Status
experimental
Severity
medium
Author
@eyezuhk Isaac Fernandes
Source
github.com/SigmaHQ/sigma

Detects potentially suspicious loading of "ksproxy.ax", which may indicate an attempt to exploit CVE-2024-35250.

Known False Positives

  • Legitimate applications that use Windows Stream Interface APIs.
  • Media applications that use DirectShow filters.

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Potential CVE-2024-35250 Exploitation Activity
id: 17ce9373-2163-4a2c-90ba-f91e9ef7a8c1
status: experimental
description: |
    Detects potentially suspicious loading of "ksproxy.ax", which may indicate an attempt to exploit CVE-2024-35250.
references:
    - https://thehackernews.com/2024/12/cisa-and-fbi-raise-alerts-on-exploited.html
    - https://github.com/varwara/CVE-2024-35250
    - https://devco.re/blog/2024/08/23/streaming-vulnerabilities-from-windows-kernel-proxying-to-kernel-part1-en/
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog
author: '@eyezuhk Isaac Fernandes'
date: 2025-02-19
tags:
    - attack.privilege-escalation
    - attack.t1068
    - cve.2024-35250
    - detection.emerging-threats
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|endswith: '\ksproxy.ax'
    filter_main_system_paths:
        Image|startswith:
            - 'C:\Program Files\'
            - 'C:\Program Files (x86)\'
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
    filter_optional_teams:
        Image|endswith: '\AppData\Local\Microsoft\Teams\current\Teams.exe'
    filter_optional_zoom:
        Image|endswith: '\AppData\Roaming\Zoom\bin\Zoom.exe'
    filter_optional_firefox:
        Image|endswith: '\AppData\Local\Mozilla Firefox\firefox.exe'
    filter_optional_chrome:
        Image|endswith: '\AppData\Local\Google\Chrome\Application\chrome.exe'
    filter_optional_opera:
        Image|endswith: '\AppData\Local\Programs\Opera\opera.exe'
    filter_optional_discord:
        Image|endswith: '\AppData\Local\Discord\app-*\Discord.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate applications that use Windows Stream Interface APIs.
    - Media applications that use DirectShow filters.
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    ImageLoaded|endswith: '\ksproxy.ax'

Stage 2: not filter_main_system_paths

filter_main_system_paths:
    Image|startswith:
        - 'C:\Program Files\'
        - 'C:\Program Files (x86)\'
        - 'C:\Windows\System32\'
        - 'C:\Windows\SysWOW64\'

Stage 3: not filter_optional_*

filter_optional_teams:
    Image|endswith: '\AppData\Local\Microsoft\Teams\current\Teams.exe'
filter_optional_zoom:
    Image|endswith: '\AppData\Roaming\Zoom\bin\Zoom.exe'
filter_optional_firefox:
    Image|endswith: '\AppData\Local\Mozilla Firefox\firefox.exe'
filter_optional_chrome:
    Image|endswith: '\AppData\Local\Google\Chrome\Application\chrome.exe'
filter_optional_opera:
    Image|endswith: '\AppData\Local\Programs\Opera\opera.exe'
filter_optional_discord:
    Image|endswith: '\AppData\Local\Discord\app-*\Discord.exe'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagestarts_withC:\Program Files (x86)\excludes:Image field:"Image" value:"C:\Program Files (x86)\"
Imagestarts_withC:\Program Files\excludes:Image field:"Image" value:"C:\Program Files\"
Imagestarts_withC:\Windows\SysWOW64\excludes:Image field:"Image" value:"C:\Windows\SysWOW64\"
Imagestarts_withC:\Windows\System32\excludes:Image field:"Image" value:"C:\Windows\System32\"
Imageends_with\AppData\Local\Discord\app-*\Discord.exeexcludes:Image field:"Image" value:"\AppData\Local\Discord\app-*\Discord.exe"
Imageends_with\AppData\Local\Google\Chrome\Application\chrome.exeexcludes:Image field:"Image" value:"\AppData\Local\Google\Chrome\Application\chrome.exe"
Imageends_with\AppData\Local\Microsoft\Teams\current\Teams.exeexcludes:Image field:"Image" value:"\AppData\Local\Microsoft\Teams\current\Teams.exe"
Imageends_with\AppData\Local\Mozilla Firefox\firefox.exeexcludes:Image field:"Image" value:"\AppData\Local\Mozilla Firefox\firefox.exe"
Imageends_with\AppData\Local\Programs\Opera\opera.exeexcludes:Image field:"Image" value:"\AppData\Local\Programs\Opera\opera.exe"
Imageends_with\AppData\Roaming\Zoom\bin\Zoom.exeexcludes:Image field:"Image" value:"\AppData\Roaming\Zoom\bin\Zoom.exe"

Potential KamiKakaBot Activity - Winlogon Shell Persistence

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

Detects changes to the "Winlogon" registry key where a process will set the value of the "Shell" to a value that was observed being used by KamiKakaBot samples in order to achieve persistence.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential KamiKakaBot Activity - Winlogon Shell Persistence
id: c9b86500-1ec2-4de6-9120-d744c8fb5caf
status: test
description: |
    Detects changes to the "Winlogon" registry key where a process will set the value of the "Shell" to a value that was observed being used by KamiKakaBot samples in order to achieve persistence.
references:
    - https://www.nextron-systems.com/2024/03/22/unveiling-kamikakabot-malware-analysis/
author: Nasreddine Bencherchali (Nextron Systems), X__Junior
date: 2024-03-22
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
    - detection.emerging-threats
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: '\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell'
        Details|contains|all:
            - '-nop -w h'
            - '$env'
            - 'explorer.exe'
            - 'Start-Process'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: '\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell'
    Details|contains|all:
        - '-nop -w h'
        - '$env'
        - 'explorer.exe'
        - 'Start-Process'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsmatch
  • $env
  • -nop -w h
  • Start-Process
  • explorer.exe
field:"Details" kind:match
TargetObjectends_with
  • \Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
field:"TargetObject" kind:ends_with value:"\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell"

Potential PowerShell Obfuscation Via Reversed Commands

#
Status
test
Severity
high
Author
Teymur Kheirkhabarov (idea), Vasiliy Burov (rule), oscd.community, Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects the presence of reversed PowerShell commands in the CommandLine. This is often used as a method of obfuscation by attackers

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential PowerShell Obfuscation Via Reversed Commands
id: b6b49cd1-34d6-4ead-b1bf-176e9edba9a4
status: test
description: Detects the presence of reversed PowerShell commands in the CommandLine. This is often used as a method of obfuscation by attackers
references:
    - https://2019.offzone.moscow/ru/report/hunting-for-powershell-abuses/
    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=66
author: Teymur Kheirkhabarov (idea), Vasiliy Burov (rule), oscd.community, Tim Shelton
date: 2020-10-11
modified: 2023-05-31
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_cli:
        CommandLine|contains:
            - 'hctac'
            - 'kaerb'
            - 'dnammoc'
            - 'ekovn' # Also covers 'ekovni'
            - 'eliFd'
            - 'rahc'
            - 'etirw'
            - 'golon'
            - 'tninon'
            - 'eddih'
            - 'tpircS'
            - 'ssecorp'
            - 'llehsrewop'
            - 'esnopser'
            - 'daolnwod'
            - 'tneilCbeW'
            - 'tneilc'
            - 'ptth'
            - 'elifotevas'
            - '46esab'
            - 'htaPpmeTteG'
            - 'tcejbO'
            - 'maerts'
            - 'hcaerof'
            - 'retupmoc'
    filter_main_encoded_keyword:
        # We exclude usage of encoded commands as they might generate FPs as shown here:
        #   https://github.com/SigmaHQ/sigma/pull/2720
        #   https://github.com/SigmaHQ/sigma/issues/4270
        CommandLine|contains:
            - ' -EncodedCommand '
            - ' -enc '
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - 'hctac'
        - 'kaerb'
        - 'dnammoc'
        - 'ekovn'
        - 'eliFd'
        - 'rahc'
        - 'etirw'
        - 'golon'
        - 'tninon'
        - 'eddih'
        - 'tpircS'
        - 'ssecorp'
        - 'llehsrewop'
        - 'esnopser'
        - 'daolnwod'
        - 'tneilCbeW'
        - 'tneilc'
        - 'ptth'
        - 'elifotevas'
        - '46esab'
        - 'htaPpmeTteG'
        - 'tcejbO'
        - 'maerts'
        - 'hcaerof'
        - 'retupmoc'

Stage 3: not filter_main_encoded_keyword

filter_main_encoded_keyword:
    CommandLine|contains:
        - ' -EncodedCommand '
        - ' -enc '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 46esab
  • daolnwod
  • dnammoc
  • eddih
  • ekovn
  • eliFd
  • elifotevas
  • esnopser
  • etirw
  • golon
  • hcaerof
  • hctac
  • htaPpmeTteG
  • kaerb
  • llehsrewop
  • maerts
  • ptth
  • rahc
  • retupmoc
  • ssecorp
  • tcejbO
  • tneilCbeW
  • tneilc
  • tninon
  • tpircS
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
field:"OriginalFileName" kind:eq

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch -EncodedCommand excludes:CommandLine field:"CommandLine" value:" -EncodedCommand "
CommandLinematch -enc excludes:CommandLine field:"CommandLine" value:" -enc "

PowerShell Get-Process LSASS

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

Detects a "Get-Process" cmdlet and it's aliases on lsass process, which is in almost all cases a sign of malicious activity

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: PowerShell Get-Process LSASS
id: b2815d0d-7481-4bf0-9b6c-a4c48a94b349
status: test
description: Detects a "Get-Process" cmdlet and it's aliases on lsass process, which is in almost all cases a sign of malicious activity
references:
    - https://web.archive.org/web/20220205033028/https://twitter.com/PythonResponder/status/1385064506049630211
author: Florian Roth (Nextron Systems)
date: 2021-04-23
modified: 2023-01-05
tags:
    - attack.credential-access
    - attack.t1552.004
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            # You can add more permutation as you see fit
            - 'Get-Process lsas'
            - 'ps lsas'
            - 'gps lsas'
    condition: selection
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_powershell_getprocess_lsass/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - 'Get-Process lsas'
        - 'ps lsas'
        - 'gps lsas'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • Get-Process lsas
  • gps lsas
  • ps lsas
field:"CommandLine" kind:match

RemCom Service File Creation

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

Detects default RemCom service filename which indicates RemCom service installation and execution

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: RemCom Service File Creation
id: 7eff1a7f-dd45-4c20-877a-f21e342a7611
status: test
description: Detects default RemCom service filename which indicates RemCom service installation and execution
references:
    - https://github.com/kavika13/RemCom/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-04
tags:
    - attack.execution
    - attack.t1569.002
    - attack.s0029
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|endswith: '\RemComSvc.exe'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: '\RemComSvc.exe'

Indicators

These rows show field, operator, and value matches.

Remote Access Tool - MeshAgent Command Execution via MeshCentral

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

Detects the use of MeshAgent to execute commands on the target host, particularly when threat actors might abuse it to execute commands directly. MeshAgent can execute commands on the target host by leveraging win-console to obscure their activities and win-dispatcher to run malicious code through IPC with child processes.

Known False Positives

  • False positives can be found in environments using MeshAgent for remote management, analysis should prioritize the grandparent process, MeshAgent.exe, and scrutinize the resulting child processes triggered by any suspicious interactive commands directed at the target host.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Remote Access Tool - MeshAgent Command Execution via MeshCentral
id: 74a2b202-73e0-4693-9a3a-9d36146d0775
status: test
description: |
    Detects the use of MeshAgent to execute commands on the target host, particularly when threat actors might abuse it to execute commands directly.
    MeshAgent can execute commands on the target host by leveraging win-console to obscure their activities and win-dispatcher to run malicious code through IPC with child processes.
references:
    - https://github.com/Ylianst/MeshAgent
    - https://github.com/Ylianst/MeshAgent/blob/52cf129ca43d64743181fbaf940e0b4ddb542a37/modules/win-dispatcher.js#L173
    - https://github.com/Ylianst/MeshAgent/blob/52cf129ca43d64743181fbaf940e0b4ddb542a37/modules/win-info.js#L55
author: '@Kostastsale'
date: 2024-09-22
tags:
    - attack.command-and-control
    - attack.t1219.002
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        ParentImage|endswith: '\meshagent.exe'
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
    condition: selection
falsepositives:
    - False positives can be found in environments using MeshAgent for remote management, analysis should prioritize the grandparent process, MeshAgent.exe, and scrutinize the resulting child processes triggered by any suspicious interactive commands directed at the target host.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\meshagent.exe'
    Image|endswith:
        - '\cmd.exe'
        - '\powershell.exe'
        - '\pwsh.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
ParentImageends_with
  • \meshagent.exe
field:"ParentImage" kind:ends_with value:"\meshagent.exe"

Stale Accounts In A Privileged Role

#
Status
test
Severity
high
Author
Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
Source
github.com/SigmaHQ/sigma

Identifies when an account hasn't signed in during the past n number of days.

Known False Positives

  • Investigate if potential generic account that cannot be removed.

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Rule Body

title: Stale Accounts In A Privileged Role
id: e402c26a-267a-45bd-9615-bd9ceda6da85
status: test
description: Identifies when an account hasn't signed in during the past n number of days.
references:
    - https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-how-to-configure-security-alerts#potential-stale-accounts-in-a-privileged-role
author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
date: 2023-09-14
tags:
    - attack.initial-access
    - attack.stealth
    - attack.t1078
    - attack.persistence
    - attack.privilege-escalation
logsource:
    product: azure
    service: pim
detection:
    selection:
        riskEventType: 'staleSignInAlertIncident'
    condition: selection
falsepositives:
    - Investigate if potential generic account that cannot be removed.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    riskEventType: 'staleSignInAlertIncident'

Indicators

These rows show field, operator, and value matches.

Suspicious File Download From IP Via Curl.EXE

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

Detects potentially suspicious file downloads directly from IP addresses using curl.exe

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious File Download From IP Via Curl.EXE
id: 5cb299fc-5fb1-4d07-b989-0644c68b6043
status: test
description: Detects potentially suspicious file downloads directly from IP addresses using curl.exe
references:
    - https://labs.withsecure.com/publications/fin7-target-veeam-servers
    - https://github.com/WithSecureLabs/iocs/blob/344203de742bb7e68bd56618f66d34be95a9f9fc/FIN7VEEAM/iocs.csv
    - https://github.com/pr0xylife/IcedID/blob/8dd1e218460db4f750d955b4c65b2f918a1db906/icedID_09.28.2023.txt
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-07-27
tags:
    - attack.execution
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\curl.exe'
        - OriginalFileName: 'curl.exe'
    selection_ip:
        CommandLine|re: '://[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
    selection_http:
        CommandLine|contains: 'http'
    selection_flag:
        CommandLine|contains:
            - ' -O'  # covers the alias for --remote-name and --output
            - '--remote-name'
            - '--output'
    selection_ext:
        # Note: If you add more extensions please consider adding them also in 9cc85849-3b02-4cb5-b371-3a1ff54f2218
        CommandLine|endswith:
            - '.bat'
            - '.bat"'
            - '.dat'
            - '.dat"'
            - '.dll'
            - '.dll"'
            - '.exe'
            - '.exe"'
            - '.gif'
            - '.gif"'
            - '.hta'
            - '.hta"'
            - '.jpeg'
            - '.jpeg"'
            - '.log'
            - '.log"'
            - '.msi'
            - '.msi"'
            - '.png'
            - '.png"'
            - '.ps1'
            - '.ps1"'
            - '.psm1'
            - '.psm1"'
            - '.vbe'
            - '.vbe"'
            - '.vbs'
            - '.vbs"'
            - ".bat'"
            - ".dat'"
            - ".dll'"
            - ".exe'"
            - ".gif'"
            - ".hta'"
            - ".jpeg'"
            - ".log'"
            - ".msi'"
            - ".png'"
            - ".ps1'"
            - ".psm1'"
            - ".vbe'"
            - ".vbs'"
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_curl_download_direct_ip_susp_extensions/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_ip

selection_ip:
    CommandLine|re: '://[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'

Stage 3: selection_http

selection_http:
    CommandLine|contains: 'http'

Stage 4: selection_flag

selection_flag:
    CommandLine|contains:
        - ' -O'
        - '--remote-name'
        - '--output'

Stage 5: selection_ext

selection_ext:
    CommandLine|endswith:
        - '.bat'
        - '.bat"'
        - '.dat'
        - '.dat"'
        - '.dll'
        - '.dll"'
        - '.exe'
        - '.exe"'
        - '.gif'
        - '.gif"'
        - '.hta'
        - '.hta"'
        - '.jpeg'
        - '.jpeg"'
        - '.log'
        - '.log"'
        - '.msi'
        - '.msi"'
        - '.png'
        - '.png"'
        - '.ps1'
        - '.ps1"'
        - '.psm1'
        - '.psm1"'
        - '.vbe'
        - '.vbe"'
        - '.vbs'
        - '.vbs"'
        - ".bat'"
        - ".dat'"
        - ".dll'"
        - ".exe'"
        - ".gif'"
        - ".hta'"
        - ".jpeg'"
        - ".log'"
        - ".msi'"
        - ".png'"
        - ".ps1'"
        - ".psm1'"
        - ".vbe'"
        - ".vbs'"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • .bat corpus 4 (sigma 4)
  • .bat" corpus 4 (sigma 4)
  • .bat' corpus 4 (sigma 4)
  • .dat corpus 6 (sigma 6)
  • .dat" corpus 4 (sigma 4)
  • .dat' corpus 4 (sigma 4)
  • .dll corpus 7 (sigma 7)
  • .dll" corpus 5 (sigma 5)
  • .dll' corpus 5 (sigma 5)
  • .exe corpus 6 (sigma 6)
  • .exe" corpus 4 (sigma 4)
  • .exe' corpus 4 (sigma 4)
  • .gif corpus 3 (sigma 3)
  • .gif"
  • .gif'
  • .hta corpus 6 (sigma 6)
  • .hta" corpus 4 (sigma 4)
  • .hta' corpus 4 (sigma 4)
  • .jpeg corpus 3 (sigma 3)
  • .jpeg"
  • .jpeg'
  • .log corpus 2 (sigma 2)
  • .log"
  • .log'
  • .msi corpus 5 (sigma 4, elastic 1)
  • .msi" corpus 4 (sigma 4)
  • .msi' corpus 4 (sigma 4)
  • .png corpus 3 (sigma 3)
  • .png"
  • .png'
  • .ps1 corpus 6 (sigma 6)
  • .ps1" corpus 4 (sigma 4)
  • .ps1' corpus 4 (sigma 4)
  • .psm1 corpus 5 (sigma 5)
  • .psm1" corpus 4 (sigma 4)
  • .psm1' corpus 4 (sigma 4)
  • .vbe corpus 7 (sigma 7)
  • .vbe" corpus 4 (sigma 4)
  • .vbe' corpus 4 (sigma 4)
  • .vbs corpus 7 (sigma 7)
  • .vbs" corpus 4 (sigma 4)
  • .vbs' corpus 4 (sigma 4)
field:"CommandLine" kind:ends_with
CommandLinematch
  • -O corpus 7 (sigma 6, elastic 1)
  • --output corpus 4 (sigma 4)
  • --remote-name corpus 4 (sigma 4)
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
field:"CommandLine" kind:match
CommandLineregex_match
  • ://[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3} corpus 5 (sigma 5)
field:"CommandLine" kind:regex_match value:"://[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"
Imageends_with
  • \curl.exe corpus 31 (sigma 31)
field:"Image" kind:ends_with value:"\curl.exe"
OriginalFileNameeq
  • curl.exe corpus 22 (sigma 13, elastic 6, splunk 3)
field:"OriginalFileName" kind:eq value:"curl.exe"

Suspicious MSHTA Child Process

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

Detects a suspicious process spawning from an "mshta.exe" process, which could be indicative of a malicious HTA script execution

Known False Positives

  • Printer software / driver installations
  • HP software

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious MSHTA Child Process
id: 03cc0c25-389f-4bf8-b48d-11878079f1ca
status: test
description: Detects a suspicious process spawning from an "mshta.exe" process, which could be indicative of a malicious HTA script execution
references:
    - https://www.trustedsec.com/july-2015/malicious-htas/
author: Michael Haag
date: 2019-01-16
modified: 2023-02-06
tags:
    - attack.stealth
    - attack.t1218.005
    - car.2013-02-003
    - car.2013-03-001
    - car.2014-04-003
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\mshta.exe'
    selection_child:
        - Image|endswith:
              - '\cmd.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\wscript.exe'
              - '\cscript.exe'
              - '\sh.exe'
              - '\bash.exe'
              - '\reg.exe'
              - '\regsvr32.exe'
              - '\bitsadmin.exe'
        - OriginalFileName:
              - 'Cmd.Exe'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
              - 'wscript.exe'
              - 'cscript.exe'
              - 'Bash.exe'
              - 'reg.exe'
              - 'REGSVR32.EXE'
              - 'bitsadmin.exe'
    condition: all of selection*
falsepositives:
    - Printer software / driver installations
    - HP software
level: high

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_parent

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

Stage 2: selection_child

selection_child:
    - Image|endswith:
          - '\cmd.exe'
          - '\powershell.exe'
          - '\pwsh.exe'
          - '\wscript.exe'
          - '\cscript.exe'
          - '\sh.exe'
          - '\bash.exe'
          - '\reg.exe'
          - '\regsvr32.exe'
          - '\bitsadmin.exe'
    - OriginalFileName:
          - 'Cmd.Exe'
          - 'PowerShell.EXE'
          - 'pwsh.dll'
          - 'wscript.exe'
          - 'cscript.exe'
          - 'Bash.exe'
          - 'reg.exe'
          - 'REGSVR32.EXE'
          - 'bitsadmin.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \bash.exe corpus 21 (sigma 21)
  • \bitsadmin.exe corpus 29 (sigma 29)
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \cscript.exe corpus 72 (sigma 72)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \reg.exe corpus 58 (sigma 58)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \sh.exe corpus 16 (sigma 16)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
OriginalFileNameeq
  • Bash.exe corpus 3 (sigma 3)
  • Cmd.Exe corpus 75 (sigma 43, splunk 17, elastic 15)
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • REGSVR32.EXE corpus 37 (sigma 17, elastic 15, splunk 5)
  • bitsadmin.exe corpus 19 (sigma 9, elastic 8, splunk 2)
  • cscript.exe corpus 32 (sigma 17, elastic 15)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
  • wscript.exe corpus 37 (elastic 20, sigma 17)
field:"OriginalFileName" kind:eq
ParentImageends_with
  • \mshta.exe corpus 13 (sigma 13)
field:"ParentImage" kind:ends_with value:"\mshta.exe"

Back to all Sigma rules