Detection rules › Sigma

Sigma rules: 1s

Active Directory User Backdoors

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

Detects scenarios where one can control another users or computers account without having to use their credentials.

MITRE ATT&CK Coverage

TacticTechniques
Persistence
Privilege Escalation

Telemetry Coverage

Rule Body

title: Active Directory User Backdoors
id: 300bac00-e041-4ee2-9c36-e262656a6ecc
status: test
description: Detects scenarios where one can control another users or computers account without having to use their credentials.
references:
    - https://msdn.microsoft.com/en-us/library/cc220234.aspx
    - https://adsecurity.org/?p=3466
    - https://blog.harmj0y.net/redteaming/another-word-on-delegation/
author: '@neu5ron'
date: 2017-04-13
modified: 2024-02-26
tags:
    - attack.privilege-escalation
    - attack.t1098
    - attack.persistence
logsource:
    product: windows
    service: security
    definition: 'Requirements: Audit Policy : Account Management > Audit User Account Management, Group Policy : Computer Configuration\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\Account Management\Audit User Account Management, DS Access > Audit Directory Service Changes, Group Policy : Computer Configuration\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies\DS Access\Audit Directory Service Changes'
detection:
    selection1:
        EventID: 4738
    filter_empty:
        AllowedToDelegateTo:
            - ''
            - '-'
    filter_null:
        AllowedToDelegateTo: null
    selection_5136_1:
        EventID: 5136
        AttributeLDAPDisplayName: 'msDS-AllowedToDelegateTo'
    selection_5136_2:
        EventID: 5136
        ObjectClass: 'user'
        AttributeLDAPDisplayName: 'servicePrincipalName'
    selection_5136_3:
        EventID: 5136
        AttributeLDAPDisplayName: 'msDS-AllowedToActOnBehalfOfOtherIdentity'
    condition: (selection1 and not 1 of filter_*) or 1 of selection_5136_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

(selection1 and not 1 of filter_*) or 1 of selection_5136_*

Stage 1: selection1

selection1:
    EventID: 4738

Stage 2: not filter_*

filter_empty:
    AllowedToDelegateTo:
        - ''
        - '-'
filter_null:
    AllowedToDelegateTo: null

Stage 3: selection_5136_1

selection_5136_1:
    EventID: 5136
    AttributeLDAPDisplayName: 'msDS-AllowedToDelegateTo'

Stage 4: selection_5136_2

selection_5136_2:
    EventID: 5136
    ObjectClass: 'user'
    AttributeLDAPDisplayName: 'servicePrincipalName'

Stage 5: selection_5136_3

selection_5136_3:
    EventID: 5136
    AttributeLDAPDisplayName: 'msDS-AllowedToActOnBehalfOfOtherIdentity'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AttributeLDAPDisplayNameeq
  • msDS-AllowedToActOnBehalfOfOtherIdentity corpus 2 (sigma 2)
  • msDS-AllowedToDelegateTo
  • servicePrincipalName corpus 8 (sigma 4, splunk 3, elastic 1)
field:"AttributeLDAPDisplayName" kind:eq
ObjectClasseq
  • user corpus 5 (sigma 2, splunk 2, elastic 1)
field:"ObjectClass" kind:eq value:"user"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
AllowedToDelegateToeq-excludes:AllowedToDelegateTo field:"AllowedToDelegateTo" value:"-"
AllowedToDelegateTois_null(no value, null check)excludes:AllowedToDelegateTo

Add Port Monitor Persistence in Registry

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

Adversaries may use port monitors to run an attacker supplied DLL during system boot for persistence or privilege escalation. A port monitor can be set through the AddMonitor API call to set a DLL to be loaded at startup.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Add Port Monitor Persistence in Registry
id: 944e8941-f6f6-4ee8-ac05-1c224e923c0e
status: test
description: |
    Adversaries may use port monitors to run an attacker supplied DLL during system boot for persistence or privilege escalation.
    A port monitor can be set through the AddMonitor API call to set a DLL to be loaded at startup.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.010/T1547.010.md
author: frack113
date: 2021-12-30
modified: 2024-03-25
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.010
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Control\Print\Monitors\'
        Details|endswith: '.dll'
    filter_optional_cutepdf:
        Image: 'C:\Windows\System32\spoolsv.exe'
        TargetObject|contains: '\Control\Print\Monitors\CutePDF Writer Monitor v4.0\Driver'
        Details: 'cpwmon64_v40.dll'
        User|contains: # covers many language settings
            - 'AUTHORI'
            - 'AUTORI'
    filter_optional_monvnc:
        TargetObject|contains: '\Control\Print\Monitors\MONVNC\Driver'
    filter_optional_vnc:
        TargetObject|contains|all:
            - 'Control\Print\Environments\'
            - '\Drivers\'
            - '\VNC Printer'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_add_port_monitor/info.yml
simulation:
    - type: atomic-red-team
      name: Add Port Monitor persistence in Registry
      technique: T1547.010
      atomic_guid: d34ef297-f178-4462-871e-9ce618d44e50

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    TargetObject|contains: '\Control\Print\Monitors\'
    Details|endswith: '.dll'

Stage 2: not filter_optional_*

filter_optional_cutepdf:
    Image: 'C:\Windows\System32\spoolsv.exe'
    TargetObject|contains: '\Control\Print\Monitors\CutePDF Writer Monitor v4.0\Driver'
    Details: 'cpwmon64_v40.dll'
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'
filter_optional_monvnc:
    TargetObject|contains: '\Control\Print\Monitors\MONVNC\Driver'
filter_optional_vnc:
    TargetObject|contains|all:
        - 'Control\Print\Environments\'
        - '\Drivers\'
        - '\VNC Printer'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsends_with
  • .dll corpus 9 (sigma 4, elastic 4, splunk 1)
field:"Details" kind:ends_with value:".dll"
TargetObjectmatch
  • \Control\Print\Monitors\
field:"TargetObject" kind:match value:"\Control\Print\Monitors\"

Exclusions

The rule actively suppresses these predicates.

Azure Keyvault Key Modified or Deleted

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

Identifies when a Keyvault Key is modified or deleted in Azure.

Known False Positives

  • Key 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.
  • Key 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

Rule Body

title: Azure Keyvault Key Modified or Deleted
id: 80eeab92-0979-4152-942d-96749e11df40
status: test
description: Identifies when a Keyvault Key is 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/KEYS/UPDATE/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/CREATE
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/CREATE/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/IMPORT/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/RECOVER/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/RESTORE/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/DELETE
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/BACKUP/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/KEYS/PURGE/ACTION
    condition: selection
falsepositives:
    - Key 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.
    - Key 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/KEYS/UPDATE/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/CREATE
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/CREATE/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/IMPORT/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/RECOVER/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/RESTORE/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/DELETE
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/BACKUP/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/KEYS/PURGE/ACTION

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameeq
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/BACKUP/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/CREATE
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/CREATE/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/DELETE
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/IMPORT/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/PURGE/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/RECOVER/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/RESTORE/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/KEYS/UPDATE/ACTION
field:"operationName" kind:eq

Diamond Sleet APT DNS Communication Indicators

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

Detects DNS queries related to Diamond Sleet APT activity

Known False Positives

  • Might generate some false positive if triggered by a user during investigation for example.

MITRE ATT&CK Coverage

TacticTechniques
Command & ControlNo specific technique

Telemetry Coverage

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

Rule Body

title: Diamond Sleet APT DNS Communication Indicators
id: fba38e0f-4607-4344-bb8f-a4b50cdeef7f
status: test
description: Detects DNS queries related to Diamond Sleet APT activity
references:
    - https://www.microsoft.com/en-us/security/blog/2023/10/18/multiple-north-korean-threat-actors-exploiting-the-teamcity-cve-2023-42793-vulnerability/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-10-24
tags:
    - attack.command-and-control
    - detection.emerging-threats
logsource:
    product: windows
    category: dns_query
detection:
    selection:
        QueryName|contains:
            - '3dkit.org'
            - 'dersmarketim.com'
            - 'galerielamy.com'
            - 'olidhealth.com'
    condition: selection
falsepositives:
    - Might generate some false positive if triggered by a user during investigation for example.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    QueryName|contains:
        - '3dkit.org'
        - 'dersmarketim.com'
        - 'galerielamy.com'
        - 'olidhealth.com'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
QueryNamematch
  • 3dkit.org
  • dersmarketim.com
  • galerielamy.com
  • olidhealth.com
field:"QueryName" kind:match

File Creation In Suspicious Directory By Msdt.EXE

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

Detects msdt.exe creating files in suspicious directories which could be a sign of exploitation of either Follina or Dogwalk vulnerabilities

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: File Creation In Suspicious Directory By Msdt.EXE
id: 318557a5-150c-4c8d-b70e-a9910e199857
status: test
description: Detects msdt.exe creating files in suspicious directories which could be a sign of exploitation of either Follina or Dogwalk vulnerabilities
references:
    - https://irsl.medium.com/the-trouble-with-microsofts-troubleshooters-6e32fc80b8bd
    - https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/
author: Vadim Varganov, Florian Roth (Nextron Systems)
date: 2022-08-24
modified: 2023-02-23
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
    - cve.2022-30190
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith: '\msdt.exe'
        TargetFilename|contains:
            - '\Desktop\'
            - '\Start Menu\Programs\Startup\'
            - 'C:\PerfLogs\'
            - 'C:\ProgramData\'
            - 'C:\Users\Public\'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\msdt.exe'
    TargetFilename|contains:
        - '\Desktop\'
        - '\Start Menu\Programs\Startup\'
        - 'C:\PerfLogs\'
        - 'C:\ProgramData\'
        - 'C:\Users\Public\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \msdt.exe corpus 10 (sigma 9, splunk 1)
field:"Image" kind:ends_with value:"\msdt.exe"
TargetFilenamematch
  • C:\PerfLogs\ corpus 2 (sigma 2)
  • C:\ProgramData\
  • C:\Users\Public\ corpus 2 (sigma 2)
  • \Desktop\ corpus 3 (sigma 3)
  • \Start Menu\Programs\Startup\ corpus 5 (sigma 5)
field:"TargetFilename" kind:match

File Download via CertOC.EXE

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

Detects when a user downloads a file by using CertOC.exe

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: File Download via CertOC.EXE
id: 70ad0861-d1fe-491c-a45f-fa48148a300d
related:
    - id: b86f6dea-0b2f-41f5-bdcc-a057bd19cd6a
      type: similar
status: test
description: Detects when a user downloads a file by using CertOC.exe
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Certoc/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-05-16
modified: 2023-10-18
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\certoc.exe'
        - OriginalFileName: 'CertOC.exe'
    selection_cli:
        CommandLine|contains|all:
            - '-GetCACAPS'
            - 'http'
    condition: all of selection*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\certoc.exe'
    - OriginalFileName: 'CertOC.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - '-GetCACAPS'
        - 'http'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -GetCACAPS corpus 2 (sigma 2)
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • \certoc.exe corpus 10 (sigma 10)
field:"Image" kind:ends_with value:"\certoc.exe"
OriginalFileNameeq
  • CertOC.exe corpus 8 (sigma 6, elastic 2)
field:"OriginalFileName" kind:eq value:"CertOC.exe"

Firewall Configuration Discovery Via Netsh.EXE

#
Status
test
Severity
low
Author
frack113, Christopher Peacock '@securepeacock', SCYTHE '@scythe_io'
Source
github.com/SigmaHQ/sigma

Adversaries may look for details about the network configuration and settings of systems they access or through information discovery of remote systems

Known False Positives

  • Administrative activity

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Firewall Configuration Discovery Via Netsh.EXE
id: 0e4164da-94bc-450d-a7be-a4b176179f1f
status: test
description: Adversaries may look for details about the network configuration and settings of systems they access or through information discovery of remote systems
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1016/T1016.md#atomic-test-2---list-windows-firewall-rules
    - https://ss64.com/nt/netsh.html
author: frack113, Christopher Peacock '@securepeacock', SCYTHE '@scythe_io'
date: 2021-12-07
modified: 2025-10-18
tags:
    - attack.discovery
    - attack.t1016
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\netsh.exe'
        - OriginalFileName: 'netsh.exe'
    selection_cli:
        CommandLine|contains|all:
            - 'netsh'
            - 'show '
            - 'firewall '
        CommandLine|contains:
            - 'config '
            - 'state '
            - 'rule '
            - 'name=all'
    condition: all of selection_*
falsepositives:
    - Administrative activity
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'netsh'
        - 'show '
        - 'firewall '
    CommandLine|contains:
        - 'config '
        - 'state '
        - 'rule '
        - 'name=all'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • config corpus 2 (sigma 2)
  • firewall corpus 2 (sigma 2)
  • name=all
  • netsh corpus 9 (sigma 9)
  • rule
  • show
  • state
field:"CommandLine" kind:match
Imageends_with
  • \netsh.exe corpus 28 (sigma 28)
field:"Image" kind:ends_with value:"\netsh.exe"
OriginalFileNameeq
  • netsh.exe corpus 21 (sigma 14, splunk 7)
field:"OriginalFileName" kind:eq value:"netsh.exe"

IAM Login Profile Deleted

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

Detects when an IAM login profile is deleted, which may indicate an attacker removing access to a compromised account or an administrator performing account cleanup.

Known False Positives

  • Legitimate deletion of a login profile by an administrator.

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: IAM Login Profile Deleted
id: 3a6ed7dc-4f99-4574-8cfa-d65124dc89f0
status: test
description: Detects when an IAM login profile is deleted, which may indicate an attacker removing access to a compromised account or an administrator performing account cleanup.
references:
    - https://attack.mitre.org/techniques/T1531/
author: Zach Mathis (@yamatosecurity)
date: 2025-08-02
modified: 2025-08-02
tags:
    - attack.impact
    - attack.t1531 # Account Access Removal
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventSource: 'iam.amazonaws.com'
        eventName: 'DeleteLoginProfile'
    condition: selection
falsepositives:
    - Legitimate deletion of a login profile by an administrator.
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventSource: 'iam.amazonaws.com'
    eventName: 'DeleteLoginProfile'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventNameeq
  • DeleteLoginProfile
field:"aws::eventName" kind:eq value:"DeleteLoginProfile"
eventSourceeq
  • iam.amazonaws.com corpus 22 (sigma 18, splunk 4)
field:"aws::eventSource" kind:eq value:"iam.amazonaws.com"

Invoke-Obfuscation VAR++ LAUNCHER OBFUSCATION - Security

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

Detects Obfuscated Powershell via VAR++ LAUNCHER

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation VAR++ LAUNCHER OBFUSCATION - Security
id: 4c54ba8f-73d2-4d40-8890-d9cf1dca3d30
related:
    - id: 14bcba49-a428-42d9-b943-e2ce0f0f7ae6
      type: derived
status: test
description: Detects Obfuscated Powershell via VAR++ LAUNCHER
references:
    - https://github.com/SigmaHQ/sigma/issues/1009 # (Task27)
author: Timur Zinniatullin, oscd.community
date: 2020-10-13
modified: 2022-11-29
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    selection:
        EventID: 4697
        # ServiceFileName|re: '(?i)&&set.*(\{\d\}){2,}\\\"\s+?\-f.*&&.*cmd.*\/c' # FPs with |\/r
        # Example 1: CMD /C"sET KUR=Invoke-Expression (New-Object Net.WebClient).DownloadString&&Set MxI=C:\wINDowS\sYsWow64\winDOWspoWERSheLl\V1.0\PowerShelL.EXe ${ExEcut`IoN`cON`TExT}.\"invo`kEcoMm`A`ND\".( \"{2}{1}{0}\" -f 'pt','EscRi','INvOk' ).Invoke( ( .( \"{0}{1}\" -f'D','IR' ) ( \"{0}{1}\"-f'ENV:kU','R')).\"vAl`Ue\" )&& CMD /C%mXI%"
        # Example 2: c:\WiNDOWS\sYSTEm32\CmD.exE /C "sEt DeJLz=Invoke-Expression (New-Object Net.WebClient).DownloadString&&set yBKM=PoWERShelL -noeX ^^^&(\"{2}{0}{1}\"-f '-ItE','m','seT') ( 'V' + 'a'+ 'RiAblE:z8J' +'U2' + 'l' ) ([TYpE]( \"{2}{3}{0}{1}\"-f 'e','NT','e','NViRONM' ) ) ; ^^^& ( ( [sTrIng]${VE`Rbo`SepReFER`Ence})[1,3] + 'X'-joIN'')( ( (.('gI') ('V' + 'a' + 'RIAbLe:z8j' + 'u2' +'l' ) ).vALUe::( \"{2}{5}{0}{1}{6}{4}{3}\" -f 'IRo','Nm','GETE','ABlE','I','nv','enTVAr').Invoke(( \"{0}{1}\"-f'd','ejLz' ),( \"{1}{2}{0}\"-f'cEss','P','RO') )) )&& c:\WiNDOWS\sYSTEm32\CmD.exE /C %ybkm%"
        ServiceFileName|contains|all:
            - '&&set'
            - 'cmd'
            - '/c'
            - '-f'
        ServiceFileName|contains:
            - '{0}'
            - '{1}'
            - '{2}'
            - '{3}'
            - '{4}'
            - '{5}'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4697
    ServiceFileName|contains|all:
        - '&&set'
        - 'cmd'
        - '/c'
        - '-f'
    ServiceFileName|contains:
        - '{0}'
        - '{1}'
        - '{2}'
        - '{3}'
        - '{4}'
        - '{5}'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ServiceFileNamematch
  • &&set
  • -f corpus 2 (sigma 2)
  • /c corpus 3 (sigma 3)
  • cmd corpus 5 (sigma 5)
  • {0}
  • {1}
  • {2}
  • {3}
  • {4}
  • {5}
field:"ServiceFileName" kind:match

macOS Remote Execution Tools

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

Detects execution of remote execution and terminal multiplexer tools (screen, tmux) often used by adversaries for maintaining persistent sessions or executing commands on remote systems during lateral movement.

Known False Positives

  • Legitimate use of terminal multiplexers by developers and administrators
  • Automated scripts using expect for interactive command execution
  • Remote administration sessions

MITRE ATT&CK Coverage

Rule Body

title: macOS Remote Execution Tools
id: a52677c9-2670-428b-919a-95df34338e2c
status: experimental
description: 'Detects execution of remote execution and terminal multiplexer tools
  (screen, tmux)

  often used by adversaries for maintaining persistent sessions or executing commands

  on remote systems during lateral movement.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1021/
- https://attack.mitre.org/techniques/T1563/
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_event:
    esf.event_type: 9
    event.action: exec
  selection_process:
    Image|endswith:
    - /screen
    - /tmux
    - /expect
  condition: selection_event and selection_process
falsepositives:
- Legitimate use of terminal multiplexers by developers and administrators
- Automated scripts using expect for interactive command execution
- Remote administration sessions
fields:
- Image
- CommandLine
- ProcessId
- ParentProcessId
- User
tags:
- attack.lateral_movement
- attack.t1021
- attack.t1563
level: low

Stages and Predicates

Stage 0: condition

selection_event and selection_process

Stage 1: selection_event

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

Stage 2: selection_process

selection_process:
  Image|endswith:
  - /screen
  - /tmux
  - /expect

Indicators

These rows show field, operator, and value matches.

Microsoft IIS Service Account Password Dumped

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

Detects the Internet Information Services (IIS) command-line tool, AppCmd, being used to list passwords

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Microsoft IIS Service Account Password Dumped
id: 2d3cdeec-c0db-45b4-aa86-082f7eb75701
status: test
description: Detects the Internet Information Services (IIS) command-line tool, AppCmd, being used to list passwords
references:
    - https://www.elastic.co/guide/en/security/current/microsoft-iis-service-account-password-dumped.html
    - https://twitter.com/0gtweet/status/1588815661085917186?cxt=HHwWhIDUyaDbzYwsAAAA
    - https://www.netspi.com/blog/technical/network-penetration-testing/decrypting-iis-passwords-to-break-out-of-the-dmz-part-2/
author: Tim Rauch, Janantha Marasinghe, Elastic (original idea)
date: 2022-11-08
modified: 2023-01-22
tags:
    - attack.credential-access
    - attack.t1003
logsource:
    category: process_creation
    product: windows
detection:
    selection_base_name:
        - Image|endswith: '\appcmd.exe'
        - OriginalFileName: 'appcmd.exe'
    selection_base_list:
        CommandLine|contains: 'list '
    selection_standalone:
        CommandLine|contains:
            - ' /config' # https://pbs.twimg.com/media/FgydDAJWIAEio34?format=png&name=900x900
            - ' /xml'
            # We cover the "-" version just in case :)
            - ' -config'
            - ' -xml'
    selection_cmd_flags:
        CommandLine|contains:
            - ' /@t' # Covers both "/@text:*" and "/@t:*"
            - ' /text'
            - ' /show'
            # We cover the "-" version just in case :)
            - ' -@t'
            - ' -text'
            - ' -show'
    selection_cmd_grep:
        CommandLine|contains:
            - ':\*'
            - 'password'
    condition: all of selection_base_* and (selection_standalone or all of selection_cmd_*)
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_base_* and (selection_standalone or all of selection_cmd_*)

Stage 1: selection_base_name

selection_base_name:
    - Image|endswith: '\appcmd.exe'
    - OriginalFileName: 'appcmd.exe'

Stage 2: selection_base_list

selection_base_list:
    CommandLine|contains: 'list '

Stage 3: selection_standalone

selection_standalone:
    CommandLine|contains:
        - ' /config'
        - ' /xml'
        - ' -config'
        - ' -xml'

Stage 4: selection_cmd_flags

selection_cmd_flags:
    CommandLine|contains:
        - ' /@t'
        - ' /text'
        - ' /show'
        - ' -@t'
        - ' -text'
        - ' -show'

Stage 5: selection_cmd_grep

selection_cmd_grep:
    CommandLine|contains:
        - ':\*'
        - 'password'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -@t
  • -config
  • -show
  • -text
  • -xml
  • /@t
  • /config
  • /show
  • /text
  • /xml
  • :\*
  • list
  • password corpus 6 (sigma 3, elastic 3)
field:"CommandLine" kind:match
Imageends_with
  • \appcmd.exe corpus 6 (sigma 6)
field:"Image" kind:ends_with value:"\appcmd.exe"
OriginalFileNameeq
  • appcmd.exe corpus 5 (sigma 5)
field:"OriginalFileName" kind:eq value:"appcmd.exe"

OpenWith.exe Executes Specified Binary

#
Status
test
Severity
high
Author
Beyu Denis, oscd.community (rule), @harr0ey (idea)
Source
github.com/SigmaHQ/sigma

The OpenWith.exe executes other binary

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: OpenWith.exe Executes Specified Binary
id: cec8e918-30f7-4e2d-9bfa-a59cc97ae60f
status: test
description: The OpenWith.exe executes other binary
references:
    - https://github.com/LOLBAS-Project/LOLBAS/blob/4db780e0f0b2e2bb8cb1fa13e09196da9b9f1834/yml/LOLUtilz/OSBinaries/Openwith.yml
    - https://twitter.com/harr0ey/status/991670870384021504
author: Beyu Denis, oscd.community (rule), @harr0ey (idea)
date: 2019-10-12
modified: 2021-11-27
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\OpenWith.exe'
        CommandLine|contains: '/c'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\OpenWith.exe'
    CommandLine|contains: '/c'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /c corpus 16 (sigma 14, splunk 2)
field:"CommandLine" kind:match value:"/c"
Imageends_with
  • \OpenWith.exe
field:"Image" kind:ends_with value:"\OpenWith.exe"

Potential COLDSTEEL Persistence Service DLL Creation

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

Detects the creation of a file in a specific location and with a specific name related to COLDSTEEL RAT

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential COLDSTEEL Persistence Service DLL Creation
id: 1fea93a2-1524-4a3c-9828-3aa0c2414e27
status: test
description: Detects the creation of a file in a specific location and with a specific name related to COLDSTEEL RAT
references:
    - https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/cold-steel/NCSC-MAR-Cold-Steel.pdf
author: X__Junior (Nextron Systems)
date: 2023-04-30
tags:
    - attack.persistence
    - detection.emerging-threats
    - attack.stealth
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|startswith: 'C:\Users\'
        TargetFilename|endswith: '\AppData\Roaming\newdev.dll'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|startswith: 'C:\Users\'
    TargetFilename|endswith: '\AppData\Roaming\newdev.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • \AppData\Roaming\newdev.dll
field:"TargetFilename" kind:ends_with value:"\AppData\Roaming\newdev.dll"
TargetFilenamestarts_with
  • C:\Users\ corpus 13 (sigma 9, elastic 4)
field:"TargetFilename" kind:starts_with value:"C:\Users\"

Potential Compromised 3CXDesktopApp Update Activity

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

Detects the 3CXDesktopApp updater downloading a known compromised version of the 3CXDesktopApp software

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Compromised 3CXDesktopApp Update Activity
id: e7581747-1e44-4d4b-85a6-0db0b4a00f2a
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: 63f3605b-979f-48c2-b7cc-7f90523fed88 # ProcCreation ChildProc
      type: similar
    - id: d0b65ad3-e945-435e-a7a9-438e62dd48e9 # ImageLoad
      type: similar
status: test
description: Detects the 3CXDesktopApp updater downloading a known compromised version of the 3CXDesktopApp software
references:
    - https://www.linkedin.com/feed/update/urn:li:activity:7047435754834198529/
    - https://www.huntress.com/blog/3cx-voip-software-compromise-supply-chain-threats
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-03-29
tags:
    - attack.stealth
    - attack.t1218
    - attack.execution
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\3CXDesktopApp\app\update.exe'
        CommandLine|contains|all:
            - '--update'
            - 'http'
            - '/electron/update/win32/18.12'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\3CXDesktopApp\app\update.exe'
    CommandLine|contains|all:
        - '--update'
        - 'http'
        - '/electron/update/win32/18.12'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • --update
  • /electron/update/win32/18.12
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • \3CXDesktopApp\app\update.exe
field:"Image" kind:ends_with value:"\3CXDesktopApp\app\update.exe"

Potential CVE-2023-36884 Exploitation Pattern

#
Status
test
Severity
critical
Author
X__Junior
Source
github.com/SigmaHQ/sigma

Detects a unique pattern seen being used by RomCom potentially exploiting CVE-2023-36884

MITRE ATT&CK Coverage

TacticTechniques
Command & ControlNo specific technique

Rule Body

title: Potential CVE-2023-36884 Exploitation Pattern
id: 0066d244-c277-4c3e-88ec-9e7b777cc8bc
status: test
description: Detects a unique pattern seen being used by RomCom potentially exploiting CVE-2023-36884
references:
    - https://blogs.blackberry.com/en/2023/07/romcom-targets-ukraine-nato-membership-talks-at-nato-summit
author: X__Junior
date: 2023-07-12
tags:
    - attack.command-and-control
    - cve.2023-36884
    - detection.emerging-threats
logsource:
    category: proxy
detection:
    selection:
        cs-method: 'GET'
        c-uri|contains: '/MSHTML_C7/'
        c-uri|re: '\?d=[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
    condition: selection
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-method: 'GET'
    c-uri|contains: '/MSHTML_C7/'
    c-uri|re: '\?d=[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'

Indicators

These rows show field, operator, and value matches.

Potential Direct Syscall of NtOpenProcess

#
Status
test
Severity
medium
Author
Christian Burkard (Nextron Systems), Tim Shelton (FP)
Source
github.com/SigmaHQ/sigma

Detects potential calls to NtOpenProcess directly from NTDLL.

MITRE ATT&CK Coverage

TacticTechniques
Execution

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 10: ProcessAccess

Rule Body

title: Potential Direct Syscall of NtOpenProcess
id: 3f3f3506-1895-401b-9cc3-e86b16e630d0
status: test
description: Detects potential calls to NtOpenProcess directly from NTDLL.
references:
    - https://medium.com/falconforce/falconfriday-direct-system-calls-and-cobalt-strike-bofs-0xff14-741fa8e1bdd6
author: Christian Burkard (Nextron Systems), Tim Shelton (FP)
date: 2021-07-28
modified: 2023-12-13
tags:
    - attack.execution
    - attack.t1106
logsource:
    category: process_access
    product: windows
detection:
    selection:
        CallTrace|startswith: 'UNKNOWN'
    filter_main_vcredist:
        TargetImage|endswith: 'vcredist_x64.exe'
        SourceImage|endswith: 'vcredist_x64.exe'
    filter_main_generic:
        # Examples include "systeminfo", "backgroundTaskHost", "AUDIODG"
        SourceImage|contains:
            - ':\Program Files (x86)\'
            - ':\Program Files\'
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
            - ':\Windows\WinSxS\'
        TargetImage|contains:
            - ':\Program Files (x86)\'
            - ':\Program Files\'
            - ':\Windows\System32\'
            - ':\Windows\SysWOW64\'
            - ':\Windows\WinSxS\'
    filter_main_kerneltrace_edge:
        # Cases in which the CallTrace is just e.g. 'UNKNOWN(19290435374)' from Microsoft-Windows-Kernel-Audit-API-Calls provider
        Provider_Name: 'Microsoft-Windows-Kernel-Audit-API-Calls'
    filter_optional_vmware:
        TargetImage|endswith: ':\Windows\system32\systeminfo.exe'
        SourceImage|endswith: 'setup64.exe' # vmware
    filter_optional_cylance:
        SourceImage|endswith: ':\Windows\Explorer.EXE'
        TargetImage|endswith: ':\Program Files\Cylance\Desktop\CylanceUI.exe'
    filter_optional_amazon:
        SourceImage|endswith: 'AmazonSSMAgentSetup.exe'
        TargetImage|endswith: 'AmazonSSMAgentSetup.exe'
    filter_optional_vscode: # VsCode
        SourceImage|endswith: '\AppData\Local\Programs\Microsoft VS Code\Code.exe'
        TargetImage|endswith: '\AppData\Local\Programs\Microsoft VS Code\Code.exe'
    filter_optional_teams: # MS Teams
        TargetImage|endswith: '\AppData\Local\Microsoft\Teams\current\Teams.exe'
        SourceImage|endswith: '\AppData\Local\Microsoft\Teams\current\Teams.exe'
    filter_optional_discord: # Discord
        TargetImage|contains: '\AppData\Local\Discord\'
        TargetImage|endswith: '\Discord.exe'
    filter_optional_yammer:
        SourceImage|contains: '\AppData\Local\yammerdesktop\app-'
        SourceImage|endswith: '\Yammer.exe'
        TargetImage|contains: '\AppData\Local\yammerdesktop\app-'
        TargetImage|endswith: '\Yammer.exe'
        GrantedAccess: '0x1000'
    filter_optional_evernote:
        TargetImage|endswith: '\Evernote\Evernote.exe'
    filter_optional_adobe_acrobat:
        SourceImage|contains: ':\Program Files\Adobe\Acrobat DC\Acrobat\'
        SourceImage|endswith: '\AcroCEF.exe'
        TargetImage|contains: ':\Program Files\Adobe\Acrobat DC\Acrobat\'
        TargetImage|endswith: '\AcroCEF.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

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

Stage 1: selection

selection:
    CallTrace|startswith: 'UNKNOWN'

Stage 2: not filter_main_*

filter_main_vcredist:
    TargetImage|endswith: 'vcredist_x64.exe'
    SourceImage|endswith: 'vcredist_x64.exe'
filter_main_generic:
    SourceImage|contains:
        - ':\Program Files (x86)\'
        - ':\Program Files\'
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
        - ':\Windows\WinSxS\'
    TargetImage|contains:
        - ':\Program Files (x86)\'
        - ':\Program Files\'
        - ':\Windows\System32\'
        - ':\Windows\SysWOW64\'
        - ':\Windows\WinSxS\'
filter_main_kerneltrace_edge:
    Provider_Name: 'Microsoft-Windows-Kernel-Audit-API-Calls'

Stage 3: not filter_optional_*

filter_optional_vmware:
    TargetImage|endswith: ':\Windows\system32\systeminfo.exe'
    SourceImage|endswith: 'setup64.exe'
filter_optional_cylance:
    SourceImage|endswith: ':\Windows\Explorer.EXE'
    TargetImage|endswith: ':\Program Files\Cylance\Desktop\CylanceUI.exe'
filter_optional_amazon:
    SourceImage|endswith: 'AmazonSSMAgentSetup.exe'
    TargetImage|endswith: 'AmazonSSMAgentSetup.exe'
filter_optional_vscode:
    SourceImage|endswith: '\AppData\Local\Programs\Microsoft VS Code\Code.exe'
    TargetImage|endswith: '\AppData\Local\Programs\Microsoft VS Code\Code.exe'
filter_optional_teams:
    TargetImage|endswith: '\AppData\Local\Microsoft\Teams\current\Teams.exe'
    SourceImage|endswith: '\AppData\Local\Microsoft\Teams\current\Teams.exe'
filter_optional_discord:
    TargetImage|contains: '\AppData\Local\Discord\'
    TargetImage|endswith: '\Discord.exe'
filter_optional_yammer:
    SourceImage|contains: '\AppData\Local\yammerdesktop\app-'
    SourceImage|endswith: '\Yammer.exe'
    TargetImage|contains: '\AppData\Local\yammerdesktop\app-'
    TargetImage|endswith: '\Yammer.exe'
    GrantedAccess: '0x1000'
filter_optional_evernote:
    TargetImage|endswith: '\Evernote\Evernote.exe'
filter_optional_adobe_acrobat:
    SourceImage|contains: ':\Program Files\Adobe\Acrobat DC\Acrobat\'
    SourceImage|endswith: '\AcroCEF.exe'
    TargetImage|contains: ':\Program Files\Adobe\Acrobat DC\Acrobat\'
    TargetImage|endswith: '\AcroCEF.exe'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SourceImagematch:\Program Files (x86)\excludes:SourceImage field:"SourceImage" value:":\Program Files (x86)\"
SourceImagematch:\Program Files\excludes:SourceImage field:"SourceImage" value:":\Program Files\"
SourceImagematch:\Windows\SysWOW64\excludes:SourceImage field:"SourceImage" value:":\Windows\SysWOW64\"
SourceImagematch:\Windows\System32\excludes:SourceImage field:"SourceImage" value:":\Windows\System32\"
SourceImagematch:\Windows\WinSxS\excludes:SourceImage field:"SourceImage" value:":\Windows\WinSxS\"
TargetImagematch:\Program Files (x86)\excludes:TargetImage field:"TargetImage" value:":\Program Files (x86)\"
TargetImagematch:\Program Files\excludes:TargetImage field:"TargetImage" value:":\Program Files\"
TargetImagematch:\Windows\SysWOW64\excludes:TargetImage field:"TargetImage" value:":\Windows\SysWOW64\"
TargetImagematch:\Windows\System32\excludes:TargetImage field:"TargetImage" value:":\Windows\System32\"
TargetImagematch:\Windows\WinSxS\excludes:TargetImage field:"TargetImage" value:":\Windows\WinSxS\"
SourceImageends_withvcredist_x64.exeexcludes:SourceImage field:"SourceImage" value:"vcredist_x64.exe"
TargetImageends_withvcredist_x64.exeexcludes:TargetImage field:"TargetImage" value:"vcredist_x64.exe"
Provider_NameeqMicrosoft-Windows-Kernel-Audit-API-Callsexcludes:Provider_Name field:"Provider_Name" value:"Microsoft-Windows-Kernel-Audit-API-Calls"
GrantedAccesseq0x1000excludes:GrantedAccess field:"GrantedAccess" value:"0x1000"
SourceImageends_with\Yammer.exeexcludes:SourceImage field:"SourceImage" value:"\Yammer.exe"
SourceImagematch\AppData\Local\yammerdesktop\app-excludes:SourceImage field:"SourceImage" value:"\AppData\Local\yammerdesktop\app-"
TargetImageends_with\Yammer.exeexcludes:TargetImage field:"TargetImage" value:"\Yammer.exe"
TargetImagematch\AppData\Local\yammerdesktop\app-excludes:TargetImage field:"TargetImage" value:"\AppData\Local\yammerdesktop\app-"
SourceImageends_with:\Windows\Explorer.EXEexcludes:SourceImage field:"SourceImage" value:":\Windows\Explorer.EXE"
TargetImageends_with:\Program Files\Cylance\Desktop\CylanceUI.exeexcludes:TargetImage field:"TargetImage" value:":\Program Files\Cylance\Desktop\CylanceUI.exe"
SourceImageends_withAmazonSSMAgentSetup.exeexcludes:SourceImage field:"SourceImage" value:"AmazonSSMAgentSetup.exe"
TargetImageends_withAmazonSSMAgentSetup.exeexcludes:TargetImage field:"TargetImage" value:"AmazonSSMAgentSetup.exe"
SourceImageends_with\AcroCEF.exeexcludes:SourceImage field:"SourceImage" value:"\AcroCEF.exe"
SourceImagematch:\Program Files\Adobe\Acrobat DC\Acrobat\excludes:SourceImage field:"SourceImage" value:":\Program Files\Adobe\Acrobat DC\Acrobat\"
TargetImageends_with\AcroCEF.exeexcludes:TargetImage field:"TargetImage" value:"\AcroCEF.exe"
TargetImagematch:\Program Files\Adobe\Acrobat DC\Acrobat\excludes:TargetImage field:"TargetImage" value:":\Program Files\Adobe\Acrobat DC\Acrobat\"
SourceImageends_with\AppData\Local\Microsoft\Teams\current\Teams.exeexcludes:SourceImage field:"SourceImage" value:"\AppData\Local\Microsoft\Teams\current\Teams.exe"
TargetImageends_with\AppData\Local\Microsoft\Teams\current\Teams.exeexcludes:TargetImage field:"TargetImage" value:"\AppData\Local\Microsoft\Teams\current\Teams.exe"
SourceImageends_with\AppData\Local\Programs\Microsoft VS Code\Code.exeexcludes:SourceImage field:"SourceImage" value:"\AppData\Local\Programs\Microsoft VS Code\Code.exe"
TargetImageends_with\AppData\Local\Programs\Microsoft VS Code\Code.exeexcludes:TargetImage field:"TargetImage" value:"\AppData\Local\Programs\Microsoft VS Code\Code.exe"
SourceImageends_withsetup64.exeexcludes:SourceImage field:"SourceImage" value:"setup64.exe"
TargetImageends_with:\Windows\system32\systeminfo.exeexcludes:TargetImage field:"TargetImage" value:":\Windows\system32\systeminfo.exe"
TargetImageends_with\Discord.exeexcludes:TargetImage field:"TargetImage" value:"\Discord.exe"
TargetImagematch\AppData\Local\Discord\excludes:TargetImage field:"TargetImage" value:"\AppData\Local\Discord\"
TargetImageends_with\Evernote\Evernote.exeexcludes:TargetImage field:"TargetImage" value:"\Evernote\Evernote.exe"

Potential Goopdate.DLL Sideloading

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

Detects potential DLL sideloading of "goopdate.dll", a DLL used by googleupdate.exe

Known False Positives

  • False positives are expected from Google Chrome installations running from user locations (AppData) and other custom locations. Apply additional filters accordingly.
  • Other third party chromium browsers located in AppData

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Potential Goopdate.DLL Sideloading
id: b6188d2f-b3c4-4d2c-a17d-9706e0851af0
status: test
description: Detects potential DLL sideloading of "goopdate.dll", a DLL used by googleupdate.exe
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
modified: 2025-10-07
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|endswith: '\goopdate.dll'
    filter_main_generic:
        ImageLoaded|startswith:
            # Many third party chromium based apps use this DLLs. It's better to create a baseline and add specific filters
            - 'C:\Program Files (x86)\'
            - 'C:\Program Files\'
    filter_optional_dropbox_installer_temp:
        Image|contains|all:
            - '\AppData\Local\Temp\GUM'
            - '.tmp\Dropbox'
        ImageLoaded|contains|all:
            - '\AppData\Local\Temp\GUM'
            - '.tmp\goopdate.dll'
    filter_optional_googleupdate_temp:
        Image|contains:
            - '\AppData\Local\Temp\GUM'
            - ':\Windows\SystemTemp\GUM'
        Image|endswith: '.tmp\GoogleUpdate.exe'
        ImageLoaded|contains:
            - '\AppData\Local\Temp\GUM'
            - ':\Windows\SystemTemp\GUM'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - False positives are expected from Google Chrome installations running from user locations (AppData) and other custom locations. Apply additional filters accordingly.
    - Other third party chromium browsers located in AppData
level: medium

Stages and Predicates

Stage 0: condition

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

Stage 1: selection

selection:
    ImageLoaded|endswith: '\goopdate.dll'

Stage 2: not filter_main_generic

filter_main_generic:
    ImageLoaded|startswith:
        - 'C:\Program Files (x86)\'
        - 'C:\Program Files\'

Stage 3: not filter_optional_*

filter_optional_dropbox_installer_temp:
    Image|contains|all:
        - '\AppData\Local\Temp\GUM'
        - '.tmp\Dropbox'
    ImageLoaded|contains|all:
        - '\AppData\Local\Temp\GUM'
        - '.tmp\goopdate.dll'
filter_optional_googleupdate_temp:
    Image|contains:
        - '\AppData\Local\Temp\GUM'
        - ':\Windows\SystemTemp\GUM'
    Image|endswith: '.tmp\GoogleUpdate.exe'
    ImageLoaded|contains:
        - '\AppData\Local\Temp\GUM'
        - ':\Windows\SystemTemp\GUM'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Potential Kapeka Decrypted Backdoor Indicator

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

Detects the presence of a file that is decrypted backdoor binary dropped by the Kapeka Dropper, which disguises itself as a hidden file under a folder named "Microsoft" within "CSIDL_COMMON_APPDATA" or "CSIDL_LOCAL_APPDATA", depending on the process privileges. The file, typically 5-6 characters long with a random combination of consonants and vowels followed by a ".wll" extension to pose as a legitimate file to evade detection.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential Kapeka Decrypted Backdoor Indicator
id: 20228d05-dd68-435d-8b4e-e7e64938880c
status: test
description: |
    Detects the presence of a file that is decrypted backdoor binary dropped by the Kapeka Dropper, which disguises itself as a hidden file under a folder named "Microsoft" within "CSIDL_COMMON_APPDATA" or "CSIDL_LOCAL_APPDATA", depending on the process privileges.
    The file, typically 5-6 characters long with a random combination of consonants and vowels followed by a ".wll" extension to pose as a legitimate file to evade detection.
references:
    - https://labs.withsecure.com/publications/kapeka
    - https://app.any.run/tasks/1efb3ed4-cc0f-4690-a0ed-24516809bc72/
author: Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
date: 2024-07-03
tags:
    - detection.emerging-threats
    - attack.stealth
logsource:
    category: file_event
    product: windows
detection:
    selection_generic:
        TargetFilename|contains:
            - ':\ProgramData\'
            - '\AppData\Local\'
        TargetFilename|re: '\\[a-zA-Z]{5,6}\.wll'
    selection_specific:
        TargetFilename|endswith:
            - '\win32log.exe'
            - '\crdss.exe'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_generic

selection_generic:
    TargetFilename|contains:
        - ':\ProgramData\'
        - '\AppData\Local\'
    TargetFilename|re: '\\[a-zA-Z]{5,6}\.wll'

Stage 2: selection_specific

selection_specific:
    TargetFilename|endswith:
        - '\win32log.exe'
        - '\crdss.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • \crdss.exe
  • \win32log.exe
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • :\ProgramData\ corpus 4 (sigma 4)
  • \AppData\Local\ corpus 2 (sigma 2)
field:"TargetFilename" kind:match
TargetFilenameregex_match
  • \[a-zA-Z]{5,6}.wll
field:"TargetFilename" kind:regex_match value:"\[a-zA-Z]{5,6}.wll"

Potential Wazuh Security Platform DLL Sideloading

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

Detects potential DLL side loading of DLLs that are part of the Wazuh security platform

Known False Positives

  • Many legitimate applications leverage this DLL. (Visual Studio, JetBrains, Ruby, Anaconda, GithubDesktop, etc.)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Potential Wazuh Security Platform DLL Sideloading
id: db77ce78-7e28-4188-9337-cf30e2b3ba9f
status: test
description: Detects potential DLL side loading of DLLs that are part of the Wazuh security platform
references:
    - https://www.trendmicro.com/en_us/research/23/c/iron-tiger-sysupdate-adds-linux-targeting.html
author: X__Junior (Nextron Systems)
date: 2023-03-13
modified: 2023-05-12
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|endswith:
            - '\libwazuhshared.dll'
            - '\libwinpthread-1.dll'
    filter_main_generic:
        ImageLoaded|startswith:
            - 'C:\Program Files\'
            - 'C:\Program Files (x86)\'
    filter_optional_mingw64:
        # Note: Many third party apps installed in "AppData" or "ProgramData" and leverage "mingw64" make use of "libwinpthread-1.dll"
        # In production its best to make a list of these apps and replace this filter with a specific one.
        ImageLoaded|contains:
            - '\AppData\Local\'
            - '\ProgramData\'
        ImageLoaded|endswith: '\mingw64\bin\libwinpthread-1.dll'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Many legitimate applications leverage this DLL. (Visual Studio, JetBrains, Ruby, Anaconda, GithubDesktop, etc.)
level: medium

Stages and Predicates

Stage 0: condition

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

Stage 1: selection

selection:
    ImageLoaded|endswith:
        - '\libwazuhshared.dll'
        - '\libwinpthread-1.dll'

Stage 2: not filter_main_generic

filter_main_generic:
    ImageLoaded|startswith:
        - 'C:\Program Files\'
        - 'C:\Program Files (x86)\'

Stage 3: not filter_optional_mingw64

filter_optional_mingw64:
    ImageLoaded|contains:
        - '\AppData\Local\'
        - '\ProgramData\'
    ImageLoaded|endswith: '\mingw64\bin\libwinpthread-1.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImageLoadedends_with
  • \libwazuhshared.dll
  • \libwinpthread-1.dll
field:"ImageLoaded" kind:ends_with

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\"
ImageLoadedmatch\AppData\Local\excludes:ImageLoaded field:"ImageLoaded" value:"\AppData\Local\"
ImageLoadedmatch\ProgramData\excludes:ImageLoaded field:"ImageLoaded" value:"\ProgramData\"
ImageLoadedends_with\mingw64\bin\libwinpthread-1.dllexcludes:ImageLoaded field:"ImageLoaded" value:"\mingw64\bin\libwinpthread-1.dll"

Regsvr32 DLL Execution With Suspicious File Extension

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

Detects the execution of REGSVR32.exe with DLL files masquerading as other files

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Regsvr32 DLL Execution With Suspicious File Extension
id: 089fc3d2-71e8-4763-a8a5-c97fbb0a403e
related:
    - id: 8e2b24c9-4add-46a0-b4bb-0057b4e6187d
      type: obsolete
status: test
description: Detects the execution of REGSVR32.exe with DLL files masquerading as other files
references:
    - https://thedfirreport.com/2021/11/29/continuing-the-bazar-ransomware-story/
    - https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html
    - https://guides.lib.umich.edu/c.php?g=282942&p=1885348
    - https://harfanglab.io/insidethelab/uac-0057-pressure-ukraine-poland/
author: Florian Roth (Nextron Systems), frack113
date: 2021-11-29
modified: 2025-08-27
tags:
    - attack.stealth
    - attack.t1218.010
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\regsvr32.exe'
        - OriginalFileName: 'REGSVR32.EXE'
    selection_cli:
        CommandLine|endswith:
            # Add more image extensions
            # https://twitter.com/Max_Mal_/status/1542461200797163522/photo/3
            - '.bin'
            - '.bmp'
            - '.cr2'
            - '.dat'
            - '.eps'
            - '.gif'
            - '.ico'
            - '.jpeg'
            - '.jpg'
            - '.log'
            - '.nef'
            - '.orf'
            - '.png'
            - '.raw'
            - '.rtf'
            - '.sr2'
            - '.temp'
            - '.tif'
            - '.tiff'
            - '.tmp'
            - '.txt'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_regsvr32_susp_extensions/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\regsvr32.exe'
    - OriginalFileName: 'REGSVR32.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|endswith:
        - '.bin'
        - '.bmp'
        - '.cr2'
        - '.dat'
        - '.eps'
        - '.gif'
        - '.ico'
        - '.jpeg'
        - '.jpg'
        - '.log'
        - '.nef'
        - '.orf'
        - '.png'
        - '.raw'
        - '.rtf'
        - '.sr2'
        - '.temp'
        - '.tif'
        - '.tiff'
        - '.tmp'
        - '.txt'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • .bin
  • .bmp
  • .cr2
  • .dat corpus 6 (sigma 6)
  • .eps
  • .gif corpus 3 (sigma 3)
  • .ico
  • .jpeg corpus 3 (sigma 3)
  • .jpg corpus 2 (sigma 2)
  • .log corpus 2 (sigma 2)
  • .nef
  • .orf
  • .png corpus 3 (sigma 3)
  • .raw
  • .rtf
  • .sr2
  • .temp corpus 2 (sigma 2)
  • .tif
  • .tiff
  • .tmp corpus 2 (sigma 2)
  • .txt corpus 4 (sigma 4)
field:"CommandLine" kind:ends_with
Imageends_with
  • \regsvr32.exe corpus 64 (sigma 64)
field:"Image" kind:ends_with value:"\regsvr32.exe"
OriginalFileNameeq
  • REGSVR32.EXE corpus 37 (sigma 17, elastic 15, splunk 5)
field:"OriginalFileName" kind:eq value:"REGSVR32.EXE"

Removal Of AMSI Provider Registry Keys

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

Detects the deletion of AMSI provider registry key entries in HKLM\Software\Microsoft\AMSI. This technique could be used by an attacker in order to disable AMSI inspection.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

Rule Body

title: Removal Of AMSI Provider Registry Keys
id: 41d1058a-aea7-4952-9293-29eaaf516465
status: test
description: Detects the deletion of AMSI provider registry key entries in HKLM\Software\Microsoft\AMSI. This technique could be used by an attacker in order to disable AMSI inspection.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md
    - https://seclists.org/fulldisclosure/2020/Mar/45
author: frack113
date: 2021-06-07
modified: 2025-10-07
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    category: registry_delete
detection:
    selection:
        TargetObject|endswith:
            - '{2781761E-28E0-4109-99FE-B9D127C57AFE}' # IOfficeAntiVirus
            - '{A7C452EF-8E9F-42EB-9F2B-245613CA0DC9}' # ProtectionManagement.dll
    filter_main_defender:
        Image|startswith:
            - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
            - 'C:\Program Files\Windows Defender\'
            - 'C:\Program Files (x86)\Windows Defender\'
        Image|endswith: '\MsMpEng.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/registry/registry_delete/registry_delete_removal_amsi_registry_key/info.yml
simulation:
    - type: atomic-red-team
      name: AMSI Bypass - Remove AMSI Provider Reg Key
      technique: T1562.001
      atomic_guid: 13f09b91-c953-438e-845b-b585e51cac9b

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    TargetObject|endswith:
        - '{2781761E-28E0-4109-99FE-B9D127C57AFE}'
        - '{A7C452EF-8E9F-42EB-9F2B-245613CA0DC9}'

Stage 2: not filter_main_defender

filter_main_defender:
    Image|startswith:
        - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
        - 'C:\Program Files\Windows Defender\'
        - 'C:\Program Files (x86)\Windows Defender\'
    Image|endswith: '\MsMpEng.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • {2781761E-28E0-4109-99FE-B9D127C57AFE}
  • {A7C452EF-8E9F-42EB-9F2B-245613CA0DC9}
field:"TargetObject" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagestarts_withC:\Program Files (x86)\Windows Defender\excludes:Image field:"Image" value:"C:\Program Files (x86)\Windows Defender\"
Imagestarts_withC:\Program Files\Windows Defender\excludes:Image field:"Image" value:"C:\Program Files\Windows Defender\"
Imagestarts_withC:\ProgramData\Microsoft\Windows Defender\Platform\excludes:Image field:"Image" value:"C:\ProgramData\Microsoft\Windows Defender\Platform\"
Imageends_with\MsMpEng.exeexcludes:Image field:"Image" value:"\MsMpEng.exe"

Renamed SysInternals DebugView Execution

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

Detects suspicious renamed SysInternals DebugView execution

MITRE ATT&CK Coverage

TacticTechniques
Resource Development

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed SysInternals DebugView Execution
id: cd764533-2e07-40d6-a718-cfeec7f2da7f
status: test
description: Detects suspicious renamed SysInternals DebugView execution
references:
    - https://www.epicturla.com/blog/sysinturla
author: Florian Roth (Nextron Systems)
date: 2020-05-28
modified: 2023-02-14
tags:
    - attack.resource-development
    - attack.t1588.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Product: 'Sysinternals DebugView'
    filter:
        OriginalFileName: 'Dbgview.exe'
        Image|endswith: '\Dbgview.exe'
    condition: selection and not filter
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    Product: 'Sysinternals DebugView'

Stage 2: not filter

filter:
    OriginalFileName: 'Dbgview.exe'
    Image|endswith: '\Dbgview.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Producteq
  • Sysinternals DebugView
field:"Product" kind:eq value:"Sysinternals DebugView"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\Dbgview.exeexcludes:Image field:"Image" value:"\Dbgview.exe"
OriginalFileNameeqDbgview.exeexcludes:OriginalFileName field:"OriginalFileName" value:"Dbgview.exe"

Replace Desktop Wallpaper by Powershell

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

An adversary may deface systems internal to an organization in an attempt to intimidate or mislead users. This may take the form of modifications to internal websites, or directly to user systems with the replacement of the desktop wallpaper

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Replace Desktop Wallpaper by Powershell
id: c5ac6a1e-9407-45f5-a0ce-ca9a0806a287
status: test
description: |
    An adversary may deface systems internal to an organization in an attempt to intimidate or mislead users.
    This may take the form of modifications to internal websites, or directly to user systems with the replacement of the desktop wallpaper
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1491.001/T1491.001.md
author: frack113
date: 2021-12-26
tags:
    - attack.impact
    - attack.t1491.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_1:
        ScriptBlockText|contains|all:
            - 'Get-ItemProperty'
            - 'Registry::'
            - 'HKEY_CURRENT_USER\Control Panel\Desktop\'
            - 'WallPaper'
    selection_2:
        ScriptBlockText|contains: SystemParametersInfo(20,0,*,3)
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_1

selection_1:
    ScriptBlockText|contains|all:
        - 'Get-ItemProperty'
        - 'Registry::'
        - 'HKEY_CURRENT_USER\Control Panel\Desktop\'
        - 'WallPaper'

Stage 2: selection_2

selection_2:
    ScriptBlockText|contains: SystemParametersInfo(20,0,*,3)

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • Get-ItemProperty corpus 2 (sigma 2)
  • HKEY_CURRENT_USER\Control Panel\Desktop\
  • Registry::
  • SystemParametersInfo(20,0,*,3)
  • WallPaper
field:"ScriptBlockText" kind:match

RottenPotato Like Attack Pattern

#
Status
test
Severity
high
Author
@SBousseaden, Florian Roth
Source
github.com/SigmaHQ/sigma

Detects logon events that have characteristics of events generated during an attack with RottenPotato and the like

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: RottenPotato Like Attack Pattern
id: 16f5d8ca-44bd-47c8-acbe-6fc95a16c12f
status: test
description: Detects logon events that have characteristics of events generated during an attack with RottenPotato and the like
references:
    - https://twitter.com/SBousseaden/status/1195284233729777665
author: '@SBousseaden, Florian Roth'
date: 2019-11-15
modified: 2022-12-22
tags:
    - attack.collection
    - attack.privilege-escalation
    - attack.credential-access
    - attack.t1557.001
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4624
        LogonType: 3
        TargetUserName: 'ANONYMOUS LOGON'
        WorkstationName: '-'
        IpAddress:
            - '127.0.0.1'
            - '::1'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4624
    LogonType: 3
    TargetUserName: 'ANONYMOUS LOGON'
    WorkstationName: '-'
    IpAddress:
        - '127.0.0.1'
        - '::1'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
IpAddresseq
  • 127.0.0.1 corpus 6 (sigma 5, splunk 1)
  • ::1 corpus 6 (sigma 6)
field:"src_ip" kind:eq
LogonTypeeq
  • 3 corpus 30 (splunk 13, sigma 12, elastic 5)
field:"LogonType" kind:eq value:"3"
TargetUserNameeq
  • ANONYMOUS LOGON
field:"TargetUserName" kind:eq value:"ANONYMOUS LOGON"
WorkstationNameeq
  • -
field:"WorkstationName" kind:eq value:"-"

Shell Execution via Flock - Linux

#
Status
test
Severity
high
Author
Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)
Source
github.com/SigmaHQ/sigma

Detects the use of the "flock" command to execute a shell. Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Shell Execution via Flock - Linux
id: 4b09c71e-4269-4111-9cdd-107d8867f0cc
status: test
description: |
    Detects the use of the "flock" command to execute a shell. Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.
references:
    - https://gtfobins.github.io/gtfobins/flock/#shell
    - https://www.elastic.co/guide/en/security/current/linux-restricted-shell-breakout-via-linux-binary-s.html
author: Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)
date: 2024-09-02
tags:
    - attack.discovery
    - attack.t1083
logsource:
    category: process_creation
    product: linux
detection:
    selection_img:
        Image|endswith: '/flock'
        CommandLine|contains: ' -u '
    selection_cli:
        CommandLine|contains:
            - '/bin/bash'
            - '/bin/dash'
            - '/bin/fish'
            - '/bin/sh'
            - '/bin/zsh'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    Image|endswith: '/flock'
    CommandLine|contains: ' -u '

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - '/bin/bash'
        - '/bin/dash'
        - '/bin/fish'
        - '/bin/sh'
        - '/bin/zsh'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -u corpus 6 (sigma 5, splunk 1)
  • /bin/bash corpus 8 (sigma 8)
  • /bin/dash corpus 7 (sigma 7)
  • /bin/fish corpus 7 (sigma 7)
  • /bin/sh corpus 12 (sigma 12)
  • /bin/zsh corpus 8 (sigma 8)
field:"CommandLine" kind:match
Imageends_with
  • /flock
field:"Image" kind:ends_with value:"/flock"

Suspicious Microsoft Office Child Process

#
Status
test
Severity
high
Author
Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io
Source
github.com/SigmaHQ/sigma

Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Microsoft Office Child Process
id: 438025f9-5856-4663-83f7-52f878a70a50
related:
    - id: c27515df-97a9-4162-8a60-dc0eeb51b775 # Specific OneNote rule due to its recent usage in phishing attacks
      type: derived
    - id: e1693bc8-7168-4eab-8718-cdcaa68a1738
      type: derived
    - id: 23daeb52-e6eb-493c-8607-c4f0246cb7d8
      type: obsolete
    - id: 518643ba-7d9c-4fa5-9f37-baed36059f6a
      type: obsolete
    - id: 04f5363a-6bca-42ff-be70-0d28bf629ead
      type: obsolete
status: test
description: Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)
references:
    - https://www.hybrid-analysis.com/sample/465aabe132ccb949e75b8ab9c5bda36d80cf2fd503d52b8bad54e295f28bbc21?environmentId=100
    - https://mgreen27.github.io/posts/2018/04/02/DownloadCradle.html
    - https://thedfirreport.com/2021/03/29/sodinokibi-aka-revil-ransomware/
    - https://doublepulsar.com/follina-a-microsoft-office-code-execution-vulnerability-1a47fce5629e
    - https://github.com/vadim-hunter/Detection-Ideas-Rules/blob/02bcbfc2bfb8b4da601bb30de0344ae453aa1afe/Threat%20Intelligence/The%20DFIR%20Report/20210329_Sodinokibi_(aka_REvil)_Ransomware.yaml
    - https://github.com/splunk/security_content/blob/300af51b88ad5d5b27ce4f5f54e4d6e6a3a2c06d/detections/endpoint/office_spawning_control.yml
    - https://twitter.com/andythevariable/status/1576953781581144064?s=20&t=QiJILvK4ZiBdR8RJe24u-A
    - https://www.elastic.co/security-labs/exploring-the-ref2731-intrusion-set
    - https://github.com/elastic/detection-rules/blob/c76a39796972ecde44cb1da6df47f1b6562c9770/rules/windows/defense_evasion_execution_msbuild_started_by_office_app.toml
    - https://www.vmray.com/analyses/2d2fa29185ad/report/overview.html
    - https://app.any.run/tasks/c903e9c8-0350-440c-8688-3881b556b8e0/
author: Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io
date: 2018-04-06
modified: 2023-04-24
tags:
    - attack.execution
    - attack.stealth
    - attack.t1047
    - attack.t1204.002
    - attack.t1218.010
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith:
            - '\EQNEDT32.EXE'
            - '\EXCEL.EXE'
            - '\MSACCESS.EXE'
            - '\MSPUB.exe'
            - '\ONENOTE.EXE'
            - '\POWERPNT.exe'
            - '\VISIO.exe'
            - '\WINWORD.EXE'
            - '\wordpad.exe'
            - '\wordview.exe'
    selection_child_processes:
        - OriginalFileName:
              - 'bitsadmin.exe'
              - 'CertOC.exe'
              - 'CertUtil.exe'
              - 'Cmd.Exe'
              - 'CMSTP.EXE'
              - 'cscript.exe'
              - 'curl.exe'
              - 'HH.exe'
              - 'IEExec.exe'
              - 'InstallUtil.exe'
              - 'javaw.exe'
              - 'Microsoft.Workflow.Compiler.exe'
              - 'msdt.exe'
              - 'MSHTA.EXE'
              - 'msiexec.exe'
              - 'Msxsl.exe'
              - 'odbcconf.exe'
              - 'pcalua.exe'
              - 'PowerShell.EXE'
              - 'RegAsm.exe'
              - 'RegSvcs.exe'
              - 'REGSVR32.exe'
              - 'RUNDLL32.exe'
              - 'schtasks.exe'
              - 'ScriptRunner.exe'
              - 'wmic.exe'
              - 'WorkFolders.exe'
              - 'wscript.exe'
        - Image|endswith:
              - '\AppVLP.exe'
              - '\bash.exe'
              - '\bitsadmin.exe'
              - '\certoc.exe'
              - '\certutil.exe'
              - '\cmd.exe'
              - '\cmstp.exe'
              - '\control.exe'
              - '\cscript.exe'
              - '\curl.exe'
              - '\forfiles.exe'
              - '\hh.exe'
              - '\ieexec.exe'
              - '\installutil.exe'
              - '\javaw.exe'
              - '\mftrace.exe'
              - '\Microsoft.Workflow.Compiler.exe'
              - '\msbuild.exe'
              - '\msdt.exe'
              - '\mshta.exe'
              - '\msidb.exe'
              - '\msiexec.exe'
              - '\msxsl.exe'
              - '\odbcconf.exe'
              - '\pcalua.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\regasm.exe'
              - '\regsvcs.exe'
              - '\regsvr32.exe'
              - '\rundll32.exe'
              - '\schtasks.exe'
              - '\scrcons.exe'
              - '\scriptrunner.exe'
              - '\sh.exe'
              - '\svchost.exe'
              - '\verclsid.exe'
              - '\wmic.exe'
              - '\workfolders.exe'
              - '\wscript.exe'
    selection_child_susp_paths: # Idea: Laiali Kazalbach, Mohamed Elsayed (#4142)
        Image|contains:
            - '\AppData\'
            - '\Users\Public\'
            - '\ProgramData\'
            - '\Windows\Tasks\'
            - '\Windows\Temp\'
            - '\Windows\System32\Tasks\'
    condition: selection_parent and 1 of selection_child_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_parent and 1 of selection_child_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith:
        - '\EQNEDT32.EXE'
        - '\EXCEL.EXE'
        - '\MSACCESS.EXE'
        - '\MSPUB.exe'
        - '\ONENOTE.EXE'
        - '\POWERPNT.exe'
        - '\VISIO.exe'
        - '\WINWORD.EXE'
        - '\wordpad.exe'
        - '\wordview.exe'

Stage 2: selection_child_processes

selection_child_processes:
    - OriginalFileName:
          - 'bitsadmin.exe'
          - 'CertOC.exe'
          - 'CertUtil.exe'
          - 'Cmd.Exe'
          - 'CMSTP.EXE'
          - 'cscript.exe'
          - 'curl.exe'
          - 'HH.exe'
          - 'IEExec.exe'
          - 'InstallUtil.exe'
          - 'javaw.exe'
          - 'Microsoft.Workflow.Compiler.exe'
          - 'msdt.exe'
          - 'MSHTA.EXE'
          - 'msiexec.exe'
          - 'Msxsl.exe'
          - 'odbcconf.exe'
          - 'pcalua.exe'
          - 'PowerShell.EXE'
          - 'RegAsm.exe'
          - 'RegSvcs.exe'
          - 'REGSVR32.exe'
          - 'RUNDLL32.exe'
          - 'schtasks.exe'
          - 'ScriptRunner.exe'
          - 'wmic.exe'
          - 'WorkFolders.exe'
          - 'wscript.exe'
    - Image|endswith:
          - '\AppVLP.exe'
          - '\bash.exe'
          - '\bitsadmin.exe'
          - '\certoc.exe'
          - '\certutil.exe'
          - '\cmd.exe'
          - '\cmstp.exe'
          - '\control.exe'
          - '\cscript.exe'
          - '\curl.exe'
          - '\forfiles.exe'
          - '\hh.exe'
          - '\ieexec.exe'
          - '\installutil.exe'
          - '\javaw.exe'
          - '\mftrace.exe'
          - '\Microsoft.Workflow.Compiler.exe'
          - '\msbuild.exe'
          - '\msdt.exe'
          - '\mshta.exe'
          - '\msidb.exe'
          - '\msiexec.exe'
          - '\msxsl.exe'
          - '\odbcconf.exe'
          - '\pcalua.exe'
          - '\powershell.exe'
          - '\pwsh.exe'
          - '\regasm.exe'
          - '\regsvcs.exe'
          - '\regsvr32.exe'
          - '\rundll32.exe'
          - '\schtasks.exe'
          - '\scrcons.exe'
          - '\scriptrunner.exe'
          - '\sh.exe'
          - '\svchost.exe'
          - '\verclsid.exe'
          - '\wmic.exe'
          - '\workfolders.exe'
          - '\wscript.exe'

Stage 3: selection_child_susp_paths

selection_child_susp_paths:
    Image|contains:
        - '\AppData\'
        - '\Users\Public\'
        - '\ProgramData\'
        - '\Windows\Tasks\'
        - '\Windows\Temp\'
        - '\Windows\System32\Tasks\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \AppVLP.exe corpus 6 (sigma 6)
  • \Microsoft.Workflow.Compiler.exe corpus 3 (sigma 3)
  • \bash.exe corpus 21 (sigma 21)
  • \bitsadmin.exe corpus 29 (sigma 29)
  • \certoc.exe corpus 10 (sigma 10)
  • \certutil.exe corpus 43 (sigma 43)
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \cmstp.exe corpus 8 (sigma 8)
  • \control.exe corpus 5 (sigma 5)
  • \cscript.exe corpus 72 (sigma 72)
  • \curl.exe corpus 31 (sigma 31)
  • \forfiles.exe corpus 11 (sigma 11)
  • \hh.exe corpus 15 (sigma 15)
  • \ieexec.exe corpus 3 (sigma 3)
  • \installutil.exe corpus 8 (sigma 8)
  • \javaw.exe corpus 2 (sigma 2)
  • \mftrace.exe corpus 6 (sigma 6)
  • \msbuild.exe corpus 9 (sigma 9)
  • \msdt.exe corpus 10 (sigma 9, splunk 1)
  • \mshta.exe corpus 67 (sigma 66, splunk 1)
  • \msidb.exe corpus 2 (sigma 2)
  • \msiexec.exe corpus 20 (sigma 20)
  • \msxsl.exe corpus 6 (sigma 6)
  • \odbcconf.exe corpus 11 (sigma 11)
  • \pcalua.exe corpus 3 (sigma 3)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \regasm.exe corpus 9 (sigma 9)
  • \regsvcs.exe corpus 8 (sigma 8)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \rundll32.exe corpus 94 (sigma 94)
  • \schtasks.exe corpus 55 (sigma 55)
  • \scrcons.exe corpus 9 (sigma 9)
  • \scriptrunner.exe corpus 12 (sigma 12)
  • \sh.exe corpus 16 (sigma 16)
  • \svchost.exe corpus 22 (sigma 22)
  • \verclsid.exe corpus 4 (sigma 4)
  • \wmic.exe corpus 62 (sigma 62)
  • \workfolders.exe corpus 2 (sigma 2)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
Imagematch
  • \AppData\ corpus 6 (sigma 6)
  • \ProgramData\ corpus 2 (sigma 2)
  • \Users\Public\ corpus 9 (sigma 9)
  • \Windows\System32\Tasks\ corpus 3 (sigma 3)
  • \Windows\Tasks\ corpus 3 (sigma 3)
  • \Windows\Temp\ corpus 8 (sigma 7, splunk 1)
field:"Image" kind:match
OriginalFileNameeq
  • CMSTP.EXE corpus 9 (sigma 5, elastic 4)
  • CertOC.exe corpus 8 (sigma 6, elastic 2)
  • CertUtil.exe corpus 26 (sigma 14, elastic 6, splunk 6)
  • Cmd.Exe corpus 75 (sigma 43, splunk 17, elastic 15)
  • HH.exe corpus 11 (sigma 5, splunk 4, elastic 2)
  • IEExec.exe corpus 5 (sigma 3, elastic 2)
  • InstallUtil.exe corpus 19 (elastic 9, sigma 6, splunk 4)
  • MSHTA.EXE corpus 40 (elastic 21, sigma 13, splunk 6)
  • Microsoft.Workflow.Compiler.exe corpus 11 (elastic 6, sigma 3, splunk 2)
  • Msxsl.exe corpus 9 (elastic 6, sigma 3)
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • REGSVR32.exe corpus 37 (sigma 17, elastic 15, splunk 5)
  • RUNDLL32.exe corpus 72 (sigma 35, splunk 21, elastic 16)
  • RegAsm.exe corpus 13 (sigma 6, elastic 6, splunk 1)
  • RegSvcs.exe corpus 12 (elastic 6, sigma 5, splunk 1)
  • ScriptRunner.exe corpus 6 (sigma 3, elastic 3)
  • WorkFolders.exe corpus 4 (sigma 2, elastic 2)
  • bitsadmin.exe corpus 19 (sigma 9, elastic 8, splunk 2)
  • cscript.exe corpus 32 (sigma 17, elastic 15)
  • curl.exe corpus 22 (sigma 13, elastic 6, splunk 3)
  • javaw.exe corpus 4 (sigma 2, elastic 2)
  • msdt.exe corpus 7 (sigma 6, elastic 1)
  • msiexec.exe corpus 18 (elastic 9, sigma 5, splunk 4)
  • odbcconf.exe corpus 11 (sigma 9, elastic 2)
  • pcalua.exe corpus 4 (sigma 2, elastic 2)
  • schtasks.exe corpus 29 (sigma 18, elastic 7, splunk 4)
  • wmic.exe corpus 74 (sigma 38, elastic 18, splunk 18)
  • wscript.exe corpus 37 (elastic 20, sigma 17)
field:"OriginalFileName" kind:eq
ParentImageends_with
  • \EQNEDT32.EXE corpus 5 (sigma 5)
  • \EXCEL.EXE corpus 8 (sigma 8)
  • \MSACCESS.EXE corpus 4 (sigma 4)
  • \MSPUB.exe corpus 4 (sigma 4)
  • \ONENOTE.EXE corpus 5 (sigma 5)
  • \POWERPNT.exe corpus 6 (sigma 6)
  • \VISIO.exe corpus 4 (sigma 4)
  • \WINWORD.EXE corpus 10 (sigma 10)
  • \wordpad.exe corpus 2 (sigma 2)
  • \wordview.exe corpus 2 (sigma 2)
field:"ParentImage" kind:ends_with

Suspicious PowerShell Mailbox Export to Share - PS

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

Detects usage of the powerShell New-MailboxExportRequest Cmdlet to exports a mailbox to a remote or local share, as used in ProxyShell exploitations

MITRE ATT&CK Coverage

TacticTechniques
ExfiltrationNo specific technique

Telemetry Coverage

Rule Body

title: Suspicious PowerShell Mailbox Export to Share - PS
id: 4a241dea-235b-4a7e-8d76-50d817b146c4
related:
    - id: 889719ef-dd62-43df-86c3-768fb08dc7c0
      type: derived
status: test
description: Detects usage of the powerShell New-MailboxExportRequest Cmdlet to exports a mailbox to a remote or local share, as used in ProxyShell exploitations
references:
    - https://youtu.be/5mqid-7zp8k?t=2481
    - https://blog.orange.tw/2021/08/proxylogon-a-new-attack-surface-on-ms-exchange-part-1.html
    - https://peterjson.medium.com/reproducing-the-proxyshell-pwn2own-exploit-49743a4ea9a1
    - https://m365internals.com/2022/10/07/hunting-in-on-premises-exchange-server-logs/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-26
tags:
    - attack.exfiltration
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'New-MailboxExportRequest'
            - ' -Mailbox '
            - ' -FilePath \\\\'
    condition: selection
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'New-MailboxExportRequest'
        - ' -Mailbox '
        - ' -FilePath \\\\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • -FilePath \\\\
  • -Mailbox
  • New-MailboxExportRequest
field:"ScriptBlockText" kind:match

Suspicious WMIC Execution Via Office Process

#
Status
test
Severity
high
Author
Vadim Khrykov, Cyb3rEng
Source
github.com/SigmaHQ/sigma

Office application called wmic to proxye execution through a LOLBIN process. This is often used to break suspicious parent-child chain (Office app spawns LOLBin).

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious WMIC Execution Via Office Process
id: e1693bc8-7168-4eab-8718-cdcaa68a1738
related:
    - id: 438025f9-5856-4663-83f7-52f878a70a50
      type: derived
    - id: 518643ba-7d9c-4fa5-9f37-baed36059f6a
      type: obsolete
    - id: 9d1c72f5-43f0-4da5-9320-648cf2099dd0
      type: obsolete
    - id: c0e1c3d5-4381-4f18-8145-2583f06a1fe5
      type: obsolete
    - id: 04f5363a-6bca-42ff-be70-0d28bf629ead
      type: obsolete
status: test
description: Office application called wmic to proxye execution through a LOLBIN process. This is often used to break suspicious parent-child chain (Office app spawns LOLBin).
references:
    - https://thedfirreport.com/2021/03/29/sodinokibi-aka-revil-ransomware/
    - https://github.com/vadim-hunter/Detection-Ideas-Rules/blob/02bcbfc2bfb8b4da601bb30de0344ae453aa1afe/Threat%20Intelligence/The%20DFIR%20Report/20210329_Sodinokibi_(aka_REvil)_Ransomware.yaml
author: Vadim Khrykov, Cyb3rEng
date: 2021-08-23
modified: 2023-02-14
tags:
    - attack.stealth
    - attack.t1204.002
    - attack.t1047
    - attack.t1218.010
    - attack.execution
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith:
            - '\WINWORD.EXE'
            - '\EXCEL.EXE'
            - '\POWERPNT.exe'
            - '\MSPUB.exe'
            - '\VISIO.exe'
            - '\MSACCESS.EXE'
            - '\EQNEDT32.EXE'
            - '\ONENOTE.EXE'
            - '\wordpad.exe'
            - '\wordview.exe'
    selection_wmic_img:
        - Image|endswith: '\wbem\WMIC.exe'
        - OriginalFileName: 'wmic.exe'
    selection_wmic_cli:
        CommandLine|contains|all:
            - 'process'
            - 'create'
            - 'call'
        CommandLine|contains:
            # Add more suspicious LOLBINs as you see fit
            - 'regsvr32'
            - 'rundll32'
            - 'msiexec'
            - 'mshta'
            - 'verclsid'
            - 'wscript'
            - 'cscript'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith:
        - '\WINWORD.EXE'
        - '\EXCEL.EXE'
        - '\POWERPNT.exe'
        - '\MSPUB.exe'
        - '\VISIO.exe'
        - '\MSACCESS.EXE'
        - '\EQNEDT32.EXE'
        - '\ONENOTE.EXE'
        - '\wordpad.exe'
        - '\wordview.exe'

Stage 2: selection_wmic_img

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

Stage 3: selection_wmic_cli

selection_wmic_cli:
    CommandLine|contains|all:
        - 'process'
        - 'create'
        - 'call'
    CommandLine|contains:
        - 'regsvr32'
        - 'rundll32'
        - 'msiexec'
        - 'mshta'
        - 'verclsid'
        - 'wscript'
        - 'cscript'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • call corpus 8 (sigma 6, splunk 2)
  • create corpus 29 (sigma 17, splunk 7, elastic 5)
  • cscript corpus 15 (sigma 15)
  • mshta corpus 14 (sigma 14)
  • msiexec corpus 5 (sigma 5)
  • process corpus 5 (sigma 3, splunk 2)
  • regsvr32 corpus 15 (sigma 15)
  • rundll32 corpus 23 (sigma 23)
  • verclsid
  • wscript corpus 16 (sigma 16)
field:"CommandLine" kind:match
Imageends_with
  • \wbem\WMIC.exe
field:"Image" kind:ends_with value:"\wbem\WMIC.exe"
OriginalFileNameeq
  • wmic.exe corpus 74 (sigma 38, elastic 18, splunk 18)
field:"OriginalFileName" kind:eq value:"wmic.exe"
ParentImageends_with
  • \EQNEDT32.EXE corpus 5 (sigma 5)
  • \EXCEL.EXE corpus 8 (sigma 8)
  • \MSACCESS.EXE corpus 4 (sigma 4)
  • \MSPUB.exe corpus 4 (sigma 4)
  • \ONENOTE.EXE corpus 5 (sigma 5)
  • \POWERPNT.exe corpus 6 (sigma 6)
  • \VISIO.exe corpus 4 (sigma 4)
  • \WINWORD.EXE corpus 10 (sigma 10)
  • \wordpad.exe corpus 2 (sigma 2)
  • \wordview.exe corpus 2 (sigma 2)
field:"ParentImage" kind:ends_with

Sysmon Configuration Change

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

Detects a Sysmon configuration change, which could be the result of a legitimate reconfiguration or someone trying manipulate the configuration

Known False Positives

  • Legitimate administrative action

MITRE ATT&CK Coverage

TacticTechniques
Defense ImpairmentNo specific technique

Telemetry Coverage

Rule Body

title: Sysmon Configuration Change
id: 8ac03a65-6c84-4116-acad-dc1558ff7a77
status: test
description: Detects a Sysmon configuration change, which could be the result of a legitimate reconfiguration or someone trying manipulate the configuration
references:
    - https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon
author: frack113
date: 2022-01-12
tags:
    - attack.defense-impairment
logsource:
    product: windows
    service: sysmon
detection:
    selection:
        EventID: 16
    # To avoid FP just add
    # filter:
    #      ConfigurationFileHash: 'SHA256=The_Hash_Of_Your_Valid_Config_XML'
    # condition: selection and not filter
    condition: selection
falsepositives:
    - Legitimate administrative action
level: medium
regression_tests_path: regression_data/rules/windows/sysmon/sysmon_config_modification/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 16

VSSAudit Security Event Source Registration

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

Detects the registration of the security event source VSSAudit. It would usually trigger when volume shadow copy operations happen.

Known False Positives

  • Legitimate use of VSSVC. Maybe backup operations. It would usually be done by C:\Windows\System32\VSSVC.exe.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: VSSAudit Security Event Source Registration
id: e9faba72-4974-4ab2-a4c5-46e25ad59e9b
status: test
description: Detects the registration of the security event source VSSAudit. It would usually trigger when volume shadow copy operations happen.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1003.002/T1003.002.md#atomic-test-3---esentutlexe-sam-copy
author: Roberto Rodriguez @Cyb3rWard0g, Open Threat Research (OTR)
date: 2020-10-20
modified: 2022-04-28
tags:
    - attack.credential-access
    - attack.t1003.002
logsource:
    product: windows
    service: security
detection:
    selection:
        AuditSourceName: VSSAudit
        EventID:
            - 4904
            - 4905
    condition: selection
falsepositives:
    - Legitimate use of VSSVC. Maybe backup operations. It would usually be done by C:\Windows\System32\VSSVC.exe.
level: informational

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    AuditSourceName: VSSAudit
    EventID:
        - 4904
        - 4905

Indicators

These rows show field, operator, and value matches.

Win Susp Computer Name Containing Samtheadmin

#
Status
test
Severity
critical
Author
elhoim
Source
github.com/SigmaHQ/sigma

Detects suspicious computer name samtheadmin-{1..100}$ generated by hacktool

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Rule Body

title: Win Susp Computer Name Containing Samtheadmin
id: 39698b3f-da92-4bc6-bfb5-645a98386e45
status: test
description: Detects suspicious computer name samtheadmin-{1..100}$ generated by hacktool
references:
    - https://twitter.com/malmoeb/status/1511760068743766026
    - https://github.com/helloexp/0day/blob/614227a7b9beb0e91e7e2c6a5e532e6f7a8e883c/00-CVE_EXP/CVE-2021-42287/sam-the-admin/sam_the_admin.py
author: elhoim
date: 2022-09-09
modified: 2023-01-04
tags:
    - attack.initial-access
    - cve.2021-42278
    - cve.2021-42287
    - attack.persistence
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1078
logsource:
    service: security
    product: windows
detection:
    # Not adding an EventID on purpose to try to match on any event in security (including use of account), not just 4741 (computer account created)
    selection1:
        SamAccountName|startswith: 'SAMTHEADMIN-'
        SamAccountName|endswith: '$'
    selection2:
        TargetUserName|startswith: 'SAMTHEADMIN-'
        TargetUserName|endswith: '$'
    condition: 1 of selection*
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection1

selection1:
    SamAccountName|startswith: 'SAMTHEADMIN-'
    SamAccountName|endswith: '$'

Stage 2: selection2

selection2:
    TargetUserName|startswith: 'SAMTHEADMIN-'
    TargetUserName|endswith: '$'

Indicators

These rows show field, operator, and value matches.

Back to all Sigma rules