Detection rules › Sigma

Sigma rules: 1l

RuleSeverity
Attempt To Stop CloudTrail Loggingmedium
AWS EC2 VM Export Failurelow
CVE-2023-40477 Potential Exploitation - .REV File Creationlow
Desktop.INI Created by Uncommon Processmedium
Google Cloud Service Account Modifiedmedium
Invalid PIM Licensehigh
Invoke-Obfuscation COMPRESS OBFUSCATIONmedium
Massive remote service creation via named pipes - Tchopperhigh
Mint Sandstorm - AsperaFaspex Suspicious Process Executioncritical
Netcat The Powershell Versionmedium
Network Connection Initiated To Mega.nzlow
New File Association Using Exefilehigh
Office Autorun Keys Modificationmedium
Potential Application Whitelisting Bypass via Dnx.EXEmedium
Potential CVE-2023-36884 Exploitation Dropped Filemedium
Potential Data Exfiltration Over SMTP Via Send-MailMessage Cmdletmedium
Potential Homoglyph Attack Using Lookalike Characters in Filenamemedium
Potential MsiExec Masqueradinghigh
Potential Persistence Via Logon Scripts - Registrymedium
Potential Persistence Via Outlook Formhigh
Potential Persistence Via TypedPathshigh
Potential Persistence Via Visual Studio Tools for Officemedium
Potential Pikabot Infection - Suspicious Command Combinations Via Cmd.EXEmedium
Potential Process Reconnaissance via Wmic.EXEmedium
Powershell Add Name Resolution Policy Table Rulehigh
PowerShell Script Change Permission Via Set-Acl - PsScriptlow
PUA - Advanced Port Scanner Executionmedium
Registry Persistence Mechanisms in Recycle Binhigh
Shadow Copies Creation Using Operating Systems Utilitiesmedium
SQL Server auditing deactivatedhigh
Suspicious Commands Linuxmedium
Suspicious Creation TXT File in User Desktopmedium
Suspicious Network Communication With IPFSlow
System Network Connections Discovery - MacOsinformational
Unusually Long PowerShell CommandLinelow
VSS backup deletion (WMI)high
Windows Defender Exploit Guard Tamperhigh

Attempt To Stop CloudTrail Logging

#
Status
test
Severity
medium
Author
Zach Mathis (@yamatosecurity)
Source
github.com/Yamato-Security/suzaku-rules

A user attempted to disable CloudTrail logging but it was denied due to a lack of permissions. Sample command line: aws cloudtrail stop-logging --name TrailName

Known False Positives

  • Admins trying to turn off unneeded logging but lacked permissions.

MITRE ATT&CK Coverage

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: Attempt To Stop CloudTrail Logging
id: 21a06b91-4860-4d2c-96fb-5c5c6374e3b2
status: test
description: |
    A user attempted to disable CloudTrail logging but it was denied due to a lack of permissions.
    Sample command line: aws cloudtrail stop-logging --name TrailName
references:
    - https://securitylabs.datadoghq.com/cloud-security-atlas/attacks/stopping-cloudtrail-trail/
    - https://research.splunk.com/cloud/8a2f3ca2-4eb5-4389-a549-14063882e537/
    - https://logrhythm.com/blog/aws-defense-evasion-and-centralized-multi-account-logging/
    - https://medium.com/daniel-grzelak/disrupting-aws-logging-a42e437d6594
    - https://pages.awscloud.com/rs/112-TZM-766/images/Visibility_detect_respond_AWS_SANS_whitepaper.pdf
    - https://traildiscover.cloud/#CloudTrail-StopLogging
author: Zach Mathis (@yamatosecurity)
date: 2025-04-23
modified: 2025-04-23
tags:
    - attack.defense-evasion
    - attack.t1562.008 # Impair Defenses: Disable or Modify Cloud Logs
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 'cloudtrail.amazonaws.com'
        eventName: 'StopLogging'
        errorCode: 'AccessDenied'
    condition: selection
falsepositives:
    - Admins trying to turn off unneeded logging but lacked permissions.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: 'cloudtrail.amazonaws.com'
    eventName: 'StopLogging'
    errorCode: 'AccessDenied'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
errorCodeeq
  • AccessDenied corpus 16 (sigma 11, splunk 3, elastic 1, panther 1)
field:"aws::errorCode" kind:eq value:"AccessDenied"
eventNameeq
  • StopLogging corpus 5 (sigma 3, splunk 2)
field:"aws::eventName" kind:eq value:"StopLogging"
eventSourceeq
  • cloudtrail.amazonaws.com corpus 10 (sigma 7, splunk 3)
field:"aws::eventSource" kind:eq value:"cloudtrail.amazonaws.com"

AWS EC2 VM Export Failure

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

An attempt to export an AWS EC2 instance has been detected. A VM Export might indicate an attempt to extract information from an instance.

MITRE ATT&CK Coverage

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: AWS EC2 VM Export Failure
id: 54b9a76a-3c71-4673-b4b3-2edb4566ea7b
status: test
description: An attempt to export an AWS EC2 instance has been detected. A VM Export might indicate an attempt to extract information from an instance.
references:
    - https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html#export-instance
author: Diogo Braz
date: 2020-04-16
modified: 2022-10-05
tags:
    - attack.collection
    - attack.t1005
    - attack.exfiltration
    - attack.t1537
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventName: 'CreateInstanceExportTask'
        eventSource: 'ec2.amazonaws.com'
    filter1:
        errorMessage|contains: '*'
    filter2:
        errorCode|contains: '*'
    filter3:
        responseElements|contains: 'Failure'
    condition: selection and not 1 of filter*
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter*

Stage 1: selection

selection:
    eventName: 'CreateInstanceExportTask'
    eventSource: 'ec2.amazonaws.com'

Stage 2: not filter*

filter1:
    errorMessage|contains: '*'
filter2:
    errorCode|contains: '*'
filter3:
    responseElements|contains: 'Failure'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventNameeq
  • CreateInstanceExportTask
field:"aws::eventName" kind:eq value:"CreateInstanceExportTask"
eventSourceeq
  • ec2.amazonaws.com corpus 13 (sigma 10, panther 2, splunk 1)
field:"aws::eventSource" kind:eq value:"ec2.amazonaws.com"

Exclusions

The rule actively suppresses these predicates.

CVE-2023-40477 Potential Exploitation - .REV File Creation

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

Detects the creation of ".rev" files by WinRAR. Could be indicative of potential exploitation of CVE-2023-40477. Look for a suspicious execution shortly after creation or a WinRAR application crash.

Known False Positives

  • Legitimate extraction of multipart or recovery volumes ZIP files

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: CVE-2023-40477 Potential Exploitation - .REV File Creation
id: c3bd6c55-d495-4c34-918e-e03e8828c074
status: test
description: Detects the creation of ".rev" files by WinRAR. Could be indicative of potential exploitation of CVE-2023-40477. Look for a suspicious execution shortly after creation or a WinRAR application crash.
references:
    - https://wildptr.io/winrar-cve-2023-40477-poc-new-vulnerability-winrar-security-research/
    - https://github.com/wildptr-io/Winrar-CVE-2023-40477-POC
    - https://www.rarlab.com/vuln_rev3_names.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-31
tags:
    - attack.execution
    - cve.2023-40477
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith:
            - '\explorer.exe' # When extracted via context menu
            - '\WinRAR.exe'
        TargetFilename|endswith: '.rev'
    condition: selection
falsepositives:
    - Legitimate extraction of multipart or recovery volumes ZIP files
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\explorer.exe'
        - '\WinRAR.exe'
    TargetFilename|endswith: '.rev'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \WinRAR.exe corpus 6 (sigma 6)
  • \explorer.exe corpus 13 (sigma 13)
field:"Image" kind:ends_with
TargetFilenameends_with
  • .rev
field:"TargetFilename" kind:ends_with value:".rev"

Desktop.INI Created by Uncommon Process

#
Status
test
Severity
medium
Author
Maxime Thiebaut (@0xThiebaut), Tim Shelton (HAWK.IO)
Source
github.com/SigmaHQ/sigma

Detects unusual processes accessing desktop.ini, which can be leveraged to alter how Explorer displays a folder's content (i.e. renaming files) without changing them on disk.

Known False Positives

  • Operations performed through Windows SCCM or equivalent
  • Read only access list authority

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Desktop.INI Created by Uncommon Process
id: 81315b50-6b60-4d8f-9928-3466e1022515
status: test
description: Detects unusual processes accessing desktop.ini, which can be leveraged to alter how Explorer displays a folder's content (i.e. renaming files) without changing them on disk.
references:
    - https://isc.sans.edu/forums/diary/Desktopini+as+a+postexploitation+tool/25912/
author: Maxime Thiebaut (@0xThiebaut), Tim Shelton (HAWK.IO)
date: 2020-03-19
modified: 2025-12-09
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.009
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|endswith: '\desktop.ini'
    filter_main_generic:
        Image|startswith:
            - 'C:\Windows\'
            - 'C:\Program Files\'
            - 'C:\Program Files (x86)\'
    filter_main_upgrade:
        TargetFilename|startswith: 'C:\$WINDOWS.~BT\NewOS\'
    filter_optional_jetbrains:
        Image|startswith: 'C:\Users\'
        Image|endswith: '\AppData\Local\JetBrains\Toolbox\bin\7z.exe'
        TargetFilename|contains: '\JetBrains\apps\'
    filter_optional_onedrive:
        Image|startswith: 'C:\Users\'
        Image|contains: '\AppData\Local\Microsoft\OneDrive\'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Operations performed through Windows SCCM or equivalent
    - Read only access list authority
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:
    TargetFilename|endswith: '\desktop.ini'

Stage 2: not filter_main_*

filter_main_generic:
    Image|startswith:
        - 'C:\Windows\'
        - 'C:\Program Files\'
        - 'C:\Program Files (x86)\'
filter_main_upgrade:
    TargetFilename|startswith: 'C:\$WINDOWS.~BT\NewOS\'

Stage 3: not filter_optional_*

filter_optional_jetbrains:
    Image|startswith: 'C:\Users\'
    Image|endswith: '\AppData\Local\JetBrains\Toolbox\bin\7z.exe'
    TargetFilename|contains: '\JetBrains\apps\'
filter_optional_onedrive:
    Image|startswith: 'C:\Users\'
    Image|contains: '\AppData\Local\Microsoft\OneDrive\'

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\excludes:Image field:"Image" value:"C:\Windows\"
TargetFilenamestarts_withC:\$WINDOWS.~BT\NewOS\excludes:TargetFilename field:"TargetFilename" value:"C:\$WINDOWS.~BT\NewOS\"
Imageends_with\AppData\Local\JetBrains\Toolbox\bin\7z.exeexcludes:Image field:"Image" value:"\AppData\Local\JetBrains\Toolbox\bin\7z.exe"
Imagestarts_withC:\Users\excludes:Image field:"Image" value:"C:\Users\"
TargetFilenamematch\JetBrains\apps\excludes:TargetFilename field:"TargetFilename" value:"\JetBrains\apps\"
Imagematch\AppData\Local\Microsoft\OneDrive\excludes:Image field:"Image" value:"\AppData\Local\Microsoft\OneDrive\"

Google Cloud Service Account Modified

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

Identifies when a service account is modified in Google Cloud.

Known False Positives

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

MITRE ATT&CK Coverage

TacticTechniques
ImpactNo specific technique

Telemetry Coverage

Rule Body

title: Google Cloud Service Account Modified
id: 6b67c12e-5e40-47c6-b3b0-1e6b571184cc
status: test
description: Identifies when a service account is modified in Google Cloud.
references:
    - https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts
author: Austin Songer @austinsonger
date: 2021-08-14
modified: 2022-10-09
tags:
    - attack.impact
logsource:
    product: gcp
    service: gcp.audit
detection:
    selection:
        gcp.audit.method_name|endswith:
            - .serviceAccounts.patch
            - .serviceAccounts.create
            - .serviceAccounts.update
            - .serviceAccounts.enable
            - .serviceAccounts.undelete
    condition: selection
falsepositives:
    - Service Account being modified may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
    - Service Account modified from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    gcp.audit.method_name|endswith:
        - .serviceAccounts.patch
        - .serviceAccounts.create
        - .serviceAccounts.update
        - .serviceAccounts.enable
        - .serviceAccounts.undelete

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
gcp.audit.method_nameends_with
  • .serviceAccounts.create
  • .serviceAccounts.enable
  • .serviceAccounts.patch
  • .serviceAccounts.undelete
  • .serviceAccounts.update
field:"gcp::method_name" kind:ends_with

Invalid PIM License

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

Identifies when an organization doesn't have the proper license for PIM and is out of compliance.

Known False Positives

  • Investigate if licenses have expired.

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Rule Body

title: Invalid PIM License
id: 58af08eb-f9e1-43c8-9805-3ad9b0482bd8
status: test
description: Identifies when an organization doesn't have the proper license for PIM and is out of compliance.
references:
    - https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-how-to-configure-security-alerts#the-organization-doesnt-have-microsoft-entra-premium-p2-or-microsoft-entra-id-governance
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: 'invalidLicenseAlertIncident'
    condition: selection
falsepositives:
    - Investigate if licenses have expired.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    riskEventType: 'invalidLicenseAlertIncident'

Indicators

These rows show field, operator, and value matches.

Invoke-Obfuscation COMPRESS OBFUSCATION

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

Detects Obfuscated Powershell via COMPRESS OBFUSCATION

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation COMPRESS OBFUSCATION
id: 7eedcc9d-9fdb-4d94-9c54-474e8affc0c7
status: test
description: Detects Obfuscated Powershell via COMPRESS OBFUSCATION
references:
    - https://github.com/SigmaHQ/sigma/issues/1009 # (Task 19)
author: Timur Zinniatullin, oscd.community
date: 2020-10-18
modified: 2022-12-29
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'new-object'
            - 'text.encoding]::ascii'
        CommandLine|contains:
            - 'system.io.compression.deflatestream'
            - 'system.io.streamreader'
            - 'readtoend('
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'new-object'
        - 'text.encoding]::ascii'
    CommandLine|contains:
        - 'system.io.compression.deflatestream'
        - 'system.io.streamreader'
        - 'readtoend('

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • new-object corpus 3 (sigma 3)
  • readtoend(
  • system.io.compression.deflatestream
  • system.io.streamreader
  • text.encoding]::ascii
field:"CommandLine" kind:match

Massive remote service creation via named pipes - Tchopper

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

Detects scenarios where an attacker uses the Tchopper tool by remotely creating multiple services via named pipes.

Known False Positives

  • None

MITRE ATT&CK Coverage

TacticTechniques
Execution

Telemetry Coverage

Rule Body

title: Massive remote service creation via named pipes - Tchopper
description: Detects scenarios where an attacker uses the Tchopper tool by remotely creating multiple services via named pipes.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1569.002-Service%20execution
- https://github.com/lawrenceamer/TChopper
tags:
- attack.execution
- attack.t1569
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5145
    ShareName: '\\*\IPC$'
    RelativeTargetName: svcctl
    AccessList|contains: '%%4417' # WriteData
  condition: selection | count(EventRecordID) by Computer > 100
  timeframe: 20m
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection | count(EventRecordID) by Computer > 100

Stage 1: selection

selection:
  EventID: 5145
  ShareName: '\\*\IPC$'
  RelativeTargetName: svcctl
  AccessList|contains: '%%4417'
Threshold
> 100

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AccessListmatch
  • %%4417 corpus 11 (sigma 8, elastic 2, splunk 1)
field:"AccessList" kind:match value:"%%4417"
RelativeTargetNameeq
  • svcctl corpus 5 (sigma 5)
field:"RelativeTargetName" kind:eq value:"svcctl"
ShareNamewildcard
  • \\*\IPC$ corpus 11 (sigma 11)
field:"ShareName" kind:wildcard value:"\\*\IPC$"

Mint Sandstorm - AsperaFaspex Suspicious Process Execution

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

Detects suspicious execution from AsperaFaspex as seen used by Mint Sandstorm

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

Rule Body

title: Mint Sandstorm - AsperaFaspex Suspicious Process Execution
id: 91048c0d-5b81-4b85-a099-c9ee4fb87979
status: test
description: Detects suspicious execution from AsperaFaspex as seen used by Mint Sandstorm
references:
    - https://www.microsoft.com/en-us/security/blog/2023/04/18/nation-state-threat-actor-mint-sandstorm-refines-tradecraft-to-attack-high-value-targets/
author: Nasreddine Bencherchali (Nextron Systems), MSTIC (idea)
date: 2023-04-20
modified: 2025-10-19
tags:
    - attack.execution
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|contains|all:
            - 'aspera'
            - '\ruby'
    selection_special_child_powershell_img:
        Image|endswith:
            - '\powershell.exe'
            - '\powershell_ise.exe'
    selection_special_child_powershell_cli:
        - CommandLine|contains:
              - ' echo '
              - '-dumpmode'
              - '-ssh'
              - '.dmp'
              - 'add-MpPreference'
              - 'adscredentials'
              - 'bitsadmin'
              - 'certutil'
              - 'csvhost.exe'
              - 'DownloadFile'
              - 'DownloadString'
              - 'dsquery'
              - 'ekern.exe'
              - 'FromBase64String'
              - 'iex '
              - 'iex('
              - 'Invoke-Expression'
              - 'Invoke-WebRequest'
              - 'localgroup administrators'
              - 'o365accountconfiguration'
              - 'samaccountname='
              - 'set-MpPreference'
              - 'svhost.exe'
              - 'System.IO.Compression'
              - 'System.IO.MemoryStream'
              - 'usoprivate'
              - 'usoshared'
              - 'whoami'
        - CommandLine|re:
              - '[-/–][Ee^]{1,2}[ncodema^]*\s[A-Za-z0-9+/=]{15,}'
              - 'net\s+user'
              - 'net\s+group'
              - 'query\s+session'
    selection_special_child_lsass_1:
        CommandLine|contains: 'lsass'
    selection_special_child_lsass_2:
        CommandLine|contains:
            - 'procdump'
            - 'tasklist'
            - 'findstr'
    selection_child_wget:
        Image|endswith: '\wget.exe'
        CommandLine|contains: 'http'
    selection_child_curl:
        Image|endswith: '\curl.exe'
        CommandLine|contains: 'http'
    selection_child_script:
        CommandLine|contains:
            - 'E:jscript'
            - 'e:vbscript'
    selection_child_localgroup:
        CommandLine|contains|all:
            - 'localgroup Administrators'
            - '/add'
    selection_child_net:
        CommandLine|contains: 'net' # Covers net1
        CommandLine|contains|all:
            - 'user'
            - '/add'
    selection_child_reg:
        - CommandLine|contains|all:
              - 'reg add'
              - 'DisableAntiSpyware'
              - '\Microsoft\Windows Defender'
        - CommandLine|contains|all:
              - 'reg add'
              - 'DisableRestrictedAdmin'
              - 'CurrentControlSet\Control\Lsa'
    selection_child_wmic_1:
        CommandLine|contains|all:
            - 'wmic'
            - 'process call create'
    selection_child_wmic_2:
        CommandLine|contains|all:
            - 'wmic'
            - 'delete'
            - 'shadowcopy'
    selection_child_vssadmin:
        CommandLine|contains|all:
            - 'vssadmin'
            - 'delete'
            - 'shadows'
    selection_child_wbadmin:
        CommandLine|contains|all:
            - 'wbadmin'
            - 'delete'
            - 'catalog'
    condition: selection_parent and (all of selection_special_child_powershell_* or all of selection_special_child_lsass_* or 1 of selection_child_*)
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection_parent and (all of selection_special_child_powershell_* or all of selection_special_child_lsass_* or 1 of selection_child_*)

Stage 1: selection_parent

selection_parent:
    ParentImage|contains|all:
        - 'aspera'
        - '\ruby'

Stage 2: selection_special_child_powershell_img

selection_special_child_powershell_img:
    Image|endswith:
        - '\powershell.exe'
        - '\powershell_ise.exe'

Stage 3: selection_special_child_powershell_cli

selection_special_child_powershell_cli:
    - CommandLine|contains:
          - ' echo '
          - '-dumpmode'
          - '-ssh'
          - '.dmp'
          - 'add-MpPreference'
          - 'adscredentials'
          - 'bitsadmin'
          - 'certutil'
          - 'csvhost.exe'
          - 'DownloadFile'
          - 'DownloadString'
          - 'dsquery'
          - 'ekern.exe'
          - 'FromBase64String'
          - 'iex '
          - 'iex('
          - 'Invoke-Expression'
          - 'Invoke-WebRequest'
          - 'localgroup administrators'
          - 'o365accountconfiguration'
          - 'samaccountname='
          - 'set-MpPreference'
          - 'svhost.exe'
          - 'System.IO.Compression'
          - 'System.IO.MemoryStream'
          - 'usoprivate'
          - 'usoshared'
          - 'whoami'
    - CommandLine|re:
          - '[-/–][Ee^]{1,2}[ncodema^]*\s[A-Za-z0-9+/=]{15,}'
          - 'net\s+user'
          - 'net\s+group'
          - 'query\s+session'

Stage 4: selection_special_child_lsass_1

selection_special_child_lsass_1:
    CommandLine|contains: 'lsass'

Stage 5: selection_special_child_lsass_2

selection_special_child_lsass_2:
    CommandLine|contains:
        - 'procdump'
        - 'tasklist'
        - 'findstr'

Stage 6: selection_child_wget

selection_child_wget:
    Image|endswith: '\wget.exe'
    CommandLine|contains: 'http'

Stage 7: selection_child_curl

selection_child_curl:
    Image|endswith: '\curl.exe'
    CommandLine|contains: 'http'

Stage 8: selection_child_script

selection_child_script:
    CommandLine|contains:
        - 'E:jscript'
        - 'e:vbscript'

Stage 9: selection_child_localgroup

selection_child_localgroup:
    CommandLine|contains|all:
        - 'localgroup Administrators'
        - '/add'

Stage 10: selection_child_net

selection_child_net:
    CommandLine|contains: 'net'
    CommandLine|contains|all:
        - 'user'
        - '/add'

Stage 11: selection_child_reg

selection_child_reg:
    - CommandLine|contains|all:
          - 'reg add'
          - 'DisableAntiSpyware'
          - '\Microsoft\Windows Defender'
    - CommandLine|contains|all:
          - 'reg add'
          - 'DisableRestrictedAdmin'
          - 'CurrentControlSet\Control\Lsa'

Stage 12: selection_child_wmic_1

selection_child_wmic_1:
    CommandLine|contains|all:
        - 'wmic'
        - 'process call create'

Stage 13: selection_child_wmic_2

selection_child_wmic_2:
    CommandLine|contains|all:
        - 'wmic'
        - 'delete'
        - 'shadowcopy'

Stage 14: selection_child_vssadmin

selection_child_vssadmin:
    CommandLine|contains|all:
        - 'vssadmin'
        - 'delete'
        - 'shadows'

Stage 15: selection_child_wbadmin

selection_child_wbadmin:
    CommandLine|contains|all:
        - 'wbadmin'
        - 'delete'
        - 'catalog'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • echo corpus 2 (sigma 2)
  • -dumpmode corpus 2 (sigma 2)
  • -ssh corpus 2 (sigma 2)
  • .dmp corpus 8 (sigma 8)
  • /add corpus 7 (sigma 5, splunk 2)
  • CurrentControlSet\Control\Lsa corpus 2 (sigma 2)
  • DisableAntiSpyware corpus 3 (sigma 3)
  • DisableRestrictedAdmin corpus 3 (sigma 3)
  • DownloadFile corpus 5 (sigma 4, elastic 1)
  • DownloadString corpus 8 (sigma 7, elastic 1)
  • E:jscript corpus 2 (sigma 2)
  • FromBase64String corpus 15 (sigma 9, elastic 4, splunk 2)
  • Invoke-Expression corpus 5 (sigma 4, elastic 1)
  • Invoke-WebRequest corpus 13 (sigma 10, elastic 3)
  • System.IO.Compression corpus 3 (sigma 3)
  • System.IO.MemoryStream corpus 3 (sigma 3)
  • \Microsoft\Windows Defender corpus 2 (sigma 2)
  • add-MpPreference corpus 3 (sigma 2, elastic 1)
  • adscredentials corpus 3 (sigma 3)
  • bitsadmin corpus 10 (sigma 10)
  • catalog corpus 12 (elastic 8, sigma 3, splunk 1)
  • certutil corpus 10 (sigma 10)
  • csvhost.exe corpus 2 (sigma 2)
  • delete corpus 30 (sigma 16, elastic 8, splunk 6)
  • dsquery corpus 3 (sigma 3)
  • e:vbscript corpus 2 (sigma 2)
  • ekern.exe corpus 2 (sigma 2)
  • findstr corpus 7 (sigma 6, splunk 1)
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
  • iex corpus 7 (sigma 6, elastic 1)
  • iex( corpus 4 (sigma 3, elastic 1)
  • localgroup Administrators corpus 3 (sigma 3)
  • localgroup administrators corpus 3 (sigma 3)
  • lsass corpus 7 (sigma 6, elastic 1)
  • net corpus 7 (sigma 7)
  • o365accountconfiguration corpus 3 (sigma 3)
  • procdump corpus 2 (sigma 2)
  • process call create corpus 3 (sigma 3)
  • reg add corpus 13 (sigma 13)
  • samaccountname= corpus 3 (sigma 3)
  • set-MpPreference corpus 6 (sigma 3, splunk 2, elastic 1)
  • shadowcopy corpus 13 (elastic 7, sigma 3, splunk 3)
  • shadows corpus 11 (elastic 8, sigma 3)
  • svhost.exe corpus 2 (sigma 2)
  • tasklist corpus 5 (sigma 5)
  • user corpus 15 (sigma 11, splunk 4)
  • usoprivate corpus 2 (sigma 2)
  • usoshared corpus 2 (sigma 2)
  • vssadmin corpus 2 (sigma 2)
  • wbadmin corpus 3 (sigma 3)
  • whoami corpus 12 (sigma 9, splunk 2, elastic 1)
  • wmic corpus 6 (sigma 6)
field:"CommandLine" kind:match
CommandLineregex_match
  • [-/–][Ee^]{1,2}[ncodema^]*\s[A-Za-z0-9+/=]{15,} corpus 2 (sigma 2)
  • net\s+group corpus 3 (sigma 3)
  • net\s+user corpus 3 (sigma 3)
  • query\s+session corpus 2 (sigma 2)
field:"CommandLine" kind:regex_match
Imageends_with
  • \curl.exe corpus 31 (sigma 31)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \wget.exe corpus 9 (sigma 9)
field:"Image" kind:ends_with
ParentImagematch
  • \ruby
  • aspera
field:"ParentImage" kind:match

Netcat The Powershell Version

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

Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
PowerShellEvent ID 400

Rule Body

title: Netcat The Powershell Version
id: c5b20776-639a-49bf-94c7-84f912b91c15
related:
    - id: bf7286e7-c0be-460b-a7e8-5b2e07ecc2f2
      type: derived
status: test
description: Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network
references:
    - https://nmap.org/ncat/
    - https://github.com/besimorhino/powercat
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1095/T1095.md
author: frack113
date: 2021-07-21
modified: 2023-10-27
tags:
    - attack.command-and-control
    - attack.execution
    - attack.t1095
    - attack.t1059.001
logsource:
    product: windows
    category: ps_classic_start
detection:
    selection:
        Data|contains:
            - 'powercat '
            - 'powercat.ps1'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Data|contains:
        - 'powercat '
        - 'powercat.ps1'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Datamatch
  • powercat
  • powercat.ps1
field:"Data" kind:match

Network Connection Initiated To Mega.nz

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

Detects a network connection initiated by a binary to "api.mega.co.nz". Attackers were seen abusing file sharing websites similar to "mega.nz" in order to upload/download additional payloads.

Known False Positives

  • Legitimate MEGA installers and utilities are expected to communicate with this domain. Exclude hosts that are known to be allowed to use this tool.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Network Connection Initiated To Mega.nz
id: fdeebdf0-9f3f-4d08-84a6-4c4d13e39fe4
status: test
description: |
    Detects a network connection initiated by a binary to "api.mega.co.nz".
    Attackers were seen abusing file sharing websites similar to "mega.nz" in order to upload/download additional payloads.
references:
    - https://megatools.megous.com/
    - https://www.mandiant.com/resources/russian-targeting-gov-business
author: Florian Roth (Nextron Systems)
date: 2021-12-06
modified: 2024-05-31
tags:
    - attack.exfiltration
    - attack.t1567.002
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        DestinationHostname|endswith:
            - 'mega.co.nz'
            - 'mega.nz'
    condition: selection
falsepositives:
    - Legitimate MEGA installers and utilities are expected to communicate with this domain. Exclude hosts that are known to be allowed to use this tool.
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Initiated: 'true'
    DestinationHostname|endswith:
        - 'mega.co.nz'
        - 'mega.nz'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationHostnameends_with
  • mega.co.nz corpus 3 (sigma 3)
  • mega.nz corpus 3 (sigma 3)
field:"DestinationHostname" kind:ends_with
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

New File Association Using Exefile

#
Status
test
Severity
high
Author
Andreas Hunkeler (@Karneades)
Source
github.com/SigmaHQ/sigma

Detects the abuse of the exefile handler in new file association. Used for bypass of security products.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

Rule Body

title: New File Association Using Exefile
id: 44a22d59-b175-4f13-8c16-cbaef5b581ff
status: test
description: Detects the abuse of the exefile handler in new file association. Used for bypass of security products.
references:
    - https://twitter.com/mrd0x/status/1461041276514623491
author: Andreas Hunkeler (@Karneades)
date: 2021-11-19
modified: 2023-08-17
tags:
    - attack.stealth
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: 'Classes\.'
        Details: 'exefile'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: 'Classes\.'
    Details: 'exefile'

Indicators

These rows show field, operator, and value matches.

Office Autorun Keys Modification

#
Status
test
Severity
medium
Author
Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split)
Source
github.com/SigmaHQ/sigma

Detects modification of autostart extensibility point (ASEP) in registry. Adversaries may modify these keys to execute malicious code when Office files are opened. There are various legitimate add-ins that also use these keys and this filter list might not be exhaustive. Thus, it is recommended to review and tune filters for your environment to reduce false positives before deploying to production.

Known False Positives

  • Legitimate software or add-in installations and administrative configurations
  • Automatic registry modifications during legitimate software installations

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Office Autorun Keys Modification
id: baecf8fb-edbf-429f-9ade-31fc3f22b970
related:
    - id: 17f878b8-9968-4578-b814-c4217fc5768c
      type: obsolete
status: test
description: |
    Detects modification of autostart extensibility point (ASEP) in registry. Adversaries may modify these keys to execute malicious code when Office files are opened.
    There are various legitimate add-ins that also use these keys and this filter list might not be exhaustive.
    Thus, it is recommended to review and tune filters for your environment to reduce false positives before deploying to production.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.001/T1547.001.md
    - https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns
    - https://gist.github.com/GlebSukhodolskiy/0fc5fa5f482903064b448890db1eaf9d # a list with registry keys
author: Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split)
date: 2019-10-25
modified: 2026-08-28
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
logsource:
    category: registry_set
    product: windows
detection:
    selection_office_root:
        TargetObject|contains:
            - '\Software\Wow6432Node\Microsoft\Office'
            - '\Software\Microsoft\Office'
    selection_office_details:
        TargetObject|contains:
            - '\Word\Addins'
            - '\PowerPoint\Addins'
            - '\Outlook\Addins'
            - '\Onenote\Addins'
            - '\Excel\Addins'
            - '\Access\Addins'
            - 'test\Special\Perf'
    filter_main_empty:
        Details: '(Empty)'
    filter_main_null:
        Details: null
    filter_main_known_addins:
        Image|startswith:
            - 'C:\Program Files\Microsoft Office\'
            - 'C:\Program Files (x86)\Microsoft Office\'
            - 'C:\PROGRA~2\MICROS~2\Office'
            - 'C:\Windows\System32\msiexec.exe'
            - 'C:\Windows\SysWOW64\msiexec.exe'
            - 'C:\Windows\System32\regsvr32.exe'
            - 'C:\Windows\SysWOW64\regsvr32.exe'
        TargetObject|contains:
            # Remove any unused addins in your environment from the filter
            # Known addins for excel
            - '\Excel\Addins\AdHocReportingExcelClientLib.AdHocReportingExcelClientAddIn.1\'
            - '\Excel\Addins\ExcelPlugInShell.PowerMapConnect\'
            - '\Excel\Addins\NativeShim\'
            - '\Excel\Addins\NativeShim.InquireConnector.1\'
            - '\Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1\'
            # Known addins for outlook
            - '\Outlook\AddIns\AccessAddin.DC\'
            - '\Outlook\AddIns\ColleagueImport.ColleagueImportAddin\'
            - '\Outlook\AddIns\EvernoteCC.EvernoteContactConnector\'
            - '\Outlook\AddIns\EvernoteOLRD.Connect\'
            # - '\Outlook\Addins\GrammarlyAddIn.Connect' # Uncomment if you use Grammarly
            - '\Outlook\Addins\OneNote.OutlookAddin'
            - '\Outlook\Addins\DriveFSExtensionLib.Connect\' # An Outlook Add-in to talk with Google Drive
            - '\Outlook\Addins\GoogleAppsSync.Connect\' # Google Apps Sync for Microsoft Outlook
            - '\Outlook\Addins\Microsoft.VbaAddinForOutlook.1\'
            - '\Outlook\Addins\OcOffice.OcForms\'
            - '\Outlook\Addins\OscAddin.Connect\'
            - '\Outlook\Addins\OutlookChangeNotifier.Connect\'
            - '\Outlook\Addins\UCAddin.LyncAddin.1'
            - '\Outlook\Addins\UCAddin.UCAddin.1'
            - '\Outlook\Addins\UmOutlookAddin.FormRegionAddin\'
            - 'AddinTakeNotesService\FriendlyName'
    filter_main_officeclicktorun:
        Image|startswith:
            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\'
        Image|endswith: '\OfficeClickToRun.exe'
    filter_main_vsto:
        Image|startswith:
            - 'C:\Program Files\Common Files\Microsoft Shared\VSTO\'
            - 'C:\Program Files (x86)\Microsoft Shared\VSTO\'
        Image|endswith: '\VSTOInstaller.exe'
    filter_optional_avg:
        Image:
            - 'C:\Program Files\AVG\Antivirus\RegSvr.exe'
            - 'C:\Program Files\AVG\Antivirus\x86\RegSvr.exe'
        TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\'
    filter_optional_avast:
        Image:
            - 'C:\Program Files\Avast Software\Avast\RegSvr.exe'
            - 'C:\Program Files\Avast Software\Avast\x86\RegSvr.exe'
        TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\'
    # These filters are not exhaustive, filter can be expanded based on environment
    condition: all of selection_office_* and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate software or add-in installations and administrative configurations
    - Automatic registry modifications during legitimate software installations
level: medium

Stages and Predicates

Stage 0: condition

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

Stage 1: selection_office_root

selection_office_root:
    TargetObject|contains:
        - '\Software\Wow6432Node\Microsoft\Office'
        - '\Software\Microsoft\Office'

Stage 2: selection_office_details

selection_office_details:
    TargetObject|contains:
        - '\Word\Addins'
        - '\PowerPoint\Addins'
        - '\Outlook\Addins'
        - '\Onenote\Addins'
        - '\Excel\Addins'
        - '\Access\Addins'
        - 'test\Special\Perf'

Stage 3: not filter_main_*

filter_main_empty:
    Details: '(Empty)'
filter_main_null:
    Details: null
filter_main_known_addins:
    Image|startswith:
        - 'C:\Program Files\Microsoft Office\'
        - 'C:\Program Files (x86)\Microsoft Office\'
        - 'C:\PROGRA~2\MICROS~2\Office'
        - 'C:\Windows\System32\msiexec.exe'
        - 'C:\Windows\SysWOW64\msiexec.exe'
        - 'C:\Windows\System32\regsvr32.exe'
        - 'C:\Windows\SysWOW64\regsvr32.exe'
    TargetObject|contains:
        - '\Excel\Addins\AdHocReportingExcelClientLib.AdHocReportingExcelClientAddIn.1\'
        - '\Excel\Addins\ExcelPlugInShell.PowerMapConnect\'
        - '\Excel\Addins\NativeShim\'
        - '\Excel\Addins\NativeShim.InquireConnector.1\'
        - '\Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1\'
        - '\Outlook\AddIns\AccessAddin.DC\'
        - '\Outlook\AddIns\ColleagueImport.ColleagueImportAddin\'
        - '\Outlook\AddIns\EvernoteCC.EvernoteContactConnector\'
        - '\Outlook\AddIns\EvernoteOLRD.Connect\'
        - '\Outlook\Addins\OneNote.OutlookAddin'
        - '\Outlook\Addins\DriveFSExtensionLib.Connect\'
        - '\Outlook\Addins\GoogleAppsSync.Connect\'
        - '\Outlook\Addins\Microsoft.VbaAddinForOutlook.1\'
        - '\Outlook\Addins\OcOffice.OcForms\'
        - '\Outlook\Addins\OscAddin.Connect\'
        - '\Outlook\Addins\OutlookChangeNotifier.Connect\'
        - '\Outlook\Addins\UCAddin.LyncAddin.1'
        - '\Outlook\Addins\UCAddin.UCAddin.1'
        - '\Outlook\Addins\UmOutlookAddin.FormRegionAddin\'
        - 'AddinTakeNotesService\FriendlyName'
filter_main_officeclicktorun:
    Image|startswith:
        - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
        - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\'
    Image|endswith: '\OfficeClickToRun.exe'
filter_main_vsto:
    Image|startswith:
        - 'C:\Program Files\Common Files\Microsoft Shared\VSTO\'
        - 'C:\Program Files (x86)\Microsoft Shared\VSTO\'
    Image|endswith: '\VSTOInstaller.exe'

Stage 4: not filter_optional_*

filter_optional_avg:
    Image:
        - 'C:\Program Files\AVG\Antivirus\RegSvr.exe'
        - 'C:\Program Files\AVG\Antivirus\x86\RegSvr.exe'
    TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\'
filter_optional_avast:
    Image:
        - 'C:\Program Files\Avast Software\Avast\RegSvr.exe'
        - 'C:\Program Files\Avast Software\Avast\x86\RegSvr.exe'
    TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \Access\Addins
  • \Excel\Addins
  • \Onenote\Addins
  • \Outlook\Addins
  • \PowerPoint\Addins
  • \Software\Microsoft\Office
  • \Software\Wow6432Node\Microsoft\Office
  • \Word\Addins
  • test\Special\Perf
field:"TargetObject" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagestarts_withC:\PROGRA~2\MICROS~2\Officeexcludes:Image field:"Image" value:"C:\PROGRA~2\MICROS~2\Office"
Imagestarts_withC:\Program Files (x86)\Microsoft Office\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Office\"
Imagestarts_withC:\Program Files\Microsoft Office\excludes:Image field:"Image" value:"C:\Program Files\Microsoft Office\"
Imagestarts_withC:\Windows\SysWOW64\msiexec.exeexcludes:Image field:"Image" value:"C:\Windows\SysWOW64\msiexec.exe"
Imagestarts_withC:\Windows\SysWOW64\regsvr32.exeexcludes:Image field:"Image" value:"C:\Windows\SysWOW64\regsvr32.exe"
Imagestarts_withC:\Windows\System32\msiexec.exeexcludes:Image field:"Image" value:"C:\Windows\System32\msiexec.exe"
Imagestarts_withC:\Windows\System32\regsvr32.exeexcludes:Image field:"Image" value:"C:\Windows\System32\regsvr32.exe"
TargetObjectmatchAddinTakeNotesService\FriendlyNameexcludes:TargetObject field:"TargetObject" value:"AddinTakeNotesService\FriendlyName"
TargetObjectmatch\Excel\Addins\AdHocReportingExcelClientLib.AdHocReportingExcelClientAddIn.1\excludes:TargetObject field:"TargetObject" value:"\Excel\Addins\AdHocReportingExcelClientLib.AdHocReportingExcelClientAddIn.1\"
TargetObjectmatch\Excel\Addins\ExcelPlugInShell.PowerMapConnect\excludes:TargetObject field:"TargetObject" value:"\Excel\Addins\ExcelPlugInShell.PowerMapConnect\"
TargetObjectmatch\Excel\Addins\NativeShim.InquireConnector.1\excludes:TargetObject field:"TargetObject" value:"\Excel\Addins\NativeShim.InquireConnector.1\"
TargetObjectmatch\Excel\Addins\NativeShim\excludes:TargetObject field:"TargetObject" value:"\Excel\Addins\NativeShim\"
TargetObjectmatch\Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1\excludes:TargetObject field:"TargetObject" value:"\Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1\"
TargetObjectmatch\Outlook\AddIns\AccessAddin.DC\excludes:TargetObject field:"TargetObject" value:"\Outlook\AddIns\AccessAddin.DC\"
TargetObjectmatch\Outlook\AddIns\ColleagueImport.ColleagueImportAddin\excludes:TargetObject field:"TargetObject" value:"\Outlook\AddIns\ColleagueImport.ColleagueImportAddin\"
TargetObjectmatch\Outlook\AddIns\EvernoteCC.EvernoteContactConnector\excludes:TargetObject field:"TargetObject" value:"\Outlook\AddIns\EvernoteCC.EvernoteContactConnector\"
TargetObjectmatch\Outlook\AddIns\EvernoteOLRD.Connect\excludes:TargetObject field:"TargetObject" value:"\Outlook\AddIns\EvernoteOLRD.Connect\"
TargetObjectmatch\Outlook\Addins\DriveFSExtensionLib.Connect\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\DriveFSExtensionLib.Connect\"
TargetObjectmatch\Outlook\Addins\GoogleAppsSync.Connect\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\GoogleAppsSync.Connect\"
TargetObjectmatch\Outlook\Addins\Microsoft.VbaAddinForOutlook.1\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\Microsoft.VbaAddinForOutlook.1\"
TargetObjectmatch\Outlook\Addins\OcOffice.OcForms\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\OcOffice.OcForms\"
TargetObjectmatch\Outlook\Addins\OneNote.OutlookAddinexcludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\OneNote.OutlookAddin"
TargetObjectmatch\Outlook\Addins\OscAddin.Connect\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\OscAddin.Connect\"
TargetObjectmatch\Outlook\Addins\OutlookChangeNotifier.Connect\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\OutlookChangeNotifier.Connect\"
TargetObjectmatch\Outlook\Addins\UCAddin.LyncAddin.1excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\UCAddin.LyncAddin.1"
TargetObjectmatch\Outlook\Addins\UCAddin.UCAddin.1excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\UCAddin.UCAddin.1"
TargetObjectmatch\Outlook\Addins\UmOutlookAddin.FormRegionAddin\excludes:TargetObject field:"TargetObject" value:"\Outlook\Addins\UmOutlookAddin.FormRegionAddin\"
Imagestarts_withC:\Program Files (x86)\Microsoft Shared\VSTO\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Shared\VSTO\"
Imagestarts_withC:\Program Files\Common Files\Microsoft Shared\VSTO\excludes:Image field:"Image" value:"C:\Program Files\Common Files\Microsoft Shared\VSTO\"
Imageends_with\VSTOInstaller.exeexcludes:Image field:"Image" value:"\VSTOInstaller.exe"
Imagestarts_withC:\Program Files\Common Files\Microsoft Shared\ClickToRun\excludes:Image field:"Image" value:"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\"
Imagestarts_withC:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\excludes:Image field:"Image" value:"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\"
Imageends_with\OfficeClickToRun.exeexcludes:Image field:"Image" value:"\OfficeClickToRun.exe"
Detailseq(Empty)excludes:Details field:"Details" value:"(Empty)"
Detailsis_null(no value, null check)excludes:Details
ImageeqC:\Program Files\AVG\Antivirus\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files\AVG\Antivirus\RegSvr.exe"
ImageeqC:\Program Files\AVG\Antivirus\x86\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files\AVG\Antivirus\x86\RegSvr.exe"
TargetObjectmatch\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\excludes:TargetObject field:"TargetObject" value:"\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\"
ImageeqC:\Program Files\Avast Software\Avast\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files\Avast Software\Avast\RegSvr.exe"
ImageeqC:\Program Files\Avast Software\Avast\x86\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files\Avast Software\Avast\x86\RegSvr.exe"
TargetObjectmatch\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\excludes:TargetObject field:"TargetObject" value:"\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\"

Potential Application Whitelisting Bypass via Dnx.EXE

#
Status
test
Severity
medium
Author
Beyu Denis, oscd.community
Source
github.com/SigmaHQ/sigma

Detects the execution of Dnx.EXE. The Dnx utility allows for the execution of C# code. Attackers might abuse this in order to bypass application whitelisting.

Known False Positives

  • Legitimate use of dnx.exe by legitimate user

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Application Whitelisting Bypass via Dnx.EXE
id: 81ebd28b-9607-4478-bf06-974ed9d53ed7
status: test
description: |
    Detects the execution of Dnx.EXE. The Dnx utility allows for the execution of C# code.
    Attackers might abuse this in order to bypass application whitelisting.
references:
    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Csi/
    - https://enigma0x3.net/2016/11/17/bypassing-application-whitelisting-by-using-dnx-exe/
author: Beyu Denis, oscd.community
date: 2019-10-26
modified: 2024-04-24
tags:
    - attack.stealth
    - attack.t1218
    - attack.t1027.004
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\dnx.exe'
    condition: selection
falsepositives:
    - Legitimate use of dnx.exe by legitimate user
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

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

Indicators

These rows show field, operator, and value matches.

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

Potential CVE-2023-36884 Exploitation Dropped File

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

Detects a specific file being created in the recent folder of Office. These files have been seen being dropped during potential exploitations of CVE-2023-36884

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential CVE-2023-36884 Exploitation Dropped File
id: 8023d3a2-dcdc-44da-8fa9-5c7906e55b38
status: test
description: Detects a specific file being created in the recent folder of Office. These files have been seen being dropped during potential exploitations of CVE-2023-36884
references:
    - https://blogs.blackberry.com/en/2023/07/romcom-targets-ukraine-nato-membership-talks-at-nato-summit
    - https://twitter.com/wdormann/status/1679184475677130755
    - https://twitter.com/r00tbsd/status/1679042071477338114/photo/1
author: Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems)
date: 2023-07-13
tags:
    - attack.persistence
    - cve.2023-36884
    - detection.emerging-threats
    - attack.stealth
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|startswith: 'C:\Users\'
        TargetFilename|contains: '\AppData\Roaming\Microsoft\Office\Recent\'
        TargetFilename|endswith: '\file001.url'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|startswith: 'C:\Users\'
    TargetFilename|contains: '\AppData\Roaming\Microsoft\Office\Recent\'
    TargetFilename|endswith: '\file001.url'

Indicators

These rows show field, operator, and value matches.

Potential Data Exfiltration Over SMTP Via Send-MailMessage Cmdlet

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

Detects the execution of a PowerShell script with a call to the "Send-MailMessage" cmdlet along with the "-Attachments" flag. This could be a potential sign of data exfiltration via Email. Adversaries may steal data by exfiltrating it over an un-encrypted network protocol other than that of the existing command and control channel. The data may also be sent to an alternate network location from the main command and control server.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Data Exfiltration Over SMTP Via Send-MailMessage Cmdlet
id: 9a7afa56-4762-43eb-807d-c3dc9ffe211b
status: test
description: |
    Detects the execution of a PowerShell script with a call to the "Send-MailMessage" cmdlet along with the "-Attachments" flag. This could be a potential sign of data exfiltration via Email.
    Adversaries may steal data by exfiltrating it over an un-encrypted network protocol other than that of the existing command and control channel. The data may also be sent to an alternate network location from the main command and control server.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1048.003/T1048.003.md#atomic-test-5---exfiltration-over-alternative-protocol---smtp
    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.4
    - https://www.ietf.org/rfc/rfc2821.txt
author: frack113
date: 2022-09-26
modified: 2024-11-01
tags:
    - attack.exfiltration
    - attack.t1048.003
    - detection.threat-hunting
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains: 'Send-MailMessage*-Attachments'
    condition: selection
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules-threat-hunting/windows/powershell/powershell_script/posh_ps_send_mailmessage/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains: 'Send-MailMessage*-Attachments'

Indicators

These rows show field, operator, and value matches.

Potential Homoglyph Attack Using Lookalike Characters in Filename

#
Status
test
Severity
medium
Author
Micah Babinski, @micahbabinski
Source
github.com/SigmaHQ/sigma

Detects the presence of unicode characters which are homoglyphs, or identical in appearance, to ASCII letter characters. This is used as an obfuscation and masquerading techniques. Only "perfect" homoglyphs are included; these are characters that are indistinguishable from ASCII characters and thus may make excellent candidates for homoglyph attack characters.

Known False Positives

  • File names with legitimate Cyrillic text. Will likely require tuning (or not be usable) in countries where these alphabets are in use.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential Homoglyph Attack Using Lookalike Characters in Filename
id: 4f1707b1-b50b-45b4-b5a2-3978b5a5d0d6
status: test
description: |
    Detects the presence of unicode characters which are homoglyphs, or identical in appearance, to ASCII letter characters.
    This is used as an obfuscation and masquerading techniques. Only "perfect" homoglyphs are included; these are characters that
    are indistinguishable from ASCII characters and thus may make excellent candidates for homoglyph attack characters.
references:
    - https://redcanary.com/threat-detection-report/threats/socgholish/#threat-socgholish
    - http://www.irongeek.com/homoglyph-attack-generator.php
author: Micah Babinski, @micahbabinski
date: 2023-05-08
tags:
    - attack.stealth
    - attack.t1036
    - attack.t1036.003
logsource:
    category: file_event
    product: windows
detection:
    selection_upper:
        TargetFilename|contains:
            - "\u0410" # А/A
            - "\u0412" # В/B
            - "\u0415" # Е/E
            - "\u041a" # К/K
            - "\u041c" # М/M
            - "\u041d" # Н/H
            - "\u041e" # О/O
            - "\u0420" # Р/P
            - "\u0421" # С/C
            - "\u0422" # Т/T
            - "\u0425" # Х/X
            - "\u0405" # Ѕ/S
            - "\u0406" # І/I
            - "\u0408" # Ј/J
            - "\u04ae" # Ү/Y
            - "\u04c0" # Ӏ/I
            - "\u050C" # Ԍ/G
            - "\u051a" # Ԛ/Q
            - "\u051c" # Ԝ/W
            - "\u0391" # Α/A
            - "\u0392" # Β/B
            - "\u0395" # Ε/E
            - "\u0396" # Ζ/Z
            - "\u0397" # Η/H
            - "\u0399" # Ι/I
            - "\u039a" # Κ/K
            - "\u039c" # Μ/M
            - "\u039d" # Ν/N
            - "\u039f" # Ο/O
            - "\u03a1" # Ρ/P
            - "\u03a4" # Τ/T
            - "\u03a5" # Υ/Y
            - "\u03a7" # Χ/X
    selection_lower:
        TargetFilename|contains:
            - "\u0430" # а/a
            - "\u0435" # е/e
            - "\u043e" # о/o
            - "\u0440" # р/p
            - "\u0441" # с/c
            - "\u0445" # х/x
            - "\u0455" # ѕ/s
            - "\u0456" # і/i
            - "\u04cf" # ӏ/l
            - "\u0458" # ј/j
            - "\u04bb" # һ/h
            - "\u0501" # ԁ/d
            - "\u051b" # ԛ/q
            - "\u051d" # ԝ/w
            - "\u03bf" # ο/o
    condition: 1 of selection_*
falsepositives:
    - File names with legitimate Cyrillic text. Will likely require tuning (or not be usable) in countries where these alphabets are in use.
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_upper

selection_upper:
    TargetFilename|contains:
        - "\u0410"
        - "\u0412"
        - "\u0415"
        - "\u041a"
        - "\u041c"
        - "\u041d"
        - "\u041e"
        - "\u0420"
        - "\u0421"
        - "\u0422"
        - "\u0425"
        - "\u0405"
        - "\u0406"
        - "\u0408"
        - "\u04ae"
        - "\u04c0"
        - "\u050C"
        - "\u051a"
        - "\u051c"
        - "\u0391"
        - "\u0392"
        - "\u0395"
        - "\u0396"
        - "\u0397"
        - "\u0399"
        - "\u039a"
        - "\u039c"
        - "\u039d"
        - "\u039f"
        - "\u03a1"
        - "\u03a4"
        - "\u03a5"
        - "\u03a7"

Stage 2: selection_lower

selection_lower:
    TargetFilename|contains:
        - "\u0430"
        - "\u0435"
        - "\u043e"
        - "\u0440"
        - "\u0441"
        - "\u0445"
        - "\u0455"
        - "\u0456"
        - "\u04cf"
        - "\u0458"
        - "\u04bb"
        - "\u0501"
        - "\u051b"
        - "\u051d"
        - "\u03bf"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenamematch
  • Α
  • Β
  • Ε
  • Ζ
  • Η
  • Ι
  • Κ
  • Μ
  • Ν
  • Ο
  • Ρ
  • Τ
  • Υ
  • Χ
  • ο
  • Ѕ
  • І
  • Ј
  • А
  • В
  • Е
  • К
  • М
  • Н
  • О
  • Р
  • С
  • Т
  • Х
  • а
  • е
  • о
  • р
  • с
  • х
  • ѕ
  • і
  • ј
  • Ү
  • һ
  • Ӏ
  • ӏ
  • ԁ
  • Ԍ
  • Ԛ
  • ԛ
  • Ԝ
  • ԝ
field:"TargetFilename" kind:match

Potential MsiExec Masquerading

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

Detects the execution of msiexec.exe from an uncommon directory

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential MsiExec Masquerading
id: e22a6eb2-f8a5-44b5-8b44-a2dbd47b1144
status: test
description: Detects the execution of msiexec.exe from an uncommon directory
references:
    - https://twitter.com/200_okay_/status/1194765831911215104
author: Florian Roth (Nextron Systems)
date: 2019-11-14
modified: 2023-02-21
tags:
    - attack.stealth
    - attack.t1036.005
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\msiexec.exe'
        - OriginalFileName: '\msiexec.exe'
    filter:
        Image|startswith:
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Windows\WinSxS\'
    condition: selection and not filter
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    - Image|endswith: '\msiexec.exe'
    - OriginalFileName: '\msiexec.exe'

Stage 2: not filter

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

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \msiexec.exe corpus 20 (sigma 20)
field:"Image" kind:ends_with value:"\msiexec.exe"
OriginalFileNameeq
  • \msiexec.exe corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"\msiexec.exe"

Exclusions

The rule actively suppresses these predicates.

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

Potential Persistence Via Logon Scripts - Registry

#
Status
test
Severity
medium
Author
Tom Ueltschi (@c_APT_ure)
Source
github.com/SigmaHQ/sigma

Detects creation of "UserInitMprLogonScript" registry value which can be used as a persistence method by malicious actors

Known False Positives

  • Investigate the contents of the "UserInitMprLogonScript" value to determine of the added script is legitimate

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Persistence Via Logon Scripts - Registry
id: 9ace0707-b560-49b8-b6ca-5148b42f39fb
status: test
description: Detects creation of "UserInitMprLogonScript" registry value which can be used as a persistence method by malicious actors
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1037.001/T1037.001.md
author: Tom Ueltschi (@c_APT_ure)
date: 2019-01-12
modified: 2025-10-26
tags:
    - attack.privilege-escalation
    - attack.t1037.001
    - attack.persistence
    - attack.lateral-movement
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: 'UserInitMprLogonScript'
    condition: selection
falsepositives:
    - Investigate the contents of the "UserInitMprLogonScript" value to determine of the added script is legitimate
level: medium
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_persistence_logon_scripts_userinitmprlogonscript/info.yml
simulation:
    - type: atomic-red-team
      name: Logon Scripts
      technique: T1037.001
      atomic_guid: d6042746-07d4-4c92-9ad8-e644c114a231

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: 'UserInitMprLogonScript'

Indicators

These rows show field, operator, and value matches.

Potential Persistence Via Outlook Form

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

Detects the creation of a new Outlook form which can contain malicious code

Known False Positives

  • Legitimate use of outlook forms

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential Persistence Via Outlook Form
id: c3edc6a5-d9d4-48d8-930e-aab518390917
status: test
description: Detects the creation of a new Outlook form which can contain malicious code
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-persistence-via-microsoft-exchange-server-or-outlook?slide=76
    - https://speakerdeck.com/heirhabarov/hunting-for-persistence-via-microsoft-exchange-server-or-outlook?slide=79
    - https://learn.microsoft.com/en-us/office/vba/outlook/concepts/outlook-forms/create-an-outlook-form
    - https://www.slipstick.com/developer/custom-form/clean-outlooks-forms-cache/
author: Tobias Michalski (Nextron Systems)
date: 2021-06-10
modified: 2023-02-22
tags:
    - attack.persistence
    - attack.t1137.003
logsource:
    product: windows
    category: file_event
detection:
    selection:
        Image|endswith: '\outlook.exe'
        TargetFilename|contains:
            - '\AppData\Local\Microsoft\FORMS\IPM'
            - '\Local Settings\Application Data\Microsoft\Forms' # Windows XP
    condition: selection
falsepositives:
    - Legitimate use of outlook forms
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\outlook.exe'
    TargetFilename|contains:
        - '\AppData\Local\Microsoft\FORMS\IPM'
        - '\Local Settings\Application Data\Microsoft\Forms'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \outlook.exe corpus 13 (sigma 13)
field:"Image" kind:ends_with value:"\outlook.exe"
TargetFilenamematch
  • \AppData\Local\Microsoft\FORMS\IPM corpus 2 (sigma 1, splunk 1)
  • \Local Settings\Application Data\Microsoft\Forms
field:"TargetFilename" kind:match

Potential Persistence Via TypedPaths

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

Detects modification addition to the 'TypedPaths' key in the user or admin registry from a non standard application. Which might indicate persistence attempt

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique

Telemetry Coverage

Rule Body

title: Potential Persistence Via TypedPaths
id: 086ae989-9ca6-4fe7-895a-759c5544f247
status: test
description: Detects modification addition to the 'TypedPaths' key in the user or admin registry from a non standard application. Which might indicate persistence attempt
references:
    - https://twitter.com/dez_/status/1560101453150257154
    - https://forensafe.com/blogs/typedpaths.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-22
modified: 2023-08-17
tags:
    - attack.persistence
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths\'
    filter:
        Image:
            - 'C:\Windows\explorer.exe'
            - 'C:\Windows\SysWOW64\explorer.exe'
    condition: selection and not filter
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    TargetObject|contains: '\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths\'

Stage 2: not filter

filter:
    Image:
        - 'C:\Windows\explorer.exe'
        - 'C:\Windows\SysWOW64\explorer.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths\
field:"TargetObject" kind:match value:"\Software\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths\"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImageeqC:\Windows\SysWOW64\explorer.exeexcludes:Image field:"Image" value:"C:\Windows\SysWOW64\explorer.exe"
ImageeqC:\Windows\explorer.exeexcludes:Image field:"Image" value:"C:\Windows\explorer.exe"

Potential Persistence Via Visual Studio Tools for Office

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

Detects persistence via Visual Studio Tools for Office (VSTO) add-ins in Office applications.

Known False Positives

  • Legitimate Addin Installation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Persistence Via Visual Studio Tools for Office
id: 9d15044a-7cfe-4d23-8085-6ebc11df7685
status: test
description: Detects persistence via Visual Studio Tools for Office (VSTO) add-ins in Office applications.
references:
    - https://twitter.com/_vivami/status/1347925307643355138
    - https://vanmieghem.io/stealth-outlook-persistence/
author: Bhabesh Raj
date: 2021-01-10
modified: 2026-01-09
tags:
    - attack.t1137.006
    - attack.persistence
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains:
            - '\Software\Microsoft\Office\Outlook\Addins\'
            - '\Software\Microsoft\Office\Word\Addins\'
            - '\Software\Microsoft\Office\Excel\Addins\'
            - '\Software\Microsoft\Office\Powerpoint\Addins\'
            - '\Software\Microsoft\VSTO\Security\Inclusion\'
    filter_main_system:
        Image:
            - 'C:\Windows\System32\msiexec.exe'
            - 'C:\Windows\SysWOW64\msiexec.exe'
            - 'C:\Windows\System32\regsvr32.exe'
            - 'C:\Windows\SysWOW64\regsvr32.exe' # e.g. default Evernote installation
    filter_main_office_click_to_run:
        Image|startswith:
            - 'C:\Program Files\Common Files (x86)\Microsoft Shared\ClickToRun\'
            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
        Image|endswith: '\OfficeClickToRun.exe'
    filter_main_integrator:
        Image:
            - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
            - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
    filter_main_office_apps:
        Image|startswith:
            - 'C:\Program Files\Microsoft Office\OFFICE'
            - 'C:\Program Files (x86)\Microsoft Office\OFFICE'
            - 'C:\Program Files\Microsoft Office\Root\OFFICE'
            - 'C:\Program Files (x86)\Microsoft Office\Root\OFFICE'
            - 'C:\PROGRA~2\MICROS~2\Office'
        Image|endswith:
            - '\excel.exe'
            - '\Integrator.exe'
            - '\OneNote.exe'
            - '\outlook.exe'
            - '\powerpnt.exe'
            - '\Teams.exe'
            - '\visio.exe'
            - '\winword.exe'
    filter_main_vsto:
        Image|startswith:
            - 'C:\Program Files\Common Files\Microsoft Shared\VSTO\'
            - 'C:\Program Files (x86)\Microsoft Shared\VSTO\'
        Image|endswith: '\VSTOInstaller.exe'
    filter_optional_avg:
        Image:
            - 'C:\Program Files\AVG\Antivirus\RegSvr.exe'
            - 'C:\Program Files (x86)\AVG\Antivirus\RegSvr.exe'
        TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\'
    filter_optional_avast:
        Image:
            - 'C:\Program Files\Avast Software\Avast\RegSvr.exe'
            - 'C:\Program Files (x86)\Avast Software\Avast\RegSvr.exe'
        TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate Addin Installation
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:
    TargetObject|contains:
        - '\Software\Microsoft\Office\Outlook\Addins\'
        - '\Software\Microsoft\Office\Word\Addins\'
        - '\Software\Microsoft\Office\Excel\Addins\'
        - '\Software\Microsoft\Office\Powerpoint\Addins\'
        - '\Software\Microsoft\VSTO\Security\Inclusion\'

Stage 2: not filter_main_*

filter_main_system:
    Image:
        - 'C:\Windows\System32\msiexec.exe'
        - 'C:\Windows\SysWOW64\msiexec.exe'
        - 'C:\Windows\System32\regsvr32.exe'
        - 'C:\Windows\SysWOW64\regsvr32.exe'
filter_main_office_click_to_run:
    Image|startswith:
        - 'C:\Program Files\Common Files (x86)\Microsoft Shared\ClickToRun\'
        - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
    Image|endswith: '\OfficeClickToRun.exe'
filter_main_integrator:
    Image:
        - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
        - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
filter_main_office_apps:
    Image|startswith:
        - 'C:\Program Files\Microsoft Office\OFFICE'
        - 'C:\Program Files (x86)\Microsoft Office\OFFICE'
        - 'C:\Program Files\Microsoft Office\Root\OFFICE'
        - 'C:\Program Files (x86)\Microsoft Office\Root\OFFICE'
        - 'C:\PROGRA~2\MICROS~2\Office'
    Image|endswith:
        - '\excel.exe'
        - '\Integrator.exe'
        - '\OneNote.exe'
        - '\outlook.exe'
        - '\powerpnt.exe'
        - '\Teams.exe'
        - '\visio.exe'
        - '\winword.exe'
filter_main_vsto:
    Image|startswith:
        - 'C:\Program Files\Common Files\Microsoft Shared\VSTO\'
        - 'C:\Program Files (x86)\Microsoft Shared\VSTO\'
    Image|endswith: '\VSTOInstaller.exe'

Stage 3: not filter_optional_*

filter_optional_avg:
    Image:
        - 'C:\Program Files\AVG\Antivirus\RegSvr.exe'
        - 'C:\Program Files (x86)\AVG\Antivirus\RegSvr.exe'
    TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\'
filter_optional_avast:
    Image:
        - 'C:\Program Files\Avast Software\Avast\RegSvr.exe'
        - 'C:\Program Files (x86)\Avast Software\Avast\RegSvr.exe'
    TargetObject|contains: '\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \Software\Microsoft\Office\Excel\Addins\
  • \Software\Microsoft\Office\Outlook\Addins\
  • \Software\Microsoft\Office\Powerpoint\Addins\
  • \Software\Microsoft\Office\Word\Addins\
  • \Software\Microsoft\VSTO\Security\Inclusion\
field:"TargetObject" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\Integrator.exeexcludes:Image field:"Image" value:"\Integrator.exe"
Imageends_with\OneNote.exeexcludes:Image field:"Image" value:"\OneNote.exe"
Imageends_with\Teams.exeexcludes:Image field:"Image" value:"\Teams.exe"
Imageends_with\excel.exeexcludes:Image field:"Image" value:"\excel.exe"
Imageends_with\outlook.exeexcludes:Image field:"Image" value:"\outlook.exe"
Imageends_with\powerpnt.exeexcludes:Image field:"Image" value:"\powerpnt.exe"
Imageends_with\visio.exeexcludes:Image field:"Image" value:"\visio.exe"
Imageends_with\winword.exeexcludes:Image field:"Image" value:"\winword.exe"
Imagestarts_withC:\PROGRA~2\MICROS~2\Officeexcludes:Image field:"Image" value:"C:\PROGRA~2\MICROS~2\Office"
Imagestarts_withC:\Program Files (x86)\Microsoft Office\OFFICEexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Office\OFFICE"
Imagestarts_withC:\Program Files (x86)\Microsoft Office\Root\OFFICEexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Office\Root\OFFICE"
Imagestarts_withC:\Program Files\Microsoft Office\OFFICEexcludes:Image field:"Image" value:"C:\Program Files\Microsoft Office\OFFICE"
Imagestarts_withC:\Program Files\Microsoft Office\Root\OFFICEexcludes:Image field:"Image" value:"C:\Program Files\Microsoft Office\Root\OFFICE"
Imagestarts_withC:\Program Files (x86)\Microsoft Shared\VSTO\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Shared\VSTO\"
Imagestarts_withC:\Program Files\Common Files\Microsoft Shared\VSTO\excludes:Image field:"Image" value:"C:\Program Files\Common Files\Microsoft Shared\VSTO\"
Imageends_with\VSTOInstaller.exeexcludes:Image field:"Image" value:"\VSTOInstaller.exe"
Imagestarts_withC:\Program Files\Common Files (x86)\Microsoft Shared\ClickToRun\excludes:Image field:"Image" value:"C:\Program Files\Common Files (x86)\Microsoft Shared\ClickToRun\"
Imagestarts_withC:\Program Files\Common Files\Microsoft Shared\ClickToRun\excludes:Image field:"Image" value:"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\"
Imageends_with\OfficeClickToRun.exeexcludes:Image field:"Image" value:"\OfficeClickToRun.exe"
ImageeqC:\Program Files (x86)\Microsoft Office\root\integration\integrator.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe"
ImageeqC:\Program Files\Microsoft Office\root\integration\integrator.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft Office\root\integration\integrator.exe"
ImageeqC:\Windows\SysWOW64\msiexec.exeexcludes:Image field:"Image" value:"C:\Windows\SysWOW64\msiexec.exe"
ImageeqC:\Windows\SysWOW64\regsvr32.exeexcludes:Image field:"Image" value:"C:\Windows\SysWOW64\regsvr32.exe"
ImageeqC:\Windows\System32\msiexec.exeexcludes:Image field:"Image" value:"C:\Windows\System32\msiexec.exe"
ImageeqC:\Windows\System32\regsvr32.exeexcludes:Image field:"Image" value:"C:\Windows\System32\regsvr32.exe"
ImageeqC:\Program Files (x86)\AVG\Antivirus\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\AVG\Antivirus\RegSvr.exe"
ImageeqC:\Program Files\AVG\Antivirus\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files\AVG\Antivirus\RegSvr.exe"
TargetObjectmatch\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\excludes:TargetObject field:"TargetObject" value:"\Microsoft\Office\Outlook\Addins\Antivirus.AsOutExt\"
ImageeqC:\Program Files (x86)\Avast Software\Avast\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Avast Software\Avast\RegSvr.exe"
ImageeqC:\Program Files\Avast Software\Avast\RegSvr.exeexcludes:Image field:"Image" value:"C:\Program Files\Avast Software\Avast\RegSvr.exe"
TargetObjectmatch\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\excludes:TargetObject field:"TargetObject" value:"\Microsoft\Office\Outlook\Addins\Avast.AsOutExt\"

Potential Pikabot Infection - Suspicious Command Combinations Via Cmd.EXE

#
Status
test
Severity
medium
Author
Alejandro Houspanossian ('@lekz86')
Source
github.com/SigmaHQ/sigma

Detects the execution of concatenated commands via "cmd.exe". Pikabot often executes a combination of multiple commands via the command handler "cmd /c" in order to download and execute additional payloads. Commands such as "curl", "wget" in order to download extra payloads. "ping" and "timeout" are abused to introduce delays in the command execution and "Rundll32" is also used to execute malicious DLL files. In the observed Pikabot infections, a combination of the commands described above are used to orchestrate the download and execution of malicious DLL files.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Pikabot Infection - Suspicious Command Combinations Via Cmd.EXE
id: e5144106-8198-4f6e-bfc2-0a551cc8dd94
status: test
description: |
    Detects the execution of concatenated commands via "cmd.exe". Pikabot often executes a combination of multiple commands via the command handler "cmd /c" in order to download and execute additional payloads.
    Commands such as "curl", "wget" in order to download extra payloads. "ping" and "timeout" are abused to introduce delays in the command execution and "Rundll32" is also used to execute malicious DLL files.
    In the observed Pikabot infections, a combination of the commands described above are used to orchestrate the download and execution of malicious DLL files.
references:
    - https://github.com/pr0xylife/Pikabot/blob/7f7723a74ca325ec54c6e61e076acce9a4b20538/Pikabot_30.10.2023.txt
    - https://github.com/pr0xylife/Pikabot/blob/7f7723a74ca325ec54c6e61e076acce9a4b20538/Pikabot_22.12.2023.txt
author: Alejandro Houspanossian ('@lekz86')
date: 2024-01-02
tags:
    - attack.command-and-control
    - attack.execution
    - attack.stealth
    - attack.t1059.003
    - attack.t1105
    - attack.t1218
    - detection.emerging-threats
logsource:
    product: windows
    category: process_creation
detection:
    selection_cmd:
        CommandLine|contains|all:
            - 'cmd'
            - '/c'
    selection_pipes:
        CommandLine|contains:
            - ' & '
            - ' || '
    selection_commands_1:
        CommandLine|contains:
            - ' curl'
            - ' wget'
            - ' timeout '
            - ' ping '
    selection_commands_2:
        CommandLine|contains:
            - ' rundll32'
            - ' mkdir '
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_cmd

selection_cmd:
    CommandLine|contains|all:
        - 'cmd'
        - '/c'

Stage 2: selection_pipes

selection_pipes:
    CommandLine|contains:
        - ' & '
        - ' || '

Stage 3: selection_commands_1

selection_commands_1:
    CommandLine|contains:
        - ' curl'
        - ' wget'
        - ' timeout '
        - ' ping '

Stage 4: selection_commands_2

selection_commands_2:
    CommandLine|contains:
        - ' rundll32'
        - ' mkdir '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • &
  • curl
  • mkdir
  • ping
  • rundll32 corpus 3 (sigma 2, splunk 1)
  • timeout
  • wget
  • ||
  • /c corpus 16 (sigma 14, splunk 2)
  • cmd corpus 8 (sigma 8)
field:"CommandLine" kind:match

Potential Process Reconnaissance via Wmic.EXE

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

Detects the execution of "wmic" with the "process" flag, which might indicate an attempt to perform reconnaissance on running processes. Adversaries may use wmic to query for running processes and their details as part of their reconnaissance efforts.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Process Reconnaissance via Wmic.EXE
id: 221b251a-357a-49a9-920a-271802777cc0
status: test
description: |
    Detects the execution of "wmic" with the "process" flag, which might indicate an attempt to perform reconnaissance on running processes.
    Adversaries may use wmic to query for running processes and their details as part of their reconnaissance efforts.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1047/T1047.md
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/wmic
author: frack113
date: 2022-01-01
modified: 2025-12-15
tags:
    - attack.execution
    - attack.t1047
    - attack.discovery
    - attack.t1057
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\WMIC.exe'
        - OriginalFileName: 'wmic.exe'
    selection_cli:
        CommandLine|contains: 'process'
    filter_main_creation:
        CommandLine|contains|all:
            # Rule id 526be59f-a573-4eea-b5f7-f0973207634d for `wmic process call create #{process_to_execute}`
            - 'call'
            - 'create'
    filter_main_terminate:
        CommandLine|contains|all:
            # Rule id 49d9671b-0a0a-4c09-8280-d215bfd30662 for `wmic path win32_process where processid=#{processid_to_terminate} call terminate`
            - 'call'
            - 'terminate'
    condition: all of selection* and not 1 of filter_main_*
falsepositives:
    - Unknown
level: medium
simulation:
    - type: atomic-red-team
      name: WMI Reconnaissance Processes
      technique: T1047
      atomic_guid: 5750aa16-0e59-4410-8b9a-8a47ca2788e2
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_wmic_recon_process/info.yml

Stages and Predicates

Stage 0: condition

all of selection* and not 1 of filter_main_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\WMIC.exe'
    - OriginalFileName: 'wmic.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: 'process'

Stage 3: not filter_main_*

filter_main_creation:
    CommandLine|contains|all:
        - 'call'
        - 'create'
filter_main_terminate:
    CommandLine|contains|all:
        - 'call'
        - 'terminate'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • process corpus 5 (sigma 3, splunk 2)
field:"CommandLine" kind:match value:"process"
Imageends_with
  • \WMIC.exe corpus 62 (sigma 62)
field:"Image" kind:ends_with value:"\WMIC.exe"
OriginalFileNameeq
  • wmic.exe corpus 74 (sigma 38, elastic 18, splunk 18)
field:"OriginalFileName" kind:eq value:"wmic.exe"

Exclusions

The rule actively suppresses these predicates.

Powershell Add Name Resolution Policy Table Rule

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

Detects powershell scripts that adds a Name Resolution Policy Table (NRPT) rule for the specified namespace. This will bypass the default DNS server and uses a specified server for answering the query.

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Powershell Add Name Resolution Policy Table Rule
id: 4368354e-1797-463c-bc39-a309effbe8d7
status: test
description: |
  Detects powershell scripts that adds a Name Resolution Policy Table (NRPT) rule for the specified namespace.
  This will bypass the default DNS server and uses a specified server for answering the query.
references:
    - https://twitter.com/NathanMcNulty/status/1569497348841287681
    - https://learn.microsoft.com/en-us/powershell/module/dnsclient/add-dnsclientnrptrule?view=windowsserver2022-ps
author: Borna Talebi
date: 2021-09-14
modified: 2022-10-09
tags:
    - attack.impact
    - attack.t1565
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'Add-DnsClientNrptRule'
            - '-Namesp'
            - '-NameSe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'Add-DnsClientNrptRule'
        - '-Namesp'
        - '-NameSe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -NameSe
  • -Namesp
  • Add-DnsClientNrptRule
field:"ScriptBlockText" kind:match

PowerShell Script Change Permission Via Set-Acl - PsScript

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

Detects PowerShell scripts set ACL to of a file or a folder

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: PowerShell Script Change Permission Via Set-Acl - PsScript
id: cae80281-ef23-44c5-873b-fd48d2666f49
related:
    - id: 0944e002-e3f6-4eb5-bf69-3a3067b53d73 # ProcCreation Susp
      type: derived
    - id: bdeb2cff-af74-4094-8426-724dc937f20a # ProcCreation Low
      type: derived
    - id: 3bf1d859-3a7e-44cb-8809-a99e066d3478 # PsScript High
      type: derived
status: test
description: Detects PowerShell scripts set ACL to of a file or a folder
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/74438b0237d141ee9c99747976447dc884cb1a39/atomics/T1505.005/T1505.005.md
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2023-07-18
tags:
    - attack.defense-impairment
    - attack.t1222
logsource:
    product: windows
    category: ps_script
    definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'Set-Acl '
            - '-AclObject '
            - '-Path '
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'Set-Acl '
        - '-AclObject '
        - '-Path '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -AclObject corpus 2 (sigma 2)
  • -Path corpus 3 (sigma 3)
  • Set-Acl corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match

PUA - Advanced Port Scanner Execution

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

Detects the use of Advanced Port Scanner.

Known False Positives

  • Legitimate administrative use
  • Tools with similar commandline (very rare)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: PUA - Advanced Port Scanner Execution
id: 54773c5f-f1cc-4703-9126-2f797d96a69d
status: test
description: Detects the use of Advanced Port Scanner.
references:
    - https://github.com/3CORESec/MAL-CL/tree/master/Descriptors/Other/Advanced%20Port%20Scanner
author: Nasreddine Bencherchali (Nextron Systems)
date: 2021-12-18
modified: 2023-02-07
tags:
    - attack.discovery
    - attack.t1046
    - attack.t1135
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|contains: '\advanced_port_scanner'
        - OriginalFileName|contains: 'advanced_port_scanner' # Covers also advanced_port_scanner_console.exe
        - Description|contains: 'Advanced Port Scanner'
    selection_cli:
        CommandLine|contains|all:
            - '/portable'
            - '/lng'
    condition: 1 of selection_*
falsepositives:
    - Legitimate administrative use
    - Tools with similar commandline (very rare)
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_pua_advanced_port_scanner/info.yml

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_img

selection_img:
    - Image|contains: '\advanced_port_scanner'
    - OriginalFileName|contains: 'advanced_port_scanner'
    - Description|contains: 'Advanced Port Scanner'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - '/portable'
        - '/lng'

Indicators

These rows show field, operator, and value matches.

Registry Persistence Mechanisms in Recycle Bin

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

Detects persistence registry keys for Recycle Bin

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Registry Persistence Mechanisms in Recycle Bin
id: 277efb8f-60be-4f10-b4d3-037802f37167
status: test
description: Detects persistence registry keys for Recycle Bin
references:
    - https://github.com/vxunderground/VXUG-Papers/blob/751edb8d50f95bd7baa730adf2c6c3bb1b034276/The%20Persistence%20Series/Persistence%20via%20Recycle%20Bin/Persistence_via_Recycle_Bin.pdf
    - https://persistence-info.github.io/Data/recyclebin.html
    - https://www.hexacorn.com/blog/2018/05/28/beyond-good-ol-run-key-part-78-2/
author: frack113
date: 2021-11-18
modified: 2022-12-06
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547
logsource:
    category: registry_event
    product: windows
detection:
    selection_create:
        EventType: RenameKey
        NewName|contains: '\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open'
    selection_set:
        EventType: SetValue
        TargetObject|contains: '\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command\(Default)'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_create

selection_create:
    EventType: RenameKey
    NewName|contains: '\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open'

Stage 2: selection_set

selection_set:
    EventType: SetValue
    TargetObject|contains: '\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command\(Default)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventTypeeq
  • RenameKey
  • SetValue corpus 6 (sigma 6)
field:"EventType" kind:eq
NewNamematch
  • \CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open
field:"NewName" kind:match value:"\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open"
TargetObjectmatch
  • \CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command\(Default)
field:"TargetObject" kind:match value:"\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command\(Default)"

Shadow Copies Creation Using Operating Systems Utilities

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

Shadow Copies creation using operating systems utilities, possible credential access

Known False Positives

  • Legitimate administrator working with shadow copies, access for backup purposes

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Shadow Copies Creation Using Operating Systems Utilities
id: b17ea6f7-6e90-447e-a799-e6c0a493d6ce
status: test
description: Shadow Copies creation using operating systems utilities, possible credential access
references:
    - https://www.slideshare.net/heirhabarov/hunting-for-credentials-dumping-in-windows-environment
    - https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/tutorial-for-ntds-goodness-vssadmin-wmis-ntdsdit-system/
author: Teymur Kheirkhabarov, Daniil Yugoslavskiy, oscd.community
date: 2019-10-22
modified: 2022-11-10
tags:
    - attack.credential-access
    - attack.t1003
    - attack.t1003.002
    - attack.t1003.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\wmic.exe'
              - '\vssadmin.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
              - 'wmic.exe'
              - 'VSSADMIN.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'shadow'
            - 'create'
    condition: all of selection_*
falsepositives:
    - Legitimate administrator working with shadow copies, access for backup purposes
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_shadow_copies_creation/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'shadow'
        - 'create'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • create corpus 29 (sigma 17, splunk 7, elastic 5)
  • shadow corpus 6 (sigma 3, splunk 2, elastic 1)
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \vssadmin.exe corpus 5 (sigma 5)
  • \wmic.exe corpus 62 (sigma 62)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • VSSADMIN.EXE corpus 9 (elastic 6, sigma 3)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
  • wmic.exe corpus 74 (sigma 38, elastic 18, splunk 18)
field:"OriginalFileName" kind:eq

SQL Server auditing deactivated

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

Detects scenarios where an attacker deactivates SQL Server auditing capacities. SQL auditing requires previous configuration on each SQL instance.

Known False Positives

  • DBA policy change

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
MSSQLSERVEREvent ID 33205

Rule Body

title: SQL Server auditing deactivated
description: Detects scenarios where an attacker deactivates SQL Server auditing capacities. SQL auditing requires previous configuration on each SQL instance.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1562.002-Disable%20Windows%20Event%20Logging
- https://www.ultimatewindowssecurity.com/sqlserver/auditlog/sampleevent.aspx
- https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action_id-groups-and-action_ids?view=sql-server-2017
- https://www.sqlshack.com/various-techniques-to-audit-sql-server-databases/
- https://sqlquantumleap.com/reference/server-audit-filter-values-for-action_id_id/
tags:
- attack.defense_evasion
- attack.t1562.002
author: mdecrevoisier
status: experimental
logsource:
  product: mssql
  category: application
detection:
  sql_server_event:
    EventID: 33205

  # Server audit specifications
  server_audit_spec_disabled:
    action_id: AL  # Alter
    class_type: SA # Server Audit Specifications
    statement|contains: 'STATE = OFF'

  server_audit_spec_deleted:
    action_id: DR  # Drop
    class_type: SA # Server Audit Specifications

  # Server audit object
  server_audit_obj_disabled:
    action_id: AL # Alter
    class_type: A # Server audit
    statement|contains: 'STATE = OFF'

  server_audit_obj_deleted:
    action_id: DR # Drop
    class_type: A # Server audit

  condition: sql_server_event and (1 of server_audit_*)
falsepositives:
- DBA policy change
level: high

Stages and Predicates

Stage 0: condition

sql_server_event and (1 of server_audit_*)

Stage 1: sql_server_event

sql_server_event:
  EventID: 33205

Stage 2: server_audit_spec_disabled

server_audit_spec_disabled:
  action_id: AL
  class_type: SA
  statement|contains: 'STATE = OFF'

Stage 3: server_audit_spec_deleted

server_audit_spec_deleted:
  action_id: DR
  class_type: SA

Stage 4: server_audit_obj_disabled

server_audit_obj_disabled:
  action_id: AL
  class_type: A
  statement|contains: 'STATE = OFF'

Stage 5: server_audit_obj_deleted

server_audit_obj_deleted:
  action_id: DR
  class_type: A

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
action_ideq
  • AL corpus 2 (sigma 2)
  • DR corpus 2 (sigma 2)
field:"action_id" kind:eq
class_typeeq
  • A
  • SA
field:"class_type" kind:eq
statementmatch
  • STATE = OFF corpus 2 (sigma 2)
field:"statement" kind:match value:"STATE = OFF"

Suspicious Commands Linux

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

Detects relevant commands often related to malware or hacking activity

Known False Positives

  • Admin activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Commands Linux
id: 1543ae20-cbdf-4ec1-8d12-7664d667a825
status: test
description: Detects relevant commands often related to malware or hacking activity
references:
    - Internal Research - mostly derived from exploit code including code in MSF
author: Florian Roth (Nextron Systems)
date: 2017-12-12
modified: 2022-10-05
tags:
    - attack.execution
    - attack.t1059.004
logsource:
    product: linux
    service: auditd
detection:
    cmd1:
        type: 'EXECVE'
        a0: 'chmod'
        a1: 777
    cmd2:
        type: 'EXECVE'
        a0: 'chmod'
        a1: 'u+s'
    cmd3:
        type: 'EXECVE'
        a0: 'cp'
        a1: '/bin/ksh'
    cmd4:
        type: 'EXECVE'
        a0: 'cp'
        a1: '/bin/sh'
    condition: 1 of cmd*
falsepositives:
    - Admin activity
level: medium

Stages and Predicates

Stage 0: condition

1 of cmd*

Stage 1: cmd1

cmd1:
    type: 'EXECVE'
    a0: 'chmod'
    a1: 777

Stage 2: cmd2

cmd2:
    type: 'EXECVE'
    a0: 'chmod'
    a1: 'u+s'

Stage 3: cmd3

cmd3:
    type: 'EXECVE'
    a0: 'cp'
    a1: '/bin/ksh'

Stage 4: cmd4

cmd4:
    type: 'EXECVE'
    a0: 'cp'
    a1: '/bin/sh'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
a0eq
  • chmod
  • cp corpus 2 (sigma 2)
field:"a0" kind:eq
a1eq
  • /bin/ksh
  • /bin/sh corpus 2 (sigma 2)
  • 777
  • u+s
field:"a1" kind:eq
typeeq
  • EXECVE corpus 37 (sigma 31, splunk 6)
field:"type" kind:eq value:"EXECVE"

Suspicious Creation TXT File in User Desktop

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

Detects creation of .txt files in user desktop folders via cmd.exe. This behavior may indicate ransomware deploying ransom notes, but can also occur during legitimate administrative tasks. Analysts should investigate for suspicious filenames (e.g., "RANSOM", "DECRYPT", "READ_ME"), bulk file creation patterns, or concurrent encryption activity to determine if this is part of a ransomware attack.

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Suspicious Creation TXT File in User Desktop
id: caf02a0a-1e1c-4552-9b48-5e070bd88d11
status: test
description: |
    Detects creation of .txt files in user desktop folders via cmd.exe. This behavior may indicate ransomware deploying ransom notes, but can also occur during legitimate administrative tasks.
    Analysts should investigate for suspicious filenames (e.g., "RANSOM", "DECRYPT", "READ_ME"), bulk file creation patterns, or concurrent encryption activity to determine if this is part of a ransomware attack.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1486/T1486.md#atomic-test-5---purelocker-ransom-note
author: frack113
date: 2021-12-26
modified: 2026-01-09
tags:
    - attack.impact
    - attack.t1486
    - detection.threat-hunting
logsource:
    product: windows
    category: file_event
detection:
    selection:
        Image|endswith: '\cmd.exe'
        TargetFilename|contains|all:
            - '\Users\'
            - '\Desktop\'
        TargetFilename|endswith: '.txt'
    condition: selection
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules-threat-hunting/windows/file/file_event/file_event_win_susp_desktop_txt/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\cmd.exe'
    TargetFilename|contains|all:
        - '\Users\'
        - '\Desktop\'
    TargetFilename|endswith: '.txt'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
TargetFilenameends_with
  • .txt corpus 3 (sigma 3)
field:"TargetFilename" kind:ends_with value:".txt"
TargetFilenamematch
  • \Desktop\ corpus 3 (sigma 3)
  • \Users\ corpus 2 (sigma 2)
field:"TargetFilename" kind:match

Suspicious Network Communication With IPFS

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

Detects connections to interplanetary file system (IPFS) containing a user's email address which mirrors behaviours observed in recent phishing campaigns leveraging IPFS to host credential harvesting webpages.

Known False Positives

  • Legitimate use of IPFS being used in the organisation. However the cs-uri regex looking for a user email will likely negate this.

MITRE ATT&CK Coverage

TacticTechniques
Credential Access
Collection

Rule Body

title: Suspicious Network Communication With IPFS
id: eb6c2004-1cef-427f-8885-9042974e5eb6
status: test
description: Detects connections to interplanetary file system (IPFS) containing a user's email address which mirrors behaviours observed in recent phishing campaigns leveraging IPFS to host credential harvesting webpages.
references:
    - https://blog.talosintelligence.com/ipfs-abuse/
    - https://github.com/Cisco-Talos/IOCs/tree/80caca039988252fbb3f27a2e89c2f2917f582e0/2022/11
    - https://isc.sans.edu/diary/IPFS%20phishing%20and%20the%20need%20for%20correctly%20set%20HTTP%20security%20headers/29638
author: Gavin Knapp
date: 2023-03-16
tags:
    - attack.collection
    - attack.credential-access
    - attack.t1056
logsource:
    category: proxy
detection:
    selection:
        cs-uri|re: '(?i)(ipfs\.io/|ipfs\.io\s).+\..+@.+\.[a-z]+'
    condition: selection
falsepositives:
    - Legitimate use of IPFS being used in the organisation. However the cs-uri regex looking for a user email will likely negate this.
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-uri|re: '(?i)(ipfs\.io/|ipfs\.io\s).+\..+@.+\.[a-z]+'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-uriregex_match
  • (?i)(ipfs.io/|ipfs.io\s).+..+@.+.[a-z]+
field:"cs-uri" kind:regex_match value:"(?i)(ipfs.io/|ipfs.io\s).+..+@.+.[a-z]+"

System Network Connections Discovery - MacOs

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

Detects usage of system utilities to discover system network connections

Known False Positives

  • Legitimate activities

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: System Network Connections Discovery - MacOs
id: 9a7a0393-2144-4626-9bf1-7c2f5a7321db
status: test
description: Detects usage of system utilities to discover system network connections
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1049/T1049.md
author: Daniil Yugoslavskiy, oscd.community
date: 2020-10-19
modified: 2022-12-28
tags:
    - attack.discovery
    - attack.t1049
logsource:
    category: process_creation
    product: macos
detection:
    selection:
        Image|endswith:
            - '/who'
            - '/w'
            - '/last'
            - '/lsof'
            - '/netstat'
    condition: selection
falsepositives:
    - Legitimate activities
level: informational

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '/who'
        - '/w'
        - '/last'
        - '/lsof'
        - '/netstat'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • /last corpus 3 (sigma 3)
  • /lsof corpus 4 (sigma 4)
  • /netstat corpus 6 (sigma 6)
  • /w corpus 3 (sigma 3)
  • /who corpus 3 (sigma 3)
field:"Image" kind:ends_with

Unusually Long PowerShell CommandLine

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

Detects unusually long PowerShell command lines with a length of 1000 characters or more

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Unusually Long PowerShell CommandLine
id: d0d28567-4b9a-45e2-8bbc-fb1b66a1f7f6
status: test
description: Detects unusually long PowerShell command lines with a length of 1000 characters or more
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse
author: oscd.community, Natalia Shornikova
date: 2020-10-06
modified: 2023-04-14
tags:
    - attack.execution
    - attack.t1059.001
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection_powershell:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
        - Description: 'Windows Powershell'
        - Product: 'PowerShell Core 6'
    selection_length:
        CommandLine|re: '.{1000,}'
    condition: all of selection_*
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_powershell

selection_powershell:
    - Image|endswith:
          - '\powershell.exe'
          - '\pwsh.exe'
    - OriginalFileName:
          - 'PowerShell.EXE'
          - 'pwsh.dll'
    - Description: 'Windows Powershell'
    - Product: 'PowerShell Core 6'

Stage 2: selection_length

selection_length:
    CommandLine|re: '.{1000,}'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineregex_match
  • .{1000,}
field:"CommandLine" kind:regex_match value:".{1000,}"
Descriptioneq
  • Windows Powershell corpus 3 (sigma 3)
field:"Description" kind:eq value:"Windows Powershell"
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
Producteq
  • PowerShell Core 6 corpus 3 (sigma 3)
field:"Product" kind:eq value:"PowerShell Core 6"

VSS backup deletion (WMI)

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

Detects scenarios where an attacker attempts to delete existing VSS backup.

Known False Positives

  • administrator cleaning outdated backup

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: VSS backup deletion (WMI)
description: Detects scenarios where an attacker attempts to delete existing VSS backup.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0040-Impact/T1490-Inhibit%20System%20Recovery
- https://www.picussecurity.com/resource/blog/how-to-beat-nefilim-ransomware-attacks
- https://www.itechtics.com/volume-shadow-copies/
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/wbadmin
- https://www.picussecurity.com/resource/blog/technique-to-delete-volume-shadow-copies-deviceiocontrol
- https://lolbas-project.github.io/lolbas/Binaries/Wmic/
- https://www.mandiant.com/resources/chasing-avaddon-ransomware
- https://blogs.vmware.com/security/2022/09/threat-report-illuminating-volume-shadow-deletion.html
tags:
- attack.impact
- attack.t1490
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection: # wmic shadowcopy delete /nointeractive
    NewProcessName|endswith: \wmic.exe
    CommandLine|contains|all:
      - shadowcopy
      - delete
  condition: selection
falsepositives:
- administrator cleaning outdated backup
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith: \wmic.exe
  CommandLine|contains|all:
    - shadowcopy
    - delete

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • delete corpus 30 (sigma 16, elastic 8, splunk 6)
  • shadowcopy corpus 13 (elastic 7, sigma 3, splunk 3)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \wmic.exe corpus 62 (sigma 62)
field:"Image" kind:ends_with value:"\wmic.exe"

Windows Defender Exploit Guard Tamper

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

Detects when someone is adding or removing applications or folders from exploit guard "ProtectedFolders" or "AllowedApplications"

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Windows Defender Exploit Guard Tamper
id: a3ab73f1-bd46-4319-8f06-4b20d0617886
status: test
description: |
    Detects when someone is adding or removing applications or folders from exploit guard "ProtectedFolders" or "AllowedApplications"
references:
    - https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/windows-10-controlled-folder-access-event-search/ba-p/2326088
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-05
modified: 2022-12-06
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    service: windefend
detection:
    allowed_apps_key:
        EventID: 5007 # The antimalware platform configuration changed.
        NewValue|contains: '\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\AllowedApplications\'
    allowed_apps_path:
        NewValue|contains:
            # Add more paths you don't allow in your org
            - '\Users\Public\'
            - '\AppData\Local\Temp\'
            - '\Desktop\'
            - '\PerfLogs\'
            - '\Windows\Temp\'
    protected_folders:
        EventID: 5007 # The antimalware platform configuration changed.
        # This will trigger on any folder removal. If you experience FP's then add another selection with specific paths
        OldValue|contains: '\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders\'
    condition: all of allowed_apps* or protected_folders
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of allowed_apps* or protected_folders

Stage 1: allowed_apps_key

allowed_apps_key:
    EventID: 5007
    NewValue|contains: '\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\AllowedApplications\'

Stage 2: allowed_apps_path

allowed_apps_path:
    NewValue|contains:
        - '\Users\Public\'
        - '\AppData\Local\Temp\'
        - '\Desktop\'
        - '\PerfLogs\'
        - '\Windows\Temp\'

Stage 3: protected_folders

protected_folders:
    EventID: 5007
    OldValue|contains: '\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
NewValuematch
  • \AppData\Local\Temp\ corpus 8 (sigma 8)
  • \Desktop\ corpus 3 (sigma 3)
  • \PerfLogs\ corpus 3 (sigma 3)
  • \Users\Public\ corpus 5 (sigma 5)
  • \Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\AllowedApplications\
  • \Windows\Temp\ corpus 5 (sigma 5)
field:"Details" kind:match
OldValuematch
  • \Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders\
field:"OldValue" kind:match value:"\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access\ProtectedFolders\"

Back to all Sigma rules