Detection rules › Sigma

Sigma rules: 2c

RuleSeverity
Applications That Are Using ROPC Authentication Flowmedium
Arbitrary File Download Via IMEWDBLD.EXEhigh
Azure New CloudShell Createdmedium
BITS payload downloaded via PowerShellmedium
CVE-2020-5902 F5 BIG-IP Exploitation Attemptcritical
Disabling Multi Factor Authenticationhigh
FortiGate - New Administrator Account Createdmedium
HackTool - CACTUSTORCH Remote Thread Creationhigh
HackTool - NoFilter Executionhigh
Invoke-Obfuscation CLIP+ Launcher - Systemhigh
KrbRelayUp Service Installationhigh
Massive services termination bursthigh
Network Communication Initiated To File Sharing Domains From Process Located In Suspicious Folderhigh
New Virtual Smart Card Created Via TpmVscMgr.EXEmedium
Okta Admin Role Assignment Createdmedium
OpenSSH service activation on Windowsmedium
Payload Decoded and Decrypted via Built-in Utilitiesmedium
PDQ Deploy Remote Adminstartion Tool Executionmedium
Potential Base64 Decoded From Imageshigh
Potential File Download Via MS-AppInstaller Protocol Handlermedium
Potential Notepad++ CVE-2025-49144 Exploitationhigh
Potential SPN Enumeration Via Setspn.EXEmedium
Potential XXE Exploitation Attempt In JVM Based Applicationhigh
RDP Enable or Disable via Win32_TerminalServiceSetting WMI Classmedium
RDP to HTTP or HTTPS Target Portshigh
Remote File Copylow
Shai-Hulud Malware Indicators - Linuxhigh
Sticky key file created from CMD copyhigh
Suspicious Encoded Scripts in a WMI Consumerhigh
Suspicious Interactive PowerShell as SYSTEMhigh
Suspicious Use of CSharp Interactive Consolehigh
Visual Studio Code Tunnel Service Installationmedium

Applications That Are Using ROPC Authentication Flow

#
Status
test
Severity
medium
Author
Mark Morowczynski '@markmorow', Bailey Bercik '@baileybercik'
Source
github.com/SigmaHQ/sigma

Resource owner password credentials (ROPC) should be avoided if at all possible as this requires the user to expose their current password credentials to the application directly. The application then uses those credentials to authenticate the user against the identity provider.

Known False Positives

  • Applications that are being used as part of automated testing or a legacy application that cannot use any other modern authentication flow

MITRE ATT&CK Coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: Applications That Are Using ROPC Authentication Flow
id: 55695bc0-c8cf-461f-a379-2535f563c854
status: test
description: |
    Resource owner password credentials (ROPC) should be avoided if at all possible as this requires the user to expose their current password credentials to the application directly.
    The application then uses those credentials to authenticate the user against the identity provider.
references:
    - https://learn.microsoft.com/en-us/entra/architecture/security-operations-applications#application-authentication-flows
author: Mark Morowczynski '@markmorow', Bailey Bercik '@baileybercik'
date: 2022-06-01
tags:
    - attack.stealth
    - attack.t1078
    - attack.persistence
    - attack.privilege-escalation
    - attack.initial-access
logsource:
    product: azure
    service: signinlogs
detection:
    selection:
        properties.message: ROPC
    condition: selection
falsepositives:
    - Applications that are being used as part of automated testing or a legacy application that cannot use any other modern authentication flow
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    properties.message: ROPC

Indicators

These rows show field, operator, and value matches.

Arbitrary File Download Via IMEWDBLD.EXE

#
Status
test
Severity
high
Author
Swachchhanda Shrawan Poudel
Source
github.com/SigmaHQ/sigma

Detects usage of "IMEWDBLD.exe" to download arbitrary files

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Arbitrary File Download Via IMEWDBLD.EXE
id: 863218bd-c7d0-4c52-80cd-0a96c09f54af
related:
    - id: 8d7e392e-9b28-49e1-831d-5949c6281228
      type: derived
status: test
description: Detects usage of "IMEWDBLD.exe" to download arbitrary files
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1105/T1105.md#atomic-test-10---windows---powershell-download
    - https://lolbas-project.github.io/lolbas/Binaries/IMEWDBLD/
author: Swachchhanda Shrawan Poudel
date: 2023-11-09
tags:
    - attack.execution
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\IMEWDBLD.exe'
        - OriginalFileName: 'imewdbld.exe'
    selection_cli:
        CommandLine|contains:
            - 'http://'
            - 'https://'
    condition: all of selection_*
falsepositives:
    - Unknown
# Note: Please reduce this to medium if you find legitimate use case of this utility with a URL
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\IMEWDBLD.exe'
    - OriginalFileName: 'imewdbld.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - 'http://'
        - 'https://'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • http:// corpus 20 (sigma 18, elastic 1, splunk 1)
  • https:// corpus 20 (sigma 18, elastic 1, splunk 1)
field:"CommandLine" kind:match
Imageends_with
  • \IMEWDBLD.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"\IMEWDBLD.exe"
OriginalFileNameeq
  • imewdbld.exe
field:"OriginalFileName" kind:eq value:"imewdbld.exe"

Azure New CloudShell Created

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

Identifies when a new cloudshell is created inside of Azure portal.

Known False Positives

  • A new cloudshell may be created by a system administrator.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Azure New CloudShell Created
id: 72af37e2-ec32-47dc-992b-bc288a2708cb
status: test
description: Identifies when a new cloudshell is created inside of Azure portal.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
author: Austin Songer
date: 2021-09-21
modified: 2022-08-23
tags:
    - attack.execution
    - attack.t1059
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName: MICROSOFT.PORTAL/CONSOLES/WRITE
    condition: selection
falsepositives:
    - A new cloudshell may be created by a system administrator.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operationName: MICROSOFT.PORTAL/CONSOLES/WRITE

Indicators

These rows show field, operator, and value matches.

BITS payload downloaded via PowerShell

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

Detects scenarios where an attacker downloads a payload by abusing BITS software. For more precise information, inspect "Bits-client" event log and search for ID 59 and 60.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: BITS payload downloaded via PowerShell
description: Detects scenarios where an attacker downloads a payload by abusing BITS software. For more precise information, inspect "Bits-client" event log and search for ID 59 and 60.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1197-BITS%20jobs
- https://medium.com/@threathuntingteam/background-intelligent-transfer-protocol-ab81cd900aa7
- https://docs.microsoft.com/en-us/windows/win32/bits/bitsadmin-tool
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/bitsadmin-examples
- https://attack.mitre.org/software/S0190/
- https://www.microsoft.com/security/blog/2019/12/12/multi-stage-downloader-trojan-sload-abuses-bits-almost-exclusively-for-malicious-activities/
- https://medium.com/@threathuntingteam/background-intelligent-transfer-protocol-ab81cd900aa7
- https://www.hackingarticles.in/windows-for-pentester-bitsadmin/
- https://thedfirreport.com/2023/09/25/from-screenconnect-to-hive-ransomware-in-61-hours/
tags:
- attack.exfiltration
- attack.t1048 # Exfiltration Over Alternative Protocol
- attack.lateral_movement
- attack.t1570 # Lateral Tool Transfer
- attack.Command_and_control
- attack.t1105 # Ingress Tool Transfer
- attack.persistence
- attack.t1197 # Bits jobs
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection: # Full command: 'Start-BitsTransfer -Priority foreground -Source https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md -Destination C:\Users\bits.ps1'
  selection1_powershell_native:
    EventID: 800
    EventData|contains|all:
      - Start-BitsTransfer
      - '-Source'
    EventData|contains:
      - 'http://'
      - 'https://'
      - 'ftp://'

  selection2_powershell_modern:
    EventID: 4103
    Payload|contains|all:
      - Start-BitsTransfer
      - '-Source'
    Payload|contains:
      - 'http://'
      - 'https://'
      - 'ftp://'

  selection3_powershell_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - Start-BitsTransfer
      - '-Source'
    ScriptBlockText|contains:
      - 'http://'
      - 'https://'
      - 'ftp://'

  condition: 1 of selection*
falsepositives:
- None
level: medium

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection1_powershell_native

selection1_powershell_native:
  EventID: 800
  EventData|contains|all:
    - Start-BitsTransfer
    - '-Source'
  EventData|contains:
    - 'http://'
    - 'https://'
    - 'ftp://'

Stage 2: selection2_powershell_modern

selection2_powershell_modern:
  EventID: 4103
  Payload|contains|all:
    - Start-BitsTransfer
    - '-Source'
  Payload|contains:
    - 'http://'
    - 'https://'
    - 'ftp://'

Stage 3: selection3_powershell_block

selection3_powershell_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - Start-BitsTransfer
    - '-Source'
  ScriptBlockText|contains:
    - 'http://'
    - 'https://'
    - 'ftp://'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventDatamatch
  • -Source
  • Start-BitsTransfer
  • ftp:// corpus 2 (sigma 2)
  • http:// corpus 2 (sigma 2)
  • https:// corpus 2 (sigma 2)
field:"EventData" kind:match
Payloadmatch
  • -Source
  • Start-BitsTransfer
  • ftp:// corpus 2 (sigma 2)
  • http:// corpus 2 (sigma 2)
  • https:// corpus 2 (sigma 2)
field:"Payload" kind:match
ScriptBlockTextmatch
  • -Source
  • Start-BitsTransfer corpus 2 (sigma 2)
  • ftp:// corpus 2 (sigma 2)
  • http:// corpus 2 (sigma 2)
  • https:// corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match

CVE-2020-5902 F5 BIG-IP Exploitation Attempt

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

Detects the exploitation attempt of the vulnerability found in F5 BIG-IP and described in CVE-2020-5902

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: CVE-2020-5902 F5 BIG-IP Exploitation Attempt
id: 44b53b1c-e60f-4a7b-948e-3435a7918478
status: test
description: Detects the exploitation attempt of the vulnerability found in F5 BIG-IP and described in CVE-2020-5902
references:
    - https://support.f5.com/csp/article/K52145254
    - https://www.ptsecurity.com/ww-en/about/news/f5-fixes-critical-vulnerability-discovered-by-positive-technologies-in-big-ip-application-delivery-controller/
    - https://twitter.com/yorickkoster/status/1279709009151434754
    - https://www.criticalstart.com/f5-big-ip-remote-code-execution-exploit/
author: Florian Roth (Nextron Systems)
date: 2020-07-05
modified: 2023-01-02
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2020-5902
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_base:
        cs-uri-query|contains:
            - '/tmui/'
            - '/hsqldb'
    selection_traversal:
        cs-uri-query|contains:
            - '..;/'
            - '.jsp/..'
    condition: selection_base and selection_traversal
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection_base and selection_traversal

Stage 1: selection_base

selection_base:
    cs-uri-query|contains:
        - '/tmui/'
        - '/hsqldb'

Stage 2: selection_traversal

selection_traversal:
    cs-uri-query|contains:
        - '..;/'
        - '.jsp/..'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-uri-querymatch
  • ..;/
  • .jsp/..
  • /hsqldb
  • /tmui/
field:"cs-uri-query" kind:match

Disabling Multi Factor Authentication

#
Status
test
Severity
high
Author
Splunk Threat Research Team (original rule), Harjot Singh @cyb3rjy0t (sigma rule)
Source
github.com/SigmaHQ/sigma

Detects disabling of Multi Factor Authentication.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: Disabling Multi Factor Authentication
id: 60de9b57-dc4d-48b9-a6a0-b39e0469f876
status: test
description: Detects disabling of Multi Factor Authentication.
references:
    - https://research.splunk.com/cloud/c783dd98-c703-4252-9e8a-f19d9f5c949e/
author: Splunk Threat Research Team (original rule), Harjot Singh @cyb3rjy0t (sigma rule)
date: 2023-09-18
tags:
    - attack.persistence
    - attack.credential-access
    - attack.defense-impairment
    - attack.t1556.006
logsource:
    service: audit
    product: m365
detection:
    selection:
        Operation|contains: 'Disable Strong Authentication.'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Operation|contains: 'Disable Strong Authentication.'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Operationmatch
  • Disable Strong Authentication.
field:"Operation" kind:match value:"Disable Strong Authentication."

FortiGate - New Administrator Account Created

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

Detects the creation of an administrator account on a Fortinet FortiGate Firewall.

Known False Positives

  • An administrator account can be created for legitimate purposes. Investigate the account details to determine if it is authorized.

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Rule Body

title: FortiGate - New Administrator Account Created
id: cd0a4943-0edd-42cf-b50c-06f77a10d4c1
status: experimental
description: Detects the creation of an administrator account on a Fortinet FortiGate Firewall.
references:
    - https://www.fortiguard.com/psirt/FG-IR-24-535
    - https://docs.fortinet.com/document/fortigate/7.6.4/fortios-log-message-reference/398/event
    - https://docs.fortinet.com/document/fortigate/7.6.4/cli-reference/390485493/config-system-admin
    - https://docs.fortinet.com/document/fortigate/7.6.4/fortios-log-message-reference/44547/44547-logid-event-config-objattr
author: Marco Pedrinazzi (@pedrinazziM) (InTheCyber)
date: 2025-11-01
tags:
    - attack.persistence
    - attack.t1136.001
logsource:
    product: fortigate
    service: event
detection:
    selection:
        action: 'Add'
        cfgpath: 'system.admin'
    condition: selection
falsepositives:
    - An administrator account can be created for legitimate purposes. Investigate the account details to determine if it is authorized.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    action: 'Add'
    cfgpath: 'system.admin'

Indicators

These rows show field, operator, and value matches.

HackTool - CACTUSTORCH Remote Thread Creation

#
Status
test
Severity
high
Author
@SBousseaden (detection), Thomas Patzke (rule)
Source
github.com/SigmaHQ/sigma

Detects remote thread creation from CACTUSTORCH as described in references.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 8: CreateRemoteThread

Rule Body

title: HackTool - CACTUSTORCH Remote Thread Creation
id: 2e4e488a-6164-4811-9ea1-f960c7359c40
status: test
description: Detects remote thread creation from CACTUSTORCH as described in references.
references:
    - https://twitter.com/SBousseaden/status/1090588499517079552 # Deleted
    - https://github.com/mdsecactivebreach/CACTUSTORCH
author: '@SBousseaden (detection), Thomas Patzke (rule)'
date: 2019-02-01
modified: 2023-05-05
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1055.012
    - attack.t1059.005
    - attack.t1059.007
    - attack.t1218.005
logsource:
    product: windows
    category: create_remote_thread
detection:
    selection:
        SourceImage|endswith:
            - '\System32\cscript.exe'
            - '\System32\wscript.exe'
            - '\System32\mshta.exe'
            - '\winword.exe'
            - '\excel.exe'
        TargetImage|contains: '\SysWOW64\'
        StartModule: null
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    SourceImage|endswith:
        - '\System32\cscript.exe'
        - '\System32\wscript.exe'
        - '\System32\mshta.exe'
        - '\winword.exe'
        - '\excel.exe'
    TargetImage|contains: '\SysWOW64\'
    StartModule: null

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
SourceImageends_with
  • \System32\cscript.exe
  • \System32\mshta.exe
  • \System32\wscript.exe
  • \excel.exe corpus 2 (sigma 2)
  • \winword.exe corpus 3 (sigma 3)
field:"SourceImage" kind:ends_with
StartModuleis_null
  • (no value, null check)
field:"StartModule" kind:is_null
TargetImagematch
  • \SysWOW64\
field:"TargetImage" kind:match value:"\SysWOW64\"

HackTool - NoFilter Execution

#
Status
test
Severity
high
Author
Stamatis Chatzimangou (st0pp3r)
Source
github.com/SigmaHQ/sigma

Detects execution of NoFilter, a tool for abusing the Windows Filtering Platform for privilege escalation via hardcoded policy name indicators

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool - NoFilter Execution
id: 7b14c76a-c602-4ae6-9717-eff868153fc0
status: test
description: |
    Detects execution of NoFilter, a tool for abusing the Windows Filtering Platform for privilege escalation via hardcoded policy name indicators
references:
    - https://github.com/deepinstinct/NoFilter/blob/121d215ab130c5e8e3ad45a7e7fcd56f4de97b4d/NoFilter/Consts.cpp
    - https://github.com/deepinstinct/NoFilter
    - https://www.deepinstinct.com/blog/nofilter-abusing-windows-filtering-platform-for-privilege-escalation
    - https://x.com/_st0pp3r_/status/1742203752361128162?s=20
author: Stamatis Chatzimangou (st0pp3r)
date: 2024-01-05
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134
    - attack.t1134.001
logsource:
    product: windows
    service: security
    definition: 'Requirements: Audit Filtering Platform Policy Change needs to be enabled'
detection:
    selection_5447:
        EventID: 5447
        FilterName|contains: 'RonPolicy'
    selection_5449:
        EventID: 5449
        ProviderContextName|contains: 'RonPolicy'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_5447

selection_5447:
    EventID: 5447
    FilterName|contains: 'RonPolicy'

Stage 2: selection_5449

selection_5449:
    EventID: 5449
    ProviderContextName|contains: 'RonPolicy'

Indicators

These rows show field, operator, and value matches.

Invoke-Obfuscation CLIP+ Launcher - System

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

Detects Obfuscated use of Clip.exe to execute PowerShell

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Invoke-Obfuscation CLIP+ Launcher - System
id: f7385ee2-0e0c-11eb-adc1-0242ac120002
status: test
description: Detects Obfuscated use of Clip.exe to execute PowerShell
references:
    - https://github.com/SigmaHQ/sigma/issues/1009  # (Task 26)
author: Jonathan Cheong, oscd.community
date: 2020-10-13
modified: 2023-02-20
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:
            - 'cmd'
            - '&&'
            - 'clipboard]::'
    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:
        - 'cmd'
        - '&&'
        - 'clipboard]::'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImagePathmatch
  • && corpus 4 (sigma 4)
  • clipboard]::
  • cmd corpus 5 (sigma 5)
field:"ImagePath" kind:match
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"

KrbRelayUp Service Installation

#
Status
test
Severity
high
Author
Sittikorn S, Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects service creation from KrbRelayUp tool used for privilege escalation in Windows domain environments where LDAP signing is not enforced (the default settings)

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: KrbRelayUp Service Installation
id: e97d9903-53b2-41fc-8cb9-889ed4093e80
status: test
description: Detects service creation from KrbRelayUp tool used for privilege escalation in Windows domain environments where LDAP signing is not enforced (the default settings)
references:
    - https://github.com/Dec0ne/KrbRelayUp
author: Sittikorn S, Tim Shelton
date: 2022-05-11
modified: 2022-10-05
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1543
logsource:
    product: windows
    service: system
detection:
    selection:
        EventID: 7045
        ServiceName: 'KrbSCM'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 7045
    ServiceName: 'KrbSCM'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ServiceNameeq
  • KrbSCM corpus 3 (sigma 2, splunk 1)
field:"ServiceName" kind:eq value:"KrbSCM"

Massive services termination burst

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

Detects scenarios where an attacker attempts to stop multiples services on a host. Attacker may target services related to databases, security products or backups (Veeam, Symantec, Acronis ...).

Known False Positives

  • Administrator debugging

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Massive services termination burst
description: Detects scenarios where an attacker attempts to stop multiples services on a host. Attacker may target services related to databases, security products or backups (Veeam, Symantec, Acronis ...).
references:
- https://www.microsoft.com/security/blog/2020/03/05/human-operated-ransomware-attacks-a-preventable-disaster/
- https://fourcore.io/blogs/ryuk-ransomware-simulation-mitre-ttp
- https://thedfirreport.com/2021/12/13/diavol-ransomware/
- https://www.sentinelone.com/labs/black-basta-ransomware-attacks-deploy-custom-edr-evasion-tools-tied-to-fin7-threat-actor/
- https://www.trendmicro.com/en_us/research/22/h/ransomware-actor-abuses-genshin-impact-anti-cheat-driver-to-kill-antivirus.html
tags:
- attack.impact
- attack.t1489 # Service Stop 
- attack.defense_evasion
- attack.1562.001 # Impair Defenses: Disable or Modify Tools 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection: # net stop <service> | sc stop <service>
  selection_net_stop:  
    NewProcessName|endswith:
      - '\net1.exe'
      - '\net.exe'
    CommandLine|contains|all:
      - net
      - stop
  
  selection_sc_stop:
    NewProcessName|endswith: '\sc.exe'
    CommandLine|contains|all:
      - sc
      - stop

  condition: selection_net_stop or selection_sc_stop | count(EventRecordID) by Computer > 2
  timeframe: 1m
falsepositives:
- Administrator debugging
level: high

Stages and Predicates

Stage 0: condition

selection_net_stop or selection_sc_stop | count(EventRecordID) by Computer > 2

Stage 1: selection_net_stop

selection_net_stop:
  NewProcessName|endswith:
    - '\net1.exe'
    - '\net.exe'
  CommandLine|contains|all:
    - net
    - stop
Threshold
> 2

Stage 2: selection_sc_stop

selection_sc_stop:
  NewProcessName|endswith: '\sc.exe'
  CommandLine|contains|all:
    - sc
    - stop

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • net corpus 7 (sigma 7)
  • sc corpus 6 (sigma 6)
  • stop corpus 8 (sigma 5, splunk 2, elastic 1)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
  • \sc.exe corpus 30 (sigma 30)
field:"Image" kind:ends_with

Network Communication Initiated To File Sharing Domains From Process Located In Suspicious Folder

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

Detects executables located in potentially suspicious directories initiating network connections towards file sharing domains.

Known False Positives

  • Some installers located in the temp directory might communicate with the Github domains in order to download additional software. Baseline these cases or move the github domain to a lower level hunting rule.

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Network Communication Initiated To File Sharing Domains From Process Located In Suspicious Folder
id: e0f8ab85-0ac9-423b-a73a-81b3c7b1aa97
related:
    - id: 635dbb88-67b3-4b41-9ea5-a3af2dd88153
      type: obsolete
    - id: 8b48ad89-10d8-4382-a546-50588c410f0d
      type: similar
    - id: d635249d-86b5-4dad-a8c7-d7272b788586
      type: similar
    - id: 52182dfb-afb7-41db-b4bc-5336cb29b464
      type: similar
    - id: ae02ed70-11aa-4a22-b397-c0d0e8f6ea99
      type: similar
    - id: 7b434893-c57d-4f41-908d-6a17bf1ae98f
      type: similar
    - id: 8518ed3d-f7c9-4601-a26c-f361a4256a0c
      type: similar
    - id: 42a5f1e7-9603-4f6d-97ae-3f37d130d794
      type: similar
    - id: 56454143-524f-49fb-b1c6-3fb8b1ad41fb
      type: similar
    - id: b6e04788-29e1-4557-bb14-77f761848ab8
      type: similar
    - id: a0d7e4d2-bede-4141-8896-bc6e237e977c
      type: similar
    - id: 297ae038-edc2-4b2e-bb3e-7c5fc94dd5c7
      type: similar
status: test
description: Detects executables located in potentially suspicious directories initiating network connections towards file sharing domains.
references:
    - https://twitter.com/M_haggis/status/900741347035889665
    - https://twitter.com/M_haggis/status/1032799638213066752
    - https://symantec-enterprise-blogs.security.com/blogs/threat-intelligence/ransomware-hive-conti-avoslocker
    - https://www.cisa.gov/uscert/ncas/alerts/aa22-321a
    - https://github.com/EmpireProject/Empire/blob/e37fb2eef8ff8f5a0a689f1589f424906fe13055/data/module_source/exfil/Invoke-ExfilDataToGitHub.ps1
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2018-08-30
modified: 2026-03-29
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: network_connection
    product: windows
detection:
    selection_paths:
        Image|contains:
            - ':\$Recycle.bin'
            - ':\Perflogs\'
            - ':\Temp\'
            - ':\Users\Default\'
            - ':\Users\Public\'
            - ':\Windows\Fonts\'
            - ':\Windows\IME\'
            - ':\Windows\System32\Tasks\'
            - ':\Windows\Tasks\'
            - ':\Windows\Temp\'
            - '\AppData\Temp\'
            - '\config\systemprofile\'
            - '\Windows\addins\'
    selection_domains:
        Initiated: 'true'
        DestinationHostname|endswith:
            - '.githubusercontent.com'       # Includes both gists and github repositories / Michael Haag (idea)
            - '0x0.st'
            - 'anonfiles.com'
            - 'bashupload.com'
            - 'cdn.discordapp.com'
            - 'chunk.io'
            - 'ddns.net'
            - 'dl.dropboxusercontent.com'
            - 'ghostbin.co'
            - 'github.com'
            - 'glitch.me'
            - 'gofile.io'
            - 'hastebin.com'
            - 'mediafire.com'
            - 'mega.co.nz'
            - 'mega.nz'
            - 'onrender.com'
            - 'pages.dev'
            - 'paste.ee'
            - 'pastebin.com'
            - 'pastebin.pl'
            - 'pastetext.net'
            - 'pixeldrain.com'
            - 'privatlab.com'
            - 'privatlab.net'
            - 'send.exploit.in'
            - 'sendspace.com'
            - 'storage.googleapis.com'
            - 'storjshare.io'
            - 'supabase.co'
            - 'temp.sh'
            - 'transfer.sh'
            - 'trycloudflare.com'
            - 'ufile.io'
            - 'w3spaces.com'
            - 'workers.dev'
            - 'x0.at'
    condition: all of selection_*
falsepositives:
    - Some installers located in the temp directory might communicate with the Github domains in order to download additional software. Baseline these cases or move the github domain to a lower level hunting rule.
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_paths

selection_paths:
    Image|contains:
        - ':\$Recycle.bin'
        - ':\Perflogs\'
        - ':\Temp\'
        - ':\Users\Default\'
        - ':\Users\Public\'
        - ':\Windows\Fonts\'
        - ':\Windows\IME\'
        - ':\Windows\System32\Tasks\'
        - ':\Windows\Tasks\'
        - ':\Windows\Temp\'
        - '\AppData\Temp\'
        - '\config\systemprofile\'
        - '\Windows\addins\'

Stage 2: selection_domains

selection_domains:
    Initiated: 'true'
    DestinationHostname|endswith:
        - '.githubusercontent.com'
        - '0x0.st'
        - 'anonfiles.com'
        - 'bashupload.com'
        - 'cdn.discordapp.com'
        - 'chunk.io'
        - 'ddns.net'
        - 'dl.dropboxusercontent.com'
        - 'ghostbin.co'
        - 'github.com'
        - 'glitch.me'
        - 'gofile.io'
        - 'hastebin.com'
        - 'mediafire.com'
        - 'mega.co.nz'
        - 'mega.nz'
        - 'onrender.com'
        - 'pages.dev'
        - 'paste.ee'
        - 'pastebin.com'
        - 'pastebin.pl'
        - 'pastetext.net'
        - 'pixeldrain.com'
        - 'privatlab.com'
        - 'privatlab.net'
        - 'send.exploit.in'
        - 'sendspace.com'
        - 'storage.googleapis.com'
        - 'storjshare.io'
        - 'supabase.co'
        - 'temp.sh'
        - 'transfer.sh'
        - 'trycloudflare.com'
        - 'ufile.io'
        - 'w3spaces.com'
        - 'workers.dev'
        - 'x0.at'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationHostnameends_with
  • .githubusercontent.com
  • 0x0.st corpus 2 (sigma 2)
  • anonfiles.com corpus 2 (sigma 2)
  • bashupload.com corpus 2 (sigma 2)
  • cdn.discordapp.com corpus 2 (sigma 2)
  • chunk.io corpus 2 (sigma 2)
  • ddns.net corpus 2 (sigma 2)
  • dl.dropboxusercontent.com
  • ghostbin.co
  • github.com
  • glitch.me
  • gofile.io corpus 2 (sigma 2)
  • hastebin.com corpus 2 (sigma 2)
  • mediafire.com corpus 2 (sigma 2)
  • mega.co.nz corpus 3 (sigma 3)
  • mega.nz corpus 3 (sigma 3)
  • onrender.com
  • pages.dev corpus 2 (sigma 2)
  • paste.ee corpus 2 (sigma 2)
  • pastebin.com corpus 2 (sigma 2)
  • pastebin.pl corpus 2 (sigma 2)
  • pastetext.net corpus 2 (sigma 2)
  • pixeldrain.com corpus 2 (sigma 2)
  • privatlab.com corpus 2 (sigma 2)
  • privatlab.net corpus 2 (sigma 2)
  • send.exploit.in corpus 2 (sigma 2)
  • sendspace.com corpus 2 (sigma 2)
  • storage.googleapis.com corpus 2 (sigma 2)
  • storjshare.io
  • supabase.co
  • temp.sh corpus 2 (sigma 2)
  • transfer.sh corpus 2 (sigma 2)
  • trycloudflare.com corpus 3 (sigma 3)
  • ufile.io corpus 2 (sigma 2)
  • w3spaces.com corpus 2 (sigma 2)
  • workers.dev corpus 2 (sigma 2)
  • x0.at corpus 2 (sigma 2)
field:"DestinationHostname" kind:ends_with
Imagematch
  • :\$Recycle.bin corpus 2 (sigma 2)
  • :\Perflogs\ corpus 9 (sigma 9)
  • :\Temp\ corpus 11 (sigma 11)
  • :\Users\Default\ corpus 3 (sigma 3)
  • :\Users\Public\ corpus 13 (sigma 13)
  • :\Windows\Fonts\ corpus 3 (sigma 3)
  • :\Windows\IME\ corpus 3 (sigma 3)
  • :\Windows\System32\Tasks\ corpus 4 (sigma 4)
  • :\Windows\Tasks\ corpus 4 (sigma 4)
  • :\Windows\Temp\ corpus 8 (sigma 8)
  • \AppData\Temp\ corpus 2 (sigma 2)
  • \Windows\addins\ corpus 4 (sigma 4)
  • \config\systemprofile\ corpus 4 (sigma 4)
field:"Image" kind:match
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

New Virtual Smart Card Created Via TpmVscMgr.EXE

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

Detects execution of "Tpmvscmgr.exe" to create a new virtual smart card.

Known False Positives

  • Legitimate usage by an administrator

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: New Virtual Smart Card Created Via TpmVscMgr.EXE
id: c633622e-cab9-4eaa-bb13-66a1d68b3e47
status: test
description: Detects execution of "Tpmvscmgr.exe" to create a new virtual smart card.
references:
    - https://learn.microsoft.com/en-us/windows/security/identity-protection/virtual-smart-cards/virtual-smart-card-tpmvscmgr
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-06-15
tags:
    - attack.execution
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        Image|endswith: '\tpmvscmgr.exe'
        OriginalFileName: 'TpmVscMgr.exe'
    selection_cli:
        CommandLine|contains: 'create'
    condition: all of selection_*
falsepositives:
    - Legitimate usage by an administrator
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    Image|endswith: '\tpmvscmgr.exe'
    OriginalFileName: 'TpmVscMgr.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: 'create'

Indicators

These rows show field, operator, and value matches.

Okta Admin Role Assignment Created

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

Detects when a new admin role assignment is created. Which could be a sign of privilege escalation or persistence

Known False Positives

  • Legitimate creation of a new admin role assignment

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique

Telemetry Coverage

Rule Body

title: Okta Admin Role Assignment Created
id: 139bdd4b-9cd7-49ba-a2f4-744d0a8f5d8c
status: test
description: Detects when a new admin role assignment is created. Which could be a sign of privilege escalation or persistence
references:
    - https://developer.okta.com/docs/reference/api/system-log/
    - https://developer.okta.com/docs/reference/api/event-types/
author: Nikita Khalimonenkov
date: 2023-01-19
modified: 2026-04-27
tags:
    - attack.persistence
logsource:
    product: okta
    service: okta
detection:
    selection:
        eventType: 'iam.resourceset.bindings.add'
    condition: selection
falsepositives:
    - Legitimate creation of a new admin role assignment
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventType: 'iam.resourceset.bindings.add'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
eventTypeeq
  • iam.resourceset.bindings.add
field:"eventType" kind:eq value:"iam.resourceset.bindings.add"

OpenSSH service activation on Windows

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

Detects scenarios where an attacker enables the OpenSSH server on Windows to perform stealthy lateral movement.

Known False Positives

  • legitimate administrator activation

MITRE ATT&CK Coverage

TacticTechniques
Lateral Movement

Telemetry Coverage

Rule Body

title: OpenSSH service activation on Windows
description: Detects scenarios where an attacker enables the OpenSSH server on Windows to perform stealthy lateral movement.
references:
 - https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.004-Remote%20Service%20SSH
 - https://winaero.com/enable-openssh-server-windows-10/
 - https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
 - https://virtualizationreview.com/articles/2020/05/21/ssh-server-on-windows-10.aspx
 - https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
 - https://www.microsoft.com/en-us/security/blog/2022/10/18/defenders-beware-a-case-for-post-ransomware-investigations/
tags:
- attack.lateral_movement
- attack.t1021.004
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection:
  selection_powershell_native:
    EventID: 800
    EventData|contains|all:
      - Set-Service
      - StartupType
      - Name
      - sshd
      #- Automatic / Manual

  selection_powershell_modern:
    EventID: 4103
    Payload|contains|all:
      - Set-Service
      - StartupType
      - Name
      - sshd
      #- Automatic / Manual

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - Set-Service
      - StartupType
      - Name
      - sshd
      #- Automatic / Manual

  condition: 1 of selection*
falsepositives:
- legitimate administrator activation
level: medium

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains|all:
    - Set-Service
    - StartupType
    - Name
    - sshd

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains|all:
    - Set-Service
    - StartupType
    - Name
    - sshd

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - Set-Service
    - StartupType
    - Name
    - sshd

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventDatamatch
  • Name corpus 3 (sigma 3)
  • Set-Service corpus 2 (sigma 2)
  • StartupType
  • sshd
field:"EventData" kind:match
Payloadmatch
  • Name corpus 3 (sigma 3)
  • Set-Service corpus 2 (sigma 2)
  • StartupType
  • sshd
field:"Payload" kind:match
ScriptBlockTextmatch
  • Name corpus 4 (sigma 4)
  • Set-Service corpus 2 (sigma 2)
  • StartupType
  • sshd
field:"ScriptBlockText" kind:match

Payload Decoded and Decrypted via Built-in Utilities

#
Status
test
Severity
medium
Author
Tim Rauch (rule), Elastic (idea)
Source
github.com/SigmaHQ/sigma

Detects when a built-in utility is used to decode and decrypt a payload after a macOS disk image (DMG) is executed. Malware authors may attempt to evade detection and trick users into executing malicious code by encoding and encrypting their payload and placing it in a disk image file. This behavior is consistent with adware or malware families such as Bundlore and Shlayer.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Payload Decoded and Decrypted via Built-in Utilities
id: 234dc5df-40b5-49d1-bf53-0d44ce778eca
status: test
description: Detects when a built-in utility is used to decode and decrypt a payload after a macOS disk image (DMG) is executed. Malware authors may attempt to evade detection and trick users into executing malicious code by encoding and encrypting their payload and placing it in a disk image file. This behavior is consistent with adware or malware families such as Bundlore and Shlayer.
references:
    - https://github.com/elastic/protections-artifacts/commit/746086721fd385d9f5c6647cada1788db4aea95f#diff-5d42c3d772e04f1e8d0eb60f5233bc79def1ea73105a2d8822f44164f77ef823
author: Tim Rauch (rule), Elastic (idea)
date: 2022-10-17
tags:
    - attack.stealth
    - attack.t1059
    - attack.t1204
    - attack.execution
    - attack.t1140
    - attack.s0482
    - attack.s0402
logsource:
    category: process_creation
    product: macos
detection:
    selection:
        Image|endswith: '/openssl'
        CommandLine|contains|all:
            - '/Volumes/'
            - 'enc'
            - '-base64'
            - ' -d '
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '/openssl'
    CommandLine|contains|all:
        - '/Volumes/'
        - 'enc'
        - '-base64'
        - ' -d '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -d corpus 8 (sigma 7, splunk 1)
  • -base64 corpus 3 (elastic 2, sigma 1)
  • /Volumes/
  • enc corpus 3 (sigma 3)
field:"CommandLine" kind:match
Imageends_with
  • /openssl corpus 4 (sigma 4)
field:"Image" kind:ends_with value:"/openssl"

PDQ Deploy Remote Adminstartion Tool Execution

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

Detect use of PDQ Deploy remote admin tool

Known False Positives

  • Legitimate use

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: PDQ Deploy Remote Adminstartion Tool Execution
id: d679950c-abb7-43a6-80fb-2a480c4fc450
related:
    - id: 12b8e9f5-96b2-41e1-9a42-8c6779a5c184
      type: similar
status: test
description: Detect use of PDQ Deploy remote admin tool
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/9e5b12c4912c07562aec7500447b11fa3e17e254/atomics/T1072/T1072.md
    - https://www.pdq.com/pdq-deploy/
author: frack113
date: 2022-10-01
modified: 2023-01-30
tags:
    - attack.execution
    - attack.lateral-movement
    - attack.t1072
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Description: PDQ Deploy Console
        - Product: PDQ Deploy
        - Company: PDQ.com
        - OriginalFileName: PDQDeployConsole.exe
    condition: selection
falsepositives:
    - Legitimate use
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Description: PDQ Deploy Console
    - Product: PDQ Deploy
    - Company: PDQ.com
    - OriginalFileName: PDQDeployConsole.exe

Indicators

These rows show field, operator, and value matches.

Potential Base64 Decoded From Images

#
Status
test
Severity
high
Author
Joseliyo Sanchez, @Joseliyo_Jstnk
Source
github.com/SigmaHQ/sigma

Detects the use of tail to extract bytes at an offset from an image and then decode the base64 value to create a new file with the decoded content. The detected execution is a bash one-liner.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Base64 Decoded From Images
id: 09a910bf-f71f-4737-9c40-88880ba5913d
status: test
description: |
    Detects the use of tail to extract bytes at an offset from an image and then decode the base64 value to create a new file with the decoded content. The detected execution is a bash one-liner.
references:
    - https://www.virustotal.com/gui/file/16bafdf741e7a13137c489f3c8db1334f171c7cb13b62617d691b0a64783cc48/behavior
    - https://www.virustotal.com/gui/file/483fafc64a2b84197e1ef6a3f51e443f84dc5742602e08b9e8ec6ad690b34ed0/behavior
author: Joseliyo Sanchez, @Joseliyo_Jstnk
date: 2023-12-20
tags:
    - attack.stealth
    - attack.t1140
logsource:
    product: macos
    category: process_creation
detection:
    # Example:  /bin/bash sh -c tail -c +21453 '/Volumes/Installer/Installer.app/Contents/Resources/workout-logo.jpeg' | base64 --decode > /tmp/54A0A2CD-FAD1-4D4D-AAF5-5266F6344ABE.zip
    # VT Query: 'behavior_processes:"tail" (behavior_processes:"jpeg" or behavior_processes:"jpg" or behavior_processes:"png" or behavior_processes:"gif") behavior_processes:"base64" behavior_processes:"--decode >" and tag:dmg'
    selection_image:
        Image|endswith: '/bash'
    selection_view:
        CommandLine|contains|all:
            - 'tail'
            - '-c'
    selection_b64:
        CommandLine|contains|all:
            - 'base64'
            - '-d' # Also covers "--decode"
            - '>'
    selection_files:
        CommandLine|contains:
            - '.avif'
            - '.gif'
            - '.jfif'
            - '.jpeg'
            - '.jpg'
            - '.pjp'
            - '.pjpeg'
            - '.png'
            - '.svg'
            - '.webp'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_image

selection_image:
    Image|endswith: '/bash'

Stage 2: selection_view

selection_view:
    CommandLine|contains|all:
        - 'tail'
        - '-c'

Stage 3: selection_b64

selection_b64:
    CommandLine|contains|all:
        - 'base64'
        - '-d'
        - '>'

Stage 4: selection_files

selection_files:
    CommandLine|contains:
        - '.avif'
        - '.gif'
        - '.jfif'
        - '.jpeg'
        - '.jpg'
        - '.pjp'
        - '.pjpeg'
        - '.png'
        - '.svg'
        - '.webp'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -c corpus 7 (sigma 6, splunk 1)
  • -d corpus 9 (sigma 7, splunk 2)
  • .avif
  • .gif corpus 9 (sigma 8, elastic 1)
  • .jfif
  • .jpeg corpus 7 (sigma 6, elastic 1)
  • .jpg corpus 8 (sigma 7, elastic 1)
  • .pjp
  • .pjpeg
  • .png corpus 8 (sigma 7, elastic 1)
  • .svg corpus 2 (sigma 2)
  • .webp
  • > corpus 6 (sigma 6)
  • base64 corpus 18 (elastic 11, sigma 7)
  • tail
field:"CommandLine" kind:match
Imageends_with
  • /bash corpus 13 (sigma 13)
field:"Image" kind:ends_with value:"/bash"

Potential File Download Via MS-AppInstaller Protocol Handler

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

Detects usage of the "ms-appinstaller" protocol handler via command line to potentially download arbitrary files via AppInstaller.EXE The downloaded files are temporarly stored in ":\Users%username%\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\AC\INetCache<RANDOM-8-CHAR-DIRECTORY>"

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential File Download Via MS-AppInstaller Protocol Handler
id: 180c7c5c-d64b-4a63-86e9-68910451bc8b
related:
    - id: 7cff77e1-9663-46a3-8260-17f2e1aa9d0a
      type: derived
status: test
description: |
    Detects usage of the "ms-appinstaller" protocol handler via command line to potentially download arbitrary files via AppInstaller.EXE
    The downloaded files are temporarly stored in ":\Users\%username%\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\AC\INetCache\<RANDOM-8-CHAR-DIRECTORY>"
references:
    - https://lolbas-project.github.io/lolbas/Binaries/AppInstaller/
author: Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel
date: 2023-11-09
tags:
    - attack.execution
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'ms-appinstaller://?source='
            - 'http'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'ms-appinstaller://?source='
        - 'http'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • http corpus 45 (sigma 34, elastic 10, splunk 1)
  • ms-appinstaller://?source=
field:"CommandLine" kind:match

Potential Notepad++ CVE-2025-49144 Exploitation

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

Detects potential exploitation of CVE-2025-49144, a local privilege escalation vulnerability in Notepad++ installers (v8.8.1 and prior) where the installer calls regsvr32.exe without specifying the full path. This allows an attacker to execute arbitrary code with elevated privileges by placing a malicious regsvr32.exe alongside this Legitimate Notepad++ installer. The vulnerability is triggered when the installer attempts to register the NppShell.dll file, which is a component of Notepad++.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Notepad++ CVE-2025-49144 Exploitation
id: 933f0bb5-0681-4fe7-8a17-4e6cccbaac44
status: experimental
description: |
    Detects potential exploitation of CVE-2025-49144, a local privilege escalation vulnerability in Notepad++ installers (v8.8.1 and prior) where the installer calls regsvr32.exe without specifying the full path.
    This allows an attacker to execute arbitrary code with elevated privileges by placing a malicious regsvr32.exe alongside this Legitimate Notepad++ installer.
    The vulnerability is triggered when the installer attempts to register the NppShell.dll file, which is a component of Notepad++.
references:
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-49144
    - https://x.com/NullSecurityX/status/1937444064867029179
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-06-26
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.008
    - cve.2025-49144
    - detection.emerging-threats
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        Image|endswith: '\regsvr32.exe'
        CommandLine|startswith: 'regsvr32 /s'
        CommandLine|contains: '\contextMenu\NppShell.dll'
    filter_main_legit_regsvr32:
        Image:
            - 'C:\Windows\System32\regsvr32.exe'
            - 'C:\Windows\SysWOW64\regsvr32.exe'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    Image|endswith: '\regsvr32.exe'
    CommandLine|startswith: 'regsvr32 /s'
    CommandLine|contains: '\contextMenu\NppShell.dll'

Stage 2: not filter_main_legit_regsvr32

filter_main_legit_regsvr32:
    Image:
        - 'C:\Windows\System32\regsvr32.exe'
        - 'C:\Windows\SysWOW64\regsvr32.exe'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

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

Potential SPN Enumeration Via Setspn.EXE

#
Status
test
Severity
medium
Author
Markus Neis, keepwatch
Source
github.com/SigmaHQ/sigma

Detects service principal name (SPN) enumeration used for Kerberoasting

Known False Positives

  • Administration activity

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential SPN Enumeration Via Setspn.EXE
id: 1eeed653-dbc8-4187-ad0c-eeebb20e6599
status: test
description: Detects service principal name (SPN) enumeration used for Kerberoasting
references:
    - https://web.archive.org/web/20200329173843/https://p16.praetorian.com/blog/how-to-use-kerberoasting-t1208-for-privilege-escalation
    - https://www.praetorian.com/blog/how-to-use-kerberoasting-t1208-for-privilege-escalation/?edition=2019
author: Markus Neis, keepwatch
date: 2018-11-14
modified: 2023-10-23
tags:
    - attack.credential-access
    - attack.t1558.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_pe:
        - Image|endswith: '\setspn.exe'
        - OriginalFileName: 'setspn.exe'
        - Description|contains|all:
              - 'Query or reset the computer'
              - 'SPN attribute'
    selection_cli:
        CommandLine|contains:
            - ' -q '
            - ' /q '
    condition: all of selection_*
falsepositives:
    - Administration activity
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_pe

selection_pe:
    - Image|endswith: '\setspn.exe'
    - OriginalFileName: 'setspn.exe'
    - Description|contains|all:
          - 'Query or reset the computer'
          - 'SPN attribute'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - ' -q '
        - ' /q '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -q corpus 2 (sigma 2)
  • /q corpus 3 (sigma 2, splunk 1)
field:"CommandLine" kind:match
Descriptionmatch
  • Query or reset the computer
  • SPN attribute
field:"Description" kind:match
Imageends_with
  • \setspn.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\setspn.exe"
OriginalFileNameeq
  • setspn.exe corpus 2 (sigma 1, splunk 1)
field:"OriginalFileName" kind:eq value:"setspn.exe"

Potential XXE Exploitation Attempt In JVM Based Application

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

Detects XML parsing issues, if the application expects to work with XML make sure that the parser is initialized safely.

Known False Positives

  • If the application expects to work with XML there may be parsing issues that don't necessarily mean XXE.

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Potential XXE Exploitation Attempt In JVM Based Application
id: c4e06896-e27c-4583-95ac-91ce2279345d
status: test
description: Detects XML parsing issues, if the application expects to work with XML make sure that the parser is initialized safely.
references:
    - https://rules.sonarsource.com/java/RSPEC-2755
    - https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing
    - https://www.wix.engineering/post/threat-and-vulnerability-hunting-with-application-server-error-logs
author: Moti Harmats
date: 2023-02-11
tags:
    - attack.initial-access
    - attack.t1190
logsource:
    category: application
    product: jvm
    definition: 'Requirements: application error logs must be collected (with LOG_LEVEL=ERROR and above)'
detection:
    keywords:
        - 'SAXParseException'
        - 'DOMException'
    condition: keywords
falsepositives:
    - If the application expects to work with XML there may be parsing issues that don't necessarily mean XXE.
level: high

Stages and Predicates

Stage 0: condition

keywords

Stage 1: keywords

keywords:
    - 'SAXParseException'
    - 'DOMException'

RDP Enable or Disable via Win32_TerminalServiceSetting WMI Class

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

Detects enabling or disabling of Remote Desktop Protocol (RDP) using alternate methods such as WMIC or PowerShell. In PowerShell one-liner commands, the "SetAllowTSConnections" method of the "Win32_TerminalServiceSetting" class may be used to enable or disable RDP. In WMIC, the "rdtoggle" alias or "Win32_TerminalServiceSetting" class may be used for the same purpose.

Known False Positives

  • Legitimate system administrators enabling RDP for remote support
  • System configuration scripts during deployment

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: RDP Enable or Disable via Win32_TerminalServiceSetting WMI Class
id: 4b8f6d3a-9c5e-4f2a-a7d8-6b9c3e5f2a8d
related:
    - id: a2863fbc-d5cb-48d5-83fb-d976d4b1743b
      type: similar
status: experimental
description: |
    Detects enabling or disabling of Remote Desktop Protocol (RDP) using alternate methods such as WMIC or PowerShell.
    In PowerShell one-liner commands, the "SetAllowTSConnections" method of the "Win32_TerminalServiceSetting" class may be used to enable or disable RDP.
    In WMIC, the "rdtoggle" alias or "Win32_TerminalServiceSetting" class may be used for the same purpose.
references:
    - https://www.trendmicro.com/en_gb/research/22/e/uncovering-a-kingminer-botnet-attack-using-trend-micro-managed-x.html
    - https://github.com/HackTricks-wiki/hacktricks/blob/72f20a3fa26775b932bd819f1824c6377802a768/src/windows-hardening/basic-cmd-for-pentesters.md#firewall
    - https://github.com/Lifailon/RSA/blob/rsa/Sources/RSA-1.4.1.ps1#L1468
author: Daniel Koifman (KoifSec), Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-11-15
tags:
    - attack.lateral-movement
    - attack.t1021.001
    - attack.execution
    - attack.t1047
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\wmic.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'wmic.exe'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_cli_method:
        CommandLine|contains:
            - 'rdtoggle'
            - 'Win32_TerminalServiceSetting'
    selection_cli_property:
        CommandLine|contains: 'SetAllowTSConnections'
    condition: all of selection_*
falsepositives:
    - Legitimate system administrators enabling RDP for remote support
    - System configuration scripts during deployment
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli_method

selection_cli_method:
    CommandLine|contains:
        - 'rdtoggle'
        - 'Win32_TerminalServiceSetting'

Stage 3: selection_cli_property

selection_cli_property:
    CommandLine|contains: 'SetAllowTSConnections'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • SetAllowTSConnections
  • Win32_TerminalServiceSetting
  • rdtoggle
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
  • \wmic.exe corpus 62 (sigma 62)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
  • wmic.exe corpus 74 (sigma 38, elastic 18, splunk 18)
field:"OriginalFileName" kind:eq

RDP to HTTP or HTTPS Target Ports

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

Detects svchost hosting RDP termsvcs communicating to target systems on TCP port 80 or 443

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: RDP to HTTP or HTTPS Target Ports
id: b1e5da3b-ca8e-4adf-915c-9921f3d85481
status: test
description: Detects svchost hosting RDP termsvcs communicating to target systems on TCP port 80 or 443
references:
    - https://twitter.com/tekdefense/status/1519711183162556416?s=12&t=OTsHCBkQOTNs1k3USz65Zg
    - https://www.mandiant.com/resources/bypassing-network-restrictions-through-rdp-tunneling
author: Florian Roth (Nextron Systems)
date: 2022-04-29
modified: 2022-07-14
tags:
    - attack.command-and-control
    - attack.t1572
    - attack.lateral-movement
    - attack.t1021.001
    - car.2013-07-002
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Image|endswith: '\svchost.exe'
        Initiated: 'true'
        SourcePort: 3389
        DestinationPort:
            - 80
            - 443
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\svchost.exe'
    Initiated: 'true'
    SourcePort: 3389
    DestinationPort:
        - 80
        - 443

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DestinationPorteq
  • 443 corpus 5 (sigma 5)
  • 80 corpus 7 (sigma 6, elastic 1)
field:"DestinationPort" kind:eq
Imageends_with
  • \svchost.exe corpus 22 (sigma 22)
field:"Image" kind:ends_with value:"\svchost.exe"
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"
SourcePorteq
  • 3389 corpus 3 (sigma 3)
field:"SourcePort" kind:eq value:"3389"

Remote File Copy

#
Status
stable
Severity
low
Author
Ömer Günal
Source
github.com/SigmaHQ/sigma

Detects the use of tools that copy files from or to remote systems

Known False Positives

  • Legitimate administration activities

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Rule Body

title: Remote File Copy
id: 7a14080d-a048-4de8-ae58-604ce58a795b
status: stable
description: Detects the use of tools that copy files from or to remote systems
references:
    - https://www.cisa.gov/stopransomware/ransomware-guide
author: Ömer Günal
date: 2020-06-18
tags:
    - attack.command-and-control
    - attack.lateral-movement
    - attack.t1105
logsource:
    product: linux
detection:
    tools:
        - 'scp '
        - 'rsync '
        - 'sftp '
    filter:
        - '@'
        - ':'
    condition: tools and filter
falsepositives:
    - Legitimate administration activities
level: low

Stages and Predicates

Stage 0: condition

tools and filter

Stage 1: tools

tools:
    - 'scp '
    - 'rsync '
    - 'sftp '

Stage 2: filter

filter:
    - '@'
    - ':'

Shai-Hulud Malware Indicators - Linux

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

Detects potential Shai-Hulud malware indicators based on specific command line arguments associated with its execution.

Known False Positives

  • Legitimate software containing similar strings

MITRE ATT&CK Coverage

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Shai-Hulud Malware Indicators - Linux
id: 11bb9b26-4179-4a06-afcb-1ec31fce1627
related:
    - id: 540703fb-a874-4385-a9d6-7cd1bfab268c
      type: similar
    - id: 8f2a9c3b-7e5d-4f1a-9b8e-2c4d6a8f9e1b
      type: similar
status: experimental
description: |
    Detects potential Shai-Hulud malware indicators based on specific command line arguments associated with its execution.
references:
    - https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack
    - https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains
    - https://semgrep.dev/blog/2025/digging-for-secrets-sha1-hulud-the-second-coming-of-the-npm-worm/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-11-25
tags:
    - attack.execution
    - attack.t1059
    - detection.emerging-threats
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        CommandLine|contains:
            - 'Shai-Hulud'
            - 'SHA1HULUD'
    condition: selection
falsepositives:
    - Legitimate software containing similar strings
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - 'Shai-Hulud'
        - 'SHA1HULUD'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • SHA1HULUD corpus 2 (sigma 2)
  • Shai-Hulud corpus 2 (sigma 2)
field:"CommandLine" kind:match

Sticky key file created from CMD copy

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

Detects scenarios where an attacker attempts to replace the original sethc.exe file by cmd.exe.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Sticky key file created from CMD copy
description: Detects scenarios where an attacker attempts to replace the original sethc.exe file by cmd.exe.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0004-Privilege%20Escalation/T1546-Image%20File%20Execution%20Options%20Injection
- https://blogs.technet.microsoft.com/jonathantrull/2016/10/03/detecting-sticky-key-backdoors/
- https://www.mandiant.com/resources/apt29-domain-frontin
- https://www.clearskysec.com/wp-content/uploads/2020/02/ClearSky-Fox-Kitten-Campaign-v1.pdf
tags:
- attack.privilege_escalation
- attack.t1546.008
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: file_event
detection:
  selection: # command: 'copy /y C:\windows\system32\cmd.exe C:\windows\system32\sethc.exe'
    EventID: 11 # File created
    Image|endswith:
      - \cmd.exe
      - \powershell.exe
      - \pwsh.exe # PowerShell v6
      - \powershell_ise.exe # Development GUI
    TargetFilename|endswith:
      - \sethc.exe  # Full path 'C:\Windows\System32\sethc.exe'
      - \seth2c.exe # Full path 'C:\Windows\System32\seth2c.exe'
  condition: selection
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 11
  Image|endswith:
    - \cmd.exe
    - \powershell.exe
    - \pwsh.exe
    - \powershell_ise.exe
  TargetFilename|endswith:
    - \sethc.exe
    - \seth2c.exe

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
TargetFilenameends_with
  • \seth2c.exe
  • \sethc.exe
field:"TargetFilename" kind:ends_with

Suspicious Encoded Scripts in a WMI Consumer

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

Detects suspicious encoded payloads in WMI Event Consumers

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Encoded Scripts in a WMI Consumer
id: 83844185-1c5b-45bc-bcf3-b5bf3084ca5b
status: test
description: Detects suspicious encoded payloads in WMI Event Consumers
references:
    - https://github.com/RiccardoAncarani/LiquidSnake
author: Florian Roth (Nextron Systems)
date: 2021-09-01
modified: 2022-10-09
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.t1047
    - attack.persistence
    - attack.t1546.003
logsource:
    product: windows
    category: wmi_event
detection:
    selection_destination:
        Destination|base64offset|contains:
            - 'WriteProcessMemory'
            - 'This program cannot be run in DOS mode'
            - 'This program must be run under Win32'
    condition: selection_destination
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_destination

Stage 1: selection_destination

selection_destination:
    Destination|base64offset|contains:
        - 'WriteProcessMemory'
        - 'This program cannot be run in DOS mode'
        - 'This program must be run under Win32'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Destinationmatch
  • RoaXMgcHJvZ3JhbSBjYW5ub3QgYmUgcnVuIGluIERPUyBtb2Rl
  • RoaXMgcHJvZ3JhbSBtdXN0IGJlIHJ1biB1bmRlciBXaW4zM
  • UaGlzIHByb2dyYW0gY2Fubm90IGJlIHJ1biBpbiBET1MgbW9kZ
  • UaGlzIHByb2dyYW0gbXVzdCBiZSBydW4gdW5kZXIgV2luMz
  • V3JpdGVQcm9jZXNzTWVtb3J5
  • VGhpcyBwcm9ncmFtIG11c3QgYmUgcnVuIHVuZGVyIFdpbjMy
  • VGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZG
  • Xcml0ZVByb2Nlc3NNZW1vcn
  • dyaXRlUHJvY2Vzc01lbW9ye
field:"Image" kind:match

Suspicious Interactive PowerShell as SYSTEM

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

Detects the creation of files that indicator an interactive use of PowerShell in the SYSTEM user context

Known False Positives

  • Administrative activity
  • PowerShell scripts running as SYSTEM user

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Suspicious Interactive PowerShell as SYSTEM
id: 5b40a734-99b6-4b98-a1d0-1cea51a08ab2
status: test
description: Detects the creation of files that indicator an interactive use of PowerShell in the SYSTEM user context
references:
    - https://jpcertcc.github.io/ToolAnalysisResultSheet/details/PowerSploit_Invoke-Mimikatz.htm
author: Florian Roth (Nextron Systems)
date: 2021-12-07
modified: 2022-08-13
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename:
            - 'C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt'
            - 'C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive'
    condition: selection
falsepositives:
    - Administrative activity
    - PowerShell scripts running as SYSTEM user
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename:
        - 'C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt'
        - 'C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameeq
  • C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
  • C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
field:"TargetFilename" kind:eq

Suspicious Use of CSharp Interactive Console

#
Status
test
Severity
high
Author
Michael R. (@nahamike01)
Source
github.com/SigmaHQ/sigma

Detects the execution of CSharp interactive console by PowerShell

Known False Positives

  • Possible depending on environment. Pair with other factors such as net connections, command-line args, etc.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Use of CSharp Interactive Console
id: a9e416a8-e613-4f8b-88b8-a7d1d1af2f61
status: test
description: Detects the execution of CSharp interactive console by PowerShell
references:
    - https://redcanary.com/blog/detecting-attacks-leveraging-the-net-framework/
author: Michael R. (@nahamike01)
date: 2020-03-08
modified: 2022-07-14
tags:
    - attack.execution
    - attack.stealth
    - attack.t1127
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\csi.exe'
        ParentImage|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\powershell_ise.exe'
        OriginalFileName: 'csi.exe'
    condition: selection
falsepositives:
    - Possible depending on environment. Pair with other factors such as net connections, command-line args, etc.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\csi.exe'
    ParentImage|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\powershell_ise.exe'
    OriginalFileName: 'csi.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \csi.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"\csi.exe"
OriginalFileNameeq
  • csi.exe corpus 2 (sigma 2)
field:"OriginalFileName" kind:eq value:"csi.exe"
ParentImageends_with
  • \powershell.exe corpus 24 (sigma 24)
  • \powershell_ise.exe corpus 3 (sigma 3)
  • \pwsh.exe corpus 21 (sigma 21)
field:"ParentImage" kind:ends_with

Visual Studio Code Tunnel Service Installation

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

Detects the installation of VsCode tunnel (code-tunnel) as a service.

Known False Positives

  • Legitimate installation of code-tunnel as a service

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Visual Studio Code Tunnel Service Installation
id: 30bf1789-379d-4fdc-900f-55cd0a90a801
status: test
description: Detects the installation of VsCode tunnel (code-tunnel) as a service.
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-10-25
tags:
    - attack.command-and-control
    - attack.t1071.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'tunnel '
            - 'service'
            - 'internal-run'
            - 'tunnel-service.log'
    condition: selection
falsepositives:
    - Legitimate installation of code-tunnel as a service
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

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

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • 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

Back to all Sigma rules