Detection rules › Sigma

Sigma rules: 37

RuleSeverity
Bitbucket User Permissions Export Attemptmedium
CVE-2023-23397 Exploitation Attemptcritical
Deployment Deleted From Kubernetes Clusterlow
Disk Image Mounting Via Hdiutil - MacOSmedium
DPAPI Backup Keys And Certificate Export Activity IOChigh
ETW Logging/Processing Option Disabled On IIS Servermedium
Execution From Webserver Root Foldermedium
Explorer Process Tree Breakmedium
Firewall configuration enumerated (command)high
Hidden Executable In NTFS Alternate Data Streammedium
IIS WebServer Access Logs Deletedmedium
InstallerFileTakeOver LPE CVE-2021-41379 File Create Eventcritical
Kalambur Backdoor Curl TOR SOCKS Proxy Executionhigh
Network share discovery and/or connection via commandlinehigh
New TimeProviders Registered With Uncommon DLL Namehigh
Possible Exploitation of Exchange RCE CVE-2021-42321high
Potential PendingFileRenameOperations Tamperingmedium
Potential Persistence Via AppCompat RegisterAppRestart Layermedium
Potential PowerShell Downgrade Attackmedium
Potential Process Execution Proxy Via CL_Invocation.ps1medium
Potential Recon Activity Using DriverQuery.EXEhigh
Potential Remote WMI ActiveScriptEventConsumers Activitymedium
Potential Suspicious Registry File Imported Via Reg.EXEmedium
Potentially Suspicious Explicit Credential Local Logonmedium
Powershell Local Email Collectionmedium
Success login attempt on a Windows OpenSSH servermedium
Suspicious Computer Machine Password by PowerShellmedium
Suspicious Windows Defender Registry Key Tampering Via Reg.EXEhigh
Symlink Etc Passwdhigh
Triple Cross eBPF Rootkit Install Commandshigh
Uncommon Child Process Of AddinUtil.EXEmedium
Uncommon Svchost Parent Processmedium
Wdigest Enable UseLogonCredentialhigh
Windows Defender Grace Period Expiredhigh

Bitbucket User Permissions Export Attempt

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

Detects user permission data export attempt.

Known False Positives

  • Legitimate user activity.

MITRE ATT&CK Coverage

Rule Body

title: Bitbucket User Permissions Export Attempt
id: 87cc6698-3e07-4ba2-9b43-a85a73e151e2
status: test
description: Detects user permission data export attempt.
references:
    - https://confluence.atlassian.com/bitbucketserver/audit-log-events-776640423.html
    - https://confluence.atlassian.com/bitbucketserver/users-and-groups-776640439.html
author: Muhammad Faisal (@faisalusuf)
date: 2024-02-25
tags:
    - attack.reconnaissance
    - attack.collection
    - attack.discovery
    - attack.t1213
    - attack.t1082
    - attack.t1591.004
logsource:
    product: bitbucket
    service: audit
    definition: 'Requirements: "Advance" log level is required to receive these audit events.'
detection:
    selection:
        auditType.category: 'Users and groups'
        auditType.action:
            - 'User details export failed'
            - 'User details export started'
            - 'User details exported'
    condition: selection
falsepositives:
    - Legitimate user activity.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    auditType.category: 'Users and groups'
    auditType.action:
        - 'User details export failed'
        - 'User details export started'
        - 'User details exported'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
auditType.actioneq
  • User details export failed
  • User details export started
  • User details exported
field:"auditType.action" kind:eq
auditType.categoryeq
  • Users and groups
field:"auditType.category" kind:eq value:"Users and groups"

CVE-2023-23397 Exploitation Attempt

#
Status
test
Severity
critical
Author
Robert Lee @quantum_cookie
Source
github.com/SigmaHQ/sigma

Detects outlook initiating connection to a WebDAV or SMB share, which could be a sign of CVE-2023-23397 exploitation.

Known False Positives

  • Searchprotocolhost.exe likes to query these registry keys. To avoid false postives, it's better to filter out those events before they reach the SIEM

MITRE ATT&CK Coverage

TacticTechniques
Initial AccessNo specific technique
Credential AccessNo specific technique

Telemetry Coverage

Rule Body

title: CVE-2023-23397 Exploitation Attempt
id: 73c59189-6a6d-4b9f-a748-8f6f9bbed75c
status: test
description: Detects outlook initiating connection to a WebDAV or SMB share, which could be a sign of CVE-2023-23397 exploitation.
author: Robert Lee @quantum_cookie
date: 2023-03-16
modified: 2023-03-22
references:
    - https://www.trustedsec.com/blog/critical-outlook-vulnerability-in-depth-technical-analysis-and-recommendations-cve-2023-23397/
tags:
    - attack.credential-access
    - attack.initial-access
    - cve.2023-23397
    - detection.emerging-threats
logsource:
    service: security
    product: windows
    definition: 'Requirements: SACLs must be enabled for "Query Value" on the registry keys used in this rule'
detection:
    selection:
        EventID:
            - 4656
            - 4663
        ProcessName|endswith: '\OUTLOOK.EXE'
        # Example: \REGISTRY\MACHINE\SYSTEM\CurrentControlSet001\Services\WebClient\NetworkProvider
        ObjectName|contains|all:
            - '\REGISTRY\MACHINE\SYSTEM'
            - 'Services\'
        ObjectName|endswith:
            - 'WebClient\NetworkProvider'
            - 'LanmanWorkstation\NetworkProvider'
        AccessList|contains: '%%4416' # "Query key value"
    condition: selection
falsepositives:
    - Searchprotocolhost.exe likes to query these registry keys. To avoid false postives, it's better to filter out those events before they reach the SIEM
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID:
        - 4656
        - 4663
    ProcessName|endswith: '\OUTLOOK.EXE'
    ObjectName|contains|all:
        - '\REGISTRY\MACHINE\SYSTEM'
        - 'Services\'
    ObjectName|endswith:
        - 'WebClient\NetworkProvider'
        - 'LanmanWorkstation\NetworkProvider'
    AccessList|contains: '%%4416'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AccessListmatch
  • %%4416
field:"AccessList" kind:match value:"%%4416"
ObjectNameends_with
  • LanmanWorkstation\NetworkProvider
  • WebClient\NetworkProvider
field:"ObjectName" kind:ends_with
ObjectNamematch
  • Services\
  • \REGISTRY\MACHINE\SYSTEM corpus 2 (sigma 2)
field:"ObjectName" kind:match
ProcessNameends_with
  • \OUTLOOK.EXE
field:"process_name" kind:ends_with value:"\OUTLOOK.EXE"

Deployment Deleted From Kubernetes Cluster

#
Status
test
Severity
low
Author
Leo Tsaousis (@laripping)
Source
github.com/SigmaHQ/sigma

Detects the removal of a deployment from a Kubernetes cluster. This could indicate disruptive activity aiming to impact business operations.

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Deployment Deleted From Kubernetes Cluster
id: 40967487-139b-4811-81d9-c9767a92aa5a
status: test
description: |
    Detects the removal of a deployment from a Kubernetes cluster.
    This could indicate disruptive activity aiming to impact business operations.
references:
    - https://microsoft.github.io/Threat-Matrix-for-Kubernetes/techniques/Data%20destruction/
author: Leo Tsaousis (@laripping)
date: 2024-03-26
tags:
    - attack.t1498
    - attack.impact
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection:
        verb: 'delete'
        objectRef.resource: 'deployments'
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    verb: 'delete'
    objectRef.resource: 'deployments'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
objectRef.resourceeq
  • deployments corpus 2 (sigma 2)
field:"objectRef.resource" kind:eq value:"deployments"
verbeq
  • delete corpus 6 (sigma 6)
field:"verb" kind:eq value:"delete"

Disk Image Mounting Via Hdiutil - MacOS

#
Status
test
Severity
medium
Author
Omar Khaled (@beacon_exe)
Source
github.com/SigmaHQ/sigma

Detects the execution of the hdiutil utility in order to mount disk images.

Known False Positives

  • Legitimate usage of hdiutil by administrators and users.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Disk Image Mounting Via Hdiutil - MacOS
id: bf241472-f014-4f01-a869-96f99330ca8c
status: test
description: Detects the execution of the hdiutil utility in order to mount disk images.
references:
    - https://www.loobins.io/binaries/hdiutil/
    - https://www.sentinelone.com/blog/from-the-front-linesunsigned-macos-orat-malware-gambles-for-the-win/
    - https://ss64.com/mac/hdiutil.html
author: Omar Khaled (@beacon_exe)
date: 2024-08-10
tags:
    - attack.initial-access
    - attack.collection
    - attack.t1566.001
    - attack.t1560.001
logsource:
    product: macos
    category: process_creation
detection:
    selection:
        Image|endswith: /hdiutil
        CommandLine|contains:
            - 'attach '
            - 'mount '
    condition: selection
falsepositives:
    - Legitimate usage of hdiutil by administrators and users.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: /hdiutil
    CommandLine|contains:
        - 'attach '
        - 'mount '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • attach
  • mount corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • /hdiutil corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"/hdiutil"

DPAPI Backup Keys And Certificate Export Activity IOC

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

Detects file names with specific patterns seen generated and used by tools such as Mimikatz and DSInternals related to exported or stolen DPAPI backup keys and certificates.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: DPAPI Backup Keys And Certificate Export Activity IOC
id: 7892ec59-c5bb-496d-8968-e5d210ca3ac4
status: test
description: |
    Detects file names with specific patterns seen generated and used by tools such as Mimikatz and DSInternals related to exported or stolen DPAPI backup keys and certificates.
references:
    - https://www.dsinternals.com/en/dpapi-backup-key-theft-auditing/
    - https://github.com/MichaelGrafnetter/DSInternals/blob/39ee8a69bbdc1cfd12c9afdd7513b4788c4895d4/Src/DSInternals.Common/Data/DPAPI/DPAPIBackupKey.cs#L28-L32
author: Nounou Mbeiri, Nasreddine Bencherchali (Nextron Systems)
date: 2024-06-26
tags:
    - attack.credential-access
    - attack.t1555
    - attack.t1552.004
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains:
            - 'ntds_capi_'
            - 'ntds_legacy_'
            - 'ntds_unknown_'
        TargetFilename|endswith:
            - '.cer'
            - '.key'
            - '.pfx'
            - '.pvk'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains:
        - 'ntds_capi_'
        - 'ntds_legacy_'
        - 'ntds_unknown_'
    TargetFilename|endswith:
        - '.cer'
        - '.key'
        - '.pfx'
        - '.pvk'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • .cer corpus 2 (sigma 2)
  • .key corpus 2 (sigma 2)
  • .pfx corpus 2 (sigma 2)
  • .pvk
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • ntds_capi_
  • ntds_legacy_
  • ntds_unknown_
field:"TargetFilename" kind:match

ETW Logging/Processing Option Disabled On IIS Server

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

Detects changes to of the IIS server configuration in order to disable/remove the ETW logging/processing option.

Known False Positives

  • Legitimate administrator activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: ETW Logging/Processing Option Disabled On IIS Server
id: a5b40a90-baf5-4bf7-a6f7-373494881d22
status: test
description: Detects changes to of the IIS server configuration in order to disable/remove the ETW logging/processing option.
references:
    - https://learn.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/configure-logging-in-iis
    - https://www.microsoft.com/en-us/security/blog/2022/12/12/iis-modules-the-evolution-of-web-shells-and-how-to-detect-them/
    - https://learn.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/sitedefaults/logfile/
author: frack113, Nasreddine Bencherchali
date: 2024-10-06
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1685.001
    - attack.t1505.004
logsource:
    product: windows
    service: iis-configuration
detection:
    selection:
        EventID: 29
        Configuration|endswith: '@logTargetW3C'
        OldValue|contains: 'ETW'
    filter_main_etw_added:
        NewValue|contains: 'ETW'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Legitimate administrator activity
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    EventID: 29
    Configuration|endswith: '@logTargetW3C'
    OldValue|contains: 'ETW'

Stage 2: not filter_main_etw_added

filter_main_etw_added:
    NewValue|contains: 'ETW'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
NewValuematchETWexcludes:NewValue field:"NewValue" value:"ETW"

Execution From Webserver Root Folder

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

Detects a program executing from a web server root folder. Use this rule to hunt for potential interesting activity such as webshell or backdoors

Known False Positives

  • Various applications
  • Tools that include ping or nslookup command invocations

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Execution From Webserver Root Folder
id: 35efb964-e6a5-47ad-bbcd-19661854018d
status: test
description: |
    Detects a program executing from a web server root folder. Use this rule to hunt for potential interesting activity such as webshell or backdoors
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2019-01-16
modified: 2024-01-18
tags:
    - attack.persistence
    - attack.t1505.003
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|contains:
            - '\wwwroot\'
            - '\wmpub\'
            - '\htdocs\'
    filter_main_generic:
        Image|contains:
            - 'bin\'
            - '\Tools\'
            - '\SMSComponent\'
        ParentImage|endswith: '\services.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Various applications
    - Tools that include ping or nslookup command invocations
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Image|contains:
        - '\wwwroot\'
        - '\wmpub\'
        - '\htdocs\'

Stage 2: not filter_main_generic

filter_main_generic:
    Image|contains:
        - 'bin\'
        - '\Tools\'
        - '\SMSComponent\'
    ParentImage|endswith: '\services.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imagematch
  • \htdocs\
  • \wmpub\
  • \wwwroot\
field:"Image" kind:match

Exclusions

The rule actively suppresses these predicates.

Explorer Process Tree Break

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

Detects a command line process that uses explorer.exe to launch arbitrary commands or binaries, which is similar to cmd.exe /c, only it breaks the process tree and makes its parent a new instance of explorer spawning from "svchost"

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

Rule Body

title: Explorer Process Tree Break
id: 949f1ffb-6e85-4f00-ae1e-c3c5b190d605
status: test
description: |
  Detects a command line process that uses explorer.exe to launch arbitrary commands or binaries,
  which is similar to cmd.exe /c, only it breaks the process tree and makes its parent a new instance of explorer spawning from "svchost"
references:
    - https://twitter.com/CyberRaiju/status/1273597319322058752
    - https://twitter.com/bohops/status/1276357235954909188?s=12
    - https://twitter.com/nas_bench/status/1535322450858233858
    - https://securityboulevard.com/2019/09/deobfuscating-ostap-trickbots-34000-line-javascript-downloader/
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), @gott_cyber
date: 2019-06-29
modified: 2025-10-31
tags:
    - attack.stealth
    - attack.t1036
logsource:
    category: process_creation
    product: windows
detection:
    # Note: See CLSID_SeparateMultipleProcessExplorerHost in the registry for reference
    selection_factory:
        CommandLine|contains: '/factory,{75dff2b7-6936-4c06-a8bb-676a7b00b24b}' # This will catch, the new explorer spawning which indicates a process/tree break. But you won't be able to catch the executing process. For that you need historical data
    selection_root:
        CommandLine|contains: 'explorer.exe'
        CommandLine|contains|windash: ' /root,'
        # There exists almost infinite possibilities to spawn from explorer. The "/root" flag is just an example
        # It's better to have the ability to look at the process tree and look for explorer processes with "weird" flags to be able to catch this technique.
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_factory

selection_factory:
    CommandLine|contains: '/factory,{75dff2b7-6936-4c06-a8bb-676a7b00b24b}'

Stage 2: selection_root

selection_root:
    CommandLine|contains: 'explorer.exe'
    CommandLine|contains|windash: ' /root,'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /root, transforms: windash
  • /factory,{75dff2b7-6936-4c06-a8bb-676a7b00b24b}
  • explorer.exe corpus 3 (sigma 2, splunk 1)
field:"CommandLine" kind:match

Firewall configuration enumerated (command)

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

Detects scenarios where an attacker attempts to extract current Windows firewall configuration to prepare an attack.

Known False Positives

  • Administrator activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Firewall configuration enumerated (command)
description: Detects scenarios where an attacker attempts to extract current Windows firewall configuration to prepare an attack.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1016-System%20Network%20Configuration%20Discovery
- https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/netsh-advfirewall-firewall-control-firewall-behavior
tags:
- attack.discovery
- attack.t1016
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection_event:
    EventID: 4688
    NewProcessName|endswith: '\netsh.exe' # Full path "C:\Windows\system32\netsh.exe"

  selection_command:
    Commandline|contains|all: # full command 'netsh advfirewall show allprofiles'
      - netsh
      - advfirewall
      - show

  selection_obfuscated:
    Commandline|contains|all: # full command 'netsh a show allprofiles'
      - netsh
      - show
      - ' a*' # advfirewall
  condition: selection_event and (selection_command or selection_obfuscated)
falsepositives:
- Administrator activity
level: high

Stages and Predicates

Stage 0: condition

selection_event and (selection_command or selection_obfuscated)

Stage 1: selection_event

selection_event:
  EventID: 4688
  NewProcessName|endswith: '\netsh.exe'

Stage 2: selection_command

selection_command:
  Commandline|contains|all:
    - netsh
    - advfirewall
    - show

Stage 3: selection_obfuscated

selection_obfuscated:
  Commandline|contains|all:
    - netsh
    - show
    - ' a*'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Commandlinematch
  • a* corpus 2 (sigma 2)
  • advfirewall corpus 6 (sigma 6)
  • netsh corpus 9 (sigma 9)
  • show
field:"CommandLine" kind:match
NewProcessNameends_with
  • \netsh.exe corpus 28 (sigma 28)
field:"Image" kind:ends_with value:"\netsh.exe"

Hidden Executable In NTFS Alternate Data Stream

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

Detects the creation of an ADS (Alternate Data Stream) that contains an executable by looking at a non-empty Imphash

Known False Positives

  • This rule isn't looking for any particular binary characteristics. As legitimate installers and programs were seen embedding hidden binaries in their ADS. Some false positives are expected from browser processes and similar.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 15: FileCreateStreamHash

Rule Body

title: Hidden Executable In NTFS Alternate Data Stream
id: b69888d4-380c-45ce-9cf9-d9ce46e67821
status: test
description: Detects the creation of an ADS (Alternate Data Stream) that contains an executable by looking at a non-empty Imphash
references:
    - https://twitter.com/0xrawsec/status/1002478725605273600?s=21
author: Florian Roth (Nextron Systems), @0xrawsec
date: 2018-06-03
modified: 2023-02-10
tags:
    - attack.stealth
    - attack.s0139
    - attack.t1564.004
logsource:
    product: windows
    category: create_stream_hash
    definition: 'Requirements: Sysmon or equivalent configured with Imphash logging'
detection:
    selection:
        Hash|contains: 'IMPHASH='
    filter_main_null:
        Hash|contains: 'IMPHASH=00000000000000000000000000000000'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - This rule isn't looking for any particular binary characteristics. As legitimate installers and programs were seen embedding hidden binaries in their ADS. Some false positives are expected from browser processes and similar.
level: medium
regression_tests_path: regression_data/rules/windows/create_stream_hash/create_stream_hash_ads_executable/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Hash|contains: 'IMPHASH='

Stage 2: not filter_main_null

filter_main_null:
    Hash|contains: 'IMPHASH=00000000000000000000000000000000'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Hashmatch
  • IMPHASH=
field:"Hashes" kind:match value:"IMPHASH="

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
HashmatchIMPHASH=00000000000000000000000000000000excludes:Hash field:"Hash" value:"IMPHASH=00000000000000000000000000000000"

IIS WebServer Access Logs Deleted

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

Detects the deletion of IIS WebServer access logs which may indicate an attempt to destroy forensic evidence

Known False Positives

  • During uninstallation of the IIS service
  • During log rotation

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

Rule Body

title: IIS WebServer Access Logs Deleted
id: 3eb8c339-a765-48cc-a150-4364c04652bf
related:
    - id: 0649be4a-aeb0-45b0-b89e-7f1668f6d9c0
      type: similar
status: test
description: Detects the deletion of IIS WebServer access logs which may indicate an attempt to destroy forensic evidence
references:
    - https://www.elastic.co/guide/en/security/current/webserver-access-logs-deleted.html
author: Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-16
modified: 2023-02-15
tags:
    - attack.stealth
    - attack.t1070
logsource:
    category: file_delete
    product: windows
detection:
    selection:
        TargetFilename|contains: '\inetpub\logs\LogFiles\'
        TargetFilename|endswith: '.log'
    condition: selection
falsepositives:
    - During uninstallation of the IIS service
    - During log rotation
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains: '\inetpub\logs\LogFiles\'
    TargetFilename|endswith: '.log'

Indicators

These rows show field, operator, and value matches.

InstallerFileTakeOver LPE CVE-2021-41379 File Create Event

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

Detects signs of the exploitation of LPE CVE-2021-41379 that include an msiexec process that creates an elevation_service.exe file

Known False Positives

  • Possibly some Microsoft Edge upgrades

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: InstallerFileTakeOver LPE CVE-2021-41379 File Create Event
id: 3be82d5d-09fe-4d6a-a275-0d40d234d324
status: test
description: Detects signs of the exploitation of LPE CVE-2021-41379 that include an msiexec process that creates an elevation_service.exe file
references:
    - https://web.archive.org/web/20220421061949/https://github.com/klinix5/InstallerFileTakeOver
    - https://www.zerodayinitiative.com/advisories/ZDI-21-1308/
author: Florian Roth (Nextron Systems)
date: 2021-11-22
modified: 2022-12-25
tags:
    - attack.privilege-escalation
    - attack.t1068
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith: '\msiexec.exe'
        TargetFilename|startswith: 'C:\Program Files (x86)\Microsoft\Edge\Application'
        TargetFilename|endswith: '\elevation_service.exe'
    condition: selection
falsepositives:
    - Unknown
    - Possibly some Microsoft Edge upgrades
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\msiexec.exe'
    TargetFilename|startswith: 'C:\Program Files (x86)\Microsoft\Edge\Application'
    TargetFilename|endswith: '\elevation_service.exe'

Indicators

These rows show field, operator, and value matches.

Kalambur Backdoor Curl TOR SOCKS Proxy Execution

#
Status
experimental
Severity
high
Author
Arda Buyukkaya (EclecticIQ)
Source
github.com/SigmaHQ/sigma

Detects the execution of the "curl.exe" command, referencing "SOCKS" and ".onion" domains, which could be indicative of Kalambur backdoor activity.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Kalambur Backdoor Curl TOR SOCKS Proxy Execution
id: e99375eb-3ee0-407a-9f90-79569cc6a01c
status: experimental
description: Detects the execution of the "curl.exe" command, referencing "SOCKS" and ".onion" domains, which could be indicative of Kalambur backdoor activity.
references:
    - https://blog.eclecticiq.com/sandworm-apt-targets-ukrainian-users-with-trojanized-microsoft-kms-activation-tools-in-cyber-espionage-campaigns
author: Arda Buyukkaya (EclecticIQ)
date: 2025-02-11
tags:
    - attack.execution
    - attack.command-and-control
    - attack.t1090
    - attack.t1573
    - attack.t1071.001
    - attack.t1059.001
    - attack.s0183
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        Image|endswith: '\curl.exe'
    selection_socks:
        CommandLine|contains:
            - 'socks5h://'
            - 'socks5://'
            - 'socks4a://'
    selection_onion:
        CommandLine|contains: '.onion'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_socks

selection_socks:
    CommandLine|contains:
        - 'socks5h://'
        - 'socks5://'
        - 'socks4a://'

Stage 3: selection_onion

selection_onion:
    CommandLine|contains: '.onion'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .onion
  • socks4a://
  • socks5://
  • socks5h://
field:"CommandLine" kind:match
Imageends_with
  • \curl.exe corpus 31 (sigma 31)
field:"Image" kind:ends_with value:"\curl.exe"

Network share discovery and/or connection via commandline

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

Detects scenarios where an attacker attempts to enumerate or to establish a connection to a network share.

Known False Positives

  • Pentest

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: Network share discovery and/or connection via commandline
description: Detects scenarios where an attacker attempts to enumerate or to establish a connection to a network share.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1135.xxx-Network%20Share%20Discovery
- https://blogs.jpcert.or.jp/en/2016/01/windows-commands-abused-by-attackers.html
- https://attack.mitre.org/software/S0039/
tags:
- attack.discovery
- attack.t1135
author: mdecrevoisier
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    NewProcessName|endswith:
      - \net1.exe
      - \net.exe
    CommandLine|contains:
      - net view # view external shares in the network
      - net use  # view current mapped network shares
  condition: selection
falsepositives:
- Pentest
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith:
    - \net1.exe
    - \net.exe
  CommandLine|contains:
    - net view
    - net use

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • net use corpus 2 (sigma 2)
  • net view
field:"CommandLine" kind:match
NewProcessNameends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
field:"Image" kind:ends_with

New TimeProviders Registered With Uncommon DLL Name

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

Detects processes setting a new DLL in DllName in under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProvider. Adversaries may abuse time providers to execute DLLs when the system boots. The Windows Time service (W32Time) enables time synchronization across and within domains.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: New TimeProviders Registered With Uncommon DLL Name
id: e88a6ddc-74f7-463b-9b26-f69fc0d2ce85
status: test
description: |
    Detects processes setting a new DLL in DllName in under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProvider.
    Adversaries may abuse time providers to execute DLLs when the system boots.
    The Windows Time service (W32Time) enables time synchronization across and within domains.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.003/T1547.003.md
author: frack113
date: 2022-06-19
modified: 2024-03-26
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1547.003
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Services\W32Time\TimeProviders'
        TargetObject|endswith: '\DllName'
    filter_main_w32time:
        Details:
            - '%SystemRoot%\System32\vmictimeprovider.dll'
            - '%systemroot%\system32\w32time.dll'
            - 'C:\Windows\SYSTEM32\w32time.DLL'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high
simulation:
    - type: atomic-red-team
      name: Create a new time provider
      technique: T1547.003
      atomic_guid: df1efab7-bc6d-4b88-8be9-91f55ae017aa
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_timeproviders_dllname/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    TargetObject|contains: '\Services\W32Time\TimeProviders'
    TargetObject|endswith: '\DllName'

Stage 2: not filter_main_w32time

filter_main_w32time:
    Details:
        - '%SystemRoot%\System32\vmictimeprovider.dll'
        - '%systemroot%\system32\w32time.dll'
        - 'C:\Windows\SYSTEM32\w32time.DLL'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Detailseq%SystemRoot%\System32\vmictimeprovider.dllexcludes:Details field:"Details" value:"%SystemRoot%\System32\vmictimeprovider.dll"
Detailseq%systemroot%\system32\w32time.dllexcludes:Details field:"Details" value:"%systemroot%\system32\w32time.dll"
DetailseqC:\Windows\SYSTEM32\w32time.DLLexcludes:Details field:"Details" value:"C:\Windows\SYSTEM32\w32time.DLL"

Possible Exploitation of Exchange RCE CVE-2021-42321

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

Detects log entries that appear in exploitation attempts against MS Exchange RCE CVE-2021-42321

Known False Positives

  • Unknown, please report false positives via https://github.com/SigmaHQ/sigma/issues

MITRE ATT&CK Coverage

TacticTechniques
Lateral Movement

Telemetry Coverage

Rule Body

title: Possible Exploitation of Exchange RCE CVE-2021-42321
id: c92f1896-d1d2-43c3-92d5-7a5b35c217bb
status: test
description: Detects log entries that appear in exploitation attempts against MS Exchange RCE CVE-2021-42321
references:
    - https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-42321
author: 'Florian Roth (Nextron Systems), @testanull'
date: 2021-11-18
modified: 2022-07-12
tags:
    - attack.lateral-movement
    - attack.t1210
    - detection.emerging-threats
logsource:
    product: windows
    service: msexchange-management
    # warning: The 'data' field used in the detection section is the container for the event data as a whole. You may have to adapt the rule for your backend accordingly
detection:
    selection:
        EventID:
            - 6
            - 8
        Data|contains:
            - 'Cmdlet failed. Cmdlet Get-App, '
            - 'Task Get-App throwing unhandled exception: System.InvalidCastException:'
    condition: selection
falsepositives:
    - Unknown, please report false positives via https://github.com/SigmaHQ/sigma/issues
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID:
        - 6
        - 8
    Data|contains:
        - 'Cmdlet failed. Cmdlet Get-App, '
        - 'Task Get-App throwing unhandled exception: System.InvalidCastException:'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Datamatch
  • Cmdlet failed. Cmdlet Get-App,
  • Task Get-App throwing unhandled exception: System.InvalidCastException:
field:"Data" kind:match

Potential PendingFileRenameOperations Tampering

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

Detect changes to the "PendingFileRenameOperations" registry key from uncommon or suspicious images locations to stage currently used files for rename or deletion after reboot.

Known False Positives

  • Installers and updaters may set currently in use files for rename or deletion after a reboot.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential PendingFileRenameOperations Tampering
id: 4eec988f-7bf0-49f1-8675-1e6a510b3a2a
status: test
description: |
    Detect changes to the "PendingFileRenameOperations" registry key from uncommon or suspicious images locations to stage currently used files for rename or deletion after reboot.
references:
    - https://any.run/report/3ecd4763ffc944fdc67a9027e459cd4f448b1a8d1b36147977afaf86bbf2a261/64b0ba45-e7ce-423b-9a1d-5b4ea59521e6
    - https://devblogs.microsoft.com/scripting/determine-pending-reboot-statuspowershell-style-part-1/
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc960241(v=technet.10)?redirectedfrom=MSDN
    - https://www.trendmicro.com/en_us/research/21/j/purplefox-adds-new-backdoor-that-uses-websockets.html
    - https://www.trendmicro.com/en_us/research/19/i/purple-fox-fileless-malware-with-rookit-component-delivered-by-rig-exploit-kit-now-abuses-powershell.html
author: frack113
date: 2023-01-27
modified: 2025-10-07
tags:
    - attack.stealth
    - attack.t1036.003
logsource:
    category: registry_set
    product: windows
detection:
    selection_main:
        TargetObject|contains: '\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations'
    selection_susp_paths:
        Image|contains: '\Users\Public\'
            # - '\AppData\Local\Temp\'  # Commented out as it's used by legitimate installers
    selection_susp_images:
        Image|endswith:
            - '\reg.exe'
            - '\regedit.exe'
    condition: selection_main and 1 of selection_susp_*
falsepositives:
    - Installers and updaters may set currently in use files for rename or deletion after a reboot.
level: medium

Stages and Predicates

Stage 0: condition

selection_main and 1 of selection_susp_*

Stage 1: selection_main

selection_main:
    TargetObject|contains: '\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations'

Stage 2: selection_susp_paths

selection_susp_paths:
    Image|contains: '\Users\Public\'

Stage 3: selection_susp_images

selection_susp_images:
    Image|endswith:
        - '\reg.exe'
        - '\regedit.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
  • \regedit.exe corpus 8 (sigma 8)
field:"Image" kind:ends_with
Imagematch
  • \Users\Public\ corpus 9 (sigma 9)
field:"Image" kind:match value:"\Users\Public\"
TargetObjectmatch
  • \CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
field:"TargetObject" kind:match value:"\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations"

Potential Persistence Via AppCompat RegisterAppRestart Layer

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

Detects the setting of the REGISTERAPPRESTART compatibility layer on an application. This compatibility layer allows an application to register for restart using the "RegisterApplicationRestart" API. This can be potentially abused as a persistence mechanism.

Known False Positives

  • Legitimate applications making use of this feature for compatibility reasons

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Persistence Via AppCompat RegisterAppRestart Layer
id: b86852fb-4c77-48f9-8519-eb1b2c308b59
status: test
description: |
    Detects the setting of the REGISTERAPPRESTART compatibility layer on an application.
    This compatibility layer allows an application to register for restart using the "RegisterApplicationRestart" API.
    This can be potentially abused as a persistence mechanism.
references:
    - https://github.com/nasbench/Misc-Research/blob/d114d6a5e0a437d3818e492ef9864367152543e7/Other/Persistence-Via-RegisterAppRestart-Shim.md
author: Nasreddine Bencherchali (Nextron Systems)
date: 2024-01-01
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1546.011
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\'
        Details|contains: 'REGISTERAPPRESTART'
    condition: selection
falsepositives:
    - Legitimate applications making use of this feature for compatibility reasons
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\'
    Details|contains: 'REGISTERAPPRESTART'

Indicators

These rows show field, operator, and value matches.

Potential PowerShell Downgrade Attack

#
Status
test
Severity
medium
Author
Harish Segar (rule)
Source
github.com/SigmaHQ/sigma

Detects PowerShell downgrade attack by comparing the host versions with the actually used engine version 2.0

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential PowerShell Downgrade Attack
id: b3512211-c67e-4707-bedc-66efc7848863
related:
    - id: 6331d09b-4785-4c13-980f-f96661356249
      type: derived
status: test
description: Detects PowerShell downgrade attack by comparing the host versions with the actually used engine version 2.0
references:
    - http://www.leeholmes.com/blog/2017/03/17/detecting-and-preventing-powershell-downgrade-attacks/
    - https://github.com/r00t-3xp10it/hacking-material-books/blob/43cb1e1932c16ff1f58b755bc9ab6b096046853f/obfuscation/simple_obfuscation.md#bypass-or-avoid-amsi-by-version-downgrade-
author: Harish Segar (rule)
date: 2020-03-20
modified: 2023-01-04
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\powershell.exe'
        CommandLine|contains:
            - ' -version 2 '
            - ' -versio 2 '
            - ' -versi 2 '
            - ' -vers 2 '
            - ' -ver 2 '
            - ' -ve 2 '
            - ' -v 2 '
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\powershell.exe'
    CommandLine|contains:
        - ' -version 2 '
        - ' -versio 2 '
        - ' -versi 2 '
        - ' -vers 2 '
        - ' -ver 2 '
        - ' -ve 2 '
        - ' -v 2 '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -v 2
  • -ve 2
  • -ver 2
  • -vers 2
  • -versi 2
  • -versio 2
  • -version 2
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
field:"Image" kind:ends_with value:"\powershell.exe"

Potential Process Execution Proxy Via CL_Invocation.ps1

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

Detects calls to "SyncInvoke" that is part of the "CL_Invocation.ps1" script to proxy execution using "System.Diagnostics.Process"

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Process Execution Proxy Via CL_Invocation.ps1
id: a0459f02-ac51-4c09-b511-b8c9203fc429
status: test
description: Detects calls to "SyncInvoke" that is part of the "CL_Invocation.ps1" script to proxy execution using "System.Diagnostics.Process"
references:
    - https://lolbas-project.github.io/lolbas/Scripts/Cl_invocation/
    - https://twitter.com/bohops/status/948061991012327424
author: Nasreddine Bencherchali (Nextron Systems), oscd.community, Natalia Shornikova
date: 2020-10-14
modified: 2023-08-17
tags:
    - attack.stealth
    - attack.t1216
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        # Note: As this function is usually called from within powershell, classical process creation even would not catch it. This will only catch inline calls via "-Command" or "-ScriptBlock" flags for example.
        CommandLine|contains: 'SyncInvoke '
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains: 'SyncInvoke '

Indicators

These rows show field, operator, and value matches.

Potential Recon Activity Using DriverQuery.EXE

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

Detect usage of the "driverquery" utility to perform reconnaissance on installed drivers

Known False Positives

  • Legitimate usage by some scripts might trigger this as well

MITRE ATT&CK Coverage

TacticTechniques
DiscoveryNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Recon Activity Using DriverQuery.EXE
id: 9fc3072c-dc8f-4bf7-b231-18950000fadd
related:
    - id: a20def93-0709-4eae-9bd2-31206e21e6b2
      type: similar
status: test
description: Detect usage of the "driverquery" utility to perform reconnaissance on installed drivers
references:
    - https://thedfirreport.com/2023/01/09/unwrapping-ursnifs-gifts/
    - https://www.vmray.com/cyber-security-blog/analyzing-ursnif-behavior-malware-sandbox/
    - https://www.fireeye.com/blog/threat-research/2020/01/saigon-mysterious-ursnif-fork.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-19
modified: 2023-09-29
tags:
    - attack.discovery
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: 'driverquery.exe'
        - OriginalFileName: 'drvqry.exe'
    selection_parent:
        - ParentImage|endswith:
              - '\cscript.exe'
              - '\mshta.exe'
              - '\regsvr32.exe'
              - '\rundll32.exe'
              - '\wscript.exe'
        - ParentImage|contains:
              - '\AppData\Local\'
              - '\Users\Public\'
              - '\Windows\Temp\'
    condition: all of selection_*
falsepositives:
    - Legitimate usage by some scripts might trigger this as well
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_driverquery_recon/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: 'driverquery.exe'
    - OriginalFileName: 'drvqry.exe'

Stage 2: selection_parent

selection_parent:
    - ParentImage|endswith:
          - '\cscript.exe'
          - '\mshta.exe'
          - '\regsvr32.exe'
          - '\rundll32.exe'
          - '\wscript.exe'
    - ParentImage|contains:
          - '\AppData\Local\'
          - '\Users\Public\'
          - '\Windows\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • driverquery.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"driverquery.exe"
OriginalFileNameeq
  • drvqry.exe corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"drvqry.exe"
ParentImageends_with
  • \cscript.exe corpus 17 (sigma 17)
  • \mshta.exe corpus 13 (sigma 13)
  • \regsvr32.exe corpus 11 (sigma 11)
  • \rundll32.exe corpus 15 (sigma 15)
  • \wscript.exe corpus 19 (sigma 19)
field:"ParentImage" kind:ends_with
ParentImagematch
  • \AppData\Local\ corpus 2 (sigma 2)
  • \Users\Public\ corpus 2 (sigma 2)
  • \Windows\Temp\ corpus 2 (sigma 2)
field:"ParentImage" kind:match

Potential Remote WMI ActiveScriptEventConsumers Activity

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

Detect potential adversaries leveraging WMI ActiveScriptEventConsumers remotely to move laterally in a network. This event is best correlated and used as an enrichment to determine the potential lateral movement activity.

Known False Positives

  • SCCM

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Remote WMI ActiveScriptEventConsumers Activity
id: 9599c180-e3a8-4743-8f92-7fb96d3be648
status: test
description: |
    Detect potential adversaries leveraging WMI ActiveScriptEventConsumers remotely to move laterally in a network.
    This event is best correlated and used as an enrichment to determine the potential lateral movement activity.
references:
    - https://threathunterplaybook.com/hunts/windows/200902-RemoteWMIActiveScriptEventConsumers/notebook.html
author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
date: 2020-09-02
modified: 2024-09-02
tags:
    - attack.lateral-movement
    - attack.privilege-escalation
    - detection.threat-hunting
    - attack.persistence
    - attack.t1546.003
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4624
        LogonType: 3
        ProcessName|endswith: 'scrcons.exe'
    filter_main_local_system:
        TargetLogonId: '0x3e7' # Local System
    condition: selection and not 1 of filter_main_*
falsepositives:
    - SCCM
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    EventID: 4624
    LogonType: 3
    ProcessName|endswith: 'scrcons.exe'

Stage 2: not filter_main_local_system

filter_main_local_system:
    TargetLogonId: '0x3e7'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
LogonTypeeq
  • 3 corpus 30 (splunk 13, sigma 12, elastic 5)
field:"LogonType" kind:eq value:"3"
ProcessNameends_with
  • scrcons.exe
field:"process_name" kind:ends_with value:"scrcons.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
TargetLogonIdeq0x3e7excludes:TargetLogonId field:"TargetLogonId" value:"0x3e7"

Potential Suspicious Registry File Imported Via Reg.EXE

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

Detects the import of '.reg' files from suspicious paths using the 'reg.exe' utility

Known False Positives

  • Legitimate import of keys

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Suspicious Registry File Imported Via Reg.EXE
id: 62e0298b-e994-4189-bc87-bc699aa62d97
related:
    - id: 73bba97f-a82d-42ce-b315-9182e76c57b1
      type: derived
status: test
description: Detects the import of '.reg' files from suspicious paths using the 'reg.exe' utility
references:
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg-import
author: frack113, Nasreddine Bencherchali
date: 2022-08-01
modified: 2023-02-05
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_cli:
        CommandLine|contains: ' import '
    selection_paths:
        CommandLine|contains:
            - 'C:\Users\'
            - '%temp%'
            - '%tmp%'
            - '%appdata%'
            - '\AppData\Local\Temp\'
            - 'C:\Windows\Temp\'
            - 'C:\ProgramData\'
    condition: all of selection_*
falsepositives:
    - Legitimate import of keys
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: ' import '

Stage 3: selection_paths

selection_paths:
    CommandLine|contains:
        - 'C:\Users\'
        - '%temp%'
        - '%tmp%'
        - '%appdata%'
        - '\AppData\Local\Temp\'
        - 'C:\Windows\Temp\'
        - 'C:\ProgramData\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • import
  • %appdata% corpus 11 (sigma 11)
  • %temp% corpus 14 (sigma 13, kusto 1)
  • %tmp% corpus 13 (sigma 13)
  • C:\ProgramData\ corpus 6 (sigma 6)
  • C:\Users\ corpus 7 (sigma 7)
  • C:\Windows\Temp\ corpus 7 (sigma 7)
  • \AppData\Local\Temp\ corpus 28 (sigma 26, elastic 2)
field:"CommandLine" kind:match
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"
OriginalFileNameeq
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
field:"OriginalFileName" kind:eq value:"reg.exe"

Potentially Suspicious Explicit Credential Local Logon

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

Detects potentially suspicious explicit credential logon events where the user is trying to logon with explicit credentials (username and password) that are different from the current user context. It might indicate an attacker attempting to escalate privileges after obtaining credentials for a different user account.

Known False Positives

  • RunAs usage from user-installed applications outside Program Files
  • Administrative scripts using explicit credentials from non-standard paths

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potentially Suspicious Explicit Credential Local Logon
id: e3c6d245-7b8f-4e2a-c17f-a9d0e5b38f62
status: experimental
description: |
    Detects potentially suspicious explicit credential logon events where the user
    is trying to logon with explicit credentials (username and password) that are
    different from the current user context. It might indicate an attacker attempting
    to escalate privileges after obtaining credentials for a different user account.
references:
    - https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4648
    - https://github.com/MSNightmare/LegacyHive
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2026-07-23
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134
    - attack.t1134.003
logsource:
    product: windows
    service: security
detection:
    selection_eid:
        EventID: 4648
    selection_localhost:
        - TargetServerName: 'localhost'
        - TargetInfo: 'localhost'
        - IpAddress:
              - '127.0.0.1'
              - '::1'
    filter_main_computer_accounts:
        SubjectUserName|endswith: '$'
    filter_main_system_processes:
        ProcessName|startswith:
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Windows\WinSxS\'
    filter_main_program_files:
        ProcessName|startswith:
            - 'C:\Program Files\'
            - 'C:\Program Files (x86)\'
    filter_main_same_user:
        SubjectUserName|fieldref: TargetUserName
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - RunAs usage from user-installed applications outside Program Files
    - Administrative scripts using explicit credentials from non-standard paths
level: medium
regression_tests_path: regression_data/rules/windows/builtin/security/win_security_explicit_credential_local_logon/info.yml

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_eid

selection_eid:
    EventID: 4648

Stage 2: selection_localhost

selection_localhost:
    - TargetServerName: 'localhost'
    - TargetInfo: 'localhost'
    - IpAddress:
          - '127.0.0.1'
          - '::1'

Stage 3: not filter_main_*

filter_main_computer_accounts:
    SubjectUserName|endswith: '$'
filter_main_system_processes:
    ProcessName|startswith:
        - 'C:\Windows\System32\'
        - 'C:\Windows\SysWOW64\'
        - 'C:\Windows\WinSxS\'
filter_main_program_files:
    ProcessName|startswith:
        - 'C:\Program Files\'
        - 'C:\Program Files (x86)\'
filter_main_same_user:
    SubjectUserName|fieldref: TargetUserName

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
IpAddresseq
  • 127.0.0.1 corpus 6 (sigma 5, splunk 1)
  • ::1 corpus 6 (sigma 6)
field:"src_ip" kind:eq
TargetInfoeq
  • localhost
field:"TargetInfo" kind:eq value:"localhost"
TargetServerNameeq
  • localhost corpus 2 (sigma 2)
field:"TargetServerName" kind:eq value:"localhost"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ProcessNamestarts_withC:\Program Files (x86)\excludes:ProcessName field:"ProcessName" value:"C:\Program Files (x86)\"
ProcessNamestarts_withC:\Program Files\excludes:ProcessName field:"ProcessName" value:"C:\Program Files\"
ProcessNamestarts_withC:\Windows\SysWOW64\excludes:ProcessName field:"ProcessName" value:"C:\Windows\SysWOW64\"
ProcessNamestarts_withC:\Windows\System32\excludes:ProcessName field:"ProcessName" value:"C:\Windows\System32\"
ProcessNamestarts_withC:\Windows\WinSxS\excludes:ProcessName field:"ProcessName" value:"C:\Windows\WinSxS\"
SubjectUserNamecross_field_compareTargetUserNameexcludes:SubjectUserName field:"SubjectUserName" value:"TargetUserName"
SubjectUserNameends_with$excludes:SubjectUserName field:"SubjectUserName" value:"$"

Powershell Local Email Collection

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

Adversaries may target user email on local systems to collect sensitive information. Files containing email data can be acquired from a users local system, such as Outlook storage or cache files.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Powershell Local Email Collection
id: 2837e152-93c8-43d2-85ba-c3cd3c2ae614
status: test
description: |
    Adversaries may target user email on local systems to collect sensitive information.
    Files containing email data can be acquired from a users local system, such as Outlook storage or cache files.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1114.001/T1114.001.md
author: frack113
date: 2021-07-21
modified: 2022-12-25
tags:
    - attack.collection
    - attack.t1114.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - 'Get-Inbox.ps1'
            - 'Microsoft.Office.Interop.Outlook'
            - 'Microsoft.Office.Interop.Outlook.olDefaultFolders'
            - '-comobject outlook.application'
    condition: selection
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_susp_mail_acces/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains:
        - 'Get-Inbox.ps1'
        - 'Microsoft.Office.Interop.Outlook'
        - 'Microsoft.Office.Interop.Outlook.olDefaultFolders'
        - '-comobject outlook.application'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -comobject outlook.application
  • Get-Inbox.ps1
  • Microsoft.Office.Interop.Outlook
  • Microsoft.Office.Interop.Outlook.olDefaultFolders
field:"ScriptBlockText" kind:match

Success login attempt on a Windows OpenSSH server

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

Detects scenarios where an attacker attempts to connect to a Windows host using the SSH protocol.

Known False Positives

  • Normal administrator activity

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: Success login attempt on a Windows OpenSSH server
description: Detects scenarios where an attacker attempts to connect to a Windows host using the SSH protocol.
remarks: This requires to have previously enabled the builtin OpenSSH server or to have installed the "OpenSSH-Win64" component. IpAddress or Workstation fields may be empty. In case Workstation field is not empty, be aware that it may wrongly report the source host. Moreover, the 1st initial connection attempt (before SSH credentials prompt) will be reported with event ID 4624, logon type 5 (service) and target user "sshd_*". Following authenticated events will be with logon type 3 (network) and 8 (clear text). For reliable source IP information, use the logs from the OpenSSH channel, event ID 4.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0001-Initial%20access/T1078-Valid%20accounts
- https://winaero.com/enable-openssh-server-windows-10/
- https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
- https://virtualizationreview.com/articles/2020/05/21/ssh-server-on-windows-10.aspx
- https://www.microsoft.com/en-us/security/blog/2022/10/18/defenders-beware-a-case-for-post-ransomware-investigations/
tags:
- attack.valid_account
- attack.t1078
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection_event:
    EventID: 4624
    ProcessName|endswith: '\sshd.exe'
  filter_user:
    TargetUserSid|startswith: 'S-1-5-111-' # Exclude "sshd_*" system events
  filter_ssh_servers:
    Computer: '%win_ssh_servers%' # List of Windows hosts where OpenSSH server is officialy known as installed and active.
  condition: selection_event and not (filter_user or filter_ssh_servers)
falsepositives:
- Normal administrator activity
level: medium

Stages and Predicates

Stage 0: condition

selection_event and not (filter_user or filter_ssh_servers)

Stage 1: selection_event

selection_event:
  EventID: 4624
  ProcessName|endswith: '\sshd.exe'

Stage 2: not filter_user

filter_user:
  TargetUserSid|startswith: 'S-1-5-111-'

Stage 3: not filter_ssh_servers

filter_ssh_servers:
  Computer: '%win_ssh_servers%'

Indicators

These rows show field, operator, and value matches.

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

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
TargetUserSidstarts_withS-1-5-111-excludes:TargetUserSid field:"TargetUserSid" value:"S-1-5-111-"
Computereq%win_ssh_servers%excludes:Computer field:"Computer" value:"%win_ssh_servers%"

Suspicious Computer Machine Password by PowerShell

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

The Reset-ComputerMachinePassword cmdlet changes the computer account password that the computers use to authenticate to the domain controllers in the domain. You can use it to reset the password of the local computer.

Known False Positives

  • Administrator PowerShell scripts

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: Suspicious Computer Machine Password by PowerShell
id: e3818659-5016-4811-a73c-dde4679169d2
status: test
description: |
    The Reset-ComputerMachinePassword cmdlet changes the computer account password that the computers use to authenticate to the domain controllers in the domain.
    You can use it to reset the password of the local computer.
references:
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/reset-computermachinepassword?view=powershell-5.1
    - https://thedfirreport.com/2022/02/21/qbot-and-zerologon-lead-to-full-domain-compromise/
author: frack113
date: 2022-02-21
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.initial-access
    - attack.stealth
    - attack.t1078
logsource:
    product: windows
    category: ps_module
    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
    selection:
        ContextInfo|contains: 'Reset-ComputerMachinePassword'
    condition: selection
falsepositives:
    - Administrator PowerShell scripts
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ContextInfo|contains: 'Reset-ComputerMachinePassword'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ContextInfomatch
  • Reset-ComputerMachinePassword
field:"ContextInfo" kind:match value:"Reset-ComputerMachinePassword"

Suspicious Windows Defender Registry Key Tampering Via Reg.EXE

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

Detects the usage of "reg.exe" to tamper with different Windows Defender registry keys in order to disable some important features related to protection and detection

Known False Positives

  • Rare legitimate use by administrators to test software (should always be investigated)

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Windows Defender Registry Key Tampering Via Reg.EXE
id: 452bce90-6fb0-43cc-97a5-affc283139b3
status: test
description: |
    Detects the usage of "reg.exe" to tamper with different Windows Defender registry keys in order to disable some important features related to protection and detection
references:
    - https://thedfirreport.com/2022/03/21/apt35-automates-initial-access-using-proxyshell/
    - https://github.com/swagkarna/Defeat-Defender-V1.2.0/tree/ae4059c4276da6f6303b8f53cdff085ecae88a91
    - https://www.elevenforum.com/t/video-guide-how-to-completely-disable-microsoft-defender-antivirus.14608/page-2
    - https://tria.ge/241231-j9yatstqbm/behavioral1
author: Florian Roth (Nextron Systems), Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
date: 2022-03-22
modified: 2025-06-04
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    selection_root_img:
        - Image|endswith: '\reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_root_path:
        CommandLine|contains:
            - 'SOFTWARE\Microsoft\Windows Defender\'
            - 'SOFTWARE\Policies\Microsoft\Windows Defender Security Center'
            - 'SOFTWARE\Policies\Microsoft\Windows Defender\'
    selection_dword_0:
        CommandLine|contains|all:
            - ' add '
            - 'd 0'
        CommandLine|contains:
            - 'DisallowExploitProtectionOverride'
            - 'EnableControlledFolderAccess'
            - 'MpEnablePus'
            - 'PUAProtection'
            - 'SpynetReporting'
            - 'SubmitSamplesConsent'
            - 'TamperProtection'
    selection_dword_1:
        CommandLine|contains|all:
            - ' add '
            - 'd 1'
        CommandLine|contains:
            - 'DisableAccess'
            - 'DisableAntiSpyware'
            - 'DisableAntiSpywareRealtimeProtection'
            - 'DisableAntiVirus'
            - 'DisableAntiVirusSignatures'
            - 'DisableArchiveScanning'
            - 'DisableBehaviorMonitoring'
            - 'DisableBlockAtFirstSeen'
            - 'DisableCloudProtection'
            - 'DisableConfig'
            - 'DisableEnhancedNotifications'
            - 'DisableIntrusionPreventionSystem'
            - 'DisableIOAVProtection'
            - 'DisableNetworkProtection'
            - 'DisableOnAccessProtection'
            - 'DisablePrivacyMode'
            - 'DisableRealtimeMonitoring'
            - 'DisableRoutinelyTakingAction'
            - 'DisableScanOnRealtimeEnable'
            - 'DisableScriptScanning'
            - 'DisableSecurityCenter'
            - 'Notification_Suppress'
            - 'SignatureDisableUpdateOnStartupWithoutEngine'
    condition: all of selection_root_* and 1 of selection_dword_*
falsepositives:
    - Rare legitimate use by administrators to test software (should always be investigated)
level: high

Stages and Predicates

Stage 0: condition

all of selection_root_* and 1 of selection_dword_*

Stage 1: selection_root_img

selection_root_img:
    - Image|endswith: '\reg.exe'
    - OriginalFileName: 'reg.exe'

Stage 2: selection_root_path

selection_root_path:
    CommandLine|contains:
        - 'SOFTWARE\Microsoft\Windows Defender\'
        - 'SOFTWARE\Policies\Microsoft\Windows Defender Security Center'
        - 'SOFTWARE\Policies\Microsoft\Windows Defender\'

Stage 3: selection_dword_0

selection_dword_0:
    CommandLine|contains|all:
        - ' add '
        - 'd 0'
    CommandLine|contains:
        - 'DisallowExploitProtectionOverride'
        - 'EnableControlledFolderAccess'
        - 'MpEnablePus'
        - 'PUAProtection'
        - 'SpynetReporting'
        - 'SubmitSamplesConsent'
        - 'TamperProtection'

Stage 4: selection_dword_1

selection_dword_1:
    CommandLine|contains|all:
        - ' add '
        - 'd 1'
    CommandLine|contains:
        - 'DisableAccess'
        - 'DisableAntiSpyware'
        - 'DisableAntiSpywareRealtimeProtection'
        - 'DisableAntiVirus'
        - 'DisableAntiVirusSignatures'
        - 'DisableArchiveScanning'
        - 'DisableBehaviorMonitoring'
        - 'DisableBlockAtFirstSeen'
        - 'DisableCloudProtection'
        - 'DisableConfig'
        - 'DisableEnhancedNotifications'
        - 'DisableIntrusionPreventionSystem'
        - 'DisableIOAVProtection'
        - 'DisableNetworkProtection'
        - 'DisableOnAccessProtection'
        - 'DisablePrivacyMode'
        - 'DisableRealtimeMonitoring'
        - 'DisableRoutinelyTakingAction'
        - 'DisableScanOnRealtimeEnable'
        - 'DisableScriptScanning'
        - 'DisableSecurityCenter'
        - 'Notification_Suppress'
        - 'SignatureDisableUpdateOnStartupWithoutEngine'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • add corpus 14 (sigma 13, splunk 1)
  • DisableAccess
  • DisableAntiSpyware corpus 3 (sigma 3)
  • DisableAntiSpywareRealtimeProtection
  • DisableAntiVirus
  • DisableAntiVirusSignatures
  • DisableArchiveScanning corpus 2 (sigma 2)
  • DisableBehaviorMonitoring corpus 2 (sigma 2)
  • DisableBlockAtFirstSeen corpus 2 (sigma 2)
  • DisableCloudProtection
  • DisableConfig corpus 2 (sigma 2)
  • DisableEnhancedNotifications
  • DisableIOAVProtection corpus 2 (sigma 2)
  • DisableIntrusionPreventionSystem corpus 2 (sigma 2)
  • DisableNetworkProtection
  • DisableOnAccessProtection
  • DisablePrivacyMode
  • DisableRealtimeMonitoring corpus 2 (sigma 2)
  • DisableRoutinelyTakingAction
  • DisableScanOnRealtimeEnable
  • DisableScriptScanning corpus 2 (sigma 2)
  • DisableSecurityCenter
  • DisallowExploitProtectionOverride
  • EnableControlledFolderAccess
  • MpEnablePus
  • Notification_Suppress
  • PUAProtection corpus 2 (sigma 1, splunk 1)
  • SOFTWARE\Microsoft\Windows Defender\
  • SOFTWARE\Policies\Microsoft\Windows Defender Security Center
  • SOFTWARE\Policies\Microsoft\Windows Defender\
  • SignatureDisableUpdateOnStartupWithoutEngine corpus 2 (sigma 2)
  • SpynetReporting
  • SubmitSamplesConsent
  • TamperProtection
  • d 0
  • d 1
field:"CommandLine" kind:match
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"
OriginalFileNameeq
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
field:"OriginalFileName" kind:eq value:"reg.exe"

Symlink Etc Passwd

#

Triple Cross eBPF Rootkit Install Commands

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

Detects default install commands of the Triple Cross eBPF rootkit based on the "deployer.sh" script

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Triple Cross eBPF Rootkit Install Commands
id: 22236d75-d5a0-4287-bf06-c93b1770860f
status: test
description: Detects default install commands of the Triple Cross eBPF rootkit based on the "deployer.sh" script
references:
    - https://github.com/h3xduck/TripleCross/blob/1f1c3e0958af8ad9f6ebe10ab442e75de33e91de/apps/deployer.sh
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-05
tags:
    - attack.stealth
    - attack.t1014
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith: '/sudo'
        CommandLine|contains|all:
            - ' tc '
            - ' enp0s3 '
        CommandLine|contains:
            - ' qdisc '
            - ' filter '
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '/sudo'
    CommandLine|contains|all:
        - ' tc '
        - ' enp0s3 '
    CommandLine|contains:
        - ' qdisc '
        - ' filter '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • enp0s3
  • filter
  • qdisc
  • tc
field:"CommandLine" kind:match
Imageends_with
  • /sudo corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"/sudo"

Uncommon Child Process Of AddinUtil.EXE

#
Status
test
Severity
medium
Author
Michael McKinley (@McKinleyMike), Tony Latteri (@TheLatteri)
Source
github.com/SigmaHQ/sigma

Detects uncommon child processes of the Add-In deployment cache updating utility (AddInutil.exe) which could be a sign of potential abuse of the binary to proxy execution via a custom Addins.Store payload.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Uncommon Child Process Of AddinUtil.EXE
id: b5746143-59d6-4603-8d06-acbd60e166ee
status: test
description: |
    Detects uncommon child processes of the Add-In deployment cache updating utility (AddInutil.exe) which could be a sign of potential abuse of the binary to proxy execution via a custom Addins.Store payload.
references:
    - https://www.blue-prints.blog/content/blog/posts/lolbin/addinutil-lolbas.html
author: Michael McKinley (@McKinleyMike), Tony Latteri (@TheLatteri)
date: 2023-09-18
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\addinutil.exe'
    filter_main_werfault:
        Image|endswith:
            - ':\Windows\System32\conhost.exe'
            - ':\Windows\System32\werfault.exe'
            - ':\Windows\SysWOW64\werfault.exe'
    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:
    ParentImage|endswith: '\addinutil.exe'

Stage 2: not filter_main_werfault

filter_main_werfault:
    Image|endswith:
        - ':\Windows\System32\conhost.exe'
        - ':\Windows\System32\werfault.exe'
        - ':\Windows\SysWOW64\werfault.exe'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with:\Windows\SysWOW64\werfault.exeexcludes:Image field:"Image" value:":\Windows\SysWOW64\werfault.exe"
Imageends_with:\Windows\System32\conhost.exeexcludes:Image field:"Image" value:":\Windows\System32\conhost.exe"
Imageends_with:\Windows\System32\werfault.exeexcludes:Image field:"Image" value:":\Windows\System32\werfault.exe"

Uncommon Svchost Parent Process

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

Detects an uncommon svchost parent process

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Uncommon Svchost Parent Process
id: 01d2e2a1-5f09-44f7-9fc1-24faa7479b6d
status: test
description: Detects an uncommon svchost parent process
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2017-08-15
modified: 2022-06-28
tags:
    - attack.stealth
    - attack.t1036.005
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\svchost.exe'
    filter_main_generic:
        ParentImage|endswith:
            - '\Mrt.exe'
            - '\MsMpEng.exe'
            - '\ngen.exe'
            - '\rpcnet.exe'
            - '\services.exe'
            - '\TiWorker.exe'
    filter_main_parent_null:
        ParentImage: null
    filter_main_parent_empty:
        ParentImage:
            - '-'
            - ''
    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:
    Image|endswith: '\svchost.exe'

Stage 2: not filter_main_*

filter_main_generic:
    ParentImage|endswith:
        - '\Mrt.exe'
        - '\MsMpEng.exe'
        - '\ngen.exe'
        - '\rpcnet.exe'
        - '\services.exe'
        - '\TiWorker.exe'
filter_main_parent_null:
    ParentImage: null
filter_main_parent_empty:
    ParentImage:
        - '-'
        - ''

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \svchost.exe corpus 22 (sigma 22)
field:"Image" kind:ends_with value:"\svchost.exe"

Exclusions

The rule actively suppresses these predicates.

Wdigest Enable UseLogonCredential

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

Detects potential malicious modification of the property value of UseLogonCredential from HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest to enable clear-text credentials

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Defense Impairment

Telemetry Coverage

Rule Body

title: Wdigest Enable UseLogonCredential
id: d6a9b252-c666-4de6-8806-5561bbbd3bdc
status: test
description: Detects potential malicious modification of the property value of UseLogonCredential from HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest to enable clear-text credentials
references:
    - https://threathunterplaybook.com/hunts/windows/190510-RegModWDigestDowngrade/notebook.html
    - https://support.microsoft.com/en-us/topic/microsoft-security-advisory-update-to-improve-credentials-protection-and-management-may-13-2014-93434251-04ac-b7f3-52aa-9f951c14b649
    - https://github.com/redcanaryco/atomic-red-team/blob/73fcfa1d4863f6a4e17f90e54401de6e30a312bb/atomics/T1112/T1112.md#atomic-test-3---modify-registry-to-store-logon-credentials
author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
date: 2019-09-12
modified: 2023-08-17
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: 'WDigest\UseLogonCredential'
        Details: DWORD (0x00000001)
    condition: selection
falsepositives:
    - Unknown
level: high
simulation:
    - type: atomic-red-team
      name: Modify registry to store logon credentials
      technique: T1112
      atomic_guid: c0413fb5-33e2-40b7-9b6f-60b29f4a7a18

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith: 'WDigest\UseLogonCredential'
    Details: DWORD (0x00000001)

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailseq
  • DWORD (0x00000001) corpus 36 (sigma 36)
field:"Details" kind:eq value:"DWORD (0x00000001)"
TargetObjectends_with
  • WDigest\UseLogonCredential
field:"TargetObject" kind:ends_with value:"WDigest\UseLogonCredential"

Windows Defender Grace Period Expired

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

Detects the expiration of the grace period of Windows Defender. This means protection against viruses, spyware, and other potentially unwanted software is disabled.

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Windows Defender Grace Period Expired
id: 360a1340-398a-46b6-8d06-99b905dc69d2
related:
    - id: fe34868f-6e0e-4882-81f6-c43aa8f15b62
      type: obsolete
status: stable
description: |
    Detects the expiration of the grace period of Windows Defender. This means protection against viruses, spyware, and other potentially unwanted software is disabled.
references:
    - https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus?view=o365-worldwide#event-id-5101
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://craigclouditpro.wordpress.com/2020/03/04/hunting-malicious-windows-defender-activity/
author: Ján Trenčanský, frack113
date: 2020-07-28
modified: 2023-11-22
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    service: windefend
detection:
    selection:
        EventID: 5101 # The antimalware platform is expired.
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 5101

Back to all Sigma rules