Detection rules › Sigma

Sigma rules: 0k

RuleSeverity
Active Directory PowerShell module called from a non administrative hostmedium
Anydesk Temporary Artefactmedium
Azure Key Vault Modified or Deletedmedium
Azure VPN Connection Modified or Deletedmedium
Cisco BGP Authentication Failureslow
Detected Windows Software Discoverymedium
Exchange Set OabVirtualDirectory ExternalUrl Propertyhigh
File And SubFolder Enumeration Via Dir Commandlow
HackTool - KrbRelayUp Executionhigh
HackTool Service Registration or Executionhigh
Invoke-Obfuscation Via Use MSHTA - Systemhigh
New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlocklow
OpenCanary - NMAP OS Scanhigh
PetitPotam Suspicious Kerberos TGT Requesthigh
Potential Product Class Reconnaissance Via Wmic.EXEmedium
Potentially Suspicious Call To Win32_NTEventlogFile Class - PSScriptmedium
Potentially Suspicious Desktop Background Change Via Registrymedium
RedSun - Conhost.exe Spawned by TieringEngineService.exehigh
Remote Access Tool - AnyDesk Executionmedium
Renamed ProcDump Executionhigh
Renamed Visual Studio Code Tunnel Executionhigh
Replication privileges granted to perform DCSync attackhigh
Risk for account takeover - same Guardian application device is registered for MFA to multiple usersmedium
Schedule Task Creation From Env Variable Or Potentially Suspicious Path Via Schtasks.EXEmedium
Suspicious CertReq Command to Downloadhigh
Suspicious File Write to Webapps Root Directorymedium
Suspicious Files in Default GPO Foldermedium
Suspicious Invoke-WebRequest Executionhigh
SysKey Registry Keys Accesshigh
Trickbot Malware Activityhigh
UAC Notification Disabledmedium
Use NTFS Short Name in Command Linemedium
Windows Defender Malware Detection History Deletioninformational

Active Directory PowerShell module called from a non administrative host

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

Detects scenarios where an attacker attempts to load the Active Directory PowerShell module on a non administrative host in order to enumerate users, groups, ... Also note that no user information is reported by this event ID and that some correation would be required.

Known False Positives

  • Adminitrative host, jump host, domain controllers, Exchange servers, application interacting with Active Directory modules

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
PowerShellEvent ID 600

Rule Body

title: Active Directory PowerShell module called from a non administrative host
description: Detects scenarios where an attacker attempts to load the Active Directory PowerShell module on a non administrative host in order to enumerate users, groups, ... Also note that no user information is reported by this event ID and that some correation would be required.
correlation: correlate EventID 600 with ID 800 using field "HostId" or "RunspaceId" to obtain the user that triggered the action.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1087-Account%20discovery
tags:
- attack.discovery
- attack.t1087.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 600
    ProviderName: ActiveDirectory
  filter:
    - Computer: '%admin_workstation%'
    - Computer: '%domain_controllers%'
  condition: selection and not filter
falsepositives:
- Adminitrative host, jump host, domain controllers, Exchange servers, application interacting with Active Directory modules
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 600
  ProviderName: ActiveDirectory

Stage 2: not filter

filter:
  - Computer: '%admin_workstation%'
  - Computer: '%domain_controllers%'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Computereq%admin_workstation%excludes:Computer field:"Computer" value:"%admin_workstation%"
Computereq%domain_controllers%excludes:Computer field:"Computer" value:"%domain_controllers%"

Anydesk Temporary Artefact

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

An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks. These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment. Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)

Known False Positives

  • Legitimate use

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Anydesk Temporary Artefact
id: 0b9ad457-2554-44c1-82c2-d56a99c42377
status: test
description: |
    An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks.
    These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment.
    Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1219/T1219.md#atomic-test-2---anydesk-files-detected-test-on-windows
author: frack113
date: 2022-02-11
modified: 2024-07-20
tags:
    - attack.command-and-control
    - attack.t1219.002
logsource:
    category: file_event
    product: windows
detection:
    selection:
        TargetFilename|contains:
            - '\AppData\Roaming\AnyDesk\user.conf'
            - '\AppData\Roaming\AnyDesk\system.conf'
    condition: selection
falsepositives:
    - Legitimate use
level: medium
regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_anydesk_artefact/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains:
        - '\AppData\Roaming\AnyDesk\user.conf'
        - '\AppData\Roaming\AnyDesk\system.conf'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenamematch
  • \AppData\Roaming\AnyDesk\system.conf
  • \AppData\Roaming\AnyDesk\user.conf
field:"TargetFilename" kind:match

Azure Key Vault Modified or Deleted

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

Identifies when a key vault is modified or deleted.

Known False Positives

  • Key Vault 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 Vault modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Azure Key Vault Modified or Deleted
id: 459a2970-bb84-4e6a-a32e-ff0fbd99448d
status: test
description: Identifies when a key vault is modified or deleted.
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/WRITE
            - MICROSOFT.KEYVAULT/VAULTS/DELETE
            - MICROSOFT.KEYVAULT/VAULTS/DEPLOY/ACTION
            - MICROSOFT.KEYVAULT/VAULTS/ACCESSPOLICIES/WRITE
    condition: selection
falsepositives:
    - Key Vault 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 Vault 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/WRITE
        - MICROSOFT.KEYVAULT/VAULTS/DELETE
        - MICROSOFT.KEYVAULT/VAULTS/DEPLOY/ACTION
        - MICROSOFT.KEYVAULT/VAULTS/ACCESSPOLICIES/WRITE

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameeq
  • MICROSOFT.KEYVAULT/VAULTS/ACCESSPOLICIES/WRITE
  • MICROSOFT.KEYVAULT/VAULTS/DELETE
  • MICROSOFT.KEYVAULT/VAULTS/DEPLOY/ACTION
  • MICROSOFT.KEYVAULT/VAULTS/WRITE
field:"operationName" kind:eq

Azure VPN Connection Modified or Deleted

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

Identifies when a VPN connection is modified or deleted.

Known False Positives

  • VPN Connection 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.
  • VPN Connection 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

TacticTechniques
ImpactNo specific technique

Telemetry Coverage

Rule Body

title: Azure VPN Connection Modified or Deleted
id: 61171ffc-d79c-4ae5-8e10-9323dba19cd3
status: test
description: Identifies when a VPN connection is modified or deleted.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
author: Austin Songer @austinsonger
date: 2021-08-08
modified: 2022-08-23
tags:
    - attack.impact
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName:
            - MICROSOFT.NETWORK/VPNGATEWAYS/VPNCONNECTIONS/WRITE
            - MICROSOFT.NETWORK/VPNGATEWAYS/VPNCONNECTIONS/DELETE
    condition: selection
falsepositives:
    - VPN Connection 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.
    - VPN Connection 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.NETWORK/VPNGATEWAYS/VPNCONNECTIONS/WRITE
        - MICROSOFT.NETWORK/VPNGATEWAYS/VPNCONNECTIONS/DELETE

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameeq
  • MICROSOFT.NETWORK/VPNGATEWAYS/VPNCONNECTIONS/DELETE
  • MICROSOFT.NETWORK/VPNGATEWAYS/VPNCONNECTIONS/WRITE
field:"operationName" kind:eq

Cisco BGP Authentication Failures

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

Detects BGP failures which may be indicative of brute force attacks to manipulate routing

Known False Positives

  • Unlikely. Except due to misconfigurations

MITRE ATT&CK Coverage

Rule Body

title: Cisco BGP Authentication Failures
id: 56fa3cd6-f8d6-4520-a8c7-607292971886
status: test
description: Detects BGP failures which may be indicative of brute force attacks to manipulate routing
references:
    - https://www.blackhat.com/presentations/bh-usa-03/bh-us-03-convery-franz-v3.pdf
author: Tim Brown
date: 2023-01-09
modified: 2023-01-23
tags:
    - attack.initial-access
    - attack.persistence
    - attack.privilege-escalation
    - attack.credential-access
    - attack.collection
    - attack.stealth
    - attack.t1078
    - attack.t1110
    - attack.t1557
logsource:
    product: cisco
    service: bgp
    definition: 'Requirements: cisco bgp logs need to be enabled and ingested'
detection:
    keywords_bgp_cisco:
        '|all':
            - ':179' # Protocol
            - 'IP-TCP-3-BADAUTH'
    condition: keywords_bgp_cisco
falsepositives:
    - Unlikely. Except due to misconfigurations
level: low

Stages and Predicates

Stage 0: condition

keywords_bgp_cisco

Stage 1: keywords_bgp_cisco

keywords_bgp_cisco:
    '|all':
        - ':179'
        - 'IP-TCP-3-BADAUTH'

Detected Windows Software Discovery

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

Adversaries may attempt to enumerate software for a variety of reasons, such as figuring out what security measures are present or if the compromised system has a version of software that is vulnerable.

Known False Positives

  • Legitimate administration activities

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: Detected Windows Software Discovery
id: e13f668e-7f95-443d-98d2-1816a7648a7b
related:
    - id: 2650dd1a-eb2a-412d-ac36-83f06c4f2282
      type: derived
status: test
description: Adversaries may attempt to enumerate software for a variety of reasons, such as figuring out what security measures are present or if the compromised system has a version of software that is vulnerable.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1518/T1518.md
    - https://github.com/harleyQu1nn/AggressorScripts # AVQuery.cna
author: Nikita Nazarov, oscd.community
date: 2020-10-16
modified: 2022-10-09
tags:
    - attack.discovery
    - attack.t1518
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\reg.exe'    # Example: reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v svcVersion
        CommandLine|contains|all:
            - 'query'
            - '\software\'
            - '/v'
            - 'svcversion'
    condition: selection
falsepositives:
    - Legitimate administration activities
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\reg.exe'
    CommandLine|contains|all:
        - 'query'
        - '\software\'
        - '/v'
        - 'svcversion'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /v corpus 5 (sigma 5)
  • \software\ corpus 2 (sigma 2)
  • query corpus 8 (sigma 7, splunk 1)
  • svcversion
field:"CommandLine" kind:match
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
field:"Image" kind:ends_with value:"\reg.exe"

Exchange Set OabVirtualDirectory ExternalUrl Property

#
Status
test
Severity
high
Author
Jose Rodriguez @Cyb3rPandaH
Source
github.com/SigmaHQ/sigma

Rule to detect an adversary setting OabVirtualDirectory External URL property to a script in Exchange Management log

MITRE ATT&CK Coverage

Rule Body

title: Exchange Set OabVirtualDirectory ExternalUrl Property
id: 9db37458-4df2-46a5-95ab-307e7f29e675
status: test
description: Rule to detect an adversary setting OabVirtualDirectory External URL property to a script in Exchange Management log
references:
    - https://twitter.com/OTR_Community/status/1371053369071132675
author: Jose Rodriguez @Cyb3rPandaH
date: 2021-03-15
modified: 2023-01-23
tags:
    - attack.persistence
    - attack.t1505.003
logsource:
    product: windows
    service: msexchange-management
detection:
    keywords:
        '|all':
            - 'Set-OabVirtualDirectory'
            - 'ExternalUrl'
            - 'Page_Load'
            - 'script'
    condition: keywords
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

keywords

Stage 1: keywords

keywords:
    '|all':
        - 'Set-OabVirtualDirectory'
        - 'ExternalUrl'
        - 'Page_Load'
        - 'script'

File And SubFolder Enumeration Via Dir Command

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

Detects usage of the "dir" command part of Windows CMD with the "/S" command line flag in order to enumerate files in a specified directory and all subdirectories.

Known False Positives

  • Likely

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: File And SubFolder Enumeration Via Dir Command
id: 7c9340a9-e2ee-4e43-94c5-c54ebbea1006
status: test
description: |
    Detects usage of the "dir" command part of Windows CMD with the "/S" command line flag in order to enumerate files in a specified directory and all subdirectories.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1217/T1217.md
author: frack113
date: 2021-12-13
modified: 2026-05-18
tags:
    - attack.discovery
    - attack.t1217
logsource:
    category: process_creation
    product: windows
detection:
    selection_cmd:
        - Image|endswith: '\cmd.exe'
        - OriginalFileName: Cmd.Exe
    selection_cli:
        CommandLine|contains|windash: '-s'
        CommandLine|contains: 'dir '
    filter_main_rmdir:
        CommandLine|contains: 'rmdir'
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Likely
level: low
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_cmd_dir_execution/info.yml
simulation:
    - type: atomic-red-team
      name: List Internet Explorer Bookmarks using the command prompt
      technique: T1217
      atomic_guid: 727dbcdb-e495-4ab1-a6c4-80c7f77aef85

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_cmd

selection_cmd:
    - Image|endswith: '\cmd.exe'
    - OriginalFileName: Cmd.Exe

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|windash: '-s'
    CommandLine|contains: 'dir '

Stage 3: not filter_main_rmdir

filter_main_rmdir:
    CommandLine|contains: 'rmdir'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -s corpus 6 (sigma 4, elastic 1, splunk 1)
  • /s corpus 10 (sigma 8, splunk 2)
  • dir corpus 6 (sigma 5, splunk 1)
  • –s corpus 2 (sigma 2)
  • —s corpus 2 (sigma 2)
  • ―s corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
OriginalFileNameeq
  • Cmd.Exe corpus 75 (sigma 43, splunk 17, elastic 15)
field:"OriginalFileName" kind:eq value:"Cmd.Exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematchrmdirexcludes:CommandLine field:"CommandLine" value:"rmdir"

HackTool - KrbRelayUp Execution

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

Detects KrbRelayUp used to perform a universal no-fix local privilege escalation in Windows domain environments where LDAP signing is not enforced

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: HackTool - KrbRelayUp Execution
id: 12827a56-61a4-476a-a9cb-f3068f191073
status: test
description: Detects KrbRelayUp used to perform a universal no-fix local privilege escalation in Windows domain environments where LDAP signing is not enforced
references:
    - https://github.com/Dec0ne/KrbRelayUp
author: Florian Roth (Nextron Systems)
date: 2022-04-26
modified: 2023-02-04
tags:
    - attack.credential-access
    - attack.t1558.003
    - attack.lateral-movement
    - attack.t1550.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\KrbRelayUp.exe'
        - OriginalFileName: 'KrbRelayUp.exe' # In case the file has been renamed after compilation
    selection_cli_1:
        CommandLine|contains|all:
            - ' relay '
            - ' -Domain '
            - ' -ComputerName '
    selection_cli_2:
        CommandLine|contains|all:
            - ' krbscm '
            - ' -sc '
    selection_cli_3:
        CommandLine|contains|all:
            - ' spawn '
            - ' -d '
            - ' -cn '
            - ' -cp '
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli_1

selection_cli_1:
    CommandLine|contains|all:
        - ' relay '
        - ' -Domain '
        - ' -ComputerName '

Stage 3: selection_cli_2

selection_cli_2:
    CommandLine|contains|all:
        - ' krbscm '
        - ' -sc '

Stage 4: selection_cli_3

selection_cli_3:
    CommandLine|contains|all:
        - ' spawn '
        - ' -d '
        - ' -cn '
        - ' -cp '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -ComputerName
  • -Domain
  • -cn
  • -cp
  • -d corpus 8 (sigma 7, splunk 1)
  • -sc corpus 3 (sigma 3)
  • krbscm
  • relay corpus 2 (sigma 2)
  • spawn
field:"CommandLine" kind:match
Imageends_with
  • \KrbRelayUp.exe
field:"Image" kind:ends_with value:"\KrbRelayUp.exe"
OriginalFileNameeq
  • KrbRelayUp.exe
field:"OriginalFileName" kind:eq value:"KrbRelayUp.exe"

HackTool Service Registration or Execution

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

Detects installation or execution of services

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool Service Registration or Execution
id: d26ce60c-2151-403c-9a42-49420d87b5e4
status: test
description: Detects installation or execution of services
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2022-03-21
modified: 2023-08-07
tags:
    - attack.execution
    - attack.t1569.002
    - attack.s0029
logsource:
    product: windows
    service: system
detection:
    selection_eid:
        Provider_Name: 'Service Control Manager'
        EventID:
            - 7045
            - 7036
    selection_service_name:
        ServiceName|contains:
            - 'cachedump'
            - 'DumpSvc'
            - 'gsecdump'
            - 'pwdump'
            - 'UACBypassedService'
            - 'WCE SERVICE'
            - 'WCESERVICE'
            - 'winexesvc'
    selection_service_image:
        ImagePath|contains: 'bypass' # https://gist.github.com/tyranid/c24cfd1bd141d14d4925043ee7e03c82#file-scmuacbypass-cpp-L159
    condition: selection_eid and 1 of selection_service_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_eid and 1 of selection_service_*

Stage 1: selection_eid

selection_eid:
    Provider_Name: 'Service Control Manager'
    EventID:
        - 7045
        - 7036

Stage 2: selection_service_name

selection_service_name:
    ServiceName|contains:
        - 'cachedump'
        - 'DumpSvc'
        - 'gsecdump'
        - 'pwdump'
        - 'UACBypassedService'
        - 'WCE SERVICE'
        - 'WCESERVICE'
        - 'winexesvc'

Stage 3: selection_service_image

selection_service_image:
    ImagePath|contains: 'bypass'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImagePathmatch
  • bypass
field:"ImagePath" kind:match value:"bypass"
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"
ServiceNamematch
  • DumpSvc
  • UACBypassedService
  • WCE SERVICE
  • WCESERVICE
  • cachedump
  • gsecdump
  • pwdump
  • winexesvc
field:"ServiceName" kind:match

Invoke-Obfuscation Via Use MSHTA - System

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

Detects Obfuscated Powershell via use MSHTA in Scripts

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation Via Use MSHTA - System
id: 7e9c7999-0f9b-4d4a-a6ed-af6d553d4af4
status: test
description: Detects Obfuscated Powershell via use MSHTA in Scripts
references:
    - https://github.com/SigmaHQ/sigma/issues/1009 # (Task31)
author: Nikita Nazarov, oscd.community
date: 2020-10-09
modified: 2022-11-29
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
        ImagePath|contains|all:
            - 'mshta'
            - 'vbscript:createobject'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name: 'Service Control Manager'
    EventID: 7045
    ImagePath|contains|all:
        - 'mshta'
        - 'vbscript:createobject'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImagePathmatch
  • mshta corpus 2 (sigma 2)
  • vbscript:createobject
field:"ImagePath" kind:match
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"

New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock

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

Detects when a powershell script contains calls to the "New-NetFirewallRule" cmdlet in order to add a new firewall rule with an "Allow" action.

Known False Positives

  • Administrator script

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet - ScriptBlock
id: 8d31dd2e-b582-48ca-826e-dcaa2c1ca264
related:
    - id: 51483085-0cba-46a8-837e-4416496d6971
      type: similar
status: test
description: |
    Detects when a powershell script contains calls to the "New-NetFirewallRule" cmdlet in order to add a new firewall rule with an "Allow" action.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1562.004/T1562.004.md#atomic-test-24---set-a-firewall-rule-using-new-netfirewallrule
    - https://malware.news/t/the-rhysida-ransomware-activity-analysis-and-ties-to-vice-society/72170
    - https://cybersecuritynews.com/rhysida-ransomware-attacking-windows/
author: frack113
date: 2024-05-10
tags:
    - attack.defense-impairment
    - attack.t1686.003
    - detection.threat-hunting
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains: 'New-NetFirewallRule*-Action*Allow'
    condition: selection
falsepositives:
    - Administrator script
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains: 'New-NetFirewallRule*-Action*Allow'

Indicators

These rows show field, operator, and value matches.

OpenCanary - NMAP OS Scan

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

Detects instances where an OpenCanary node has been targeted by a NMAP OS Scan

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Rule Body

title: OpenCanary - NMAP OS Scan
id: e8a677fd-248c-4eab-94df-de2f6f645884
status: experimental
description: Detects instances where an OpenCanary node has been targeted by a NMAP OS Scan
references:
    - https://opencanary.readthedocs.io/en/latest/starting/configuration.html#services-configuration
    - https://github.com/thinkst/opencanary/blob/a0896adfcaf0328cfd5829fe10d2878c7445138e/opencanary/logger.py#L52
author: Marco Pedrinazzi (@pedrinazziM)
date: 2026-01-06
tags:
    - attack.discovery
    - attack.t1046
logsource:
    category: application
    product: opencanary
detection:
    selection:
        logtype: 5002
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    logtype: 5002

Indicators

These rows show field, operator, and value matches.

PetitPotam Suspicious Kerberos TGT Request

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

Detect suspicious Kerberos TGT requests. Once an attacer obtains a computer certificate by abusing Active Directory Certificate Services in combination with PetitPotam, the next step would be to leverage the certificate for malicious purposes. One way of doing this is to request a Kerberos Ticket Granting Ticket using a tool like Rubeus. This request will generate a 4768 event with some unusual fields depending on the environment. This analytic will require tuning, we recommend filtering Account_Name to the Domain Controller computer accounts.

Known False Positives

  • False positives are possible if the environment is using certificates for authentication. We recommend filtering Account_Name to the Domain Controller computer accounts.

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: PetitPotam Suspicious Kerberos TGT Request
id: 6a53d871-682d-40b6-83e0-b7c1a6c4e3a5
status: test
description: |
    Detect suspicious Kerberos TGT requests.
    Once an attacer obtains a computer certificate by abusing Active Directory Certificate Services in combination with PetitPotam, the next step would be to leverage the certificate for malicious purposes.
    One way of doing this is to request a Kerberos Ticket Granting Ticket using a tool like Rubeus.
    This request will generate a 4768 event with some unusual fields depending on the environment.
    This analytic will require tuning, we recommend filtering Account_Name to the Domain Controller computer accounts.
references:
    - https://github.com/topotam/PetitPotam
    - https://isc.sans.edu/forums/diary/Active+Directory+Certificate+Services+ADCS+PKI+domain+admin+vulnerability/27668/
    - https://github.com/splunk/security_content/blob/88d689fe8a055d8284337b9fad5d9152b42043db/detections/endpoint/petitpotam_suspicious_kerberos_tgt_request.yml
author: Mauricio Velazco, Michael Haag
date: 2021-09-02
modified: 2022-10-05
tags:
    - attack.credential-access
    - attack.t1187
logsource:
    product: windows
    service: security
    definition: 'The advanced audit policy setting "Account Logon > Kerberos Authentication Service" must be configured for Success/Failure'
detection:
    selection:
        EventID: 4768
        TargetUserName|endswith: '$'
        CertThumbprint|contains: '*'
    filter_local:
        IpAddress: '::1'
    filter_thumbprint:
        CertThumbprint: ''
    condition: selection and not 1 of filter_*
falsepositives:
    - False positives are possible if the environment is using certificates for authentication. We recommend filtering Account_Name to the Domain Controller computer accounts.
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    EventID: 4768
    TargetUserName|endswith: '$'
    CertThumbprint|contains: '*'

Stage 2: not filter_*

filter_local:
    IpAddress: '::1'
filter_thumbprint:
    CertThumbprint: ''

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
IpAddresseq::1excludes:IpAddress field:"IpAddress" value:"::1"

Potential Product Class Reconnaissance Via Wmic.EXE

#
Status
test
Severity
medium
Author
Michael Haag, Florian Roth (Nextron Systems), juju4, oscd.community, Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of WMIC in order to get a list of firewall, antivirus and antispywware products. Adversaries often enumerate security products installed on a system to identify security controls and potential ways to evade detection or disable protection mechanisms. This information helps them plan their next attack steps and choose appropriate techniques to bypass security measures.

Known False Positives

  • Legitimate use of wmic.exe for reconnaissance of firewall, antivirus and antispywware products.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Product Class Reconnaissance Via Wmic.EXE
id: e568650b-5dcd-4658-8f34-ded0b1e13992
status: test
description: |
    Detects the execution of WMIC in order to get a list of firewall, antivirus and antispywware products.
    Adversaries often enumerate security products installed on a system to identify security controls and potential ways to evade detection or disable protection mechanisms.
    This information helps them plan their next attack steps and choose appropriate techniques to bypass security measures.
references:
    - https://github.com/albertzsigovits/malware-notes/blob/c820c7fea76cf76a861b28ebc77e06100e20ec29/Ransomware/Maze.md
    - https://www.hybrid-analysis.com/sample/4be06ecd234e2110bd615649fe4a6fa95403979acf889d7e45a78985eb50acf9?environmentId=1
    - https://www.trendmicro.com/en_us/research/25/c/socgholishs-intrusion-techniques-facilitate-distribution-of-rans.html
author: Michael Haag, Florian Roth (Nextron Systems), juju4, oscd.community, Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2023-02-14
modified: 2025-03-17
tags:
    - attack.execution
    - attack.t1047
    - attack.discovery
    - attack.t1082
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\wmic.exe'
        - OriginalFileName: 'wmic.exe'
    selection_cli:
        # Example: wmic.exe /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List
        CommandLine|contains:
            - 'AntiVirusProduct'
            - 'AntiSpywareProduct'
            - 'FirewallProduct'
    condition: all of selection_*
falsepositives:
    - Legitimate use of wmic.exe for reconnaissance of firewall, antivirus and antispywware products.
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_wmic_recon_product_class/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - 'AntiVirusProduct'
        - 'AntiSpywareProduct'
        - 'FirewallProduct'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • AntiSpywareProduct
  • AntiVirusProduct
  • FirewallProduct
field:"CommandLine" kind:match
Imageends_with
  • \wmic.exe corpus 62 (sigma 62)
field:"Image" kind:ends_with value:"\wmic.exe"
OriginalFileNameeq
  • wmic.exe corpus 74 (sigma 38, elastic 18, splunk 18)
field:"OriginalFileName" kind:eq value:"wmic.exe"

Potentially Suspicious Call To Win32_NTEventlogFile Class - PSScript

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

Detects usage of the WMI class "Win32_NTEventlogFile" in a potentially suspicious way (delete, backup, change permissions, etc.) from a PowerShell script

Known False Positives

  • Legitimate administration and backup scripts

MITRE ATT&CK Coverage

TacticTechniques
Defense ImpairmentNo specific technique

Telemetry Coverage

Rule Body

title: Potentially Suspicious Call To Win32_NTEventlogFile Class - PSScript
id: e2812b49-bae0-4b21-b366-7c142eafcde2
status: test
description: Detects usage of the WMI class "Win32_NTEventlogFile" in a potentially suspicious way (delete, backup, change permissions, etc.) from a PowerShell script
references:
    - https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa394225(v=vs.85)
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-07-13
tags:
    - attack.defense-impairment
logsource:
    category: ps_script
    product: windows
    definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
    selection_class:
        ScriptBlockText|contains: 'Win32_NTEventlogFile'
    selection_function:
        ScriptBlockText|contains:
            - '.BackupEventlog('
            - '.ChangeSecurityPermissions('
            - '.ChangeSecurityPermissionsEx('
            - '.ClearEventLog('
            - '.Delete('
            - '.DeleteEx('
            - '.Rename('
            - '.TakeOwnerShip('
            - '.TakeOwnerShipEx('
    condition: all of selection_*
falsepositives:
    - Legitimate administration and backup scripts
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_class

selection_class:
    ScriptBlockText|contains: 'Win32_NTEventlogFile'

Stage 2: selection_function

selection_function:
    ScriptBlockText|contains:
        - '.BackupEventlog('
        - '.ChangeSecurityPermissions('
        - '.ChangeSecurityPermissionsEx('
        - '.ClearEventLog('
        - '.Delete('
        - '.DeleteEx('
        - '.Rename('
        - '.TakeOwnerShip('
        - '.TakeOwnerShipEx('

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • .BackupEventlog(
  • .ChangeSecurityPermissions(
  • .ChangeSecurityPermissionsEx(
  • .ClearEventLog(
  • .Delete(
  • .DeleteEx(
  • .Rename(
  • .TakeOwnerShip(
  • .TakeOwnerShipEx(
  • Win32_NTEventlogFile
field:"ScriptBlockText" kind:match

Potentially Suspicious Desktop Background Change Via Registry

#
Status
test
Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems), Stephen Lincoln @slincoln-aiq (AttackIQ)
Source
github.com/SigmaHQ/sigma

Detects registry value settings that would replace the user's desktop background. This is a common technique used by malware to change the desktop background to a ransom note or other image.

Known False Positives

  • Administrative scripts that change the desktop background to a company logo or other image.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potentially Suspicious Desktop Background Change Via Registry
id: 85b88e05-dadc-430b-8a9e-53ff1cd30aae
related:
    - id: 8cbc9475-8d05-4e27-9c32-df960716c701
      type: similar
status: test
description: |
    Detects registry value settings that would replace the user's desktop background.
    This is a common technique used by malware to change the desktop background to a ransom note or other image.
references:
    - https://www.attackiq.com/2023/09/20/emulating-rhysida/
    - https://research.checkpoint.com/2023/the-rhysida-ransomware-activity-analysis-and-ties-to-vice-society/
    - https://www.trendmicro.com/en_us/research/23/h/an-overview-of-the-new-rhysida-ransomware.html
    - https://www.virustotal.com/gui/file/a864282fea5a536510ae86c77ce46f7827687783628e4f2ceb5bf2c41b8cd3c6/behavior
    - https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.WindowsDesktop::Wallpaper
    - https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.ControlPanelDisplay::CPL_Personalization_NoDesktopBackgroundUI
author: Nasreddine Bencherchali (Nextron Systems), Stephen Lincoln @slincoln-aiq (AttackIQ)
date: 2023-12-21
modified: 2025-10-17
tags:
    - attack.persistence
    - attack.impact
    - attack.defense-impairment
    - attack.t1112
    - attack.t1491.001
logsource:
    product: windows
    category: registry_set
detection:
    selection_keys:
        TargetObject|contains:
            - 'Control Panel\Desktop'
            - 'CurrentVersion\Policies\ActiveDesktop'
            - 'CurrentVersion\Policies\System'
    selection_values_1:
        TargetObject|endswith: 'NoChangingWallpaper'
        Details: 'DWORD (0x00000001)' # Prevent changing desktop background
    selection_values_2:
        TargetObject|endswith: '\Wallpaper'
    selection_values_3:
        TargetObject|endswith: '\WallpaperStyle'
        Details: '2' # Stretch
    filter_main_svchost:
        # Note: Excluding GPO changes
        Image|endswith: '\svchost.exe'
    filter_main_empty:
        TargetObject|endswith: '\Control Panel\Desktop\Wallpaper'
        Details: '(Empty)'
    filter_main_explorer:
        # Normally Explorer.exe is the process that changes the desktop background
        Image|endswith: 'C:\Windows\Explorer.EXE'
    filter_optional_ec2launch:
        Image:
            - 'C:\Program Files\Amazon\EC2Launch\EC2Launch.exe'
            - 'C:\Program Files (x86)\Amazon\EC2Launch\EC2Launch.exe'
        TargetObject|endswith: '\Control Panel\Desktop\Wallpaper'
    condition: selection_keys and 1 of selection_values_* and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Administrative scripts that change the desktop background to a company logo or other image.
level: medium

Stages and Predicates

Stage 0: condition

selection_keys and 1 of selection_values_* and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection_keys

selection_keys:
    TargetObject|contains:
        - 'Control Panel\Desktop'
        - 'CurrentVersion\Policies\ActiveDesktop'
        - 'CurrentVersion\Policies\System'

Stage 2: selection_values_1

selection_values_1:
    TargetObject|endswith: 'NoChangingWallpaper'
    Details: 'DWORD (0x00000001)'

Stage 3: selection_values_2

selection_values_2:
    TargetObject|endswith: '\Wallpaper'

Stage 4: selection_values_3

selection_values_3:
    TargetObject|endswith: '\WallpaperStyle'
    Details: '2'

Stage 5: not filter_main_*

filter_main_svchost:
    Image|endswith: '\svchost.exe'
filter_main_empty:
    TargetObject|endswith: '\Control Panel\Desktop\Wallpaper'
    Details: '(Empty)'
filter_main_explorer:
    Image|endswith: 'C:\Windows\Explorer.EXE'

Stage 6: not filter_optional_ec2launch

filter_optional_ec2launch:
    Image:
        - 'C:\Program Files\Amazon\EC2Launch\EC2Launch.exe'
        - 'C:\Program Files (x86)\Amazon\EC2Launch\EC2Launch.exe'
    TargetObject|endswith: '\Control Panel\Desktop\Wallpaper'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailseq
  • 2 corpus 3 (elastic 2, sigma 1)
  • DWORD (0x00000001) corpus 36 (sigma 36)
field:"Details" kind:eq
TargetObjectends_with
  • NoChangingWallpaper
  • \Wallpaper
  • \WallpaperStyle
field:"TargetObject" kind:ends_with
TargetObjectmatch
  • Control Panel\Desktop
  • CurrentVersion\Policies\ActiveDesktop
  • CurrentVersion\Policies\System
field:"TargetObject" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Detailseq(Empty)excludes:Details field:"Details" value:"(Empty)"
TargetObjectends_with\Control Panel\Desktop\Wallpaperexcludes:TargetObject field:"TargetObject" value:"\Control Panel\Desktop\Wallpaper"
Imageends_withC:\Windows\Explorer.EXEexcludes:Image field:"Image" value:"C:\Windows\Explorer.EXE"
Imageends_with\svchost.exeexcludes:Image field:"Image" value:"\svchost.exe"
ImageeqC:\Program Files (x86)\Amazon\EC2Launch\EC2Launch.exeexcludes:Image field:"Image" value:"C:\Program Files (x86)\Amazon\EC2Launch\EC2Launch.exe"
ImageeqC:\Program Files\Amazon\EC2Launch\EC2Launch.exeexcludes:Image field:"Image" value:"C:\Program Files\Amazon\EC2Launch\EC2Launch.exe"

RedSun - Conhost.exe Spawned by TieringEngineService.exe

#
Status
experimental
Severity
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems), @unresolvedhost
Source
github.com/SigmaHQ/sigma

Detects two stages of the RedSun post-exploitation process chain that deliver a SYSTEM-level shell to the attacker's interactive session. Observed process chain services.exe → TieringEngineService.exe → conhost.exe (SYSTEM, CommandLine: bare path, no arguments) → cmd.exe / shell (SYSTEM, TerminalSessionId = attacker's session) Stage 1 — TieringEngineService.exe spawns argument-less conhost.exe: After winning the oplock + Cloud Files mount point race, the malicious TieringEngineService.exe (RedSun.exe copied to System32, started via CoCreateInstance / services.exe) detects it is NT AUTHORITY\SYSTEM and calls LaunchConsoleInSessionId(). This opens \.\pipe\REDSUN, reads the attacker's session ID, duplicates the SYSTEM token, re-stamps it with that session ID via SetTokenInformation(TokenSessionId), then calls CreateProcessAsUser to spawn conhost.exe with no arguments. Stage 2 — Shell spawned from rogue conhost.exe (EDR sources with GrandParentImage): The rogue SYSTEM conhost.exe spawns a shell (cmd.exe, PowerShell, etc.) as SYSTEM in the attacker's interactive session. On EDR sources that expose GrandParentImage, the full three-level chain (TieringEngineService.exe → conhost.exe → shell) can be matched directly. The legitimate TieringEngineService.exe is a headless COM server that is unlikely to spawn conhost.exe under normal conditions.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: RedSun - Conhost.exe Spawned by TieringEngineService.exe
id: 2ad78473-6978-40f5-b8f1-89c7e1c27a1a
status: experimental
description: |
    Detects two stages of the RedSun post-exploitation process chain that deliver a SYSTEM-level shell to the attacker's interactive session.
    Observed process chain
      services.exe
        → TieringEngineService.exe
          → conhost.exe             (SYSTEM, CommandLine: bare path, no arguments)
            → cmd.exe / shell       (SYSTEM, TerminalSessionId = attacker's session)

    Stage 1 — TieringEngineService.exe spawns argument-less conhost.exe:
      After winning the oplock + Cloud Files mount point race, the malicious TieringEngineService.exe (RedSun.exe copied to System32, started via CoCreateInstance
      / services.exe) detects it is NT AUTHORITY\SYSTEM and calls LaunchConsoleInSessionId().
      This opens \\.\pipe\REDSUN, reads the attacker's session ID, duplicates the SYSTEM token, re-stamps it with that session ID via SetTokenInformation(TokenSessionId), then
      calls CreateProcessAsUser to spawn conhost.exe with no arguments.

    Stage 2 — Shell spawned from rogue conhost.exe (EDR sources with GrandParentImage):
      The rogue SYSTEM conhost.exe spawns a shell (cmd.exe, PowerShell, etc.) as SYSTEM in the attacker's interactive session.
      On EDR sources that expose GrandParentImage, the full three-level chain (TieringEngineService.exe → conhost.exe → shell) can be matched directly.
      The legitimate TieringEngineService.exe is a headless COM server that is unlikely to spawn conhost.exe under normal conditions.
references:
    - https://github.com/Nightmare-Eclipse/RedSun
author: Swachchhanda Shrawan Poudel (Nextron Systems), @unresolvedhost
date: 2026-04-17
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.002
    - attack.t1036.005
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
    definition: 'Requirements: By default the process_creation type event might not contain the GrandParentImage. Make sure you collect such fields in order to use this rule'
detection:
    # Stage 1: TieringEngineService.exe (malicious) spawns conhost.exe with no arguments
    selection_tiering_to_conhost:
        ParentImage|endswith: '\TieringEngineService.exe'
        Image|endswith: '\conhost.exe'
        CommandLine|endswith: 'conhost.exe"'
        User|contains:
            - 'AUTHORI'
            - 'AUTORI'
            - '$'
    # Stage 2: full three-level chain for EDR sources that expose GrandParentImage
    # GrandParent=TieringEngineService.exe, Parent=conhost.exe, Image=shell process
    selection_shell_full_chain:
        GrandParentImage|endswith: '\TieringEngineService.exe'
        ParentImage|endswith: '\conhost.exe'
        Image|endswith:
            - '\cmd.exe'
            - '\powershell_ise.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
        User|contains:
            - 'AUTHORI'
            - 'AUTORI'
            - '$'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_tiering_to_conhost

selection_tiering_to_conhost:
    ParentImage|endswith: '\TieringEngineService.exe'
    Image|endswith: '\conhost.exe'
    CommandLine|endswith: 'conhost.exe"'
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'
        - '$'

Stage 2: selection_shell_full_chain

selection_shell_full_chain:
    GrandParentImage|endswith: '\TieringEngineService.exe'
    ParentImage|endswith: '\conhost.exe'
    Image|endswith:
        - '\cmd.exe'
        - '\powershell_ise.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'
        - '$'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • conhost.exe"
field:"CommandLine" kind:ends_with
GrandParentImageends_with
  • \TieringEngineService.exe
field:"GrandParentImage" kind:ends_with value:"\TieringEngineService.exe"
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \conhost.exe corpus 4 (sigma 4)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
ParentImageends_with
  • \TieringEngineService.exe
  • \conhost.exe corpus 4 (sigma 4)
field:"ParentImage" kind:ends_with
Usermatch
  • $
  • AUTHORI corpus 14 (sigma 14)
  • AUTORI corpus 14 (sigma 14)
field:"user" kind:match

Remote Access Tool - AnyDesk Execution

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

An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks. These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment. Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)

Known False Positives

  • Legitimate use

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Remote Access Tool - AnyDesk Execution
id: b52e84a3-029e-4529-b09b-71d19dd27e94
status: test
related:
    - id: 065b00ca-5d5c-4557-ac95-64a6d0b64d86
      type: similar
description: |
    An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks.
    These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment.
    Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1219/T1219.md#atomic-test-2---anydesk-files-detected-test-on-windows
    - https://thedfirreport.com/2025/02/24/confluence-exploit-leads-to-lockbit-ransomware/
author: frack113
date: 2022-02-11
modified: 2025-02-24
tags:
    - attack.command-and-control
    - attack.t1219.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith:
              - '\AnyDesk.exe'
              - '\AnyDeskMSI.exe'
        - Description: AnyDesk
        - Product: AnyDesk
        - Company: AnyDesk Software GmbH
    condition: selection
falsepositives:
    - Legitimate use
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_remote_access_tools_anydesk/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|endswith:
          - '\AnyDesk.exe'
          - '\AnyDeskMSI.exe'
    - Description: AnyDesk
    - Product: AnyDesk
    - Company: AnyDesk Software GmbH

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Companyeq
  • AnyDesk Software GmbH corpus 3 (sigma 3)
field:"Company" kind:eq value:"AnyDesk Software GmbH"
Descriptioneq
  • AnyDesk corpus 3 (sigma 3)
field:"Description" kind:eq value:"AnyDesk"
Imageends_with
  • \AnyDesk.exe corpus 5 (sigma 5)
  • \AnyDeskMSI.exe corpus 4 (sigma 4)
field:"Image" kind:ends_with
Producteq
  • AnyDesk corpus 3 (sigma 3)
field:"Product" kind:eq value:"AnyDesk"

Renamed ProcDump Execution

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

Detects the execution of a renamed ProcDump executable. This often done by attackers or malware in order to evade defensive mechanisms.

Known False Positives

  • Procdump illegally bundled with legitimate software.
  • Administrators who rename binaries (should be investigated).

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed ProcDump Execution
id: 4a0b2c7e-7cb2-495d-8b63-5f268e7bfd67
related:
    - id: 03795938-1387-481b-9f4c-3f6241e604fe
      type: obsolete
status: test
description: |
    Detects the execution of a renamed ProcDump executable.
    This often done by attackers or malware in order to evade defensive mechanisms.
references:
    - https://learn.microsoft.com/en-us/sysinternals/downloads/procdump
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2019-11-18
modified: 2026-06-29
tags:
    - attack.stealth
    - attack.t1036.003
logsource:
    product: windows
    category: process_creation
detection:
    selection_ofn:
        OriginalFileName: 'procdump'
    selection_cli_dump_flag:
        CommandLine|contains|windash:
            - ' -ma ' # Full Dump
            - ' -mp ' # Mini Plus
    selection_cli_eula_flag:
        # Note: Even though the "accepteula" flag isn't required. We add it to avoid collision with similar utilities.
        CommandLine|contains|windash: ' /accepteula'
    filter_main_known_names:
        Image|endswith:
            - '\procdump.exe'
            - '\procdump64.exe'
            - '\procdump64a.exe'
    condition: (selection_ofn or all of selection_cli_*) and not 1 of filter_main_*
falsepositives:
    - Procdump illegally bundled with legitimate software.
    - Administrators who rename binaries (should be investigated).
level: high

Stages and Predicates

Stage 0: condition

(selection_ofn or all of selection_cli_*) and not 1 of filter_main_*

Stage 1: selection_ofn

selection_ofn:
    OriginalFileName: 'procdump'

Stage 2: selection_cli_dump_flag

selection_cli_dump_flag:
    CommandLine|contains|windash:
        - ' -ma '
        - ' -mp '

Stage 3: selection_cli_eula_flag

selection_cli_eula_flag:
    CommandLine|contains|windash: ' /accepteula'

Stage 4: not filter_main_known_names

filter_main_known_names:
    Image|endswith:
        - '\procdump.exe'
        - '\procdump64.exe'
        - '\procdump64a.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -accepteula corpus 2 (sigma 2)
  • -ma corpus 4 (sigma 4)
  • -mp corpus 3 (sigma 3)
  • /accepteula corpus 2 (sigma 2)
  • /ma corpus 2 (sigma 2)
  • /mp corpus 2 (sigma 2)
  • –accepteula corpus 2 (sigma 2)
  • –ma corpus 2 (sigma 2)
  • –mp corpus 2 (sigma 2)
  • —accepteula corpus 2 (sigma 2)
  • —ma corpus 2 (sigma 2)
  • —mp corpus 2 (sigma 2)
  • ―accepteula corpus 2 (sigma 2)
  • ―ma corpus 2 (sigma 2)
  • ―mp corpus 2 (sigma 2)
field:"CommandLine" kind:match
OriginalFileNameeq
  • procdump corpus 5 (sigma 2, elastic 2, splunk 1)
field:"OriginalFileName" kind:eq value:"procdump"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\procdump.exeexcludes:Image field:"Image" value:"\procdump.exe"
Imageends_with\procdump64.exeexcludes:Image field:"Image" value:"\procdump64.exe"
Imageends_with\procdump64a.exeexcludes:Image field:"Image" value:"\procdump64a.exe"

Renamed Visual Studio Code Tunnel Execution

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

Detects renamed Visual Studio Code tunnel execution. Attackers can abuse this functionality to establish a C2 channel

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Renamed Visual Studio Code Tunnel Execution
id: 2cf29f11-e356-4f61-98c0-1bdb9393d6da
status: test
description: Detects renamed Visual Studio Code tunnel execution. Attackers can abuse this functionality to establish a C2 channel
references:
    - https://ipfyx.fr/post/visual-studio-code-tunnel/
    - https://badoption.eu/blog/2023/01/31/code_c2.html
    - https://code.visualstudio.com/docs/remote/tunnels
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-09-28
modified: 2025-10-29
tags:
    - attack.command-and-control
    - attack.t1071.001
    - attack.t1219
logsource:
    category: process_creation
    product: windows
detection:
    selection_image_only_tunnel:
        OriginalFileName: null
        CommandLine|endswith: '.exe tunnel'
    selection_image_tunnel_args:
        CommandLine|contains|all:
            - '.exe tunnel'
            - '--accept-server-license-terms'
    selection_image_tunnel_service:
        CommandLine|contains|all:
            - 'tunnel '
            - 'service'
            - 'internal-run'
            - 'tunnel-service.log'
    selection_parent_tunnel:
        ParentCommandLine|endswith: ' tunnel'
        Image|endswith: '\cmd.exe'
        CommandLine|contains|all:
            - '/d /c '
            - '\servers\Stable-'
            - 'code-server.cmd'
    filter_main_parent_code:
        ParentImage|endswith:
            - '\code-tunnel.exe'
            - '\code.exe'
    filter_main_image_code:
        Image|endswith:
            - '\code-tunnel.exe'
            - '\code.exe'
    condition: (1 of selection_image_* and not 1 of filter_main_image_*) or (selection_parent_tunnel and not 1 of filter_main_parent_*)
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

(1 of selection_image_* and not 1 of filter_main_image_*) or (selection_parent_tunnel and not 1 of filter_main_parent_*)

Stage 1: selection_image_only_tunnel

selection_image_only_tunnel:
    OriginalFileName: null
    CommandLine|endswith: '.exe tunnel'

Stage 2: selection_image_tunnel_args

selection_image_tunnel_args:
    CommandLine|contains|all:
        - '.exe tunnel'
        - '--accept-server-license-terms'

Stage 3: selection_image_tunnel_service

selection_image_tunnel_service:
    CommandLine|contains|all:
        - 'tunnel '
        - 'service'
        - 'internal-run'
        - 'tunnel-service.log'

Stage 4: not filter_main_image_code

filter_main_image_code:
    Image|endswith:
        - '\code-tunnel.exe'
        - '\code.exe'

Stage 5: selection_parent_tunnel

selection_parent_tunnel:
    ParentCommandLine|endswith: ' tunnel'
    Image|endswith: '\cmd.exe'
    CommandLine|contains|all:
        - '/d /c '
        - '\servers\Stable-'
        - 'code-server.cmd'

Stage 6: not filter_main_parent_code

filter_main_parent_code:
    ParentImage|endswith:
        - '\code-tunnel.exe'
        - '\code.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • .exe tunnel corpus 2 (sigma 2)
field:"CommandLine" kind:ends_with value:".exe tunnel"
CommandLinematch
  • --accept-server-license-terms corpus 3 (sigma 3)
  • .exe tunnel corpus 2 (sigma 2)
  • /d /c corpus 2 (sigma 2)
  • \servers\Stable- corpus 2 (sigma 2)
  • code-server.cmd corpus 2 (sigma 2)
  • internal-run corpus 2 (sigma 2)
  • service corpus 5 (sigma 4, splunk 1)
  • tunnel corpus 2 (sigma 2)
  • tunnel-service.log corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
field:"Image" kind:ends_with value:"\cmd.exe"
OriginalFileNameis_null
  • (no value, null check)
field:"OriginalFileName" kind:is_null
ParentCommandLineends_with
  • tunnel corpus 2 (sigma 2)
field:"ParentCommandLine" kind:ends_with value:" tunnel"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with\code-tunnel.exeexcludes:Image field:"Image" value:"\code-tunnel.exe"
Imageends_with\code.exeexcludes:Image field:"Image" value:"\code.exe"
ParentImageends_with\code-tunnel.exeexcludes:ParentImage field:"ParentImage" value:"\code-tunnel.exe"
ParentImageends_with\code.exeexcludes:ParentImage field:"ParentImage" value:"\code.exe"

Replication privileges granted to perform DCSync attack

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

Detects scenarios where an attacker grants replication privilege to an account to exflitrate Active Directory credentials

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Replication privileges granted to perform DCSync attack
description: Detects scenarios where an attacker grants replication privilege to an account to exflitrate Active Directory credentials
requirements: auditing SACL "Modify permissions" must be placed on the root domain container (otherwise not visible) using the Active Directory console (https://www.manageengine.com/products/active-directory-audit/active-directory-auditing-configuration-guide-configure-object-level-auditing-manually.html).
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/
- https://www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/dump-password-hashes-from-domain-controller-with-dcsync
- https://attack.stealthbits.com/privilege-escalation-using-mimikatz-dcsync
- https://blog.fox-it.com/2018/04/26/escalating-privileges-with-acls-in-active-directory/
- https://simondotsh.com/infosec/2022/07/11/dirsync.html
- https://www.logpoint.com/en/blog/compromises-in-azure-ad-through-aad-connect/
tags:
  - attack.credential_access
  - attack.t1222.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5136
    AttributeLDAPDisplayName: ntSecurityDescriptor
    OperationType: '%%14674'  # value added  
    AttributeValue|contains:
      - 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 # DS-Replication-Get-Changes
      - 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 # DS-Replication-Get-Changes-All
      - 89e95b76-444d-4c62-991a-0facbeda640c # DS-Replication-Get-Changes-In-Filtered-Set
  filter:
    SubjectUserName|endswith: $
  condition: selection and not filter
falsepositives:
- Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 5136
  AttributeLDAPDisplayName: ntSecurityDescriptor
  OperationType: '%%14674'
  AttributeValue|contains:
    - 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2
    - 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2
    - 89e95b76-444d-4c62-991a-0facbeda640c

Stage 2: not filter

filter:
  SubjectUserName|endswith: $

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AttributeLDAPDisplayNameeq
  • ntSecurityDescriptor corpus 7 (sigma 6, elastic 1)
field:"AttributeLDAPDisplayName" kind:eq value:"ntSecurityDescriptor"
AttributeValuematch
  • 1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 corpus 2 (sigma 2)
  • 1131f6ad-9c07-11d1-f79f-00c04fc2dcd2 corpus 2 (sigma 2)
  • 89e95b76-444d-4c62-991a-0facbeda640c corpus 2 (sigma 2)
field:"AttributeValue" kind:match
OperationTypeeq
  • %%14674 corpus 16 (sigma 9, splunk 4, elastic 3)
field:"OperationType" kind:eq value:"%%14674"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SubjectUserNameends_with$excludes:SubjectUserName field:"SubjectUserName" value:"$"

Risk for account takeover - same Guardian application device is registered for MFA to multiple users

#
Status
experimental
Severity
medium
Author
Okta
Source
github.com/auth0/auth0-customer-detections

An adversary may register their own MFA devices, often leveraging the same device for multiple compromised accounts to maintain persistence.

Known False Positives

  • Legitimate users using the same device for multiple accounts, e.g. shared devices in family or work environments.

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Rule Body

title: Risk for account takeover - same Guardian application device is registered for MFA to multiple users
id: bad8fcc0-716e-11f0-b852-723487b9527c
status: experimental
description: |
    An adversary may register their own MFA devices, often leveraging the same device for multiple compromised accounts to maintain persistence.
author: Okta
date: 2025-07-11
modified: 2025-09-02
logsource:
    product: auth0
detection:
    selection:
        data.type: gd_enrollment_complete
        data.description: "Guardian - Enrollment complete"
    condition: selection
explanation: >
    The detection is tracking Guardian app enrollment identifiers across users.
    The Splunk query when more than 1 user has been registered with the same Guardian App - adjust.
splunk: |
    index=auth0 data.tenant_name="{your-tenant-name}"
    data.type=gd_enrollment_complete data.description="Guardian - Enrollment complete"
    | fields data.user_id, data.ip, data.details.enrollment.identifier
    | stats dc(data.user_id) as users_count values(data.ip) by data.details.enrollment.identifier
    | where users_count > 1
comments:
    - The Splunk query above shall be tuned to reflect a valid tenant name.
    - For customer identity, the users can leverage the same MFA for several accounts for legitimate reasons,
      e.g. a user has several accounts in the same tenant across several applications.
    - To filter out false positives, look at the users' emails or users' names.
    - Also, consider adjusting the users_count to decrease sensitivity.
tenant_logs: |
    type: "gd_enrollment_complete" AND description: "Guardian - Enrollment complete"
prevention:
    - Require strong MFA factors.
falsepositives:
    - Legitimate users using the same device for multiple accounts, e.g. shared devices in family or work environments.
level: medium
tags:
    - attack.persistence
    - attack.t1098

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    data.type: gd_enrollment_complete
    data.description: "Guardian - Enrollment complete"

Indicators

These rows show field, operator, and value matches.

Schedule Task Creation From Env Variable Or Potentially Suspicious Path Via Schtasks.EXE

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

Detects Schtask creations that point to a suspicious folder or an environment variable often used by malware

Known False Positives

  • Benign scheduled tasks creations or executions that happen often during software installations
  • Software that uses the AppData folder and scheduled tasks to update the software in the AppData folders

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Schedule Task Creation From Env Variable Or Potentially Suspicious Path Via Schtasks.EXE
id: 81325ce1-be01-4250-944f-b4789644556f
related:
    - id: 43f487f0-755f-4c2a-bce7-d6d2eec2fcf8 # TODO: Recreate after baseline
      type: derived
status: test
description: Detects Schtask creations that point to a suspicious folder or an environment variable often used by malware
references:
    - https://www.welivesecurity.com/2022/01/18/donot-go-do-not-respawn/
    - https://www.joesandbox.com/analysis/514608/0/html#324415FF7D8324231381BAD48A052F85DF04
    - https://blog.talosintelligence.com/gophish-powerrat-dcrat/
author: Florian Roth (Nextron Systems)
date: 2022-02-21
modified: 2025-10-07
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.t1053.005
logsource:
    product: windows
    category: process_creation
detection:
    selection_1_create:
        Image|endswith: '\schtasks.exe'
        CommandLine|contains|windash: ' /create '
    selection_1_all_folders:
        CommandLine|contains:
            - ':\Perflogs'
            - ':\Users\All Users\'
            - ':\Users\Default\'
            - ':\Users\Public'
            - ':\Windows\Temp'
            - '\AppData\Local\'
            - '\AppData\Roaming\'
            - '%AppData%'
            - '%Public%'
    selection_2_parent:
        ParentCommandLine|endswith: '\svchost.exe -k netsvcs -p -s Schedule'
    selection_2_some_folders:
        CommandLine|contains:
            - ':\Perflogs'
            - ':\Windows\Temp'
            - '\Users\Public'
            - '%Public%'
    filter_optional_other:
        - ParentCommandLine|contains: 'unattended.ini'
        - CommandLine|contains: 'update_task.xml'
    filter_optional_team_viewer:
        CommandLine|contains: '/Create /TN TVInstallRestore /TR'
    filter_optional_avira_install:
        # Comment out this filter if you dont use AVIRA
        CommandLine|contains|all:
            - '/Create /Xml '
            - '\Temp\.CR.'
            - '\Avira_Security_Installation.xml'
    filter_optional_avira_other:
        # Comment out this filter if you dont use AVIRA
        CommandLine|contains|all:
            - '/Create /F /TN'
            - '/Xml '
            - '\Temp\'
            - 'Avira_'
        CommandLine|contains:
            - '.tmp\UpdateFallbackTask.xml'
            - '.tmp\WatchdogServiceControlManagerTimeout.xml'
            - '.tmp\SystrayAutostart.xml'
            - '.tmp\MaintenanceTask.xml'
    filter_optional_klite_codec:
        CommandLine|contains|all:
            - '\Temp\'
            - '/Create /TN "klcp_update" /XML '
            - '\klcp_update_task.xml'
    condition: ( all of selection_1_* or all of selection_2_* ) and not 1 of filter_optional_*
falsepositives:
    - Benign scheduled tasks creations or executions that happen often during software installations
    - Software that uses the AppData folder and scheduled tasks to update the software in the AppData folders
level: medium

Stages and Predicates

Stage 0: condition

( all of selection_1_* or all of selection_2_* ) and not 1 of filter_optional_*

Stage 1: selection_1_create

selection_1_create:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|windash: ' /create '

Stage 2: selection_1_all_folders

selection_1_all_folders:
    CommandLine|contains:
        - ':\Perflogs'
        - ':\Users\All Users\'
        - ':\Users\Default\'
        - ':\Users\Public'
        - ':\Windows\Temp'
        - '\AppData\Local\'
        - '\AppData\Roaming\'
        - '%AppData%'
        - '%Public%'

Stage 3: selection_2_parent

selection_2_parent:
    ParentCommandLine|endswith: '\svchost.exe -k netsvcs -p -s Schedule'

Stage 4: selection_2_some_folders

selection_2_some_folders:
    CommandLine|contains:
        - ':\Perflogs'
        - ':\Windows\Temp'
        - '\Users\Public'
        - '%Public%'

Stage 5: not filter_optional_*

filter_optional_other:
    - ParentCommandLine|contains: 'unattended.ini'
    - CommandLine|contains: 'update_task.xml'
filter_optional_team_viewer:
    CommandLine|contains: '/Create /TN TVInstallRestore /TR'
filter_optional_avira_install:
    CommandLine|contains|all:
        - '/Create /Xml '
        - '\Temp\.CR.'
        - '\Avira_Security_Installation.xml'
filter_optional_avira_other:
    CommandLine|contains|all:
        - '/Create /F /TN'
        - '/Xml '
        - '\Temp\'
        - 'Avira_'
    CommandLine|contains:
        - '.tmp\UpdateFallbackTask.xml'
        - '.tmp\WatchdogServiceControlManagerTimeout.xml'
        - '.tmp\SystrayAutostart.xml'
        - '.tmp\MaintenanceTask.xml'
filter_optional_klite_codec:
    CommandLine|contains|all:
        - '\Temp\'
        - '/Create /TN "klcp_update" /XML '
        - '\klcp_update_task.xml'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -create corpus 4 (sigma 4)
  • /create corpus 15 (sigma 15)
  • –create corpus 4 (sigma 4)
  • —create corpus 4 (sigma 4)
  • ―create corpus 4 (sigma 4)
  • %AppData% corpus 11 (sigma 11)
  • %Public% corpus 5 (sigma 5)
  • :\Perflogs corpus 3 (sigma 3)
  • :\Users\All Users\
  • :\Users\Default\ corpus 3 (sigma 3)
  • :\Users\Public corpus 2 (sigma 2)
  • :\Windows\Temp corpus 2 (sigma 2)
  • \AppData\Local\ corpus 11 (sigma 10, elastic 1)
  • \AppData\Roaming\ corpus 17 (sigma 16, elastic 1)
  • \Users\Public
field:"CommandLine" kind:match
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"
ParentCommandLineends_with
  • \svchost.exe -k netsvcs -p -s Schedule
field:"ParentCommandLine" kind:ends_with value:"\svchost.exe -k netsvcs -p -s Schedule"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch.tmp\MaintenanceTask.xmlexcludes:CommandLine field:"CommandLine" value:".tmp\MaintenanceTask.xml"
CommandLinematch.tmp\SystrayAutostart.xmlexcludes:CommandLine field:"CommandLine" value:".tmp\SystrayAutostart.xml"
CommandLinematch.tmp\UpdateFallbackTask.xmlexcludes:CommandLine field:"CommandLine" value:".tmp\UpdateFallbackTask.xml"
CommandLinematch.tmp\WatchdogServiceControlManagerTimeout.xmlexcludes:CommandLine field:"CommandLine" value:".tmp\WatchdogServiceControlManagerTimeout.xml"
CommandLinematch/Create /F /TNexcludes:CommandLine field:"CommandLine" value:"/Create /F /TN"
CommandLinematch/Xml excludes:CommandLine field:"CommandLine" value:"/Xml "
CommandLinematchAvira_excludes:CommandLine field:"CommandLine" value:"Avira_"
CommandLinematch\Temp\excludes:CommandLine field:"CommandLine" value:"\Temp\"
CommandLinematch/Create /TN "klcp_update" /XML excludes:CommandLine
CommandLinematch\klcp_update_task.xmlexcludes:CommandLine field:"CommandLine" value:"\klcp_update_task.xml"
CommandLinematch/Create /Xml excludes:CommandLine field:"CommandLine" value:"/Create /Xml "
CommandLinematch\Avira_Security_Installation.xmlexcludes:CommandLine field:"CommandLine" value:"\Avira_Security_Installation.xml"
CommandLinematch\Temp\.CR.excludes:CommandLine field:"CommandLine" value:"\Temp\.CR."
CommandLinematch/Create /TN TVInstallRestore /TRexcludes:CommandLine field:"CommandLine" value:"/Create /TN TVInstallRestore /TR"
CommandLinematchupdate_task.xmlexcludes:CommandLine field:"CommandLine" value:"update_task.xml"
ParentCommandLinematchunattended.iniexcludes:ParentCommandLine field:"ParentCommandLine" value:"unattended.ini"

Suspicious CertReq Command to Download

#
Status
experimental
Severity
high
Author
Christian Burkard (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects a suspicious CertReq execution downloading a file. This behavior is often used by attackers to download additional payloads or configuration files. Certreq is a built-in Windows utility used to request and retrieve certificates from a certification authority (CA). However, it can be abused by threat actors for malicious purposes.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious CertReq Command to Download
id: 4480827a-9799-4232-b2c4-ccc6c4e9e12b
status: experimental
description: |
    Detects a suspicious CertReq execution downloading a file.
    This behavior is often used by attackers to download additional payloads or configuration files.
    Certreq is a built-in Windows utility used to request and retrieve certificates from a certification authority (CA). However, it can be abused by threat actors for malicious purposes.
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Certreq/
author: Christian Burkard (Nextron Systems)
date: 2021-11-24
modified: 2025-10-29
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\certreq.exe'
        - OriginalFileName: 'CertReq.exe'
    selection_cli_flag_post:
        CommandLine|contains|windash: '-Post'
    selection_cli_flag_config:
        CommandLine|contains|windash: '-config'
    selection_cli_http:
        CommandLine|contains: 'http'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\certreq.exe'
    - OriginalFileName: 'CertReq.exe'

Stage 2: selection_cli_flag_post

selection_cli_flag_post:
    CommandLine|contains|windash: '-Post'

Stage 3: selection_cli_flag_config

selection_cli_flag_config:
    CommandLine|contains|windash: '-config'

Stage 4: selection_cli_http

selection_cli_http:
    CommandLine|contains: 'http'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -Post
  • -config
  • /Post
  • /config corpus 3 (sigma 3)
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
  • –Post
  • –config
  • —Post
  • —config
  • ―Post
  • ―config
field:"CommandLine" kind:match
Imageends_with
  • \certreq.exe corpus 7 (sigma 7)
field:"Image" kind:ends_with value:"\certreq.exe"
OriginalFileNameeq
  • CertReq.exe corpus 2 (sigma 1, elastic 1)
field:"OriginalFileName" kind:eq value:"CertReq.exe"

Suspicious File Write to Webapps Root Directory

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

Detects suspicious file writes to the root directory of web applications, particularly Apache web servers or Tomcat servers. This may indicate an attempt to deploy malicious files such as web shells or other unauthorized scripts.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Suspicious File Write to Webapps Root Directory
id: 89c42960-f244-4dad-9151-ae9b1a3287a2
status: experimental
description: |
    Detects suspicious file writes to the root directory of web applications, particularly Apache web servers or Tomcat servers.
    This may indicate an attempt to deploy malicious files such as web shells or other unauthorized scripts.
references:
    - https://labs.watchtowr.com/guess-who-would-be-stupid-enough-to-rob-the-same-vault-twice-pre-auth-rce-chains-in-commvault/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-10-20
tags:
    - attack.persistence
    - attack.t1505.003
    - attack.initial-access
    - attack.t1190
logsource:
    product: windows
    category: file_event
detection:
    # Add more suspicious processes or paths or extensions as needed
    selection_susp_img:
        Image|endswith:
            - '\dotnet.exe'
            - '\w3wp.exe'
            - '\java.exe'
    selection_servers:
        TargetFilename|contains:
            - '\apache'
            - '\tomcat'
    selection_path:
        TargetFilename|contains: '\webapps\ROOT\'
    selection_susp_extensions:
        TargetFilename|endswith: '.jsp'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_susp_img

selection_susp_img:
    Image|endswith:
        - '\dotnet.exe'
        - '\w3wp.exe'
        - '\java.exe'

Stage 2: selection_servers

selection_servers:
    TargetFilename|contains:
        - '\apache'
        - '\tomcat'

Stage 3: selection_path

selection_path:
    TargetFilename|contains: '\webapps\ROOT\'

Stage 4: selection_susp_extensions

selection_susp_extensions:
    TargetFilename|endswith: '.jsp'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \dotnet.exe corpus 2 (sigma 2)
  • \java.exe
  • \w3wp.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with
TargetFilenameends_with
  • .jsp corpus 5 (sigma 4, splunk 1)
field:"TargetFilename" kind:ends_with value:".jsp"
TargetFilenamematch
  • \apache
  • \tomcat corpus 2 (sigma 2)
  • \webapps\ROOT\
field:"TargetFilename" kind:match

Suspicious Files in Default GPO Folder

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

Detects the creation of copy of suspicious files (EXE/DLL) to the default GPO storage folder

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Suspicious Files in Default GPO Folder
id: 5f87308a-0a5b-4623-ae15-d8fa1809bc60
status: test
description: Detects the creation of copy of suspicious files (EXE/DLL) to the default GPO storage folder
references:
    - https://redcanary.com/blog/intelligence-insights-november-2021/
author: elhoim
date: 2022-04-28
tags:
    - attack.stealth
    - attack.t1036.005
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains: '\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\'
        TargetFilename|endswith:
            - '.dll'
            - '.exe'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains: '\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\'
    TargetFilename|endswith:
        - '.dll'
        - '.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • .dll corpus 24 (sigma 24)
  • .exe corpus 21 (sigma 20, splunk 1)
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • \Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\
field:"TargetFilename" kind:match value:"\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\"

Suspicious Invoke-WebRequest Execution

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

Detects a suspicious call to Invoke-WebRequest cmdlet where the and output is located in a suspicious location

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Invoke-WebRequest Execution
id: 5e3cc4d8-3e68-43db-8656-eaaeefdec9cc
related:
    - id: e218595b-bbe7-4ee5-8a96-f32a24ad3468
      type: derived
status: test
description: Detects a suspicious call to Invoke-WebRequest cmdlet where the and output is located in a suspicious location
references:
    - https://www.sentinelone.com/blog/living-off-windows-defender-lockbit-ransomware-sideloads-cobalt-strike-through-microsoft-security-tool/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-02
modified: 2025-07-18
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell_ise.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'powershell_ise.EXE'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_commands:
        CommandLine|contains:
            # These are all aliases of Invoke-WebRequest
            - 'curl '
            - 'Invoke-WebRequest'
            - 'iwr '
            - 'wget '
    selection_flags:
        CommandLine|contains:
            - ' -ur'
            - ' -o'
    selection_susp_locations:
        CommandLine|contains:
            - '\AppData\'
            - '\Desktop\'
            - '\Temp\'
            - '\Users\Public\'
            - '%AppData%'
            - '%Public%'
            - '%Temp%'
            - '%tmp%'
            - ':\Windows\'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_powershell_invoke_webrequest_download/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_commands

selection_commands:
    CommandLine|contains:
        - 'curl '
        - 'Invoke-WebRequest'
        - 'iwr '
        - 'wget '

Stage 3: selection_flags

selection_flags:
    CommandLine|contains:
        - ' -ur'
        - ' -o'

Stage 4: selection_susp_locations

selection_susp_locations:
    CommandLine|contains:
        - '\AppData\'
        - '\Desktop\'
        - '\Temp\'
        - '\Users\Public\'
        - '%AppData%'
        - '%Public%'
        - '%Temp%'
        - '%tmp%'
        - ':\Windows\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -o corpus 7 (sigma 6, elastic 1)
  • -ur corpus 2 (sigma 2)
  • %AppData% corpus 11 (sigma 11)
  • %Public% corpus 5 (sigma 5)
  • %Temp% corpus 14 (sigma 13, kusto 1)
  • %tmp% corpus 13 (sigma 13)
  • :\Windows\ corpus 2 (sigma 2)
  • Invoke-WebRequest corpus 13 (sigma 10, elastic 3)
  • \AppData\ corpus 11 (sigma 8, elastic 3)
  • \Desktop\ corpus 13 (sigma 13)
  • \Temp\ corpus 5 (sigma 5)
  • \Users\Public\ corpus 18 (sigma 17, elastic 1)
  • curl corpus 11 (sigma 11)
  • iwr corpus 11 (sigma 11)
  • wget corpus 7 (sigma 7)
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • powershell_ise.EXE corpus 52 (splunk 30, sigma 18, elastic 4)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
field:"OriginalFileName" kind:eq

SysKey Registry Keys Access

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

Detects handle requests and access operations to specific registry keys to calculate the SysKey

MITRE ATT&CK Coverage

TacticTechniques
Discovery

Telemetry Coverage

Rule Body

title: SysKey Registry Keys Access
id: 9a4ff3b8-6187-4fd2-8e8b-e0eae1129495
status: test
description: Detects handle requests and access operations to specific registry keys to calculate the SysKey
references:
    - https://threathunterplaybook.com/hunts/windows/190625-RegKeyAccessSyskey/notebook.html
author: Roberto Rodriguez @Cyb3rWard0g
date: 2019-08-12
modified: 2021-11-27
tags:
    - attack.discovery
    - attack.t1012
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID:
            - 4656
            - 4663
        ObjectType: 'key'
        ObjectName|endswith:
            - 'lsa\JD'
            - 'lsa\GBG'
            - 'lsa\Skew1'
            - 'lsa\Data'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID:
        - 4656
        - 4663
    ObjectType: 'key'
    ObjectName|endswith:
        - 'lsa\JD'
        - 'lsa\GBG'
        - 'lsa\Skew1'
        - 'lsa\Data'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ObjectNameends_with
  • lsa\Data
  • lsa\GBG
  • lsa\JD
  • lsa\Skew1
field:"ObjectName" kind:ends_with
ObjectTypeeq
  • key corpus 5 (sigma 5)
field:"ObjectType" kind:eq value:"key"

Trickbot Malware Activity

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

Detects Trickbot malware process tree pattern in which "rundll32.exe" is a parent of "wermgr.exe"

MITRE ATT&CK Coverage

TacticTechniques
Execution

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Trickbot Malware Activity
id: 58bf96d9-ff5f-44bd-8dcc-1c4f79bf3a27
related:
    - id: c37510b8-2107-4b78-aa32-72f251e7a844
      type: similar
status: stable
description: Detects Trickbot malware process tree pattern in which "rundll32.exe" is a parent of "wermgr.exe"
references:
    - https://twitter.com/swisscom_csirt/status/1331634525722521602?s=20
    - https://app.any.run/tasks/f74c5157-8508-4ac6-9805-d63fe7b0d399/
author: Florian Roth (Nextron Systems)
date: 2020-11-26
modified: 2021-11-27
tags:
    - attack.execution
    - attack.t1559
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\wermgr.exe'
        ParentImage|endswith: '\rundll32.exe'
        ParentCommandLine|contains: 'DllRegisterServer'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\wermgr.exe'
    ParentImage|endswith: '\rundll32.exe'
    ParentCommandLine|contains: 'DllRegisterServer'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \wermgr.exe corpus 6 (sigma 5, splunk 1)
field:"Image" kind:ends_with value:"\wermgr.exe"
ParentCommandLinematch
  • DllRegisterServer
field:"ParentCommandLine" kind:match value:"DllRegisterServer"
ParentImageends_with
  • \rundll32.exe corpus 15 (sigma 15)
field:"ParentImage" kind:ends_with value:"\rundll32.exe"

UAC Notification Disabled

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

Detects when an attacker tries to disable User Account Control (UAC) notification by tampering with the "UACDisableNotify" value. UAC is a critical security feature in Windows that prevents unauthorized changes to the operating system. It prompts the user for permission or an administrator password before allowing actions that could affect the system's operation or change settings that affect other users. When "UACDisableNotify" is set to 1, UAC prompts are suppressed.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: UAC Notification Disabled
id: c5f6a85d-b647-40f7-bbad-c10b66bab038
related:
    - id: 0d7ceeef-3539-4392-8953-3dc664912714
      type: similar
    - id: 48437c39-9e5f-47fb-af95-3d663c3f2919
      type: similar
status: test
description: |
    Detects when an attacker tries to disable User Account Control (UAC) notification by tampering with the "UACDisableNotify" value.
    UAC is a critical security feature in Windows that prevents unauthorized changes to the operating system. It prompts the user for permission or an administrator password before allowing actions that could affect the system's operation or change settings that affect other users.
    When "UACDisableNotify" is set to 1, UAC prompts are suppressed.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/7e11e9b79583545f208a6dc3fa062f2ed443d999/atomics/T1548.002/T1548.002.md
    - https://securityintelligence.com/x-force/x-force-hive0129-targeting-financial-institutions-latam-banking-trojan/
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2024-05-10
tags:
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\Microsoft\Security Center\UACDisableNotify'
        Details: 'DWORD (0x00000001)'
    condition: selection
falsepositives:
    - Unknown
level: medium
simulation:
    - type: atomic-red-team
      name: Disable UAC notification via registry keys
      technique: T1548.002
      atomic_guid: 160a7c77-b00e-4111-9e45-7c2a44eda3fd

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetObject|contains: '\Microsoft\Security Center\UACDisableNotify'
    Details: 'DWORD (0x00000001)'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailseq
  • DWORD (0x00000001) corpus 36 (sigma 36)
field:"Details" kind:eq value:"DWORD (0x00000001)"
TargetObjectmatch
  • \Microsoft\Security Center\UACDisableNotify
field:"TargetObject" kind:match value:"\Microsoft\Security Center\UACDisableNotify"

Use NTFS Short Name in Command Line

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

Detect use of the Windows 8.3 short name. Which could be used as a method to avoid command-line detection

Known False Positives

  • Applications could use this notation occasionally which might generate some false positives. In that case Investigate the parent and child process.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Use NTFS Short Name in Command Line
id: dd6b39d9-d9be-4a3b-8fe0-fe3c6a5c1795
related:
    - id: 3ef5605c-9eb9-47b0-9a71-b727e6aa5c3b
      type: similar
status: test
description: Detect use of the Windows 8.3 short name. Which could be used as a method to avoid command-line detection
references:
    - https://www.acunetix.com/blog/articles/windows-short-8-3-filenames-web-security-problem/
    - https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc959352(v=technet.10)
    - https://twitter.com/jonasLyk/status/1555914501802921984
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-05
modified: 2022-09-21
tags:
    - attack.stealth
    - attack.t1564.004
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - '~1.exe'
            - '~1.bat'
            - '~1.msi'
            - '~1.vbe'
            - '~1.vbs'
            - '~1.dll'
            - '~1.ps1'
            - '~1.js'
            - '~1.hta'
            - '~2.exe'
            - '~2.bat'
            - '~2.msi'
            - '~2.vbe'
            - '~2.vbs'
            - '~2.dll'
            - '~2.ps1'
            - '~2.js'
            - '~2.hta'
    filter:
        - ParentImage|endswith:
              - '\WebEx\WebexHost.exe'
              - '\thor\thor64.exe'
        - CommandLine|contains: 'C:\xampp\vcredist\VCREDI~1.EXE'
    condition: selection and not filter
falsepositives:
    - Applications could use this notation occasionally which might generate some false positives. In that case Investigate the parent and child process.
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    CommandLine|contains:
        - '~1.exe'
        - '~1.bat'
        - '~1.msi'
        - '~1.vbe'
        - '~1.vbs'
        - '~1.dll'
        - '~1.ps1'
        - '~1.js'
        - '~1.hta'
        - '~2.exe'
        - '~2.bat'
        - '~2.msi'
        - '~2.vbe'
        - '~2.vbs'
        - '~2.dll'
        - '~2.ps1'
        - '~2.js'
        - '~2.hta'

Stage 2: not filter

filter:
    - ParentImage|endswith:
          - '\WebEx\WebexHost.exe'
          - '\thor\thor64.exe'
    - CommandLine|contains: 'C:\xampp\vcredist\VCREDI~1.EXE'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • ~1.bat
  • ~1.dll
  • ~1.exe
  • ~1.hta
  • ~1.js
  • ~1.msi
  • ~1.ps1
  • ~1.vbe
  • ~1.vbs
  • ~2.bat
  • ~2.dll
  • ~2.exe
  • ~2.hta
  • ~2.js
  • ~2.msi
  • ~2.ps1
  • ~2.vbe
  • ~2.vbs
field:"CommandLine" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematchC:\xampp\vcredist\VCREDI~1.EXEexcludes:CommandLine field:"CommandLine" value:"C:\xampp\vcredist\VCREDI~1.EXE"
ParentImageends_with\WebEx\WebexHost.exeexcludes:ParentImage field:"ParentImage" value:"\WebEx\WebexHost.exe"
ParentImageends_with\thor\thor64.exeexcludes:ParentImage field:"ParentImage" value:"\thor\thor64.exe"

Windows Defender Malware Detection History Deletion

#
Status
test
Severity
informational
Author
Cian Heasley
Source
github.com/SigmaHQ/sigma

Windows Defender logs when the history of detected infections is deleted.

Known False Positives

  • Deletion of Defender malware detections history for legitimate reasons

MITRE ATT&CK Coverage

TacticTechniques
Defense ImpairmentNo specific technique

Telemetry Coverage

Rule Body

title: Windows Defender Malware Detection History Deletion
id: 2afe6582-e149-11ea-87d0-0242ac130003
status: test
description: Windows Defender logs when the history of detected infections is deleted.
references:
    - https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus
    - https://web.archive.org/web/20160727113019/https://answers.microsoft.com/en-us/protect/forum/mse-protect_scanning/microsoft-antimalware-has-removed-history-of/f15af6c9-01a9-4065-8c6c-3f2bdc7de45e
author: Cian Heasley
date: 2020-08-13
modified: 2023-11-24
tags:
    - attack.defense-impairment
logsource:
    product: windows
    service: windefend
detection:
    selection:
        EventID: 1013 # The antimalware platform deleted history of malware and other potentially unwanted software.
    condition: selection
falsepositives:
    - Deletion of Defender malware detections history for legitimate reasons
level: informational

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 1013

Back to all Sigma rules