Detection rules › Sigma

Sigma rules: 26

RuleSeverity
Abused Debug Privilege by Arbitrary Parent Processeshigh
Alternate PowerShell Hosts - PowerShell Modulemedium
Always Install Elevated Windows Installermedium
Attempt To Get Signin Tokenmedium
Audit Policy Tampering Via NT Resource Kit Auditpolhigh
Azure Keyvault Secrets Modified or Deletedmedium
Backup Files Deletedmedium
Citrix Netscaler Attack CVE-2019-19781critical
ClickOnce Deployment Execution - Dfsvc.EXE Child Processmedium
CobaltStrike Named Pipecritical
Curl Download And Execute Combinationhigh
CurrentVersion Autorun Keys Modificationmedium
CVE-2021-26858 Exchange Exploitationhigh
CVE-2023-4966 Exploitation Attempt - Citrix ADC Sensitive Information Disclosure - Proxyhigh
DHCP Callout DLL Installationhigh
Disable Macro Runtime Scan Scopehigh
Execution DLL of Choice Using WAB.EXEhigh
Filter Driver Unloaded Via Fltmc.EXEmedium
Google Cloud Kubernetes CronJobmedium
HackTool - Quarks PwDump Executionhigh
Invoke-Obfuscation Via Use Clip - PowerShell Modulehigh
Linux Doas Conf File Creationmedium
Network Connection Initiated By PowerShell Processlow
New BgInfo.EXE Custom WMI Query Registry Configurationmedium
Outbound Network Connection Initiated By Script Interpreterhigh
PaperCut MF/NG Potential Exploitationhigh
Possible Impacket SecretDump Remote Activityhigh
Potential APT FIN7 Related PowerShell Script Createdhigh
Potential Goofy Guineapig GoolgeUpdate Process Anomalyhigh
Potential Suspicious Child Process Of 3CXDesktopApphigh
Reconnaissance Activityhigh
Remote PowerShell Session Host Process (WinRM)medium
Rorschach Ransomware Execution Activitycritical
Sensitive File Dump Via Print.EXEhigh
Service Installed By Unusual Client - Systemhigh
Shared folder access with forged Golden tickethigh
Signed DLL Loaded With Missing PE Version Metadatalow
Suspicious Chromium Browser Instance Executed With Custom Extensionhigh
Suspicious Scheduled Task Creationhigh
SystemNightmare by GentilKiwi - External printer mapped (CVE-2021-1675 / CVE-2021-34527)high
Use Of Remove-Item to Delete File - ScriptBlocklow
Windows Binary Executed From WSLmedium

Abused Debug Privilege by Arbitrary Parent Processes

#
Status
test
Severity
high
Author
Semanur Guneysu @semanurtg, oscd.community
Source
github.com/SigmaHQ/sigma

Detection of unusual child processes by different system processes

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Abused Debug Privilege by Arbitrary Parent Processes
id: d522eca2-2973-4391-a3e0-ef0374321dae
status: test
description: Detection of unusual child processes by different system processes
references:
    - https://image.slidesharecdn.com/kheirkhabarovoffzonefinal-181117201458/95/hunting-for-privilege-escalation-in-windows-environment-74-638.jpg
author: 'Semanur Guneysu @semanurtg, oscd.community'
date: 2020-10-28
modified: 2022-11-11
tags:
    - attack.privilege-escalation
    - attack.t1548
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith:
            - '\winlogon.exe'
            - '\services.exe'
            - '\lsass.exe'
            - '\csrss.exe'
            - '\smss.exe'
            - '\wininit.exe'
            - '\spoolsv.exe'
            - '\searchindexer.exe'
        User|contains: # covers many language settings
            - 'AUTHORI'
            - 'AUTORI'
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\cmd.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
              - 'Cmd.Exe'
    filter:
        CommandLine|contains|all:
            - ' route '
            - ' ADD '
    condition: all of selection_* and not filter
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_abusing_debug_privilege/info.yml

Stages and Predicates

Stage 0: condition

all of selection_* and not filter

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith:
        - '\winlogon.exe'
        - '\services.exe'
        - '\lsass.exe'
        - '\csrss.exe'
        - '\smss.exe'
        - '\wininit.exe'
        - '\spoolsv.exe'
        - '\searchindexer.exe'
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'

Stage 2: selection_img

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

Stage 3: not filter

filter:
    CommandLine|contains|all:
        - ' route '
        - ' ADD '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
OriginalFileNameeq
  • Cmd.Exe corpus 75 (sigma 43, splunk 17, elastic 15)
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
field:"OriginalFileName" kind:eq
ParentImageends_with
  • \csrss.exe corpus 3 (sigma 3)
  • \lsass.exe corpus 3 (sigma 3)
  • \searchindexer.exe corpus 3 (sigma 3)
  • \services.exe corpus 8 (sigma 8)
  • \smss.exe corpus 2 (sigma 2)
  • \spoolsv.exe corpus 5 (sigma 5)
  • \wininit.exe corpus 2 (sigma 2)
  • \winlogon.exe corpus 5 (sigma 5)
field:"ParentImage" kind:ends_with
Usermatch
  • AUTHORI corpus 14 (sigma 14)
  • AUTORI corpus 14 (sigma 14)
field:"user" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch ADD excludes:CommandLine field:"CommandLine" value:" ADD "
CommandLinematch route excludes:CommandLine field:"CommandLine" value:" route "

Alternate PowerShell Hosts - PowerShell Module

#
Status
test
Severity
medium
Author
Roberto Rodriguez @Cyb3rWard0g
Source
github.com/SigmaHQ/sigma

Detects alternate PowerShell hosts potentially bypassing detections looking for powershell.exe

Known False Positives

  • Programs using PowerShell directly without invocation of a dedicated interpreter
  • MSP Detection Searcher
  • Citrix ConfigSync.ps1

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Alternate PowerShell Hosts - PowerShell Module
id: 64e8e417-c19a-475a-8d19-98ea705394cc
status: test
description: Detects alternate PowerShell hosts potentially bypassing detections looking for powershell.exe
references:
    - https://threathunterplaybook.com/hunts/windows/190610-PwshAlternateHosts/notebook.html
author: Roberto Rodriguez @Cyb3rWard0g
date: 2019-08-11
modified: 2025-10-17
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_module
    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
    selection:
        ContextInfo|contains: '*'
    filter_powershell:
        # This filter covers the following use cases
        #   - When powershell is called directly from commandline via keyword powershell or powershell.exe
        #   - Or called via path but not with full "".exe". Example: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell
        ContextInfo|contains:
            - '= powershell' # Host Application=...powershell.exe or Application hote=...powershell.exe in French Win10 event
            - '= C:\Windows\System32\WindowsPowerShell\v1.0\powershell'
            - '= C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell'
            # In some cases powershell was invoked with inverted slashes
            - '= C:/Windows/System32/WindowsPowerShell/v1.0/powershell'
            - '= C:/Windows/SysWOW64/WindowsPowerShell/v1.0/powershell'
            # In some cases \??\C:.. is used
            - '= \\\?\?\C:Windows\System32\WindowsPowerShell\v1.0\powershell'
            - '= \\\?\?\C:Windows\SysWOW64\WindowsPowerShell\v1.0\powershell'
    filter_sdiagnhost:
        ContextInfo|contains: '= C:\WINDOWS\System32\sdiagnhost.exe -Embedding' # When MSDT is launched for example
    filter_citrix:
        ContextInfo|contains: 'ConfigSyncRun.exe'
    filter_adace:  # Active Directory Administrative Center Enhancements
        ContextInfo|contains: 'C:\Windows\system32\dsac.exe'
    filter_winrm:
        ContextInfo|contains: 'C:\Windows\system32\wsmprovhost.exe -Embedding'
    filter_help_update:
        Payload|contains:
            - 'Update-Help'
            - 'Failed to update Help for the module'
    condition: selection and not 1 of filter_*
falsepositives:
    - Programs using PowerShell directly without invocation of a dedicated interpreter
    - MSP Detection Searcher
    - Citrix ConfigSync.ps1
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    ContextInfo|contains: '*'

Stage 2: not filter_*

filter_powershell:
    ContextInfo|contains:
        - '= powershell'
        - '= C:\Windows\System32\WindowsPowerShell\v1.0\powershell'
        - '= C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell'
        - '= C:/Windows/System32/WindowsPowerShell/v1.0/powershell'
        - '= C:/Windows/SysWOW64/WindowsPowerShell/v1.0/powershell'
        - '= \\\?\?\C:Windows\System32\WindowsPowerShell\v1.0\powershell'
        - '= \\\?\?\C:Windows\SysWOW64\WindowsPowerShell\v1.0\powershell'
filter_sdiagnhost:
    ContextInfo|contains: '= C:\WINDOWS\System32\sdiagnhost.exe -Embedding'
filter_citrix:
    ContextInfo|contains: 'ConfigSyncRun.exe'
filter_adace:
    ContextInfo|contains: 'C:\Windows\system32\dsac.exe'
filter_winrm:
    ContextInfo|contains: 'C:\Windows\system32\wsmprovhost.exe -Embedding'
filter_help_update:
    Payload|contains:
        - 'Update-Help'
        - 'Failed to update Help for the module'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ContextInfomatch= C:/Windows/SysWOW64/WindowsPowerShell/v1.0/powershellexcludes:ContextInfo field:"ContextInfo" value:"= C:/Windows/SysWOW64/WindowsPowerShell/v1.0/powershell"
ContextInfomatch= C:/Windows/System32/WindowsPowerShell/v1.0/powershellexcludes:ContextInfo field:"ContextInfo" value:"= C:/Windows/System32/WindowsPowerShell/v1.0/powershell"
ContextInfomatch= C:\WINDOWS\System32\sdiagnhost.exe -Embeddingexcludes:ContextInfo field:"ContextInfo" value:"= C:\WINDOWS\System32\sdiagnhost.exe -Embedding"
ContextInfomatch= C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershellexcludes:ContextInfo field:"ContextInfo" value:"= C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell"
ContextInfomatch= C:\Windows\System32\WindowsPowerShell\v1.0\powershellexcludes:ContextInfo field:"ContextInfo" value:"= C:\Windows\System32\WindowsPowerShell\v1.0\powershell"
ContextInfomatch= \\\?\?\C:Windows\SysWOW64\WindowsPowerShell\v1.0\powershellexcludes:ContextInfo field:"ContextInfo" value:"= \\\?\?\C:Windows\SysWOW64\WindowsPowerShell\v1.0\powershell"
ContextInfomatch= \\\?\?\C:Windows\System32\WindowsPowerShell\v1.0\powershellexcludes:ContextInfo field:"ContextInfo" value:"= \\\?\?\C:Windows\System32\WindowsPowerShell\v1.0\powershell"
ContextInfomatch= powershellexcludes:ContextInfo field:"ContextInfo" value:"= powershell"
ContextInfomatchC:\Windows\system32\dsac.exeexcludes:ContextInfo field:"ContextInfo" value:"C:\Windows\system32\dsac.exe"
ContextInfomatchC:\Windows\system32\wsmprovhost.exe -Embeddingexcludes:ContextInfo field:"ContextInfo" value:"C:\Windows\system32\wsmprovhost.exe -Embedding"
ContextInfomatchConfigSyncRun.exeexcludes:ContextInfo field:"ContextInfo" value:"ConfigSyncRun.exe"
PayloadmatchFailed to update Help for the moduleexcludes:Payload field:"Payload" value:"Failed to update Help for the module"
PayloadmatchUpdate-Helpexcludes:Payload field:"Payload" value:"Update-Help"

Always Install Elevated Windows Installer

#
Status
test
Severity
medium
Author
Teymur Kheirkhabarov (idea), Mangatas Tondang (rule), oscd.community
Source
github.com/SigmaHQ/sigma

Detects Windows Installer service (msiexec.exe) trying to install MSI packages with SYSTEM privilege

Known False Positives

  • System administrator usage
  • Anti virus products
  • WindowsApps located in "C:\Program Files\WindowsApps\"

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Always Install Elevated Windows Installer
id: cd951fdc-4b2f-47f5-ba99-a33bf61e3770
status: test
description: Detects Windows Installer service (msiexec.exe) trying to install MSI packages with SYSTEM privilege
references:
    - https://image.slidesharecdn.com/kheirkhabarovoffzonefinal-181117201458/95/hunting-for-privilege-escalation-in-windows-environment-48-638.jpg
author: Teymur Kheirkhabarov (idea), Mangatas Tondang (rule), oscd.community
date: 2020-10-13
modified: 2024-12-01
tags:
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    product: windows
    category: process_creation
detection:
    selection_user:
        User|contains: # covers many language settings
            - 'AUTHORI'
            - 'AUTORI'
    selection_image_1:
        Image|contains|all:
            - '\Windows\Installer\'
            - 'msi'
        Image|endswith: 'tmp'
    selection_image_2:
        Image|endswith: '\msiexec.exe'
        IntegrityLevel:
            - 'System'
            - 'S-1-16-16384'
    filter_installer:
        ParentImage: 'C:\Windows\System32\services.exe'
    filter_repair:
        - CommandLine|endswith: '\system32\msiexec.exe /V' # ignore "repair option"
        - ParentCommandLine|endswith: '\system32\msiexec.exe /V' # ignore "repair option"
    filter_sophos:
        ParentImage|startswith: 'C:\ProgramData\Sophos\'
    filter_avira:
        ParentImage|startswith: 'C:\ProgramData\Avira\'
    filter_avast:
        ParentImage|startswith:
            - 'C:\Program Files\Avast Software\'
            - 'C:\Program Files (x86)\Avast Software\'
    filter_google_update:
        ParentImage|startswith:
            - 'C:\Program Files\Google\Update\'
            - 'C:\Program Files (x86)\Google\Update\'
    condition: 1 of selection_image_* and selection_user and not 1 of filter_*
falsepositives:
    - System administrator usage
    - Anti virus products
    - WindowsApps located in "C:\Program Files\WindowsApps\"
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_image_* and selection_user and not 1 of filter_*

Stage 1: selection_image_1

selection_image_1:
    Image|contains|all:
        - '\Windows\Installer\'
        - 'msi'
    Image|endswith: 'tmp'

Stage 2: selection_image_2

selection_image_2:
    Image|endswith: '\msiexec.exe'
    IntegrityLevel:
        - 'System'
        - 'S-1-16-16384'

Stage 3: selection_user

selection_user:
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'

Stage 4: not filter_*

filter_installer:
    ParentImage: 'C:\Windows\System32\services.exe'
filter_repair:
    - CommandLine|endswith: '\system32\msiexec.exe /V'
    - ParentCommandLine|endswith: '\system32\msiexec.exe /V'
filter_sophos:
    ParentImage|startswith: 'C:\ProgramData\Sophos\'
filter_avira:
    ParentImage|startswith: 'C:\ProgramData\Avira\'
filter_avast:
    ParentImage|startswith:
        - 'C:\Program Files\Avast Software\'
        - 'C:\Program Files (x86)\Avast Software\'
filter_google_update:
    ParentImage|startswith:
        - 'C:\Program Files\Google\Update\'
        - 'C:\Program Files (x86)\Google\Update\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \msiexec.exe corpus 20 (sigma 20)
  • tmp
field:"Image" kind:ends_with
Imagematch
  • \Windows\Installer\
  • msi
field:"Image" kind:match
IntegrityLeveleq
  • S-1-16-16384 corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
  • System corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
field:"IntegrityLevel" kind:eq
Usermatch
  • AUTHORI corpus 14 (sigma 14)
  • AUTORI corpus 14 (sigma 14)
field:"user" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLineends_with\system32\msiexec.exe /Vexcludes:CommandLine field:"CommandLine" value:"\system32\msiexec.exe /V"
ParentCommandLineends_with\system32\msiexec.exe /Vexcludes:ParentCommandLine field:"ParentCommandLine" value:"\system32\msiexec.exe /V"
ParentImageeqC:\Windows\System32\services.exeexcludes:ParentImage field:"ParentImage" value:"C:\Windows\System32\services.exe"
ParentImagestarts_withC:\Program Files (x86)\Avast Software\excludes:ParentImage field:"ParentImage" value:"C:\Program Files (x86)\Avast Software\"
ParentImagestarts_withC:\Program Files (x86)\Google\Update\excludes:ParentImage field:"ParentImage" value:"C:\Program Files (x86)\Google\Update\"
ParentImagestarts_withC:\Program Files\Avast Software\excludes:ParentImage field:"ParentImage" value:"C:\Program Files\Avast Software\"
ParentImagestarts_withC:\Program Files\Google\Update\excludes:ParentImage field:"ParentImage" value:"C:\Program Files\Google\Update\"
ParentImagestarts_withC:\ProgramData\Avira\excludes:ParentImage field:"ParentImage" value:"C:\ProgramData\Avira\"
ParentImagestarts_withC:\ProgramData\Sophos\excludes:ParentImage field:"ParentImage" value:"C:\ProgramData\Sophos\"

Attempt To Get Signin Token

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

Generate a SigninToken that can be used to login to the the AWS Management Console. Attackers might access via a Federated identity (such as AWS SSO) to the Management Console.

MITRE ATT&CK Coverage

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: Attempt To Get Signin Token
id: b1a88df9-bf9f-48f4-a1c8-1d443923b951
status: experimental
description: |
    Generate a SigninToken that can be used to login to the the AWS Management Console.
    Attackers might access via a Federated identity (such as AWS SSO) to the Management Console.
references:
    - https://fwdcloudsec.org/assets/presentations/2024/europe/sebastian-walla-cloud-conscious-tactics-techniques-and-procedures-an-overview.pdf
    - https://securitylabs.datadoghq.com/articles/tales-from-the-cloud-trenches-unwanted-visitor/
    - https://traildiscover.cloud/#SignIn-GetSigninToken
author: Zach Mathis (@yamatosecurity)
date: 2025-04-23
modified: 2025-04-23
tags:
    - attack.credential-access
    - attack.t1078.004 # Valid Accounts: Cloud Accounts
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventName: 'GetSigninToken'
        errorCode: 'AccessDenied'
    condition: selection
falsepositives:
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventName: 'GetSigninToken'
    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
  • GetSigninToken corpus 3 (sigma 3)
field:"aws::eventName" kind:eq value:"GetSigninToken"

Audit Policy Tampering Via NT Resource Kit Auditpol

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

Threat actors can use an older version of the auditpol binary available inside the NT resource kit to change audit policy configuration to impair detection capability. This can be carried out by selectively disabling/removing certain audit policies as well as restoring a custom policy owned by the threat actor.

Known False Positives

  • The old auditpol utility isn't available by default on recent versions of Windows as it was replaced by a newer version. The FP rate should be very low except for tools that use a similar flag structure

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Audit Policy Tampering Via NT Resource Kit Auditpol
id: c6c56ada-612b-42d1-9a29-adad3c5c2c1e
related:
    - id: 0a13e132-651d-11eb-ae93-0242ac130002 # New auditpol version
      type: similar
status: test
description: |
    Threat actors can use an older version of the auditpol binary available inside the NT resource kit to change audit policy configuration to impair detection capability.
    This can be carried out by selectively disabling/removing certain audit policies as well as restoring a custom policy owned by the threat actor.
references:
    - https://github.com/3CORESec/MAL-CL/tree/master/Descriptors/Windows%202000%20Resource%20Kit%20Tools/AuditPol
author: Nasreddine Bencherchali (Nextron Systems)
date: 2021-12-18
modified: 2023-02-21
tags:
    - attack.defense-impairment
    - attack.t1685.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - '/logon:none'
            - '/system:none'
            - '/sam:none'
            - '/privilege:none'
            - '/object:none'
            - '/process:none'
            - '/policy:none'
    condition: selection
falsepositives:
    - The old auditpol utility isn't available by default on recent versions of Windows as it was replaced by a newer version. The FP rate should be very low except for tools that use a similar flag structure
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - '/logon:none'
        - '/system:none'
        - '/sam:none'
        - '/privilege:none'
        - '/object:none'
        - '/process:none'
        - '/policy:none'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /logon:none
  • /object:none
  • /policy:none
  • /privilege:none
  • /process:none
  • /sam:none
  • /system:none
field:"CommandLine" kind:match

Azure Keyvault Secrets Modified or Deleted

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

Identifies when secrets are modified or deleted in Azure.

Known False Positives

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

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Azure Keyvault Secrets Modified or Deleted
id: b831353c-1971-477b-abb6-2828edc3bca1
status: test
description: Identifies when secrets are modified or deleted in Azure.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
author: Austin Songer @austinsonger
date: 2021-08-16
modified: 2022-08-23
tags:
    - attack.impact
    - attack.credential-access
    - attack.t1552
    - attack.t1552.001
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/WRITE
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/DELETE
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/BACKUP/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/PURGE/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/UPDATE/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/RECOVER/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/RESTORE/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/SECRETS/SETSECRET/ACTION
    condition: selection
falsepositives:
    - Secrets being modified or deleted may be performed by a system administrator.
    - Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
    - Secrets modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operationName:
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/WRITE
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/DELETE
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/BACKUP/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/PURGE/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/UPDATE/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/RECOVER/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/RESTORE/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/SECRETS/SETSECRET/ACTION

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameeq
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/BACKUP/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/DELETE
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/PURGE/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/RECOVER/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/RESTORE/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/SETSECRET/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/UPDATE/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/SECRETS/WRITE
field:"operationName" kind:eq

Backup Files Deleted

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

Detects deletion of files with extensions often used for backup files. Adversaries may delete or remove built-in operating system data and turn off services designed to aid in the recovery of a corrupted system to prevent recovery.

Known False Positives

  • Legitimate usage

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Backup Files Deleted
id: 06125661-3814-4e03-bfa2-1e4411c60ac3
status: test
description: Detects deletion of files with extensions often used for backup files. Adversaries may delete or remove built-in operating system data and turn off services designed to aid in the recovery of a corrupted system to prevent recovery.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1490/T1490.md#atomic-test-6---windows---delete-backup-files
author: frack113
date: 2022-01-02
modified: 2023-02-15
tags:
    - attack.impact
    - attack.t1490
logsource:
    product: windows
    category: file_delete
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\wt.exe'
            - '\rundll32.exe'
            - '\regsvr32.exe'
        TargetFilename|endswith:
            - '.VHD'
            - '.bac'
            - '.bak'
            - '.wbcat'
            - '.bkf'
            - '.set'
            - '.win'
            - '.dsk'
    condition: selection
falsepositives:
    - Legitimate usage
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\cmd.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\wt.exe'
        - '\rundll32.exe'
        - '\regsvr32.exe'
    TargetFilename|endswith:
        - '.VHD'
        - '.bac'
        - '.bak'
        - '.wbcat'
        - '.bkf'
        - '.set'
        - '.win'
        - '.dsk'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \rundll32.exe corpus 94 (sigma 94)
  • \wt.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with
TargetFilenameends_with
  • .VHD
  • .bac
  • .bak
  • .bkf
  • .dsk
  • .set
  • .wbcat
  • .win
field:"TargetFilename" kind:ends_with

Citrix Netscaler Attack CVE-2019-19781

#
Status
test
Severity
critical
Author
Arnim Rupp, Florian Roth
Source
github.com/SigmaHQ/sigma

Detects CVE-2019-19781 exploitation attempt against Citrix Netscaler, Application Delivery Controller and Citrix Gateway Attack

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Citrix Netscaler Attack CVE-2019-19781
id: ac5a6409-8c89-44c2-8d64-668c29a2d756
status: test
description: Detects CVE-2019-19781 exploitation attempt against Citrix Netscaler, Application Delivery Controller and Citrix Gateway Attack
references:
    - https://support.citrix.com/article/CTX267679
    - https://support.citrix.com/article/CTX267027
    - https://isc.sans.edu/diary/25686
    - https://twitter.com/mpgn_x64/status/1216787131210829826
    - https://github.com/x1sec/CVE-2019-19781/blob/25f7ab97275b2d41800bb3414dac8ca3a78af7e5/CVE-2019-19781-DFIR.md
author: Arnim Rupp, Florian Roth
date: 2020-01-02
modified: 2023-01-02
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2019-19781
    - detection.emerging-threats
logsource:
    category: webserver
    definition: 'Make sure that your Netscaler appliance logs all kinds of attacks (test with http://your-citrix-gw.net/robots.txt). The directory traversal with ../ might not be needed on certain cloud instances or for authenticated users, so we also check for direct paths. All scripts in portal/scripts are exploitable except logout.pl.'
detection:
    selection_cs:
        - cs-uri-query|contains: '/../vpns/'
        - cs-uri-query|endswith: '/vpns/cfg/smb.conf'
    selection_csall:
        cs-uri-query|contains|all:
            - '/vpns/portal/scripts/'
            - '.pl'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_cs

selection_cs:
    - cs-uri-query|contains: '/../vpns/'
    - cs-uri-query|endswith: '/vpns/cfg/smb.conf'

Stage 2: selection_csall

selection_csall:
    cs-uri-query|contains|all:
        - '/vpns/portal/scripts/'
        - '.pl'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-uri-queryends_with
  • /vpns/cfg/smb.conf
field:"cs-uri-query" kind:ends_with value:"/vpns/cfg/smb.conf"
cs-uri-querymatch
  • .pl
  • /../vpns/
  • /vpns/portal/scripts/
field:"cs-uri-query" kind:match

ClickOnce Deployment Execution - Dfsvc.EXE Child Process

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

Detects child processes of "dfsvc" which indicates a ClickOnce deployment execution.

Known False Positives

  • False positives are expected in environement leveraging ClickOnce deployments. An initial baselining is required before using this rule in production.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique
StealthNo specific technique

Telemetry Coverage

Rule Body

title: ClickOnce Deployment Execution - Dfsvc.EXE Child Process
id: 241d52b5-eee0-49d0-ac8a-8b9c15c7221c
status: test
description: Detects child processes of "dfsvc" which indicates a ClickOnce deployment execution.
references:
    - https://posts.specterops.io/less-smartscreen-more-caffeine-ab-using-clickonce-for-trusted-code-execution-1446ea8051c5
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-06-12
tags:
    - attack.execution
    - detection.threat-hunting
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\dfsvc.exe'
        Image|endswith: '\AppData\Local\Apps\2.0\'
    condition: selection
falsepositives:
    - False positives are expected in environement leveraging ClickOnce deployments. An initial baselining is required before using this rule in production.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\dfsvc.exe'
    Image|endswith: '\AppData\Local\Apps\2.0\'

Indicators

These rows show field, operator, and value matches.

CobaltStrike Named Pipe

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

Detects the creation of a named pipe as used by CobaltStrike

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: CobaltStrike Named Pipe
id: d5601f8c-b26f-4ab0-9035-69e11a8d4ad2
related:
    - id: 85adeb13-4fc9-4e68-8a4a-c7cb2c336eb7 # Patterns
      type: similar
    - id: 0e7163d4-9e19-4fa7-9be6-000c61aad77a # Regex
      type: similar
status: test
description: Detects the creation of a named pipe as used by CobaltStrike
references:
    - https://twitter.com/d4rksystem/status/1357010969264873472
    - https://labs.f-secure.com/blog/detecting-cobalt-strike-default-modules-via-named-pipe-analysis/
    - https://github.com/SigmaHQ/sigma/issues/253
    - https://blog.cobaltstrike.com/2021/02/09/learn-pipe-fitting-for-all-of-your-offense-projects/
    - https://redcanary.com/threat-detection-report/threats/cobalt-strike/
author: Florian Roth (Nextron Systems), Wojciech Lesicki
date: 2021-05-25
modified: 2022-10-31
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
logsource:
    product: windows
    category: pipe_created
    definition: 'Note that you have to configure logging for Named Pipe Events in Sysmon config (Event ID 17 and Event ID 18). The basic configuration is in popular sysmon configuration (https://github.com/SwiftOnSecurity/sysmon-config), but it is worth verifying. You can also use other repo, e.g. https://github.com/Neo23x0/sysmon-config, https://github.com/olafhartong/sysmon-modular. How to test detection? You can always use Cobalt Strike, but also you can check powershell script from this site https://svch0st.medium.com/guide-to-named-pipes-and-hunting-for-cobalt-strike-pipes-dc46b2c5f575'
detection:
    selection_MSSE:
        PipeName|contains|all:
            - '\MSSE-'
            - '-server'
    selection_postex:
        PipeName|startswith: '\postex_' # Also include the pipe "\postex_ssh_"
    selection_status:
        PipeName|startswith: '\status_'
    selection_msagent:
        PipeName|startswith: '\msagent_'
    selection_mojo:
        PipeName|startswith: '\mojo_'
    selection_interprocess:
        PipeName|startswith: '\interprocess_'
    selection_samr:
        PipeName|startswith: '\samr_'
    selection_netlogon:
        PipeName|startswith: '\netlogon_'
    selection_srvsvc:
        PipeName|startswith: '\srvsvc_'
    selection_lsarpc:
        PipeName|startswith: '\lsarpc_'
    selection_wkssvc:
        PipeName|startswith: '\wkssvc_'
    condition: 1 of selection*
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_MSSE

selection_MSSE:
    PipeName|contains|all:
        - '\MSSE-'
        - '-server'

Stage 2: selection_postex

selection_postex:
    PipeName|startswith: '\postex_'

Stage 3: selection_status

selection_status:
    PipeName|startswith: '\status_'

Stage 4: selection_msagent

selection_msagent:
    PipeName|startswith: '\msagent_'

Stage 5: selection_mojo

selection_mojo:
    PipeName|startswith: '\mojo_'

Stage 6: selection_interprocess

selection_interprocess:
    PipeName|startswith: '\interprocess_'

Stage 7: selection_samr

selection_samr:
    PipeName|startswith: '\samr_'

Stage 8: selection_netlogon

selection_netlogon:
    PipeName|startswith: '\netlogon_'

Stage 9: selection_srvsvc

selection_srvsvc:
    PipeName|startswith: '\srvsvc_'

Stage 10: selection_lsarpc

selection_lsarpc:
    PipeName|startswith: '\lsarpc_'

Stage 11: selection_wkssvc

selection_wkssvc:
    PipeName|startswith: '\wkssvc_'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
PipeNamematch
  • -server
  • \MSSE-
field:"PipeName" kind:match
PipeNamestarts_with
  • \interprocess_
  • \lsarpc_
  • \mojo_
  • \msagent_
  • \netlogon_
  • \postex_
  • \samr_
  • \srvsvc_
  • \status_
  • \wkssvc_
field:"PipeName" kind:starts_with

Curl Download And Execute Combination

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

Adversaries can use curl to download payloads remotely and execute them. Curl is included by default in Windows 10 build 17063 and later.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Curl Download And Execute Combination
id: 21dd6d38-2b18-4453-9404-a0fe4a0cc288
status: test
description: Adversaries can use curl to download payloads remotely and execute them. Curl is included by default in Windows 10 build 17063 and later.
references:
    - https://medium.com/@reegun/curl-exe-is-the-new-rundll32-exe-lolbin-3f79c5f35983 # Dead Link
author: Sreeman, Nasreddine Bencherchali (Nextron Systems)
date: 2020-01-13
modified: 2024-03-05
tags:
    - attack.stealth
    - attack.t1218
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|windash: ' -c '
        CommandLine|contains|all:
            - 'curl '
            - 'http'
            - '-o'
            - '&'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|windash: ' -c '
    CommandLine|contains|all:
        - 'curl '
        - 'http'
        - '-o'
        - '&'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -c corpus 13 (sigma 13)
  • /c corpus 7 (sigma 6, splunk 1)
  • –c corpus 2 (sigma 2)
  • —c corpus 2 (sigma 2)
  • ―c corpus 2 (sigma 2)
  • &
  • -o corpus 3 (sigma 3)
  • curl corpus 11 (sigma 11)
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
field:"CommandLine" kind:match

CurrentVersion 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.

Known False Positives

  • Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
  • Legitimate administrator sets up autorun keys for legitimate reason

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: CurrentVersion Autorun Keys Modification
id: 20f0ee37-5942-4e45-b7d5-c5b5db9df5cd
related:
    - id: 17f878b8-9968-4578-b814-c4217fc5768c
      type: obsolete
status: test
description: Detects modification of autostart extensibility point (ASEP) in registry.
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
    - https://oddvar.moe/2018/03/21/persistence-using-runonceex-hidden-from-autoruns-exe/
author: Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split)
date: 2019-10-25
modified: 2025-10-22
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
logsource:
    category: registry_set
    product: windows
detection:
    selection_current_version_base:
        TargetObject|contains: '\SOFTWARE\Microsoft\Windows\CurrentVersion'
    selection_current_version_keys:
        TargetObject|contains:
            - '\ShellServiceObjectDelayLoad'
            - '\Run\'
            - '\RunOnce\'
            - '\RunOnceEx\'
            - '\RunServices\'
            - '\RunServicesOnce\'
            - '\Policies\System\Shell'
            - '\Policies\Explorer\Run'
            - '\Group Policy\Scripts\Startup'
            - '\Group Policy\Scripts\Shutdown'
            - '\Group Policy\Scripts\Logon'
            - '\Group Policy\Scripts\Logoff'
            - '\Explorer\ShellServiceObjects'
            - '\Explorer\ShellIconOverlayIdentifiers'
            - '\Explorer\ShellExecuteHooks'
            - '\Explorer\SharedTaskScheduler'
            - '\Explorer\Browser Helper Objects'
            - '\Authentication\PLAP Providers'
            - '\Authentication\Credential Providers'
            - '\Authentication\Credential Provider Filters'
    filter_main_generic_all:
        - Details: '(Empty)'
        - TargetObject|endswith: '\NgcFirst\ConsecutiveSwitchCount'
        - Image|endswith:
              - '\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe' # C:\Users\*\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe
              - '\AppData\Roaming\Spotify\Spotify.exe'
              - '\AppData\Local\WebEx\WebexHost.exe'
        - Image:
              - 'C:\WINDOWS\system32\devicecensus.exe'
              - 'C:\Windows\system32\winsat.exe'
              - 'C:\Program Files\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
              - 'C:\Program Files (x86)\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
              - 'C:\Program Files\Microsoft OneDrive\Update\OneDriveSetup.exe'
              - 'C:\Program Files (x86)\Microsoft OneDrive\Update\OneDriveSetup.exe'
              - 'C:\Program Files\Microsoft Office\root\integration\Addons\OneDriveSetup.exe'
              - 'C:\Program Files (x86)\Microsoft Office\root\integration\Addons\OneDriveSetup.exe'
              - 'C:\Program Files\KeePass Password Safe 2\ShInstUtil.exe'
              - 'C:\Program Files\Everything\Everything.exe'
              - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
              - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
    filter_main_null:
        Details: null
    filter_main_logonui:
        Image: 'C:\Windows\system32\LogonUI.exe'
        TargetObject|contains:
            - '\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\'  # PIN
            - '\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\'  # fingerprint
            - '\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\'  # facial recognizion
            - '\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\'  # Trusted Signal (Phone proximity, Network location)
    filter_main_edge:
        Image|startswith:
            - 'C:\Program Files (x86)\Microsoft\EdgeUpdate\Install\'
            - 'C:\Program Files (x86)\Microsoft\EdgeWebView\'
            - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
    filter_main_defender:
        Image: 'C:\Program Files\Windows Defender\MsMpEng.exe'
    filter_main_teams:
        Image|endswith: '\Microsoft\Teams\current\Teams.exe'
        Details|contains: '\Microsoft\Teams\Update.exe --processStart '
    filter_main_ctfmon:
        Image: 'C:\Windows\system32\userinit.exe'
        Details: 'ctfmon.exe /n'
    filter_optional_dropbox:
        Image: 'C:\Windows\system32\regsvr32.exe'
        TargetObject|contains: 'DropboxExt'
        Details|endswith: 'A251-47B7-93E1-CDD82E34AF8B}'
    filter_optional_opera_1:
        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant'
        Details: 'C:\Program Files\Opera\assistant\browser_assistant.exe'
    filter_optional_opera_2:
        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\Opera Stable'
        Details:
            - 'C:\Program Files\Opera\launcher.exe'
            - 'C:\Program Files (x86)\Opera\launcher.exe'
    filter_optional_itunes:
        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper'
        Details: '"C:\Program Files\iTunes\iTunesHelper.exe"'
    filter_optional_zoom:
        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair'
        Details: '"C:\Program Files\Zoom\bin\installer.exe" /repair'
    filter_optional_greenshot:
        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot'
        Details: 'C:\Program Files\Greenshot\Greenshot.exe'
    filter_optional_googledrive1:
        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS'
        Details|startswith: 'C:\Program Files\Google\Drive File Stream\'
        Details|contains: '\GoogleDriveFS.exe'
    filter_optional_googledrive2:
        TargetObject|contains: 'GoogleDrive'
        Details:
            - '{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}'
            - '{A8E52322-8734-481D-A7E2-27B309EF8D56}'
            - '{C973DA94-CBDF-4E77-81D1-E5B794FBD146}'
            - '{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}'
    filter_optional_onedrive:
        Details|startswith:
            - 'C:\Windows\system32\cmd.exe /q /c rmdir /s /q "C:\Users\'
            - 'C:\Windows\system32\cmd.exe /q /c del /q "C:\Users\'
        Details|contains: '\AppData\Local\Microsoft\OneDrive\'
    filter_optional_python:
        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\{'
        Details|contains|all:
            - '\AppData\Local\Package Cache\{'
            - '}\python-'
        Details|endswith: '.exe" /burn.runonce'
    filter_optional_officeclicktorun:
        Image|startswith:
            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
            - 'C:\Program Files (x86)\Common Files\Microsoft Shared\ClickToRun\'
        Image|endswith: '\OfficeClickToRun.exe'
    filter_optional_teams:
        Image|endswith: '\Microsoft\Teams\current\Teams.exe'
        Details|contains: '\Microsoft\Teams\Update.exe --processStart'
    filter_optional_AVG_setup:
        Image|contains:
            - 'C:\Program Files\AVG\Antivirus\Setup\'
            - 'C:\Program Files (x86)\AVG\Antivirus\Setup\'
            - '\instup.exe'
        Details:
            - '"C:\Program Files\AVG\Antivirus\AvLaunch.exe" /gui'
            - '"C:\Program Files (x86)\AVG\Antivirus\AvLaunch.exe" /gui'
            - '{472083B0-C522-11CF-8763-00608CC02F24}'
            - '{472083B1-C522-11CF-8763-00608CC02F24}'
    filter_optional_Avast:
        Image|contains:
            - 'C:\Program Files\Avast Software\Avast\Setup\'
            - 'C:\Program Files (x86)\Avast Software\Avast\Setup\'
            - '\instup.exe'
        Details:
            - '"C:\Program Files\Avast Software\Avast\AvLaunch.exe" /gui'
            - '"C:\Program Files (x86)\Avast Software\Avast\AvLaunch.exe" /gui'
    filter_optional_AVG_avgtoolsvc:
        Image:
            - 'C:\Program Files\AVG\Antivirus\avgToolsSvc.exe'
            - 'C:\Program Files (x86)\AVG\Antivirus\avgToolsSvc.exe'
        TargetObject|contains: '\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run\'
        Details: 'Binary Data'
    filter_optional_aurora_dashboard:
        Image|endswith:
            - '\aurora-agent-64.exe'
            - '\aurora-agent.exe'
        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard'
        Details: 'C:\Program Files\Aurora-Agent\tools\aurora-dashboard.exe'
    filter_optional_everything:
        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\Everything'
        Details|endswith: '\Everything\Everything.exe" -startup' # We remove the starting part as it could be installed in different locations
    filter_optional_discord:
        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\Discord'
        Details|endswith: '\Discord\Update.exe --processStart Discord.exe'
    condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
    - Legitimate administrator sets up autorun keys for legitimate reason
level: medium
simulation:
    - type: atomic-red-team
      name: Reg Key Run
      technique: T1547.001
      atomic_guid: e55be3fd-3521-4610-9d1a-e210e42dcf05
    - type: atomic-red-team
      name: Reg Key RunOnce
      technique: T1547.001
      atomic_guid: 554cbd88-cde1-4b56-8168-0be552eed9eb

Stages and Predicates

Stage 0: condition

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

Stage 1: selection_current_version_base

selection_current_version_base:
    TargetObject|contains: '\SOFTWARE\Microsoft\Windows\CurrentVersion'

Stage 2: selection_current_version_keys

selection_current_version_keys:
    TargetObject|contains:
        - '\ShellServiceObjectDelayLoad'
        - '\Run\'
        - '\RunOnce\'
        - '\RunOnceEx\'
        - '\RunServices\'
        - '\RunServicesOnce\'
        - '\Policies\System\Shell'
        - '\Policies\Explorer\Run'
        - '\Group Policy\Scripts\Startup'
        - '\Group Policy\Scripts\Shutdown'
        - '\Group Policy\Scripts\Logon'
        - '\Group Policy\Scripts\Logoff'
        - '\Explorer\ShellServiceObjects'
        - '\Explorer\ShellIconOverlayIdentifiers'
        - '\Explorer\ShellExecuteHooks'
        - '\Explorer\SharedTaskScheduler'
        - '\Explorer\Browser Helper Objects'
        - '\Authentication\PLAP Providers'
        - '\Authentication\Credential Providers'
        - '\Authentication\Credential Provider Filters'

Stage 3: not filter_main_*

filter_main_generic_all:
    - Details: '(Empty)'
    - TargetObject|endswith: '\NgcFirst\ConsecutiveSwitchCount'
    - Image|endswith:
          - '\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe'
          - '\AppData\Roaming\Spotify\Spotify.exe'
          - '\AppData\Local\WebEx\WebexHost.exe'
    - Image:
          - 'C:\WINDOWS\system32\devicecensus.exe'
          - 'C:\Windows\system32\winsat.exe'
          - 'C:\Program Files\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
          - 'C:\Program Files (x86)\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
          - 'C:\Program Files\Microsoft OneDrive\Update\OneDriveSetup.exe'
          - 'C:\Program Files (x86)\Microsoft OneDrive\Update\OneDriveSetup.exe'
          - 'C:\Program Files\Microsoft Office\root\integration\Addons\OneDriveSetup.exe'
          - 'C:\Program Files (x86)\Microsoft Office\root\integration\Addons\OneDriveSetup.exe'
          - 'C:\Program Files\KeePass Password Safe 2\ShInstUtil.exe'
          - 'C:\Program Files\Everything\Everything.exe'
          - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
          - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
filter_main_null:
    Details: null
filter_main_logonui:
    Image: 'C:\Windows\system32\LogonUI.exe'
    TargetObject|contains:
        - '\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\'
        - '\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\'
        - '\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\'
        - '\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\'
filter_main_edge:
    Image|startswith:
        - 'C:\Program Files (x86)\Microsoft\EdgeUpdate\Install\'
        - 'C:\Program Files (x86)\Microsoft\EdgeWebView\'
        - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
filter_main_defender:
    Image: 'C:\Program Files\Windows Defender\MsMpEng.exe'
filter_main_teams:
    Image|endswith: '\Microsoft\Teams\current\Teams.exe'
    Details|contains: '\Microsoft\Teams\Update.exe --processStart '
filter_main_ctfmon:
    Image: 'C:\Windows\system32\userinit.exe'
    Details: 'ctfmon.exe /n'

Stage 4: not filter_optional_*

filter_optional_dropbox:
    Image: 'C:\Windows\system32\regsvr32.exe'
    TargetObject|contains: 'DropboxExt'
    Details|endswith: 'A251-47B7-93E1-CDD82E34AF8B}'
filter_optional_opera_1:
    TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant'
    Details: 'C:\Program Files\Opera\assistant\browser_assistant.exe'
filter_optional_opera_2:
    TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\Opera Stable'
    Details:
        - 'C:\Program Files\Opera\launcher.exe'
        - 'C:\Program Files (x86)\Opera\launcher.exe'
filter_optional_itunes:
    TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper'
    Details: '"C:\Program Files\iTunes\iTunesHelper.exe"'
filter_optional_zoom:
    TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair'
    Details: '"C:\Program Files\Zoom\bin\installer.exe" /repair'
filter_optional_greenshot:
    TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot'
    Details: 'C:\Program Files\Greenshot\Greenshot.exe'
filter_optional_googledrive1:
    TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS'
    Details|startswith: 'C:\Program Files\Google\Drive File Stream\'
    Details|contains: '\GoogleDriveFS.exe'
filter_optional_googledrive2:
    TargetObject|contains: 'GoogleDrive'
    Details:
        - '{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}'
        - '{A8E52322-8734-481D-A7E2-27B309EF8D56}'
        - '{C973DA94-CBDF-4E77-81D1-E5B794FBD146}'
        - '{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}'
filter_optional_onedrive:
    Details|startswith:
        - 'C:\Windows\system32\cmd.exe /q /c rmdir /s /q "C:\Users\'
        - 'C:\Windows\system32\cmd.exe /q /c del /q "C:\Users\'
    Details|contains: '\AppData\Local\Microsoft\OneDrive\'
filter_optional_python:
    TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\{'
    Details|contains|all:
        - '\AppData\Local\Package Cache\{'
        - '}\python-'
    Details|endswith: '.exe" /burn.runonce'
filter_optional_officeclicktorun:
    Image|startswith:
        - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
        - 'C:\Program Files (x86)\Common Files\Microsoft Shared\ClickToRun\'
    Image|endswith: '\OfficeClickToRun.exe'
filter_optional_teams:
    Image|endswith: '\Microsoft\Teams\current\Teams.exe'
    Details|contains: '\Microsoft\Teams\Update.exe --processStart'
filter_optional_AVG_setup:
    Image|contains:
        - 'C:\Program Files\AVG\Antivirus\Setup\'
        - 'C:\Program Files (x86)\AVG\Antivirus\Setup\'
        - '\instup.exe'
    Details:
        - '"C:\Program Files\AVG\Antivirus\AvLaunch.exe" /gui'
        - '"C:\Program Files (x86)\AVG\Antivirus\AvLaunch.exe" /gui'
        - '{472083B0-C522-11CF-8763-00608CC02F24}'
        - '{472083B1-C522-11CF-8763-00608CC02F24}'
filter_optional_Avast:
    Image|contains:
        - 'C:\Program Files\Avast Software\Avast\Setup\'
        - 'C:\Program Files (x86)\Avast Software\Avast\Setup\'
        - '\instup.exe'
    Details:
        - '"C:\Program Files\Avast Software\Avast\AvLaunch.exe" /gui'
        - '"C:\Program Files (x86)\Avast Software\Avast\AvLaunch.exe" /gui'
filter_optional_AVG_avgtoolsvc:
    Image:
        - 'C:\Program Files\AVG\Antivirus\avgToolsSvc.exe'
        - 'C:\Program Files (x86)\AVG\Antivirus\avgToolsSvc.exe'
    TargetObject|contains: '\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run\'
    Details: 'Binary Data'
filter_optional_aurora_dashboard:
    Image|endswith:
        - '\aurora-agent-64.exe'
        - '\aurora-agent.exe'
    TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard'
    Details: 'C:\Program Files\Aurora-Agent\tools\aurora-dashboard.exe'
filter_optional_everything:
    TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\Everything'
    Details|endswith: '\Everything\Everything.exe" -startup'
filter_optional_discord:
    TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\Discord'
    Details|endswith: '\Discord\Update.exe --processStart Discord.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \Authentication\Credential Provider Filters
  • \Authentication\Credential Providers
  • \Authentication\PLAP Providers
  • \Explorer\Browser Helper Objects corpus 2 (sigma 2)
  • \Explorer\SharedTaskScheduler corpus 2 (sigma 2)
  • \Explorer\ShellExecuteHooks corpus 2 (sigma 2)
  • \Explorer\ShellIconOverlayIdentifiers corpus 2 (sigma 2)
  • \Explorer\ShellServiceObjects corpus 2 (sigma 2)
  • \Group Policy\Scripts\Logoff
  • \Group Policy\Scripts\Logon
  • \Group Policy\Scripts\Shutdown
  • \Group Policy\Scripts\Startup
  • \Policies\Explorer\Run
  • \Policies\System\Shell
  • \RunOnceEx\ corpus 2 (sigma 2)
  • \RunOnce\ corpus 2 (sigma 2)
  • \RunServicesOnce\ corpus 2 (sigma 2)
  • \RunServices\ corpus 2 (sigma 2)
  • \Run\ corpus 2 (sigma 2)
  • \SOFTWARE\Microsoft\Windows\CurrentVersion
  • \ShellServiceObjectDelayLoad corpus 2 (sigma 2)
field:"TargetObject" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
TargetObjectmatch\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\excludes:TargetObject field:"TargetObject" value:"\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\"
TargetObjectmatch\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\excludes:TargetObject field:"TargetObject" value:"\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\"
TargetObjectmatch\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\excludes:TargetObject field:"TargetObject" value:"\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\"
TargetObjectmatch\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\excludes:TargetObject field:"TargetObject" value:"\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\"
ImageeqC:\Windows\system32\LogonUI.exeexcludes:Image field:"Image" value:"C:\Windows\system32\LogonUI.exe"
Detailseqctfmon.exe /nexcludes:Details field:"Details" value:"ctfmon.exe /n"
ImageeqC:\Windows\system32\userinit.exeexcludes:Image field:"Image" value:"C:\Windows\system32\userinit.exe"
Detailsmatch\Microsoft\Teams\Update.exe --processStart excludes:Details field:"Details" value:"\Microsoft\Teams\Update.exe --processStart "
Imageends_with\Microsoft\Teams\current\Teams.exeexcludes:Image field:"Image" value:"\Microsoft\Teams\current\Teams.exe"
Detailseq(Empty)excludes:Details field:"Details" value:"(Empty)"
Detailsis_null(no value, null check)excludes:Details
Imageends_with\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exeexcludes:Image field:"Image" value:"\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe"
Imageends_with\AppData\Local\WebEx\WebexHost.exeexcludes:Image field:"Image" value:"\AppData\Local\WebEx\WebexHost.exe"
Imageends_with\AppData\Roaming\Spotify\Spotify.exeexcludes:Image field:"Image" value:"\AppData\Roaming\Spotify\Spotify.exe"
ImageeqC:\Program Files (x86)\Microsoft Office\root\integration\Addons\OneDriveSetup.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft Office\root\integration\Addons\OneDriveSetup.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 (x86)\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe"
ImageeqC:\Program Files (x86)\Microsoft OneDrive\Update\OneDriveSetup.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft OneDrive\Update\OneDriveSetup.exe"
ImageeqC:\Program Files\Everything\Everything.exeexcludes:Image field:"Image" value:"C:\Program Files\Everything\Everything.exe"
ImageeqC:\Program Files\KeePass Password Safe 2\ShInstUtil.exeexcludes:Image field:"Image" value:"C:\Program Files\KeePass Password Safe 2\ShInstUtil.exe"
ImageeqC:\Program Files\Microsoft Office\root\integration\Addons\OneDriveSetup.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft Office\root\integration\Addons\OneDriveSetup.exe"
ImageeqC:\Program Files\Microsoft Office\root\integration\integrator.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft Office\root\integration\integrator.exe"
ImageeqC:\Program Files\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe"
ImageeqC:\Program Files\Microsoft OneDrive\Update\OneDriveSetup.exeexcludes:Image field:"Image" value:"C:\Program Files\Microsoft OneDrive\Update\OneDriveSetup.exe"
ImageeqC:\Program Files\Windows Defender\MsMpEng.exeexcludes:Image field:"Image" value:"C:\Program Files\Windows Defender\MsMpEng.exe"
ImageeqC:\WINDOWS\system32\devicecensus.exeexcludes:Image field:"Image" value:"C:\WINDOWS\system32\devicecensus.exe"
ImageeqC:\Windows\system32\winsat.exeexcludes:Image field:"Image" value:"C:\Windows\system32\winsat.exe"
Imagestarts_withC:\Program Files (x86)\Microsoft\EdgeUpdate\Install\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\EdgeUpdate\Install\"
Imagestarts_withC:\Program Files (x86)\Microsoft\EdgeWebView\excludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\EdgeWebView\"
Imagestarts_withC:\Program Files (x86)\Microsoft\Edge\Application\msedge.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
TargetObjectends_with\NgcFirst\ConsecutiveSwitchCountexcludes:TargetObject field:"TargetObject" value:"\NgcFirst\ConsecutiveSwitchCount"
DetailseqC:\Program Files (x86)\Opera\launcher.exeexcludes:Details field:"Details" value:"C:\Program Files (x86)\Opera\launcher.exe"
DetailseqC:\Program Files\Opera\launcher.exeexcludes:Details field:"Details" value:"C:\Program Files\Opera\launcher.exe"
TargetObjectends_with\Software\Microsoft\Windows\CurrentVersion\Run\Opera Stableexcludes:TargetObject field:"TargetObject" value:"\Software\Microsoft\Windows\CurrentVersion\Run\Opera Stable"
Detailseq"C:\Program Files (x86)\AVG\Antivirus\AvLaunch.exe" /guiexcludes:Details
Detailseq"C:\Program Files\AVG\Antivirus\AvLaunch.exe" /guiexcludes:Details
Detailseq{472083B0-C522-11CF-8763-00608CC02F24}excludes:Details field:"Details" value:"{472083B0-C522-11CF-8763-00608CC02F24}"
Detailseq{472083B1-C522-11CF-8763-00608CC02F24}excludes:Details field:"Details" value:"{472083B1-C522-11CF-8763-00608CC02F24}"
ImagematchC:\Program Files (x86)\AVG\Antivirus\Setup\excludes:Image field:"Image" value:"C:\Program Files (x86)\AVG\Antivirus\Setup\"
ImagematchC:\Program Files\AVG\Antivirus\Setup\excludes:Image field:"Image" value:"C:\Program Files\AVG\Antivirus\Setup\"
Imagematch\instup.exeexcludes:Image field:"Image" value:"\instup.exe"
Detailseq"C:\Program Files (x86)\Avast Software\Avast\AvLaunch.exe" /guiexcludes:Details
Detailseq"C:\Program Files\Avast Software\Avast\AvLaunch.exe" /guiexcludes:Details
ImagematchC:\Program Files (x86)\Avast Software\Avast\Setup\excludes:Image field:"Image" value:"C:\Program Files (x86)\Avast Software\Avast\Setup\"
ImagematchC:\Program Files\Avast Software\Avast\Setup\excludes:Image field:"Image" value:"C:\Program Files\Avast Software\Avast\Setup\"
Detailseq{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}excludes:Details field:"Details" value:"{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}"
Detailseq{A8E52322-8734-481D-A7E2-27B309EF8D56}excludes:Details field:"Details" value:"{A8E52322-8734-481D-A7E2-27B309EF8D56}"
Detailseq{C973DA94-CBDF-4E77-81D1-E5B794FBD146}excludes:Details field:"Details" value:"{C973DA94-CBDF-4E77-81D1-E5B794FBD146}"
Detailseq{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}excludes:Details field:"Details" value:"{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}"
TargetObjectmatchGoogleDriveexcludes:TargetObject field:"TargetObject" value:"GoogleDrive"
Detailsstarts_withC:\Windows\system32\cmd.exe /q /c del /q "C:\Users\excludes:Details
Detailsstarts_withC:\Windows\system32\cmd.exe /q /c rmdir /s /q "C:\Users\excludes:Details
Detailsmatch\AppData\Local\Microsoft\OneDrive\excludes:Details field:"Details" value:"\AppData\Local\Microsoft\OneDrive\"
Imageends_with\aurora-agent-64.exeexcludes:Image field:"Image" value:"\aurora-agent-64.exe"
Imageends_with\aurora-agent.exeexcludes:Image field:"Image" value:"\aurora-agent.exe"
DetailseqC:\Program Files\Aurora-Agent\tools\aurora-dashboard.exeexcludes:Details field:"Details" value:"C:\Program Files\Aurora-Agent\tools\aurora-dashboard.exe"
TargetObjectends_with\Microsoft\Windows\CurrentVersion\Run\aurora-dashboardexcludes:TargetObject field:"TargetObject" value:"\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard"
ImageeqC:\Program Files (x86)\AVG\Antivirus\avgToolsSvc.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\AVG\Antivirus\avgToolsSvc.exe"
ImageeqC:\Program Files\AVG\Antivirus\avgToolsSvc.exeexcludes:Image field:"Image" value:"C:\Program Files\AVG\Antivirus\avgToolsSvc.exe"
DetailseqBinary Dataexcludes:Details field:"Details" value:"Binary Data"
TargetObjectmatch\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run\excludes:TargetObject field:"TargetObject" value:"\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run\"
Imagestarts_withC:\Program Files (x86)\Common Files\Microsoft Shared\ClickToRun\excludes:Image field:"Image" value:"C:\Program Files (x86)\Common Files\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"
Detailsends_with.exe" /burn.runonceexcludes:Details
Detailsmatch\AppData\Local\Package Cache\{excludes:Details field:"Details" value:"\AppData\Local\Package Cache\{"
Detailsmatch}\python-excludes:Details field:"Details" value:"}\python-"
TargetObjectmatch\Microsoft\Windows\CurrentVersion\RunOnce\{excludes:TargetObject field:"TargetObject" value:"\Microsoft\Windows\CurrentVersion\RunOnce\{"
Detailsends_withA251-47B7-93E1-CDD82E34AF8B}excludes:Details field:"Details" value:"A251-47B7-93E1-CDD82E34AF8B}"
ImageeqC:\Windows\system32\regsvr32.exeexcludes:Image field:"Image" value:"C:\Windows\system32\regsvr32.exe"
TargetObjectmatchDropboxExtexcludes:TargetObject field:"TargetObject" value:"DropboxExt"
Detailsends_with\Discord\Update.exe --processStart Discord.exeexcludes:Details field:"Details" value:"\Discord\Update.exe --processStart Discord.exe"
TargetObjectends_with\Software\Microsoft\Windows\CurrentVersion\Run\Discordexcludes:TargetObject field:"TargetObject" value:"\Software\Microsoft\Windows\CurrentVersion\Run\Discord"
Detailsends_with\Everything\Everything.exe" -startupexcludes:Details
TargetObjectends_with\Microsoft\Windows\CurrentVersion\Run\Everythingexcludes:TargetObject field:"TargetObject" value:"\Microsoft\Windows\CurrentVersion\Run\Everything"
DetailseqC:\Program Files\Greenshot\Greenshot.exeexcludes:Details field:"Details" value:"C:\Program Files\Greenshot\Greenshot.exe"
TargetObjectends_with\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshotexcludes:TargetObject field:"TargetObject" value:"\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot"
DetailseqC:\Program Files\Opera\assistant\browser_assistant.exeexcludes:Details field:"Details" value:"C:\Program Files\Opera\assistant\browser_assistant.exe"
TargetObjectends_with\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistantexcludes:TargetObject field:"TargetObject" value:"\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant"
Detailseq"C:\Program Files\Zoom\bin\installer.exe" /repairexcludes:Details
TargetObjectends_with\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepairexcludes:TargetObject field:"TargetObject" value:"\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair"
Detailseq"C:\Program Files\iTunes\iTunesHelper.exe"excludes:Details
TargetObjectends_with\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelperexcludes:TargetObject field:"TargetObject" value:"\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper"
Detailsmatch\GoogleDriveFS.exeexcludes:Details field:"Details" value:"\GoogleDriveFS.exe"
Detailsstarts_withC:\Program Files\Google\Drive File Stream\excludes:Details field:"Details" value:"C:\Program Files\Google\Drive File Stream\"
TargetObjectends_with\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFSexcludes:TargetObject field:"TargetObject" value:"\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS"
Detailsmatch\Microsoft\Teams\Update.exe --processStartexcludes:Details field:"Details" value:"\Microsoft\Teams\Update.exe --processStart"

CVE-2021-26858 Exchange Exploitation

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

Detects possible successful exploitation for vulnerability described in CVE-2021-26858 by looking for creation of non-standard files on disk by Exchange Server’s Unified Messaging service which could indicate dropping web shells or other malicious content

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: CVE-2021-26858 Exchange Exploitation
id: b06335b3-55ac-4b41-937e-16b7f5d57dfd
status: test
description: |
    Detects possible successful exploitation for vulnerability described in CVE-2021-26858 by looking for
    creation of non-standard files on disk by Exchange Server’s Unified Messaging service
    which could indicate dropping web shells or other malicious content
references:
    - https://www.microsoft.com/security/blog/2021/03/02/hafnium-targeting-exchange-servers/
author: Bhabesh Raj
date: 2021-03-03
modified: 2022-10-09
tags:
    - attack.t1203
    - attack.execution
    - cve.2021-26858
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith: 'UMWorkerProcess.exe'
    filter:
        TargetFilename|endswith:
            - 'CacheCleanup.bin'
            - '.txt'
            - '.LOG'
            - '.cfg'
            - 'cleanup.bin'
    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: 'UMWorkerProcess.exe'

Stage 2: not filter

filter:
    TargetFilename|endswith:
        - 'CacheCleanup.bin'
        - '.txt'
        - '.LOG'
        - '.cfg'
        - 'cleanup.bin'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • UMWorkerProcess.exe
field:"Image" kind:ends_with value:"UMWorkerProcess.exe"

Exclusions

The rule actively suppresses these predicates.

CVE-2023-4966 Exploitation Attempt - Citrix ADC Sensitive Information Disclosure - Proxy

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

Detects exploitation attempt of CVE-2023-4966 a Citrix ADC and NetScaler Gateway sensitive information disclosure vulnerability via proxy logs by looking for a very long host header string.

Known False Positives

  • Vulnerability scanners

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: CVE-2023-4966 Exploitation Attempt - Citrix ADC Sensitive Information Disclosure - Proxy
id: aee7681f-b53d-4594-a9de-ac51e6ad3362
related:
    - id: 87c83d8e-5390-44ce-aa4a-d3b37e54d0a0 # Webserver Attempt
      type: similar
    - id: ff349b81-617f-4af4-924f-dbe8ea9bab41 # Proxy Attempt
      type: similar
    - id: a4e068b5-e27c-4f21-85b3-e69e5a4f7ce1 # Webserver Exploit
      type: similar
status: test
description: Detects exploitation attempt of CVE-2023-4966 a Citrix ADC and NetScaler Gateway sensitive information disclosure vulnerability via proxy logs by looking for a very long host header string.
references:
    - https://support.citrix.com/article/CTX579459/netscaler-adc-and-netscaler-gateway-security-bulletin-for-cve20234966-and-cve20234967
    - https://attackerkb.com/topics/2faW2CxJgQ/cve-2023-4966
    - https://www.rapid7.com/blog/post/2023/10/25/etr-cve-2023-4966-exploitation-of-citrix-netscaler-information-disclosure-vulnerability/
    - https://www.assetnote.io/resources/research/citrix-bleed-leaking-session-tokens-with-cve-2023-4966
    - https://github.com/assetnote/exploits/tree/main/citrix/CVE-2023-4966
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2023-4966
    - detection.emerging-threats
logsource:
    category: proxy
detection:
    selection:
        cs-method: 'GET'
        cs-uri|contains: '/oauth/idp/.well-known/openid-configuration'
        cs-host|re: '.{150}'
    condition: selection
falsepositives:
    - Vulnerability scanners
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-method: 'GET'
    cs-uri|contains: '/oauth/idp/.well-known/openid-configuration'
    cs-host|re: '.{150}'

Indicators

These rows show field, operator, and value matches.

DHCP Callout DLL Installation

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

Detects the installation of a Callout DLL via CalloutDlls and CalloutEnabled parameter in Registry, which can be used to execute code in context of the DHCP server (restart required)

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: DHCP Callout DLL Installation
id: 9d3436ef-9476-4c43-acca-90ce06bdf33a
status: test
description: Detects the installation of a Callout DLL via CalloutDlls and CalloutEnabled parameter in Registry, which can be used to execute code in context of the DHCP server (restart required)
references:
    - https://blog.3or.de/mimilib-dhcp-server-callout-dll-injection.html
    - https://technet.microsoft.com/en-us/library/cc726884(v=ws.10).aspx
    - https://msdn.microsoft.com/de-de/library/windows/desktop/aa363389(v=vs.85).aspx
author: Dimitrios Slamaris
date: 2017-05-15
modified: 2023-08-17
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.defense-impairment
    - attack.t1574.001
    - attack.t1112
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith:
            - '\Services\DHCPServer\Parameters\CalloutDlls'
            - '\Services\DHCPServer\Parameters\CalloutEnabled'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|endswith:
        - '\Services\DHCPServer\Parameters\CalloutDlls'
        - '\Services\DHCPServer\Parameters\CalloutEnabled'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • \Services\DHCPServer\Parameters\CalloutDlls
  • \Services\DHCPServer\Parameters\CalloutEnabled
field:"TargetObject" kind:ends_with

Disable Macro Runtime Scan Scope

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

Detects tampering with the MacroRuntimeScanScope registry key to disable runtime scanning of enabled macros

MITRE ATT&CK Coverage

TacticTechniques
Defense ImpairmentNo specific technique

Telemetry Coverage

Rule Body

title: Disable Macro Runtime Scan Scope
id: ab871450-37dc-4a3a-997f-6662aa8ae0f1
description: Detects tampering with the MacroRuntimeScanScope registry key to disable runtime scanning of enabled macros
status: test
date: 2022-10-25
modified: 2023-08-17
author: Nasreddine Bencherchali (Nextron Systems)
references:
    - https://www.microsoft.com/en-us/security/blog/2018/09/12/office-vba-amsi-parting-the-veil-on-malicious-macros/
    - https://admx.help/?Category=Office2016&Policy=office16.Office.Microsoft.Policies.Windows::L_MacroRuntimeScanScope
    - https://github.com/S3cur3Th1sSh1t/OffensiveVBA/blob/28cc6a2802d8176195ac19b3c8e9a749009a82a3/src/AMSIbypasses.vba
tags:
    - attack.defense-impairment
logsource:
    product: windows
    category: registry_set
detection:
    selection:
        TargetObject|contains|all:
            - '\SOFTWARE\'
            - '\Microsoft\Office\'
            - '\Common\Security'
        TargetObject|endswith: '\MacroRuntimeScanScope'
        Details: DWORD (0x00000000)
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains|all:
        - '\SOFTWARE\'
        - '\Microsoft\Office\'
        - '\Common\Security'
    TargetObject|endswith: '\MacroRuntimeScanScope'
    Details: DWORD (0x00000000)

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailseq
  • DWORD (0x00000000) corpus 36 (sigma 36)
field:"Details" kind:eq value:"DWORD (0x00000000)"
TargetObjectends_with
  • \MacroRuntimeScanScope
field:"TargetObject" kind:ends_with value:"\MacroRuntimeScanScope"
TargetObjectmatch
  • \Common\Security
  • \Microsoft\Office\ corpus 2 (sigma 2)
  • \SOFTWARE\
field:"TargetObject" kind:match

Execution DLL of Choice Using WAB.EXE

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

This rule detects that the path to the DLL written in the registry is different from the default one. Launched WAB.exe tries to load the DLL from Registry.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Execution DLL of Choice Using WAB.EXE
id: fc014922-5def-4da9-a0fc-28c973f41bfb
status: test
description: This rule detects that the path to the DLL written in the registry is different from the default one. Launched WAB.exe tries to load the DLL from Registry.
references:
    - https://github.com/LOLBAS-Project/LOLBAS/blob/8283d8d91552213ded165fd36deb6cb9534cb443/yml/OSBinaries/Wab.yml
    - https://twitter.com/Hexacorn/status/991447379864932352
    - http://www.hexacorn.com/blog/2018/05/01/wab-exe-as-a-lolbin/
author: oscd.community, Natalia Shornikova
date: 2020-10-13
modified: 2023-08-17
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: '\Software\Microsoft\WAB\DLLPath'
    filter:
        Details: '%CommonProgramFiles%\System\wab32.dll'
    condition: selection and not filter
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    TargetObject|endswith: '\Software\Microsoft\WAB\DLLPath'

Stage 2: not filter

filter:
    Details: '%CommonProgramFiles%\System\wab32.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • \Software\Microsoft\WAB\DLLPath
field:"TargetObject" kind:ends_with value:"\Software\Microsoft\WAB\DLLPath"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Detailseq%CommonProgramFiles%\System\wab32.dllexcludes:Details field:"Details" value:"%CommonProgramFiles%\System\wab32.dll"

Filter Driver Unloaded Via Fltmc.EXE

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

Detect filter driver unloading activity via fltmc.exe

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Filter Driver Unloaded Via Fltmc.EXE
id: 4931188c-178e-4ee7-a348-39e8a7a56821
related:
    - id: 4d7cda18-1b12-4e52-b45c-d28653210df8 # Sysmon specific
      type: derived
status: test
description: Detect filter driver unloading activity via fltmc.exe
references:
    - https://www.darkoperator.com/blog/2018/10/5/operating-offensively-against-sysmon
    - https://www.cybereason.com/blog/threat-analysis-report-lockbit-2.0-all-paths-lead-to-ransom
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-13
modified: 2025-10-07
tags:
    - attack.stealth
    - attack.defense-impairment
    - attack.t1070
    - attack.t1685
    - attack.t1685.001
logsource:
    product: windows
    category: process_creation
detection:
    selection_img:
        - Image|endswith: '\fltMC.exe'
        - OriginalFileName: 'fltMC.exe'
    selection_cli:
        CommandLine|contains: 'unload'
    filter_optional_avira:
        ParentImage|contains:
            - '\AppData\Local\Temp\'
            - ':\Windows\Temp\'
        ParentImage|endswith: '\endpoint-protection-installer-x64.tmp'
        CommandLine|endswith:
            - 'unload rtp_filesystem_filter'
            - 'unload rtp_filter'
    filter_optional_manageengine:
        ParentImage: 'C:\Program Files (x86)\ManageEngine\uems_agent\bin\dcfaservice64.exe'
        CommandLine|endswith: 'unload DFMFilter'
    condition: all of selection_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_optional_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: 'unload'

Stage 3: not filter_optional_*

filter_optional_avira:
    ParentImage|contains:
        - '\AppData\Local\Temp\'
        - ':\Windows\Temp\'
    ParentImage|endswith: '\endpoint-protection-installer-x64.tmp'
    CommandLine|endswith:
        - 'unload rtp_filesystem_filter'
        - 'unload rtp_filter'
filter_optional_manageengine:
    ParentImage: 'C:\Program Files (x86)\ManageEngine\uems_agent\bin\dcfaservice64.exe'
    CommandLine|endswith: 'unload DFMFilter'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • unload corpus 5 (sigma 4, splunk 1)
field:"CommandLine" kind:match value:"unload"
Imageends_with
  • \fltMC.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\fltMC.exe"
OriginalFileNameeq
  • fltMC.exe corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"fltMC.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLineends_withunload rtp_filesystem_filterexcludes:CommandLine field:"CommandLine" value:"unload rtp_filesystem_filter"
CommandLineends_withunload rtp_filterexcludes:CommandLine field:"CommandLine" value:"unload rtp_filter"
ParentImagematch:\Windows\Temp\excludes:ParentImage field:"ParentImage" value:":\Windows\Temp\"
ParentImagematch\AppData\Local\Temp\excludes:ParentImage field:"ParentImage" value:"\AppData\Local\Temp\"
ParentImageends_with\endpoint-protection-installer-x64.tmpexcludes:ParentImage field:"ParentImage" value:"\endpoint-protection-installer-x64.tmp"
CommandLineends_withunload DFMFilterexcludes:CommandLine field:"CommandLine" value:"unload DFMFilter"
ParentImageeqC:\Program Files (x86)\ManageEngine\uems_agent\bin\dcfaservice64.exeexcludes:ParentImage field:"ParentImage" value:"C:\Program Files (x86)\ManageEngine\uems_agent\bin\dcfaservice64.exe"

Google Cloud Kubernetes CronJob

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

Identifies when a Google Cloud Kubernetes CronJob runs in Azure Cloud. Kubernetes Job is a controller that creates one or more pods and ensures that a specified number of them successfully terminate. Kubernetes Job can be used to run containers that perform finite tasks for batch jobs. Kubernetes CronJob is used to schedule Jobs. An Adversary may use Kubernetes CronJob for scheduling execution of malicious code that would run as a container in the cluster.

Known False Positives

  • Google Cloud Kubernetes CronJob/Job may be done by a system administrator.
  • If known behavior is causing false positives, it can be exempted from the rule.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique
PersistenceNo specific technique
Privilege EscalationNo specific technique

Rule Body

title: Google Cloud Kubernetes CronJob
id: cd3a808c-c7b7-4c50-a2f3-f4cfcd436435
status: test
description: |
    Identifies when a Google Cloud Kubernetes CronJob runs in Azure Cloud. Kubernetes Job is a controller that creates one or more pods and ensures that a specified number of them successfully terminate.
    Kubernetes Job can be used to run containers that perform finite tasks for batch jobs. Kubernetes CronJob is used to schedule Jobs.
    An Adversary may use Kubernetes CronJob for scheduling execution of malicious code that would run as a container in the cluster.
references:
    - https://cloud.google.com/kubernetes-engine/docs
    - https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
    - https://kubernetes.io/docs/concepts/workloads/controllers/job/
author: Austin Songer @austinsonger
date: 2021-11-22
modified: 2022-12-25
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
logsource:
    product: gcp
    service: gcp.audit
detection:
    selection:
        gcp.audit.method_name:
            - io.k8s.api.batch.v*.Job
            - io.k8s.api.batch.v*.CronJob
    condition: selection
falsepositives:
    - Google Cloud Kubernetes CronJob/Job may be done by a system administrator.
    - 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:
        - io.k8s.api.batch.v*.Job
        - io.k8s.api.batch.v*.CronJob

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
gcp.audit.method_namewildcard
  • io.k8s.api.batch.v*.CronJob
  • io.k8s.api.batch.v*.Job
field:"gcp::method_name" kind:wildcard

HackTool - Quarks PwDump Execution

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

Detects usage of the Quarks PwDump tool via commandline arguments

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool - Quarks PwDump Execution
id: 0685b176-c816-4837-8e7b-1216f346636b
status: test
description: Detects usage of the Quarks PwDump tool via commandline arguments
references:
    - https://github.com/quarkslab/quarkspwdump
    - https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/seedworm-apt-iran-middle-east
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-05
modified: 2023-02-05
tags:
    - attack.credential-access
    - attack.t1003.002
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        Image|endswith: '\QuarksPwDump.exe'
    selection_cli:
        CommandLine:
            - ' -dhl'
            - ' --dump-hash-local'
            - ' -dhdc'
            - ' --dump-hash-domain-cached'
            - ' --dump-bitlocker'
            - ' -dhd '
            - ' --dump-hash-domain '
            - '--ntds-file'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine:
        - ' -dhl'
        - ' --dump-hash-local'
        - ' -dhdc'
        - ' --dump-hash-domain-cached'
        - ' --dump-bitlocker'
        - ' -dhd '
        - ' --dump-hash-domain '
        - '--ntds-file'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineeq
  • --dump-bitlocker
  • --dump-hash-domain
  • --dump-hash-domain-cached
  • --dump-hash-local
  • -dhd
  • -dhdc
  • -dhl
  • --ntds-file
field:"CommandLine" kind:eq
Imageends_with
  • \QuarksPwDump.exe
field:"Image" kind:ends_with value:"\QuarksPwDump.exe"

Invoke-Obfuscation Via Use Clip - PowerShell Module

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

Detects Obfuscated Powershell via use Clip.exe in Scripts

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation Via Use Clip - PowerShell Module
id: ebdf49d8-b89c-46c9-8fdf-2c308406f6bd
related:
    - id: db92dd33-a3ad-49cf-8c2c-608c3e30ace0
      type: derived
status: test
description: Detects Obfuscated Powershell via use Clip.exe in Scripts
references:
    - https://github.com/SigmaHQ/sigma/issues/1009  # (Task29)
author: Nikita Nazarov, oscd.community
date: 2020-10-09
modified: 2024-04-05
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_module
    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
    selection_4103:
        Payload|re: '(?i)echo.*clip.*&&.*(Clipboard|i`?n`?v`?o`?k`?e`?)'
    condition: selection_4103
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_4103

Stage 1: selection_4103

selection_4103:
    Payload|re: '(?i)echo.*clip.*&&.*(Clipboard|i`?n`?v`?o`?k`?e`?)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Payloadregex_match
  • (?i)echo.*clip.*&&.*(Clipboard|i`?n`?v`?o`?k`?e`?)
field:"Payload" kind:regex_match value:"(?i)echo.*clip.*&&.*(Clipboard|i`?n`?v`?o`?k`?e`?)"

Linux Doas Conf File Creation

#
Status
stable
Severity
medium
Author
Sittikorn S, Teoderick Contreras
Source
github.com/SigmaHQ/sigma

Detects the creation of doas.conf file in linux host platform.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 11: File created

Rule Body

title: Linux Doas Conf File Creation
id: 00eee2a5-fdb0-4746-a21d-e43fbdea5681
status: stable
description: Detects the creation of doas.conf file in linux host platform.
references:
    - https://research.splunk.com/endpoint/linux_doas_conf_file_creation/
    - https://www.makeuseof.com/how-to-install-and-use-doas/
author: Sittikorn S, Teoderick Contreras
date: 2022-01-20
modified: 2022-12-31
tags:
    - attack.privilege-escalation
    - attack.t1548
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|endswith: '/etc/doas.conf'
    condition: selection
falsepositives:
    - Unlikely
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|endswith: '/etc/doas.conf'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • /etc/doas.conf corpus 2 (sigma 1, splunk 1)
field:"TargetFilename" kind:ends_with value:"/etc/doas.conf"

Network Connection Initiated By PowerShell Process

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

Detects a network connection that was initiated from a PowerShell process. Often times malicious powershell scripts download additional payloads or communicate back to command and control channels via uncommon ports or IPs. Use this rule as a basis for hunting for anomalies.

Known False Positives

  • Administrative scripts
  • Microsoft IP range
  • Additional filters are required. Adjust to your environment (e.g. extend filters with company's ip range')

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Network Connection Initiated By PowerShell Process
id: 1f21ec3f-810d-4b0e-8045-322202e22b4b
status: test
description: |
    Detects a network connection that was initiated from a PowerShell process.
    Often times malicious powershell scripts download additional payloads or communicate back to command and control channels via uncommon ports or IPs.
    Use this rule as a basis for hunting for anomalies.
references:
    - https://www.youtube.com/watch?v=DLtJTxMWZ2o
author: Florian Roth (Nextron Systems)
date: 2017-03-13
modified: 2024-03-13
tags:
    - attack.execution
    - attack.t1059.001
    - detection.threat-hunting
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Image|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
        Initiated: 'true'
    filter_main_local_ip:
        DestinationIp|cidr:
            - '127.0.0.0/8'
            - '10.0.0.0/8'
            - '169.254.0.0/16'  # link-local address
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '::1/128'  # IPv6 loopback
            - 'fe80::/10'  # IPv6 link-local addresses
            - 'fc00::/7'  # IPv6 private addresses
        User|contains: # covers many language settings
            - 'AUTHORI'
            - 'AUTORI'
    filter_main_msrange:
        DestinationIp|cidr:
            - '20.184.0.0/13'
            - '51.103.210.0/23'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Administrative scripts
    - Microsoft IP range
    - Additional filters are required. Adjust to your environment (e.g. extend filters with company's ip range')
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Image|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
    Initiated: 'true'

Stage 2: not filter_main_*

filter_main_local_ip:
    DestinationIp|cidr:
        - '127.0.0.0/8'
        - '10.0.0.0/8'
        - '169.254.0.0/16'
        - '172.16.0.0/12'
        - '192.168.0.0/16'
        - '::1/128'
        - 'fe80::/10'
        - 'fc00::/7'
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'
filter_main_msrange:
    DestinationIp|cidr:
        - '20.184.0.0/13'
        - '51.103.210.0/23'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Exclusions

The rule actively suppresses these predicates.

New BgInfo.EXE Custom WMI Query Registry Configuration

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

Detects setting of a new registry value related to BgInfo configuration, which can be abused to execute custom WMI query via "BgInfo.exe"

Known False Positives

  • Legitimate WMI query

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Defense Impairment

Telemetry Coverage

Rule Body

title: New BgInfo.EXE Custom WMI Query Registry Configuration
id: cd277474-5c52-4423-a52b-ac2d7969902f
related:
    - id: 992dd79f-dde8-4bb0-9085-6350ba97cfb3
      type: similar
status: test
description: Detects setting of a new registry value related to BgInfo configuration, which can be abused to execute custom WMI query via "BgInfo.exe"
references:
    - Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-16
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Software\Winternals\BGInfo\UserFields\'
        Details|startswith: '6' # WMI
    condition: selection
falsepositives:
    - Legitimate WMI query
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\Software\Winternals\BGInfo\UserFields\'
    Details|startswith: '6'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsstarts_with
  • 6
field:"Details" kind:starts_with value:"6"
TargetObjectmatch
  • \Software\Winternals\BGInfo\UserFields\ corpus 2 (sigma 2)
field:"TargetObject" kind:match value:"\Software\Winternals\BGInfo\UserFields\"

Outbound Network Connection Initiated By Script Interpreter

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

Detects a script interpreter wscript/cscript opening a network connection to a non-local network. Adversaries may use script to download malicious payloads.

Known False Positives

  • Legitimate scripts

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Outbound Network Connection Initiated By Script Interpreter
id: 992a6cae-db6a-43c8-9cec-76d7195c96fc
related:
    - id: 08249dc0-a28d-4555-8ba5-9255a198e08c
      type: derived
status: test
description: Detects a script interpreter wscript/cscript opening a network connection to a non-local network. Adversaries may use script to download malicious payloads.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/28d190330fe44de6ff4767fc400cc10fa7cd6540/atomics/T1105/T1105.md
author: frack113, Florian Roth (Nextron Systems)
date: 2022-08-28
modified: 2024-03-13
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        Image|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
    filter_main_local_ranges:
        DestinationIp|cidr:
            - '127.0.0.0/8'
            - '10.0.0.0/8'
            - '172.16.0.0/12'
            - '192.168.0.0/16'
            - '169.254.0.0/16'
            - '::1/128'  # IPv6 loopback
            - 'fe80::/10'  # IPv6 link-local addresses
            - 'fc00::/7'  # IPv6 private addresses
    filter_main_ms_ranges:
        DestinationIp|cidr: '20.0.0.0/11' # Microsoft range, caused some FPs
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Legitimate scripts
level: high
regression_tests_path: regression_data/rules/windows/network_connection/net_connection_win_wscript_cscript_outbound_connection/info.yml

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Initiated: 'true'
    Image|endswith:
        - '\wscript.exe'
        - '\cscript.exe'

Stage 2: not filter_main_*

filter_main_local_ranges:
    DestinationIp|cidr:
        - '127.0.0.0/8'
        - '10.0.0.0/8'
        - '172.16.0.0/12'
        - '192.168.0.0/16'
        - '169.254.0.0/16'
        - '::1/128'
        - 'fe80::/10'
        - 'fc00::/7'
filter_main_ms_ranges:
    DestinationIp|cidr: '20.0.0.0/11'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cscript.exe corpus 72 (sigma 72)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Exclusions

The rule actively suppresses these predicates.

PaperCut MF/NG Potential Exploitation

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems), Huntress DE&TH Team (idea)
Source
github.com/SigmaHQ/sigma

Detects suspicious child processes of "pc-app.exe". Which could indicate potential exploitation of PaperCut

Known False Positives

  • Legitimate administration activity

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

Rule Body

title: PaperCut MF/NG Potential Exploitation
id: 0934ac71-a331-4e98-a034-d49c491fbbcb
status: test
description: Detects suspicious child processes of "pc-app.exe". Which could indicate potential exploitation of PaperCut
references:
    - https://www.huntress.com/blog/critical-vulnerabilities-in-papercut-print-management-software
    - https://github.com/huntresslabs/threat-intel/blob/3bad6b0fadfcca3ff5680923e74e39edd72f32da/2023/2023-04/20-PaperCut/win_susp_papercut_code_execution.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntress DE&TH Team (idea)
date: 2023-04-20
modified: 2023-04-25
tags:
    - attack.execution
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\pc-app.exe'
        Image|endswith:
            - '\bash.exe'
            - '\calc.exe'
            - '\certutil.exe'
            - '\cmd.exe'
            - '\csc.exe'
            - '\cscript.exe'
            - '\dllhost.exe'
            - '\mshta.exe'
            - '\msiexec.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\scriptrunner.exe'
            - '\wmic.exe'
            - '\wscript.exe'
            - '\wsl.exe'
    condition: selection
falsepositives:
    - Legitimate administration activity
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\pc-app.exe'
    Image|endswith:
        - '\bash.exe'
        - '\calc.exe'
        - '\certutil.exe'
        - '\cmd.exe'
        - '\csc.exe'
        - '\cscript.exe'
        - '\dllhost.exe'
        - '\mshta.exe'
        - '\msiexec.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\scriptrunner.exe'
        - '\wmic.exe'
        - '\wscript.exe'
        - '\wsl.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \bash.exe corpus 21 (sigma 21)
  • \calc.exe corpus 15 (sigma 14, splunk 1)
  • \certutil.exe corpus 43 (sigma 43)
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \csc.exe corpus 9 (sigma 9)
  • \cscript.exe corpus 72 (sigma 72)
  • \dllhost.exe corpus 11 (sigma 11)
  • \mshta.exe corpus 67 (sigma 66, splunk 1)
  • \msiexec.exe corpus 20 (sigma 20)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \rundll32.exe corpus 94 (sigma 94)
  • \scriptrunner.exe corpus 12 (sigma 12)
  • \wmic.exe corpus 62 (sigma 62)
  • \wscript.exe corpus 74 (sigma 74)
  • \wsl.exe corpus 11 (sigma 11)
field:"Image" kind:ends_with
ParentImageends_with
  • \pc-app.exe
field:"ParentImage" kind:ends_with value:"\pc-app.exe"

Possible Impacket SecretDump Remote Activity

#
Status
test
Severity
high
Author
Samir Bousseaden, wagga
Source
github.com/SigmaHQ/sigma

Detect AD credential dumping using impacket secretdump HKTL

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Possible Impacket SecretDump Remote Activity
id: 252902e3-5830-4cf6-bf21-c22083dfd5cf
status: test
description: Detect AD credential dumping using impacket secretdump HKTL
references:
    - https://web.archive.org/web/20230329153811/https://blog.menasec.net/2019/02/threat-huting-10-impacketsecretdump.html
author: Samir Bousseaden, wagga
date: 2019-04-03
modified: 2022-08-11
tags:
    - attack.credential-access
    - attack.t1003.002
    - attack.t1003.004
    - attack.t1003.003
logsource:
    product: windows
    service: security
    definition: 'The advanced audit policy setting "Object Access > Audit Detailed File Share" must be configured for Success/Failure'
detection:
    selection:
        EventID: 5145
        ShareName: '\\\\\*\\ADMIN$'  # looking for the string  \\*\ADMIN$
        RelativeTargetName|contains|all:
            - 'SYSTEM32\'
            - '.tmp'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 5145
    ShareName: '\\\\\*\\ADMIN$'
    RelativeTargetName|contains|all:
        - 'SYSTEM32\'
        - '.tmp'

Indicators

These rows show field, operator, and value matches.

Potential APT FIN7 Related PowerShell Script Created

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

Detects PowerShell script file creation with specific name or suffix which was seen being used often by FIN7 PowerShell scripts

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential APT FIN7 Related PowerShell Script Created
id: a88d9f45-ec8a-4b0e-85ee-c9f6a65e9128
status: test
description: Detects PowerShell script file creation with specific name or suffix which was seen being used often by FIN7 PowerShell scripts
references:
    - https://labs.withsecure.com/publications/fin7-target-veeam-servers
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-04
tags:
    - attack.execution
    - attack.g0046
    - detection.emerging-threats
logsource:
    category: file_event
    product: windows
detection:
    selection:
        - TargetFilename|endswith: '_64refl.ps1'
        - TargetFilename: 'host_ip.ps1'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - TargetFilename|endswith: '_64refl.ps1'
    - TargetFilename: 'host_ip.ps1'

Indicators

These rows show field, operator, and value matches.

Potential Goofy Guineapig GoolgeUpdate Process Anomaly

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

Detects "GoogleUpdate.exe" spawning a new instance of itself in an uncommon location as seen used by the Goofy Guineapig backdoor

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

Rule Body

title: Potential Goofy Guineapig GoolgeUpdate Process Anomaly
id: bdbab15a-3826-48fa-a1b7-723cd8f32fcc
status: test
description: Detects "GoogleUpdate.exe" spawning a new instance of itself in an uncommon location as seen used by the Goofy Guineapig backdoor
references:
    - https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/goofy-guineapig/NCSC-MAR-Goofy-Guineapig.pdf
author: X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-15
tags:
    - detection.emerging-threats
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\GoogleUpdate.exe'
        Image|endswith: '\GoogleUpdate.exe'
    filter_main_legit_paths:
        - Image|startswith:
              - 'C:\Program Files\Google\'
              - 'C:\Program Files (x86)\Google\'
        - Image|contains: '\AppData\Local\Google\Update\'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    ParentImage|endswith: '\GoogleUpdate.exe'
    Image|endswith: '\GoogleUpdate.exe'

Stage 2: not filter_main_legit_paths

filter_main_legit_paths:
    - Image|startswith:
          - 'C:\Program Files\Google\'
          - 'C:\Program Files (x86)\Google\'
    - Image|contains: '\AppData\Local\Google\Update\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \GoogleUpdate.exe
field:"Image" kind:ends_with value:"\GoogleUpdate.exe"
ParentImageends_with
  • \GoogleUpdate.exe corpus 3 (sigma 3)
field:"ParentImage" kind:ends_with value:"\GoogleUpdate.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagematch\AppData\Local\Google\Update\excludes:Image field:"Image" value:"\AppData\Local\Google\Update\"
Imagestarts_withC:\Program Files (x86)\Google\excludes:Image field:"Image" value:"C:\Program Files (x86)\Google\"
Imagestarts_withC:\Program Files\Google\excludes:Image field:"Image" value:"C:\Program Files\Google\"

Potential Suspicious Child Process Of 3CXDesktopApp

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

Detects potential suspicious child processes of "3CXDesktopApp.exe". Which could be related to the 3CXDesktopApp supply chain compromise

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Suspicious Child Process Of 3CXDesktopApp
id: 63f3605b-979f-48c2-b7cc-7f90523fed88
related:
    - id: 3c4b3bbf-36b4-470c-b6cf-f07e8b1c7e26 # Proxy C2
      type: similar
    - id: 76bc1601-9546-4b75-9419-06e0e8d10651 # Proxy GH
      type: similar
    - id: bd03a0dc-5d93-49eb-b2e8-2dfd268600f8 # DNS C2
      type: similar
    - id: 51eecf75-d069-43c7-9ea2-63f75499edd4 # net_connection C2
      type: similar
    - id: 93bbde78-dc86-4e73-9ffc-ff8a384ca89c # ProcCreation Exec
      type: similar
    - id: e7581747-1e44-4d4b-85a6-0db0b4a00f2a # ProcCreation Update
      type: similar
    - id: d0b65ad3-e945-435e-a7a9-438e62dd48e9 # ImageLoad
      type: similar
status: test
description: Detects potential suspicious child processes of "3CXDesktopApp.exe". Which could be related to the 3CXDesktopApp supply chain compromise
references:
    - https://www.reddit.com/r/crowdstrike/comments/125r3uu/20230329_situational_awareness_crowdstrike/
    - https://www.crowdstrike.com/blog/crowdstrike-detects-and-prevents-active-intrusion-campaign-targeting-3cxdesktopapp-customers/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-03-29
tags:
    - attack.command-and-control
    - attack.execution
    - attack.stealth
    - attack.t1218
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\3CXDesktopApp.exe'
        Image|endswith:
            - '\cmd.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\wscript.exe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

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

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \cscript.exe corpus 72 (sigma 72)
  • \mshta.exe corpus 67 (sigma 66, splunk 1)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \rundll32.exe corpus 94 (sigma 94)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
ParentImageends_with
  • \3CXDesktopApp.exe
field:"ParentImage" kind:ends_with value:"\3CXDesktopApp.exe"

Reconnaissance Activity

#
Status
test
Severity
high
Author
Florian Roth (Nextron Systems), Jack Croock (method), Jonhnathan Ribeiro (improvements), oscd.community
Source
github.com/SigmaHQ/sigma

Detects activity as "net user administrator /domain" and "net group domain admins /domain"

Known False Positives

  • Administrator activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Reconnaissance Activity
id: 968eef52-9cff-4454-8992-1e74b9cbad6c
status: test
description: Detects activity as "net user administrator /domain" and "net group domain admins /domain"
references:
    - https://findingbad.blogspot.de/2017/01/hunting-what-does-it-look-like.html
author: Florian Roth (Nextron Systems), Jack Croock (method), Jonhnathan Ribeiro (improvements), oscd.community
date: 2017-03-07
modified: 2022-08-22
tags:
    - attack.discovery
    - attack.t1087.002
    - attack.t1069.002
    - attack.s0039
logsource:
    product: windows
    service: security
    definition: The volume of Event ID 4661 is high on Domain Controllers and therefore "Audit SAM" and "Audit Kernel Object" advanced audit policy settings are not configured in the recommendations for server systems
detection:
    selection:
        EventID: 4661
        AccessMask: '0x2d'
        ObjectType:
            - 'SAM_USER'
            - 'SAM_GROUP'
        ObjectName|startswith: 'S-1-5-21-'
        ObjectName|endswith:
            - '-500'
            - '-512'
    condition: selection
falsepositives:
    - Administrator activity
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4661
    AccessMask: '0x2d'
    ObjectType:
        - 'SAM_USER'
        - 'SAM_GROUP'
    ObjectName|startswith: 'S-1-5-21-'
    ObjectName|endswith:
        - '-500'
        - '-512'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AccessMaskeq
  • 0x2d
field:"AccessMask" kind:eq value:"0x2d"
ObjectNameends_with
  • -500 corpus 3 (sigma 3)
  • -512 corpus 3 (sigma 3)
field:"ObjectName" kind:ends_with
ObjectNamestarts_with
  • S-1-5-21- corpus 5 (sigma 5)
field:"ObjectName" kind:starts_with value:"S-1-5-21-"
ObjectTypeeq
  • SAM_GROUP corpus 4 (sigma 4)
  • SAM_USER corpus 5 (sigma 5)
field:"ObjectType" kind:eq

Remote PowerShell Session Host Process (WinRM)

#
Status
test
Severity
medium
Author
Roberto Rodriguez @Cyb3rWard0g
Source
github.com/SigmaHQ/sigma

Detects remote PowerShell sections by monitoring for wsmprovhost (WinRM host process) as a parent or child process (sign of an active PowerShell remote session).

Known False Positives

  • Legitimate usage of remote Powershell, e.g. for monitoring purposes.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Remote PowerShell Session Host Process (WinRM)
id: 734f8d9b-42b8-41b2-bcf5-abaf49d5a3c8
status: test
description: Detects remote PowerShell sections by monitoring for wsmprovhost (WinRM host process) as a parent or child process (sign of an active PowerShell remote session).
references:
    - https://threathunterplaybook.com/hunts/windows/190511-RemotePwshExecution/notebook.html
author: Roberto Rodriguez @Cyb3rWard0g
date: 2019-09-12
modified: 2022-10-09
tags:
    - attack.execution
    - attack.lateral-movement
    - attack.t1059.001
    - attack.t1021.006
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\wsmprovhost.exe'
        - ParentImage|endswith: '\wsmprovhost.exe'
    condition: selection
falsepositives:
    - Legitimate usage of remote Powershell, e.g. for monitoring purposes.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|endswith: '\wsmprovhost.exe'
    - ParentImage|endswith: '\wsmprovhost.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \wsmprovhost.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\wsmprovhost.exe"
ParentImageends_with
  • \wsmprovhost.exe corpus 2 (sigma 2)
field:"ParentImage" kind:ends_with value:"\wsmprovhost.exe"

Rorschach Ransomware Execution Activity

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

Detects Rorschach ransomware execution activity

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Rorschach Ransomware Execution Activity
id: 0e9e6c63-1350-48c4-9fa1-7ccb235edc68
status: test
description: Detects Rorschach ransomware execution activity
references:
    - https://research.checkpoint.com/2023/rorschach-a-new-sophisticated-and-fast-ransomware/
author: X__Junior (Nextron Systems)
date: 2023-04-04
modified: 2023-04-22
tags:
    - attack.execution
    - attack.t1059.003
    - attack.t1059.001
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\bcdedit.exe'
            - '\net.exe'
            - '\net1.exe'
            - '\netsh.exe'
            - '\wevtutil.exe'
            - '\vssadmin.exe'
        CommandLine|contains: '11111111'
    condition: selection
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\bcdedit.exe'
        - '\net.exe'
        - '\net1.exe'
        - '\netsh.exe'
        - '\wevtutil.exe'
        - '\vssadmin.exe'
    CommandLine|contains: '11111111'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 11111111
field:"CommandLine" kind:match value:"11111111"
Imageends_with
  • \bcdedit.exe corpus 5 (sigma 5)
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
  • \netsh.exe corpus 28 (sigma 28)
  • \vssadmin.exe corpus 5 (sigma 5)
  • \wevtutil.exe corpus 9 (sigma 9)
field:"Image" kind:ends_with

Sensitive File Dump Via Print.EXE

#
Status
test
Severity
high
Author
Ayush Anand (Securityinbits)
Source
github.com/SigmaHQ/sigma

Detects the abuse of the Print.exe utility for credential harvesting which involves using Print.Exe to copy sensitive files such as ntds.dit, SAM, SECURITY, or SYSTEM from the Windows directory in order to extract credentials, locally or remotely.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Sensitive File Dump Via Print.EXE
id: 2fcda7e2-8c57-4904-86ac-37fc3157e09d
status: test
description: |
    Detects the abuse of the Print.exe utility for credential harvesting which involves using Print.Exe to copy sensitive files such as ntds.dit, SAM, SECURITY, or SYSTEM from the Windows directory in order to extract credentials, locally or remotely.
references:
    - https://www.microsoft.com/en-us/security/blog/2026/02/06/active-exploitation-solarwinds-web-help-desk/
    - https://www.huntress.com/blog/credential-theft-expanding-your-reach-pt-2
    - https://lolbas-project.github.io/lolbas/Binaries/Print/
author: Ayush Anand (Securityinbits)
date: 2026-04-28
tags:
    - attack.credential-access
    - attack.stealth
    - attack.t1003.003
    - attack.t1003.002
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\print.exe'
        - OriginalFileName: 'Print.EXE'
    selection_cli:
        CommandLine|contains|windash: '/D'
        CommandLine|contains:
            - '\config\SAM'
            - '\config\SECURITY'
            - '\config\SYSTEM'
            - '\windows\ntds\ntds.dit'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_print_dump_sensitive_files/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\print.exe'
    - OriginalFileName: 'Print.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|windash: '/D'
    CommandLine|contains:
        - '\config\SAM'
        - '\config\SECURITY'
        - '\config\SYSTEM'
        - '\windows\ntds\ntds.dit'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -D corpus 9 (sigma 7, splunk 2)
  • /D corpus 3 (sigma 3)
  • \config\SAM corpus 4 (sigma 4)
  • \config\SECURITY corpus 4 (sigma 4)
  • \config\SYSTEM corpus 3 (sigma 3)
  • \windows\ntds\ntds.dit corpus 5 (sigma 5)
  • –D
  • —D
  • ―D
field:"CommandLine" kind:match
Imageends_with
  • \print.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"\print.exe"
OriginalFileNameeq
  • Print.EXE
field:"OriginalFileName" kind:eq value:"Print.EXE"

Service Installed By Unusual Client - System

#
Status
test
Severity
high
Author
Tim Rauch (Nextron Systems), Elastic (idea)
Source
github.com/SigmaHQ/sigma

Detects a service installed by a client which has PID 0 or whose parent has PID 0

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Service Installed By Unusual Client - System
id: 71c276aa-49cd-43d2-b920-2dcd3e6962d5
related:
    - id: c4e92a97-a9ff-4392-9d2d-7a4c642768ca
      type: similar
status: test
description: Detects a service installed by a client which has PID 0 or whose parent has PID 0
references:
    - https://www.elastic.co/guide/en/security/current/windows-service-installed-via-an-unusual-client.html
author: Tim Rauch (Nextron Systems), Elastic (idea)
date: 2022-09-15
modified: 2023-01-04
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1543
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
        ProcessId: 0
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name: 'Service Control Manager'
    EventID: 7045
    ProcessId: 0

Indicators

These rows show field, operator, and value matches.

Shared folder access with forged Golden ticket

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

Detects scenarios where an attacker used a forged Golden ticket to login on a remote shared folder. Per default or if specified, the ticket will be forged using the builtin administrator account (SID *-500). However, and it frequent cases, a non suspicious user name will be specificied during the forge in order to evade security monitoring. The rule works based on this trick.

Known False Positives

  • login with renamed builtin administrator account ("administrator" renamed to "admin_org")

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Shared folder access with forged Golden ticket
description: Detects scenarios where an attacker used a forged Golden ticket to login on a remote shared folder. Per default or if specified, the ticket will be forged using the builtin administrator account (SID *-500). However, and it frequent cases, a non suspicious user name will be specificied during the forge in order to evade security monitoring. The rule works based on this trick.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1558-Steal%20or%20Forge%20Kerberos%20Tickets
- https://infosecwriteups.com/forest-an-asreproast-dcsync-and-golden-ticket-hackthebox-walkthrough-ade8dcdd1ee5
- https://attack.stealthbits.com/how-golden-ticket-attack-works
- https://www.hackingarticles.in/domain-persistence-golden-ticket-attack/
- https://adsecurity.org/?p=1515
- https://en.it-pirate.eu/azure-atp-golden-ticket-attack-how-golden-ticket-attacks-work/
- https://www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/kerberos-golden-tickets
- https://bond-o.medium.com/golden-ticket-attack-ea89553cf9c0
- https://social.technet.microsoft.com/wiki/contents/articles/13813.localized-names-for-administrator-account-in-windows.aspx
- https://www.blackhat.com/docs/us-15/materials/us-15-Metcalf-Red-Vs-Blue-Modern-Active-Directory-Attacks-Detection-And-Protection-wp.pdf
tags:
- attack.credential_access
- attack.t1558.001
author: mdecrevoisier
status: stable
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID:
      - 5140
      - 5145
    SubjectUserSid|startswith: 'S-1-5-21'
    SubjectUserSid|endswith: '-500' # Refers to builtin Administrator SID account
  filter:
    SubjectUserName: # Excludes builtin admin account names when using a localized Windows OS version (select the ones applicable)
      - 'Administrator'  # Default
      - 'Järjestelmänvalvoja' # Finnish
      - 'Administrateur' # French
      - 'Administrador'  # Spanish / Portuguese
      - 'Administratör'  # Swedish
      - 'Rendszergazda'  # Hungarian
      - 'Администратор'  # Russian
  condition: selection and not filter
falsepositives:
- login with renamed builtin administrator account ("administrator" renamed to "admin_org")
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID:
    - 5140
    - 5145
  SubjectUserSid|startswith: 'S-1-5-21'
  SubjectUserSid|endswith: '-500'

Stage 2: not filter

filter:
  SubjectUserName:
    - 'Administrator'
    - 'Järjestelmänvalvoja'
    - 'Administrateur'
    - 'Administrador'
    - 'Administratör'
    - 'Rendszergazda'
    - 'Администратор'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Signed DLL Loaded With Missing PE Version Metadata

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

Detects the loading of a digitally signed DLL whose PE version-info resource is entirely missing. Legitimate signed DLLs from reputable vendors often carry populated metadata fields (Description, Company, Product, OriginalFileName, FileVersion). An attacker who signs a purpose-built or hollowed DLL with a stolen, mis-issued, or cheaply purchased code-signing certificate will often omit these fields, producing a valid signature with no accompanying version info. This pattern is observed in DLL side-loading, search-order hijacking, and certificate-abuse campaigns where signing is used purely to satisfy security-product trust checks. Hunting Hypothesis: - Investigate the signing certificate (issuer, subject, validity window, thumbprint) for disposable or recently issued CAs and cross-reference against known threat-actor certificates. - Examine the DLL's on-disk path relative to the loading process — paths outside standard system directories or inside application folders susceptible to search-order hijacking are high-priority leads. - Correlate with the parent process context; DLLs loaded into high-value targets such as lsass.exe, svchost.exe, or browser processes warrant immediate escalation. Note: The "selection_metadata_null" selection matches fields with a null value. Some backends may interpret null field conditions as "field does not exist" rather than "field has a null value", which would change the detection semantics. If your backend does not support or support null-value matching in different ways than expected, you may need to adjust the rule logic accordingly or remove the "selection_metadata_null" condition.

Known False Positives

  • Legitimate signed DLLs with incomplete or missing version metadata

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Signed DLL Loaded With Missing PE Version Metadata
id: 2a297820-04ce-41f2-b60d-5afe139aaab3
status: experimental
description: |
    Detects the loading of a digitally signed DLL whose PE version-info resource is entirely missing.
    Legitimate signed DLLs from reputable vendors often carry populated metadata fields (Description, Company, Product, OriginalFileName, FileVersion).
    An attacker who signs a purpose-built or hollowed DLL with a stolen, mis-issued, or cheaply purchased code-signing certificate will often omit these fields, producing a valid signature with no accompanying version info.
    This pattern is observed in DLL side-loading, search-order hijacking, and certificate-abuse campaigns where signing is used purely to satisfy security-product trust checks.

    Hunting Hypothesis:
        - Investigate the signing certificate (issuer, subject, validity window, thumbprint) for disposable or recently issued CAs and cross-reference against known threat-actor certificates.
        - Examine the DLL's on-disk path relative to the loading process — paths outside standard system directories or inside application folders susceptible to search-order hijacking are high-priority leads.
        - Correlate with the parent process context; DLLs loaded into high-value targets such as lsass.exe, svchost.exe, or browser processes warrant immediate escalation.

    Note:
        The "selection_metadata_null" selection matches fields with a null value.
        Some backends may interpret null field conditions as "field does not exist" rather than "field has a null value", which would change the detection semantics.
        If your backend does not support or support null-value matching in different ways than expected, you may need to adjust the rule logic accordingly or remove the "selection_metadata_null" condition.
references:
    - Internal Research
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2026-05-21
tags:
    - attack.stealth
    - attack.execution
    - attack.t1574.001
    - detection.threat-hunting
logsource:
    category: image_load
    product: windows
detection:
    selection_signed:
        Signed: true
        SignatureStatus: 'Valid'
    selection_metadata_empty:
        Description:
            - '-'
            - ''
        Company:
            - '-'
            - ''
        Product:
            - '-'
            - ''
        OriginalFileName:
            - '-'
            - ''
        FileVersion:
            - '-'
            - ''
    selection_metadata_null:
        Description: null
        Company: null
        Product: null
        OriginalFileName: null
        FileVersion: null
    filter_main_legitimate_path:
        ImageLoaded|startswith:
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
            - 'C:\Program Files\'
            - 'C:\Program Files (x86)\'
    filter_main_ms_signature:
        Signature|startswith: 'Microsoft'
    condition: selection_signed and 1 of selection_metadata_* and not 1 of filter_main_*
falsepositives:
    - Legitimate signed DLLs with incomplete or missing version metadata
level: low

Stages and Predicates

Stage 0: condition

selection_signed and 1 of selection_metadata_* and not 1 of filter_main_*

Stage 1: selection_signed

selection_signed:
    Signed: true
    SignatureStatus: 'Valid'

Stage 2: selection_metadata_empty

selection_metadata_empty:
    Description:
        - '-'
        - ''
    Company:
        - '-'
        - ''
    Product:
        - '-'
        - ''
    OriginalFileName:
        - '-'
        - ''
    FileVersion:
        - '-'
        - ''

Stage 3: selection_metadata_null

selection_metadata_null:
    Description: null
    Company: null
    Product: null
    OriginalFileName: null
    FileVersion: null

Stage 4: not filter_main_*

filter_main_legitimate_path:
    ImageLoaded|startswith:
        - 'C:\Windows\System32\'
        - 'C:\Windows\SysWOW64\'
        - 'C:\Program Files\'
        - 'C:\Program Files (x86)\'
filter_main_ms_signature:
    Signature|startswith: 'Microsoft'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImageLoadedstarts_withC:\Program Files (x86)\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files (x86)\"
ImageLoadedstarts_withC:\Program Files\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files\"
ImageLoadedstarts_withC:\Windows\SysWOW64\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\SysWOW64\"
ImageLoadedstarts_withC:\Windows\System32\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Windows\System32\"
Signaturestarts_withMicrosoftexcludes:Signature field:"Signature" value:"Microsoft"

Suspicious Chromium Browser Instance Executed With Custom Extension

#
Status
test
Severity
high
Author
Aedan Russell, frack113, X__Junior (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects a suspicious process spawning a Chromium based browser process with the 'load-extension' flag to start an instance with a custom extension

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Chromium Browser Instance Executed With Custom Extension
id: 27ba3207-dd30-4812-abbf-5d20c57d474e
related:
    - id: 88d6e60c-759d-4ac1-a447-c0f1466c2d21
      type: similar
status: test
description: Detects a suspicious process spawning a Chromium based browser process with the 'load-extension' flag to start an instance with a custom extension
references:
    - https://redcanary.com/blog/chromeloader/
    - https://emkc.org/s/RJjuLa
    - https://www.mandiant.com/resources/blog/lnk-between-browsers
author: Aedan Russell, frack113, X__Junior (Nextron Systems)
date: 2022-06-19
modified: 2023-11-28
tags:
    - attack.persistence
    - attack.t1176.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith:
            - '\cmd.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\wscript.exe'
        Image|endswith:
            - '\brave.exe'
            - '\chrome.exe'
            - '\msedge.exe'
            - '\opera.exe'
            - '\vivaldi.exe'
        CommandLine|contains: '--load-extension='
    condition: selection
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_browsers_chromium_susp_load_extension/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith:
        - '\cmd.exe'
        - '\cscript.exe'
        - '\mshta.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\wscript.exe'
    Image|endswith:
        - '\brave.exe'
        - '\chrome.exe'
        - '\msedge.exe'
        - '\opera.exe'
        - '\vivaldi.exe'
    CommandLine|contains: '--load-extension='

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • --load-extension= corpus 2 (sigma 2)
field:"CommandLine" kind:match value:"--load-extension="
Imageends_with
  • \brave.exe corpus 11 (sigma 11)
  • \chrome.exe corpus 13 (sigma 13)
  • \msedge.exe corpus 14 (sigma 14)
  • \opera.exe corpus 11 (sigma 11)
  • \vivaldi.exe corpus 11 (sigma 11)
field:"Image" kind:ends_with
ParentImageends_with
  • \cmd.exe corpus 20 (sigma 20)
  • \cscript.exe corpus 17 (sigma 17)
  • \mshta.exe corpus 13 (sigma 13)
  • \powershell.exe corpus 24 (sigma 24)
  • \pwsh.exe corpus 21 (sigma 21)
  • \regsvr32.exe corpus 11 (sigma 11)
  • \rundll32.exe corpus 15 (sigma 15)
  • \wscript.exe corpus 19 (sigma 19)
field:"ParentImage" kind:ends_with

Suspicious Scheduled Task Creation

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

Detects suspicious scheduled task creation events. Based on attributes such as paths, commands line flags, etc.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Scheduled Task Creation
id: 3a734d25-df5c-4b99-8034-af1ddb5883a4
status: test
description: Detects suspicious scheduled task creation events. Based on attributes such as paths, commands line flags, etc.
references:
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4698
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-12-05
modified: 2022-12-07
tags:
    - attack.execution
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1053.005
logsource:
    product: windows
    service: security
    definition: 'The Advanced Audit Policy setting Object Access > Audit Other Object Access Events has to be configured to allow this detection. We also recommend extracting the Command field from the embedded XML in the event data.'
detection:
    selection_eid:
        EventID: 4698
    selection_paths:
        TaskContent|contains:
            - '\AppData\Local\Temp\'
            - '\AppData\Roaming\'
            - '\Users\Public\'
            - '\WINDOWS\Temp\'
            - 'C:\Temp\'
            - '\Desktop\'
            - '\Downloads\'
            - '\Temporary Internet'
            - 'C:\ProgramData\'
            - 'C:\Perflogs\'
    selection_commands:
        TaskContent|contains:
            - 'regsvr32'
            - 'rundll32'
            - 'cmd.exe</Command>'
            - 'cmd</Command>'
            - '<Arguments>/c '
            - '<Arguments>/k '
            - '<Arguments>/r '
            - 'powershell'
            - 'pwsh'
            - 'mshta'
            - 'wscript'
            - 'cscript'
            - 'certutil'
            - 'bitsadmin'
            - 'bash.exe'
            - 'bash '
            - 'scrcons'
            - 'wmic '
            - 'wmic.exe'
            - 'forfiles'
            - 'scriptrunner'
            - 'hh.exe'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_eid

selection_eid:
    EventID: 4698

Stage 2: selection_paths

selection_paths:
    TaskContent|contains:
        - '\AppData\Local\Temp\'
        - '\AppData\Roaming\'
        - '\Users\Public\'
        - '\WINDOWS\Temp\'
        - 'C:\Temp\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Temporary Internet'
        - 'C:\ProgramData\'
        - 'C:\Perflogs\'

Stage 3: selection_commands

selection_commands:
    TaskContent|contains:
        - 'regsvr32'
        - 'rundll32'
        - 'cmd.exe</Command>'
        - 'cmd</Command>'
        - '<Arguments>/c '
        - '<Arguments>/k '
        - '<Arguments>/r '
        - 'powershell'
        - 'pwsh'
        - 'mshta'
        - 'wscript'
        - 'cscript'
        - 'certutil'
        - 'bitsadmin'
        - 'bash.exe'
        - 'bash '
        - 'scrcons'
        - 'wmic '
        - 'wmic.exe'
        - 'forfiles'
        - 'scriptrunner'
        - 'hh.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TaskContentmatch
  • <Arguments>/c
  • <Arguments>/k
  • <Arguments>/r
  • C:\Perflogs\
  • C:\ProgramData\
  • C:\Temp\
  • \AppData\Local\Temp\
  • \AppData\Roaming\
  • \Desktop\
  • \Downloads\
  • \Temporary Internet
  • \Users\Public\
  • \WINDOWS\Temp\
  • bash
  • bash.exe
  • bitsadmin
  • certutil
  • cmd.exe</Command>
  • cmd</Command>
  • cscript
  • forfiles
  • hh.exe
  • mshta
  • powershell
  • pwsh
  • regsvr32
  • rundll32 corpus 2 (sigma 2)
  • scrcons
  • scriptrunner
  • wmic
  • wmic.exe
  • wscript
field:"TaskContent" kind:match

SystemNightmare by GentilKiwi - External printer mapped (CVE-2021-1675 / CVE-2021-34527)

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

Detects scenarios where an attacker exploit the PrintNightmare vulnerability by abusing the Windows print spooler using the service exposed by Gentilkiwi

Known False Positives

  • pentest

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: SystemNightmare by GentilKiwi - External printer mapped (CVE-2021-1675 / CVE-2021-34527)
description: Detects scenarios where an attacker exploit the PrintNightmare vulnerability by abusing the Windows print spooler using the service exposed by Gentilkiwi
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0004-Privilege%20Escalation/T1574-DLL%20side-loading
- https://github.com/GossiTheDog/SystemNightmare
- https://github.com/outflanknl/PrintNightmare
- https://github.com/cube0x0/CVE-2021-1675
- https://www.theregister.com/2021/09/21/microsoft_printnightmare/
- https://www.exabeam.com/information-security/detecting-the-printnightmare-cve-2021-1675-34527-vulnerability-using-exabeam/
tags:
- attack.privilege_escalation
- attack.t1574.002
- attack.t1547.010
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection: # net use \\printnightmare.gentilkiwi.com\ipc$ /user:gentilguest password

  selection_process:
    EventID: 4688
    NewProcessName|endswith:
      - \net1.exe
      - \net.exe
    CommandLine|contains|all:
      - net use
      - printnightmare.gentilkiwi.com

  selection_cred_switch:
    EventID: 4648

  selection_cred_switch_opt:
    - TargetUserName: gentilguest
    - TargetServerName: printnightmare.gentilkiwi.com
    - TargetInfo: printnightmare.gentilkiwi.com

  condition: selection_process or (selection_cred_switch and selection_cred_switch_opt)
falsepositives:
- pentest
level: high

Stages and Predicates

Stage 0: condition

selection_process or (selection_cred_switch and selection_cred_switch_opt)

Stage 1: selection_process

selection_process:
  EventID: 4688
  NewProcessName|endswith:
    - \net1.exe
    - \net.exe
  CommandLine|contains|all:
    - net use
    - printnightmare.gentilkiwi.com

Stage 2: selection_cred_switch

selection_cred_switch:
  EventID: 4648

Stage 3: selection_cred_switch_opt

selection_cred_switch_opt:
  - TargetUserName: gentilguest
  - TargetServerName: printnightmare.gentilkiwi.com
  - TargetInfo: printnightmare.gentilkiwi.com

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • net use corpus 2 (sigma 2)
  • printnightmare.gentilkiwi.com corpus 2 (sigma 2)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
field:"Image" kind:ends_with
TargetInfoeq
  • printnightmare.gentilkiwi.com
field:"TargetInfo" kind:eq value:"printnightmare.gentilkiwi.com"
TargetServerNameeq
  • printnightmare.gentilkiwi.com
field:"TargetServerName" kind:eq value:"printnightmare.gentilkiwi.com"
TargetUserNameeq
  • gentilguest
field:"TargetUserName" kind:eq value:"gentilguest"

Use Of Remove-Item to Delete File - ScriptBlock

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

PowerShell Remove-Item with -Path to delete a file or a folder with "-Recurse"

Known False Positives

  • Legitimate PowerShell scripts

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Use Of Remove-Item to Delete File - ScriptBlock
id: b8af5f36-1361-4ebe-9e76-e36128d947bf
status: test
description: PowerShell Remove-Item  with -Path to delete a file or a folder with "-Recurse"
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.004/T1070.004.md
    - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/Remove-Item?view=powershell-5.1&viewFallbackFrom=powershell-7
author: frack113
date: 2022-01-15
modified: 2022-03-17
tags:
    - attack.stealth
    - attack.t1070.004
    - detection.threat-hunting
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains:
            - 'Remove-Item -Path '
            - 'del -Path '
            - 'erase -Path '
            - 'rd -Path '
            - 'ri -Path '
            - 'rm -Path '
            - 'rmdir -Path '
    condition: selection
falsepositives:
    - Legitimate PowerShell scripts
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains:
        - 'Remove-Item -Path '
        - 'del -Path '
        - 'erase -Path '
        - 'rd -Path '
        - 'ri -Path '
        - 'rm -Path '
        - 'rmdir -Path '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • Remove-Item -Path
  • del -Path
  • erase -Path
  • rd -Path
  • ri -Path
  • rm -Path
  • rmdir -Path
field:"ScriptBlockText" kind:match

Windows Binary Executed From WSL

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

Detects the execution of Windows binaries from within a WSL instance. This could be used to masquerade parent-child relationships

MITRE ATT&CK Coverage

TacticTechniques
Stealth

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Windows Binary Executed From WSL
id: ed825c86-c009-4014-b413-b76003e33d35
status: test
description: |
    Detects the execution of Windows binaries from within a WSL instance.
    This could be used to masquerade parent-child relationships
references:
    - Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-14
tags:
    - attack.execution
    - attack.stealth
    - attack.t1202
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|re: '[a-zA-Z]:\\'
        CurrentDirectory|contains: '\\\\wsl.localhost' # Note: programs not supporting UNC paths (example: cmd.exe). Will default to another location
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|re: '[a-zA-Z]:\\'
    CurrentDirectory|contains: '\\\\wsl.localhost'

Indicators

These rows show field, operator, and value matches.

Back to all Sigma rules