Detection rules › Sigma

Sigma rules: 3c

RuleSeverity
Abusing Print Executablemedium
Assembly DLL Creation Via AspNetCompilermedium
Atera Agent Installationhigh
Axios NPM Compromise Indicators - macOShigh
Cloudflared Tunnel Connections Cleanupmedium
Code Injection by ld.so Preloadhigh
Diskshadow Script Mode - Uncommon Script Extension Executionmedium
Exchange transport agent installation artifacts (PowerShell)high
HackTool - WinPwn Executionhigh
HackTool Named File Stream Createdhigh
Impacket SMBexec service creation (registry)high
LSASS dump via process accesshigh
macOS XProtect Malware Detectioncritical
Medium risk local/domain local group membership changehigh
Meterpreter or Cobalt Strike Getsystem Service Installation - Securityhigh
Microsoft Word Add-In Loadedlow
Network Connection Initiated To Visual Studio Code Tunnels Domainmedium
New Kind of Network (NKN) Detectionlow
Potential CobaltStrike Service Installations - Registryhigh
Potential Encoded PowerShell Patterns In CommandLinelow
Potential File Override/Append Via SET Commandlow
Potential Java WebShell Upload in SAP NetViewer Serverhigh
Potential Mpclient.DLL Sideloadinghigh
PowerShell Create Local Usermedium
Ps.exe Renamed SysInternals Toolhigh
RDP session hijack via TSCON abuse commandhigh
Role Assignment Createdinformational
Scheduled task creation with command linemedium
Security Software Discovery Via Powershell Scriptmedium
Service deactivation (command)high
Service Registry Key Deleted Via Reg.EXEhigh
SMB admin share accessedmedium
Sofacy Trojan Loader Activityhigh
Suspicious AddinUtil.EXE CommandLine Executionhigh
Suspicious Get Information for SMB Share - PowerShell Modulelow
Suspicious Modification Of Scheduled Taskshigh
Suspicious Regsvr32 Execution From Remote Sharehigh
Suspicious Scheduled Task Creation via Masqueraded XML Filemedium
Suspicious SQL Querymedium
Uncommon FileSystem Load Attempt By Format.comhigh
Windows Internet Hosted WebDav Share Mount Via Net.EXEhigh

Abusing Print Executable

#
Status
test
Severity
medium
Author
Furkan CALISKAN, @caliskanfurkan_, @oscd_initiative
Source
github.com/SigmaHQ/sigma

Attackers can use print.exe for remote file copy

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Abusing Print Executable
id: bafac3d6-7de9-4dd9-8874-4a1194b493ed
status: test
description: Attackers can use print.exe for remote file copy
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Print/
    - https://twitter.com/Oddvarmoe/status/985518877076541440
author: 'Furkan CALISKAN, @caliskanfurkan_, @oscd_initiative'
date: 2020-10-05
modified: 2022-07-07
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\print.exe'
        CommandLine|startswith: 'print'
        CommandLine|contains|all:
            - '/D'
            - '.exe'
    filter_print:
        CommandLine|contains: 'print.exe'
    condition: selection and not filter_print
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_print_remote_file_copy/info.yml

Stages and Predicates

Stage 0: condition

selection and not filter_print

Stage 1: selection

selection:
    Image|endswith: '\print.exe'
    CommandLine|startswith: 'print'
    CommandLine|contains|all:
        - '/D'
        - '.exe'

Stage 2: not filter_print

filter_print:
    CommandLine|contains: 'print.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .exe corpus 5 (sigma 5)
  • /D corpus 3 (sigma 3)
field:"CommandLine" kind:match
CommandLinestarts_with
  • print
field:"CommandLine" kind:starts_with value:"print"
Imageends_with
  • \print.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"\print.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematchprint.exeexcludes:CommandLine field:"CommandLine" value:"print.exe"

Assembly DLL Creation Via AspNetCompiler

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

Detects the creation of new DLL assembly files by "aspnet_compiler.exe", which could be a sign of "aspnet_compiler" abuse to proxy execution through a build provider.

Known False Positives

  • Legitimate assembly compilation using a build provider

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Assembly DLL Creation Via AspNetCompiler
id: 4c7f49ee-2638-43bb-b85b-ce676c30b260 # TMP File
related:
    - id: 9ccba514-7cb6-4c5c-b377-700758f2f120 # SuspChild
      type: similar
    - id: 9f50fe98-fe5c-4a2d-86c7-fad7f63ed622 # Susp Paths
      type: similar
    - id: a01b8329-5953-4f73-ae2d-aa01e1f35f00 # Exec
      type: similar
status: test
description: |
    Detects the creation of new DLL assembly files by "aspnet_compiler.exe", which could be a sign of "aspnet_compiler" abuse to proxy execution through a build provider.
references:
    - Internal Research
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-08-14
tags:
    - attack.execution
logsource:
    product: windows
    category: file_event
detection:
    selection:
        Image|endswith: '\aspnet_compiler.exe'
        TargetFilename|contains|all:
            - '\Temporary ASP.NET Files\'
            - '\assembly\tmp\'
            - '.dll'
    condition: selection
falsepositives:
    - Legitimate assembly compilation using a build provider
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\aspnet_compiler.exe'
    TargetFilename|contains|all:
        - '\Temporary ASP.NET Files\'
        - '\assembly\tmp\'
        - '.dll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \aspnet_compiler.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\aspnet_compiler.exe"
TargetFilenamematch
  • .dll
  • \Temporary ASP.NET Files\ corpus 2 (sigma 2)
  • \assembly\tmp\
field:"TargetFilename" kind:match

Atera Agent Installation

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

Detects successful installation of Atera Remote Monitoring & Management (RMM) agent as recently found to be used by Conti operators

Known False Positives

  • Legitimate Atera agent installation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Atera Agent Installation
id: 87261fb2-69d0-42fe-b9de-88c6b5f65a43
status: test
description: Detects successful installation of Atera Remote Monitoring & Management (RMM) agent as recently found to be used by Conti operators
references:
    - https://www.advintel.io/post/secret-backdoor-behind-conti-ransomware-operation-introducing-atera-agent
author: Bhabesh Raj
date: 2021-09-01
modified: 2022-12-25
tags:
    - attack.command-and-control
    - attack.t1219.002
logsource:
    service: application
    product: windows
detection:
    selection:
        EventID: 1033
        Provider_Name: MsiInstaller
        Message|contains: AteraAgent
    condition: selection
falsepositives:
    - Legitimate Atera agent installation
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 1033
    Provider_Name: MsiInstaller
    Message|contains: AteraAgent

Indicators

These rows show field, operator, and value matches.

Axios NPM Compromise Indicators - macOS

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

Detects the macOS-specific execution chain of the plain-crypto-js malicious npm dependency in Axios NPM Package, including AppleScript execution via osascript, payload download, permission modification, execution, and cleanup.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Axios NPM Compromise Indicators - macOS
id: a09ee860-31b3-4586-8a68-0ebd74ce0e5f
status: experimental
description: |
    Detects the macOS-specific execution chain of the plain-crypto-js malicious npm dependency in Axios NPM Package, including AppleScript execution via osascript, payload download, permission modification, execution, and cleanup.
author: Swachchhanda Shrawan Poudel (Nextron Systems)
references:
    - https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan
    - https://www.derp.ca/research/axios-npm-supply-chain-rat/
    - https://www.trendmicro.com/zh_hk/research/26/c/axios-npm-package-compromised.html
    - https://www.elastic.co/security-labs/axios-supply-chain-compromise-detections
    - https://www.virustotal.com/gui/file/e10b1fa84f1d6481625f741b69892780140d4e0e7769e7491e5f4d894c2e0e09
date: 2026-04-01
tags:
    - attack.initial-access
    - attack.t1195.002
    - attack.execution
    - attack.command-and-control
    - attack.t1059.002
    - attack.t1059.004
    - attack.t1105
    - detection.emerging-threats
logsource:
    category: process_creation
    product: macos
detection:
    selection_osascript:
        CommandLine|contains|all:
            - 'nohup '
            - 'osascript '
            - '/tmp/6202033'
    selection_curl_download:
        CommandLine|contains|all:
            - 'curl '
            - 'packages.npm.org/product'
            - '/Library/Caches/com.apple.act.mond'
    selection_cleanup:
        CommandLine|contains|all:
            - 'rm '
            - '-rf '
            - '/tmp/6202033'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_osascript

selection_osascript:
    CommandLine|contains|all:
        - 'nohup '
        - 'osascript '
        - '/tmp/6202033'

Stage 2: selection_curl_download

selection_curl_download:
    CommandLine|contains|all:
        - 'curl '
        - 'packages.npm.org/product'
        - '/Library/Caches/com.apple.act.mond'

Stage 3: selection_cleanup

selection_cleanup:
    CommandLine|contains|all:
        - 'rm '
        - '-rf '
        - '/tmp/6202033'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -rf
  • /Library/Caches/com.apple.act.mond
  • /tmp/6202033
  • curl corpus 11 (sigma 11)
  • nohup corpus 2 (sigma 2)
  • osascript
  • packages.npm.org/product
  • rm corpus 4 (sigma 2, splunk 2)
field:"CommandLine" kind:match

Cloudflared Tunnel Connections Cleanup

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

Detects execution of the "cloudflared" tool with the tunnel "cleanup" flag in order to cleanup tunnel connections.

Known False Positives

  • Legitimate usage of Cloudflared.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Cloudflared Tunnel Connections Cleanup
id: 7050bba1-1aed-454e-8f73-3f46f09ce56a
status: test
description: Detects execution of the "cloudflared" tool with the tunnel "cleanup" flag in order to cleanup tunnel connections.
references:
    - https://github.com/cloudflare/cloudflared
    - https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-17
modified: 2023-12-21
tags:
    - attack.command-and-control
    - attack.t1102
    - attack.t1090
    - attack.t1572
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - ' tunnel '
            - 'cleanup '
        CommandLine|contains:
            - '-config '
            - '-connector-id '
    condition: selection
falsepositives:
    - Legitimate usage of Cloudflared.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - ' tunnel '
        - 'cleanup '
    CommandLine|contains:
        - '-config '
        - '-connector-id '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • tunnel corpus 3 (sigma 3)
  • -config corpus 3 (sigma 3)
  • -connector-id corpus 2 (sigma 2)
  • cleanup corpus 2 (sigma 2)
field:"CommandLine" kind:match

Code Injection by ld.so Preload

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

Detects the ld.so preload persistence file. See man ld.so for more information.

Known False Positives

  • Rare temporary workaround for library misconfiguration

MITRE ATT&CK Coverage

Rule Body

title: Code Injection by ld.so Preload
id: 7e3c4651-c347-40c4-b1d4-d48590fdf684
status: test
description: Detects the ld.so preload persistence file. See `man ld.so` for more information.
references:
    - https://man7.org/linux/man-pages/man8/ld.so.8.html
author: Christian Burkard (Nextron Systems)
date: 2021-05-05
modified: 2022-10-09
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.006
logsource:
    product: linux
detection:
    keywords:
        - '/etc/ld.so.preload'
    condition: keywords
falsepositives:
    - Rare temporary workaround for library misconfiguration
level: high

Stages and Predicates

Stage 0: condition

keywords

Stage 1: keywords

keywords:
    - '/etc/ld.so.preload'

Diskshadow Script Mode - Uncommon Script Extension Execution

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

Detects execution of "Diskshadow.exe" in script mode to execute an script with a potentially uncommon extension. Initial baselining of the allowed extension list is required.

Known False Positives

  • False postitve might occur with legitimate or uncommon extensions used internally. Initial baseline is required.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Diskshadow Script Mode - Uncommon Script Extension Execution
id: 1dde5376-a648-492e-9e54-4241dd9b0c7f
related:
    - id: fa1a7e52-3d02-435b-81b8-00da14dd66c1 # Diskshadow Script Mode - Execution From Potential Suspicious Location
      type: similar
    - id: 9f546b25-5f12-4c8d-8532-5893dcb1e4b8 # Potentially Suspicious Child Process Of DiskShadow.EXE
      type: similar
    - id: 56b1dde8-b274-435f-a73a-fb75eb81262a # Diskshadow Child Process Spawned
      type: similar
    - id: 0c2f8629-7129-4a8a-9897-7e0768f13ff2 # Diskshadow Script Mode Execution
      type: similar
status: test
description: |
    Detects execution of "Diskshadow.exe" in script mode to execute an script with a potentially uncommon extension.
    Initial baselining of the allowed extension list is required.
references:
    - https://bohops.com/2018/03/26/diskshadow-the-return-of-vss-evasion-persistence-and-active-directory-database-extraction/
    - https://www.ired.team/offensive-security/credential-access-and-credential-dumping/ntds.dit-enumeration
    - https://medium.com/@cyberjyot/lolbin-execution-via-diskshadow-f6ff681a27a4
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/diskshadow
    - https://www.lifars.com/wp-content/uploads/2022/01/GriefRansomware_Whitepaper-2.pdf
    - https://www.zscaler.com/blogs/security-research/technical-analysis-crytox-ransomware
    - https://research.checkpoint.com/2022/evilplayout-attack-against-irans-state-broadcaster/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-09-15
modified: 2024-03-05
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - OriginalFileName: 'diskshadow.exe'
        - Image|endswith: '\diskshadow.exe'
    selection_flag:
        CommandLine|contains|windash: '-s '
    filter_main_ext:
        # Note: can be changed to an "endswith" to avoid rare FPs. But you need to account for quoted paths
        # Note: Using the ".txt" is based on the MS documentation example. Best add the extension you use internally before using this rule
        CommandLine|contains: '.txt'
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - False postitve might occur with legitimate or uncommon extensions used internally. Initial baseline is required.
level: medium

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_img

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

Stage 2: selection_flag

selection_flag:
    CommandLine|contains|windash: '-s '

Stage 3: not filter_main_ext

filter_main_ext:
    CommandLine|contains: '.txt'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -s corpus 6 (sigma 6)
  • /s corpus 7 (sigma 6, splunk 1)
  • –s corpus 4 (sigma 4)
  • —s corpus 4 (sigma 4)
  • ―s corpus 4 (sigma 4)
field:"CommandLine" kind:match
Imageends_with
  • \diskshadow.exe corpus 5 (sigma 5)
field:"Image" kind:ends_with value:"\diskshadow.exe"
OriginalFileNameeq
  • diskshadow.exe corpus 6 (sigma 4, elastic 1, splunk 1)
field:"OriginalFileName" kind:eq value:"diskshadow.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch.txtexcludes:CommandLine field:"CommandLine" value:".txt"

Exchange transport agent installation artifacts (PowerShell)

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

Detects scenarios where an attacker attempts to load an artifact in the Exchange transport agent.

Known False Positives

  • rare administrator change

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Exchange transport agent installation artifacts (PowerShell)
description: Detects scenarios where an attacker attempts to load an artifact in the Exchange transport agent.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1505-Server%20Software%20Component
- https://speakerdeck.com/heirhabarov/hunting-for-persistence-via-microsoft-exchange-server-or-outlook
- https://www.welivesecurity.com/wp-content/uploads/2019/05/ESET-LightNeuron.pdf
tags:
- attack.persistence
- attack.t1505.002 # Server Software Component: Transport Agent 
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection:
  selection_powershell_native:
    EventID: 800
    EventData|contains:
      - Enable-TransportAgent
      - Install-TransportAgent

  selection_powershell_modern:
    EventID: 4103
    Payload|contains:
      - Enable-TransportAgent
      - Install-TransportAgent

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains:
      - Enable-TransportAgent
      - Install-TransportAgent

  condition: 1 of selection*
falsepositives:
- rare administrator change
level: high

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains:
    - Enable-TransportAgent
    - Install-TransportAgent

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains:
    - Enable-TransportAgent
    - Install-TransportAgent

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains:
    - Enable-TransportAgent
    - Install-TransportAgent

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventDatamatch
  • Enable-TransportAgent corpus 2 (sigma 2)
  • Install-TransportAgent corpus 2 (sigma 2)
field:"EventData" kind:match
Payloadmatch
  • Enable-TransportAgent
  • Install-TransportAgent
field:"Payload" kind:match
ScriptBlockTextmatch
  • Enable-TransportAgent
  • Install-TransportAgent
field:"ScriptBlockText" kind:match

HackTool - WinPwn Execution

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

Detects commandline keywords indicative of potential usge of the tool WinPwn. A tool for Windows and Active Directory reconnaissance and exploitation.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: HackTool - WinPwn Execution
id: d557dc06-62e8-4468-a8e8-7984124908ce
related:
    - id: 851fd622-b675-4d26-b803-14bc7baa517a
      type: similar
status: test
description: |
    Detects commandline keywords indicative of potential usge of the tool WinPwn. A tool for Windows and Active Directory reconnaissance and exploitation.
author: Swachchhanda Shrawan Poudel
date: 2023-12-04
references:
    - https://github.com/S3cur3Th1sSh1t/WinPwn
    - https://www.publicnow.com/view/EB87DB49C654D9B63995FAD4C9DE3D3CC4F6C3ED?1671634841
    - https://reconshell.com/winpwn-tool-for-internal-windows-pentesting-and-ad-security/
    - https://github.com/redcanaryco/atomic-red-team/blob/4d6c4e8e23d465af7a2388620cfe3f8c76e16cf0/atomics/T1082/T1082.md
    - https://grep.app/search?q=winpwn&filter[repo][0]=redcanaryco/atomic-red-team
tags:
    - attack.credential-access
    - attack.discovery
    - attack.execution
    - attack.privilege-escalation
    - attack.t1046
    - attack.t1082
    - attack.t1106
    - attack.t1518
    - attack.t1548.002
    - attack.t1552.001
    - attack.t1555
    - attack.t1555.003
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - 'Offline_Winpwn'
            - 'WinPwn '
            - 'WinPwn.exe'
            - 'WinPwn.ps1'
    condition: selection
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_hktl_winpwn/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains:
        - 'Offline_Winpwn'
        - 'WinPwn '
        - 'WinPwn.exe'
        - 'WinPwn.ps1'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • Offline_Winpwn
  • WinPwn
  • WinPwn.exe
  • WinPwn.ps1
field:"CommandLine" kind:match

HackTool Named File Stream Created

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

Detects the creation of a named file stream with the imphash of a well-known hack tool

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 15: FileCreateStreamHash

Rule Body

title: HackTool Named File Stream Created
id: 19b041f6-e583-40dc-b842-d6fa8011493f
status: test
description: Detects the creation of a named file stream with the imphash of a well-known hack tool
references:
    - https://github.com/gentilkiwi/mimikatz
    - https://github.com/topotam/PetitPotam
    - https://github.com/ohpe/juicy-potato
    - https://github.com/antonioCoco/RoguePotato
    - https://www.tarasco.org/security/pwdump_7/
    - https://github.com/fortra/nanodump
    - https://github.com/codewhitesec/HandleKatz
    - https://github.com/xuanxuan0/DripLoader
    - https://github.com/hfiref0x/UACME
    - https://github.com/outflanknl/Dumpert
    - https://github.com/wavestone-cdt/EDRSandblast
author: Florian Roth (Nextron Systems)
date: 2022-08-24
modified: 2024-11-23
tags:
    - attack.stealth
    - attack.s0139
    - attack.t1564.004
logsource:
    product: windows
    category: create_stream_hash
    definition: 'Requirements: Sysmon config with Imphash logging activated'
detection:
    selection:
        Hash|contains: # Sysmon field hashes contains all types
            - IMPHASH=BCCA3C247B619DCD13C8CDFF5F123932 # PetitPotam
            - IMPHASH=3A19059BD7688CB88E70005F18EFC439 # PetitPotam
            - IMPHASH=bf6223a49e45d99094406777eb6004ba # PetitPotam
            - IMPHASH=0C106686A31BFE2BA931AE1CF6E9DBC6 # Mimikatz
            - IMPHASH=0D1447D4B3259B3C2A1D4CFB7ECE13C3 # Mimikatz
            - IMPHASH=1B0369A1E06271833F78FFA70FFB4EAF # Mimikatz
            - IMPHASH=4C1B52A19748428E51B14C278D0F58E3 # Mimikatz
            - IMPHASH=4D927A711F77D62CEBD4F322CB57EC6F # Mimikatz
            - IMPHASH=66EE036DF5FC1004D9ED5E9A94A1086A # Mimikatz
            - IMPHASH=672B13F4A0B6F27D29065123FE882DFC # Mimikatz
            - IMPHASH=6BBD59CEA665C4AFCC2814C1327EC91F # Mimikatz
            - IMPHASH=725BB81DC24214F6ECACC0CFB36AD30D # Mimikatz
            - IMPHASH=9528A0E91E28FBB88AD433FEABCA2456 # Mimikatz
            - IMPHASH=9DA6D5D77BE11712527DCAB86DF449A3 # Mimikatz
            - IMPHASH=A6E01BC1AB89F8D91D9EAB72032AAE88 # Mimikatz
            - IMPHASH=B24C5EDDAEA4FE50C6A96A2A133521E4 # Mimikatz
            - IMPHASH=D21BBC50DCC169D7B4D0F01962793154 # Mimikatz
            - IMPHASH=FCC251CCEAE90D22C392215CC9A2D5D6 # Mimikatz
            - IMPHASH=23867A89C2B8FC733BE6CF5EF902F2D1 # JuicyPotato
            - IMPHASH=A37FF327F8D48E8A4D2F757E1B6E70BC # JuicyPotato
            - IMPHASH=F9A28C458284584A93B14216308D31BD # JuicyPotatoNG
            - IMPHASH=6118619783FC175BC7EBECFF0769B46E # RoguePotato
            - IMPHASH=959A83047E80AB68B368FDB3F4C6E4EA # RoguePotato
            - IMPHASH=563233BFA169ACC7892451F71AD5850A # RoguePotato
            - IMPHASH=87575CB7A0E0700EB37F2E3668671A08 # RoguePotato
            - IMPHASH=13F08707F759AF6003837A150A371BA1 # Pwdump
            - IMPHASH=1781F06048A7E58B323F0B9259BE798B # Pwdump
            - IMPHASH=233F85F2D4BC9D6521A6CAAE11A1E7F5 # Pwdump
            - IMPHASH=24AF2584CBF4D60BBE5C6D1B31B3BE6D # Pwdump
            - IMPHASH=632969DDF6DBF4E0F53424B75E4B91F2 # Pwdump
            - IMPHASH=713C29B396B907ED71A72482759ED757 # Pwdump
            - IMPHASH=749A7BB1F0B4C4455949C0B2BF7F9E9F # Pwdump
            - IMPHASH=8628B2608957A6B0C6330AC3DE28CE2E # Pwdump
            - IMPHASH=8B114550386E31895DFAB371E741123D # Pwdump
            - IMPHASH=94CB940A1A6B65BED4D5A8F849CE9793 # PwDumpX
            - IMPHASH=9D68781980370E00E0BD939EE5E6C141 # Pwdump
            - IMPHASH=B18A1401FF8F444056D29450FBC0A6CE # Pwdump
            - IMPHASH=CB567F9498452721D77A451374955F5F # Pwdump
            - IMPHASH=730073214094CD328547BF1F72289752 # Htran
            - IMPHASH=17B461A082950FC6332228572138B80C # Cobalt Strike beacons
            - IMPHASH=DC25EE78E2EF4D36FAA0BADF1E7461C9 # Cobalt Strike beacons
            - IMPHASH=819B19D53CA6736448F9325A85736792 # Cobalt Strike beacons
            - IMPHASH=829DA329CE140D873B4A8BDE2CBFAA7E # Cobalt Strike beacons
            - IMPHASH=C547F2E66061A8DFFB6F5A3FF63C0A74 # PPLDump
            - IMPHASH=0588081AB0E63BA785938467E1B10CCA # PPLDump
            - IMPHASH=0D9EC08BAC6C07D9987DFD0F1506587C # NanoDump
            - IMPHASH=BC129092B71C89B4D4C8CDF8EA590B29 # NanoDump
            - IMPHASH=4DA924CF622D039D58BCE71CDF05D242 # NanoDump
            - IMPHASH=E7A3A5C377E2D29324093377D7DB1C66 # NanoDump
            - IMPHASH=9A9DBEC5C62F0380B4FA5FD31DEFFEDF # NanoDump
            - IMPHASH=AF8A3976AD71E5D5FDFB67DDB8DADFCE # NanoDump
            - IMPHASH=0C477898BBF137BBD6F2A54E3B805FF4 # NanoDump
            - IMPHASH=0CA9F02B537BCEA20D4EA5EB1A9FE338 # NanoDump
            - IMPHASH=3AB3655E5A14D4EEFC547F4781BF7F9E # NanoDump
            - IMPHASH=E6F9D5152DA699934B30DAAB206471F6 # NanoDump
            - IMPHASH=3AD59991CCF1D67339B319B15A41B35D # NanoDump
            - IMPHASH=FFDD59E0318B85A3E480874D9796D872 # NanoDump
            - IMPHASH=0CF479628D7CC1EA25EC7998A92F5051 # NanoDump
            - IMPHASH=07A2D4DCBD6CB2C6A45E6B101F0B6D51 # NanoDump
            - IMPHASH=D6D0F80386E1380D05CB78E871BC72B1 # NanoDump
            - IMPHASH=38D9E015591BBFD4929E0D0F47FA0055 # HandleKatz
            - IMPHASH=0E2216679CA6E1094D63322E3412D650 # HandleKatz
            - IMPHASH=ADA161BF41B8E5E9132858CB54CAB5FB # DripLoader
            - IMPHASH=2A1BC4913CD5ECB0434DF07CB675B798 # DripLoader
            - IMPHASH=11083E75553BAAE21DC89CE8F9A195E4 # DripLoader
            - IMPHASH=A23D29C9E566F2FA8FFBB79267F5DF80 # DripLoader
            - IMPHASH=4A07F944A83E8A7C2525EFA35DD30E2F # CreateMiniDump
            - IMPHASH=767637C23BB42CD5D7397CF58B0BE688 # UACMe Akagi
            - IMPHASH=14C4E4C72BA075E9069EE67F39188AD8 # UACMe Akagi
            - IMPHASH=3C782813D4AFCE07BBFC5A9772ACDBDC # UACMe Akagi
            - IMPHASH=7D010C6BB6A3726F327F7E239166D127 # UACMe Akagi
            - IMPHASH=89159BA4DD04E4CE5559F132A9964EB3 # UACMe Akagi
            - IMPHASH=6F33F4A5FC42B8CEC7314947BD13F30F # UACMe Akagi
            - IMPHASH=5834ED4291BDEB928270428EBBAF7604 # UACMe Akagi
            - IMPHASH=5A8A8A43F25485E7EE1B201EDCBC7A38 # UACMe Akagi
            - IMPHASH=DC7D30B90B2D8ABF664FBED2B1B59894 # UACMe Akagi
            - IMPHASH=41923EA1F824FE63EA5BEB84DB7A3E74 # UACMe Akagi
            - IMPHASH=3DE09703C8E79ED2CA3F01074719906B # UACMe Akagi
            - IMPHASH=A53A02B997935FD8EEDCB5F7ABAB9B9F # WCE
            - IMPHASH=E96A73C7BF33A464C510EDE582318BF2 # WCE
            - IMPHASH=32089B8851BBF8BC2D014E9F37288C83 # Sliver Stagers
            - IMPHASH=09D278F9DE118EF09163C6140255C690 # Dumpert
            - IMPHASH=03866661686829d806989e2fc5a72606 # Dumpert
            - IMPHASH=e57401fbdadcd4571ff385ab82bd5d6d # Dumpert
            - IMPHASH=84B763C45C0E4A3E7CA5548C710DB4EE # SysmonEnte
            - IMPHASH=19584675D94829987952432E018D5056 # SysmonQuiet
            - IMPHASH=330768A4F172E10ACB6287B87289D83B # ShaprEvtMute Hook
            - IMPHASH=885C99CCFBE77D1CBFCB9C4E7C1A3313 # Forkatz
            - IMPHASH=22A22BC9E4E0D2F189F1EA01748816AC # PPLKiller
            - IMPHASH=7FA30E6BB7E8E8A69155636E50BF1B28 # PPLKiller
            - IMPHASH=96DF3A3731912449521F6F8D183279B1 # Backstab
            - IMPHASH=7E6CF3FF4576581271AC8A313B2AAB46 # Backstab
            - IMPHASH=51791678F351C03A0EB4E2A7B05C6E17 # Backstab
            - IMPHASH=25CE42B079282632708FC846129E98A5 # Forensia
            - IMPHASH=021BCCA20BA3381B11BDDE26B4E62F20 # EDRSandBlast
            - IMPHASH=59223B5F52D8799D38E0754855CBDF42 # EDRSandBlast
            - IMPHASH=81E75D8F1D276C156653D3D8813E4A43 # EDRSandBlast
            - IMPHASH=17244E8B6B8227E57FE709CCAD421420 # EDRSandBlast
            - IMPHASH=5B76DA3ACDEDC8A5CDF23A798B5936B4 # EDRSandBlast
            - IMPHASH=CB2B65BB77D995CC1C0E5DF1C860133C # EDRSandBlast
            - IMPHASH=40445337761D80CF465136FAFB1F63E6 # EDRSandBlast
            - IMPHASH=8A790F401B29FA87BC1E56F7272B3AA6 # EDRSilencer
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Hash|contains:
        - IMPHASH=BCCA3C247B619DCD13C8CDFF5F123932
        - IMPHASH=3A19059BD7688CB88E70005F18EFC439
        - IMPHASH=bf6223a49e45d99094406777eb6004ba
        - IMPHASH=0C106686A31BFE2BA931AE1CF6E9DBC6
        - IMPHASH=0D1447D4B3259B3C2A1D4CFB7ECE13C3
        - IMPHASH=1B0369A1E06271833F78FFA70FFB4EAF
        - IMPHASH=4C1B52A19748428E51B14C278D0F58E3
        - IMPHASH=4D927A711F77D62CEBD4F322CB57EC6F
        - IMPHASH=66EE036DF5FC1004D9ED5E9A94A1086A
        - IMPHASH=672B13F4A0B6F27D29065123FE882DFC
        - IMPHASH=6BBD59CEA665C4AFCC2814C1327EC91F
        - IMPHASH=725BB81DC24214F6ECACC0CFB36AD30D
        - IMPHASH=9528A0E91E28FBB88AD433FEABCA2456
        - IMPHASH=9DA6D5D77BE11712527DCAB86DF449A3
        - IMPHASH=A6E01BC1AB89F8D91D9EAB72032AAE88
        - IMPHASH=B24C5EDDAEA4FE50C6A96A2A133521E4
        - IMPHASH=D21BBC50DCC169D7B4D0F01962793154
        - IMPHASH=FCC251CCEAE90D22C392215CC9A2D5D6
        - IMPHASH=23867A89C2B8FC733BE6CF5EF902F2D1
        - IMPHASH=A37FF327F8D48E8A4D2F757E1B6E70BC
        - IMPHASH=F9A28C458284584A93B14216308D31BD
        - IMPHASH=6118619783FC175BC7EBECFF0769B46E
        - IMPHASH=959A83047E80AB68B368FDB3F4C6E4EA
        - IMPHASH=563233BFA169ACC7892451F71AD5850A
        - IMPHASH=87575CB7A0E0700EB37F2E3668671A08
        - IMPHASH=13F08707F759AF6003837A150A371BA1
        - IMPHASH=1781F06048A7E58B323F0B9259BE798B
        - IMPHASH=233F85F2D4BC9D6521A6CAAE11A1E7F5
        - IMPHASH=24AF2584CBF4D60BBE5C6D1B31B3BE6D
        - IMPHASH=632969DDF6DBF4E0F53424B75E4B91F2
        - IMPHASH=713C29B396B907ED71A72482759ED757
        - IMPHASH=749A7BB1F0B4C4455949C0B2BF7F9E9F
        - IMPHASH=8628B2608957A6B0C6330AC3DE28CE2E
        - IMPHASH=8B114550386E31895DFAB371E741123D
        - IMPHASH=94CB940A1A6B65BED4D5A8F849CE9793
        - IMPHASH=9D68781980370E00E0BD939EE5E6C141
        - IMPHASH=B18A1401FF8F444056D29450FBC0A6CE
        - IMPHASH=CB567F9498452721D77A451374955F5F
        - IMPHASH=730073214094CD328547BF1F72289752
        - IMPHASH=17B461A082950FC6332228572138B80C
        - IMPHASH=DC25EE78E2EF4D36FAA0BADF1E7461C9
        - IMPHASH=819B19D53CA6736448F9325A85736792
        - IMPHASH=829DA329CE140D873B4A8BDE2CBFAA7E
        - IMPHASH=C547F2E66061A8DFFB6F5A3FF63C0A74
        - IMPHASH=0588081AB0E63BA785938467E1B10CCA
        - IMPHASH=0D9EC08BAC6C07D9987DFD0F1506587C
        - IMPHASH=BC129092B71C89B4D4C8CDF8EA590B29
        - IMPHASH=4DA924CF622D039D58BCE71CDF05D242
        - IMPHASH=E7A3A5C377E2D29324093377D7DB1C66
        - IMPHASH=9A9DBEC5C62F0380B4FA5FD31DEFFEDF
        - IMPHASH=AF8A3976AD71E5D5FDFB67DDB8DADFCE
        - IMPHASH=0C477898BBF137BBD6F2A54E3B805FF4
        - IMPHASH=0CA9F02B537BCEA20D4EA5EB1A9FE338
        - IMPHASH=3AB3655E5A14D4EEFC547F4781BF7F9E
        - IMPHASH=E6F9D5152DA699934B30DAAB206471F6
        - IMPHASH=3AD59991CCF1D67339B319B15A41B35D
        - IMPHASH=FFDD59E0318B85A3E480874D9796D872
        - IMPHASH=0CF479628D7CC1EA25EC7998A92F5051
        - IMPHASH=07A2D4DCBD6CB2C6A45E6B101F0B6D51
        - IMPHASH=D6D0F80386E1380D05CB78E871BC72B1
        - IMPHASH=38D9E015591BBFD4929E0D0F47FA0055
        - IMPHASH=0E2216679CA6E1094D63322E3412D650
        - IMPHASH=ADA161BF41B8E5E9132858CB54CAB5FB
        - IMPHASH=2A1BC4913CD5ECB0434DF07CB675B798
        - IMPHASH=11083E75553BAAE21DC89CE8F9A195E4
        - IMPHASH=A23D29C9E566F2FA8FFBB79267F5DF80
        - IMPHASH=4A07F944A83E8A7C2525EFA35DD30E2F
        - IMPHASH=767637C23BB42CD5D7397CF58B0BE688
        - IMPHASH=14C4E4C72BA075E9069EE67F39188AD8
        - IMPHASH=3C782813D4AFCE07BBFC5A9772ACDBDC
        - IMPHASH=7D010C6BB6A3726F327F7E239166D127
        - IMPHASH=89159BA4DD04E4CE5559F132A9964EB3
        - IMPHASH=6F33F4A5FC42B8CEC7314947BD13F30F
        - IMPHASH=5834ED4291BDEB928270428EBBAF7604
        - IMPHASH=5A8A8A43F25485E7EE1B201EDCBC7A38
        - IMPHASH=DC7D30B90B2D8ABF664FBED2B1B59894
        - IMPHASH=41923EA1F824FE63EA5BEB84DB7A3E74
        - IMPHASH=3DE09703C8E79ED2CA3F01074719906B
        - IMPHASH=A53A02B997935FD8EEDCB5F7ABAB9B9F
        - IMPHASH=E96A73C7BF33A464C510EDE582318BF2
        - IMPHASH=32089B8851BBF8BC2D014E9F37288C83
        - IMPHASH=09D278F9DE118EF09163C6140255C690
        - IMPHASH=03866661686829d806989e2fc5a72606
        - IMPHASH=e57401fbdadcd4571ff385ab82bd5d6d
        - IMPHASH=84B763C45C0E4A3E7CA5548C710DB4EE
        - IMPHASH=19584675D94829987952432E018D5056
        - IMPHASH=330768A4F172E10ACB6287B87289D83B
        - IMPHASH=885C99CCFBE77D1CBFCB9C4E7C1A3313
        - IMPHASH=22A22BC9E4E0D2F189F1EA01748816AC
        - IMPHASH=7FA30E6BB7E8E8A69155636E50BF1B28
        - IMPHASH=96DF3A3731912449521F6F8D183279B1
        - IMPHASH=7E6CF3FF4576581271AC8A313B2AAB46
        - IMPHASH=51791678F351C03A0EB4E2A7B05C6E17
        - IMPHASH=25CE42B079282632708FC846129E98A5
        - IMPHASH=021BCCA20BA3381B11BDDE26B4E62F20
        - IMPHASH=59223B5F52D8799D38E0754855CBDF42
        - IMPHASH=81E75D8F1D276C156653D3D8813E4A43
        - IMPHASH=17244E8B6B8227E57FE709CCAD421420
        - IMPHASH=5B76DA3ACDEDC8A5CDF23A798B5936B4
        - IMPHASH=CB2B65BB77D995CC1C0E5DF1C860133C
        - IMPHASH=40445337761D80CF465136FAFB1F63E6
        - IMPHASH=8A790F401B29FA87BC1E56F7272B3AA6

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Hashmatch
  • IMPHASH=021BCCA20BA3381B11BDDE26B4E62F20 corpus 2 (sigma 2)
  • IMPHASH=03866661686829d806989e2fc5a72606 corpus 2 (sigma 2)
  • IMPHASH=0588081AB0E63BA785938467E1B10CCA corpus 2 (sigma 2)
  • IMPHASH=07A2D4DCBD6CB2C6A45E6B101F0B6D51 corpus 2 (sigma 2)
  • IMPHASH=09D278F9DE118EF09163C6140255C690 corpus 2 (sigma 2)
  • IMPHASH=0C106686A31BFE2BA931AE1CF6E9DBC6
  • IMPHASH=0C477898BBF137BBD6F2A54E3B805FF4 corpus 2 (sigma 2)
  • IMPHASH=0CA9F02B537BCEA20D4EA5EB1A9FE338 corpus 2 (sigma 2)
  • IMPHASH=0CF479628D7CC1EA25EC7998A92F5051 corpus 2 (sigma 2)
  • IMPHASH=0D1447D4B3259B3C2A1D4CFB7ECE13C3
  • IMPHASH=0D9EC08BAC6C07D9987DFD0F1506587C corpus 2 (sigma 2)
  • IMPHASH=0E2216679CA6E1094D63322E3412D650 corpus 3 (sigma 3)
  • IMPHASH=11083E75553BAAE21DC89CE8F9A195E4 corpus 2 (sigma 2)
  • IMPHASH=13F08707F759AF6003837A150A371BA1 corpus 2 (sigma 2)
  • IMPHASH=14C4E4C72BA075E9069EE67F39188AD8 corpus 3 (sigma 3)
  • IMPHASH=17244E8B6B8227E57FE709CCAD421420 corpus 2 (sigma 2)
  • IMPHASH=1781F06048A7E58B323F0B9259BE798B corpus 2 (sigma 2)
  • IMPHASH=17B461A082950FC6332228572138B80C corpus 2 (sigma 2)
  • IMPHASH=19584675D94829987952432E018D5056 corpus 2 (sigma 2)
  • IMPHASH=1B0369A1E06271833F78FFA70FFB4EAF
  • IMPHASH=22A22BC9E4E0D2F189F1EA01748816AC corpus 2 (sigma 2)
  • IMPHASH=233F85F2D4BC9D6521A6CAAE11A1E7F5 corpus 2 (sigma 2)
  • IMPHASH=23867A89C2B8FC733BE6CF5EF902F2D1 corpus 2 (sigma 2)
  • IMPHASH=24AF2584CBF4D60BBE5C6D1B31B3BE6D corpus 2 (sigma 2)
  • IMPHASH=25CE42B079282632708FC846129E98A5 corpus 2 (sigma 2)
  • IMPHASH=2A1BC4913CD5ECB0434DF07CB675B798 corpus 2 (sigma 2)
  • IMPHASH=32089B8851BBF8BC2D014E9F37288C83 corpus 2 (sigma 2)
  • IMPHASH=330768A4F172E10ACB6287B87289D83B corpus 3 (sigma 3)
  • IMPHASH=38D9E015591BBFD4929E0D0F47FA0055 corpus 3 (sigma 3)
  • IMPHASH=3A19059BD7688CB88E70005F18EFC439 corpus 2 (sigma 2)
  • IMPHASH=3AB3655E5A14D4EEFC547F4781BF7F9E corpus 2 (sigma 2)
  • IMPHASH=3AD59991CCF1D67339B319B15A41B35D corpus 2 (sigma 2)
  • IMPHASH=3C782813D4AFCE07BBFC5A9772ACDBDC corpus 3 (sigma 3)
  • IMPHASH=3DE09703C8E79ED2CA3F01074719906B corpus 3 (sigma 3)
  • IMPHASH=40445337761D80CF465136FAFB1F63E6 corpus 2 (sigma 2)
  • IMPHASH=41923EA1F824FE63EA5BEB84DB7A3E74 corpus 3 (sigma 3)
  • IMPHASH=4A07F944A83E8A7C2525EFA35DD30E2F corpus 3 (sigma 3)
  • IMPHASH=4C1B52A19748428E51B14C278D0F58E3
  • IMPHASH=4D927A711F77D62CEBD4F322CB57EC6F
  • IMPHASH=4DA924CF622D039D58BCE71CDF05D242 corpus 2 (sigma 2)
  • +62 more values (see full rule source)
field:"Hashes" kind:match

Impacket SMBexec service creation (registry)

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

Detects scenarios where an attacker attempts to register the SMBexec service to estasblish persistence.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Impacket SMBexec service creation (registry)
description: Detects scenarios where an attacker attempts to register the SMBexec service to estasblish persistence.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1112-Modify%20registry
- https://github.com/SecureAuthCorp/impacket/blob/master/examples/smbexec.py
- https://nv2lt.github.io/windows/smb-psexec-smbexec-winexe-how-to/
tags:
- attack.defense_evasion
- attack.t1112
- attack.privilege_execution
- attack.t1543.003
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: registry_event
detection:
  selection:
    TargetObject|contains: \CurrentControlSet\Services\BTOBTO\ # Service name can be changed in the application name
    #Image|endswith: \services.exe
  condition: selection
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  TargetObject|contains: \CurrentControlSet\Services\BTOBTO\

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectmatch
  • \CurrentControlSet\Services\BTOBTO\
field:"TargetObject" kind:match value:"\CurrentControlSet\Services\BTOBTO\"

LSASS dump via process access

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

Detects scenarios where an attacker attempt to dump LSASS process with tools like Mimikatz.

Known False Positives

  • Antivirus, security products, browsers

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 10: ProcessAccess

Rule Body

title: LSASS dump via process access
description: Detects scenarios where an attacker attempt to dump LSASS process with tools like Mimikatz.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1003-Credential%20dumping
- https://threathunterplaybook.com/notebooks/windows/06_credential_access/WIN-191030201010.html
- https://medium.com/threatpunter/detecting-attempts-to-steal-passwords-from-memory-558f16dce4ea
- https://cyberwardog.blogspot.com/2017/03/chronicles-of-threat-hunter-hunting-for_22.html
tags:
- attack.credential_access
- attack.t1003.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_access
detection:
  selection:
    EventID: 10 # process accessed
    TargetImage|endswith: '\system32\lsass.exe'
    GrantedAccess:
      - '0x1410'
      - '0x1010'
      - '0x1438' # could refers to misc::memssp
      - '0x143a'
      - '0x1418'
      - '0x1fffff' # ProcDump
  filter:
    SourceImage:
      - '*\ProgramData\Microsoft\Windows Defender\Platform\*'
      - '*\Program Files\Windows Defender Advanced Threat Protection\*'
      - '*\system32\csrss.exe'
      - '*\system32\wininit.exe'
  condition: selection and not filter
falsepositives:
- Antivirus, security products, browsers
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 10
  TargetImage|endswith: '\system32\lsass.exe'
  GrantedAccess:
    - '0x1410'
    - '0x1010'
    - '0x1438'
    - '0x143a'
    - '0x1418'
    - '0x1fffff'

Stage 2: not filter

filter:
  SourceImage:
    - '*\ProgramData\Microsoft\Windows Defender\Platform\*'
    - '*\Program Files\Windows Defender Advanced Threat Protection\*'
    - '*\system32\csrss.exe'
    - '*\system32\wininit.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
GrantedAccesseq
  • 0x1010 corpus 2 (sigma 1, splunk 1)
  • 0x1410 corpus 2 (sigma 1, splunk 1)
  • 0x1418
  • 0x1438
  • 0x143a corpus 2 (sigma 2)
  • 0x1fffff corpus 9 (sigma 7, splunk 1, kusto 1)
field:"GrantedAccess" kind:eq
TargetImageends_with
  • \system32\lsass.exe
field:"TargetImage" kind:ends_with value:"\system32\lsass.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SourceImageends_with\system32\csrss.exeexcludes:SourceImage field:"SourceImage" value:"\system32\csrss.exe"
SourceImageends_with\system32\wininit.exeexcludes:SourceImage field:"SourceImage" value:"\system32\wininit.exe"
SourceImagematch\Program Files\Windows Defender Advanced Threat Protection\excludes:SourceImage field:"SourceImage" value:"\Program Files\Windows Defender Advanced Threat Protection\"
SourceImagematch\ProgramData\Microsoft\Windows Defender\Platform\excludes:SourceImage field:"SourceImage" value:"\ProgramData\Microsoft\Windows Defender\Platform\"

macOS XProtect Malware Detection

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

Detects XProtect malware detection and remediation events. XProtect is Apple's built-in malware detection system. These events indicate confirmed malware presence and should trigger immediate incident response.

Known False Positives

  • Security testing with known malware samples
  • False positives from XProtect signatures (rare)

MITRE ATT&CK Coverage

TacticTechniques
Execution

Rule Body

title: macOS XProtect Malware Detection
id: c1a51851-4230-4141-9601-5d9f0cde7b96
status: experimental
description: 'Detects XProtect malware detection and remediation events. XProtect
  is Apple''s

  built-in malware detection system. These events indicate confirmed malware

  presence and should trigger immediate incident response.

  '
author: Eric Brown - Nebulock, Inc.
date: 2025/10/31
modified: 2025/10/31
references:
- https://attack.mitre.org/techniques/T1204/
- https://support.apple.com/guide/security/protecting-against-malware-sec469d47bd8/web
logsource:
  product: macos
  service: endpointsecurity
detection:
  selection_detected:
    esf.event_type: 112
    event.action: xp_malware_detected
  selection_remediated:
    esf.event_type: 113
    event.action: xp_malware_remediated
  condition: selection_detected or selection_remediated
falsepositives:
- Security testing with known malware samples
- False positives from XProtect signatures (rare)
fields:
- event_type
- event_name
- ProcessId
- Image
- User
- file_path
tags:
- attack.execution
- attack.t1204
- attack.initial_access
level: critical

Stages and Predicates

Stage 0: condition

selection_detected or selection_remediated

Stage 1: selection_detected

selection_detected:
  esf.event_type: 112
  event.action: xp_malware_detected

Stage 2: selection_remediated

selection_remediated:
  esf.event_type: 113
  event.action: xp_malware_remediated

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
esf.event_typeeq
  • 112
  • 113
field:"esf.event_type" kind:eq
event.actioneq
  • xp_malware_detected
  • xp_malware_remediated
field:"EventType" kind:eq

Medium risk local/domain local group membership change

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

Detects scenarios where a suspicious group membership is changed.

Known False Positives

  • Administrator activity

MITRE ATT&CK Coverage

TacticTechniques
Persistence

Telemetry Coverage

Rule Body

title: Medium risk local/domain local group membership change
description: Detects scenarios where a suspicious group membership is changed.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1098.xxx-Account%20manipulation
- https://ss64.com/nt/syntax-groups.html
- https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/security-identifiers
tags:
- attack.persistence
- attack.t1098
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4732 # local and domain local group
    TargetSid|startswith: 'S-1-5-32'
    TargetSid|endswith:
      - '-546'  # Guests
      - '-550'  # Print Operators
      - '-555'  # Remote Desktop Users
      - '-556'  # Network Configuration Operators
      - '-557'  # Incoming Forest Trust Builders
      - '-560'  # Windows Authorization Access Group
      - '-562'  # Distributed COM Users
      - '-568'  # IIS_IUSRS
      - '-569'  # Cryptographic Operators
      - '-573'  # Event Log Readers
      - '-574'  # Certificate Service DCOM Access
      - '-579'  # Access Control Assistance Operators
      - '-580'  # Remote Management Users
      - '-582'  # Storage Replica Administrators
      # add DnsAdmins group but has no default RID
  filter_sytem:
    SubjectUserSid: 'S-1-5-18' # LAPS or others IAM solutions may trigger this as a false positive
  filter_iis:
    TargetSid: "S-1-5-32-568" # IIS_IUSRS
    MemberSid: "S-1-5-20"     # Network service account
  condition: selection and not (filter_sytem OR filter_iis)
falsepositives:
- Administrator activity
level: high

Stages and Predicates

Stage 0: condition

selection and not (filter_sytem OR filter_iis)

Stage 1: selection

selection:
  EventID: 4732
  TargetSid|startswith: 'S-1-5-32'
  TargetSid|endswith:
    - '-546'
    - '-550'
    - '-555'
    - '-556'
    - '-557'
    - '-560'
    - '-562'
    - '-568'
    - '-569'
    - '-573'
    - '-574'
    - '-579'
    - '-580'
    - '-582'

Stage 2: not filter_sytem

filter_sytem:
  SubjectUserSid: 'S-1-5-18'

Stage 3: not filter_iis

filter_iis:
  TargetSid: "S-1-5-32-568"
  MemberSid: "S-1-5-20"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetSidends_with
  • -546
  • -550
  • -555
  • -556
  • -557
  • -560
  • -562
  • -568
  • -569
  • -573
  • -574
  • -579
  • -580
  • -582
field:"TargetSid" kind:ends_with
TargetSidstarts_with
  • S-1-5-32 corpus 2 (sigma 2)
field:"TargetSid" kind:starts_with value:"S-1-5-32"

Exclusions

The rule actively suppresses these predicates.

Meterpreter or Cobalt Strike Getsystem Service Installation - Security

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

Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Meterpreter or Cobalt Strike Getsystem Service Installation - Security
id: ecbc5e16-58e0-4521-9c60-eb9a7ea4ad34
related:
    - id: 843544a7-56e0-4dcc-a44f-5cc266dd97d6
      type: derived
status: test
description: Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting a specific service installation
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-privilege-escalation-in-windows-environment
    - https://blog.cobaltstrike.com/2014/04/02/what-happens-when-i-type-getsystem/
author: Teymur Kheirkhabarov, Ecco, Florian Roth (Nextron Systems)
date: 2019-10-26
modified: 2023-11-15
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.001
    - attack.t1134.002
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    selection_eid:
        EventID: 4697
    selection_cli_cmd:
        # meterpreter getsystem technique 1: cmd.exe /c echo 559891bb017 > \\.\pipe\5e120a
        # cobaltstrike getsystem technique 1: %COMSPEC% /c echo 559891bb017 > \\.\pipe\5e120a
        # cobaltstrike getsystem technique 1b (expanded %COMSPEC%): %COMSPEC% /c echo 559891bb017 > \\.\pipe\5e120a
        ServiceFileName|contains|all:
            - '/c'
            - 'echo'
            - '\pipe\'
        ServiceFileName|contains:
            - 'cmd'
            - '%COMSPEC%'
    selection_cli_rundll:
        # meterpreter getsystem technique 2: rundll32.exe C:\Users\test\AppData\Local\Temp\tmexsn.dll,a /p:tmexsn
        ServiceFileName|contains|all:
            - 'rundll32'
            - '.dll,a'
            - '/p:'
    selection_cli_share:
        ServiceFileName|startswith: '\\\\127.0.0.1\\ADMIN$\'  # https://twitter.com/svch0st/status/1413688851877416960?lang=en
    condition: selection_eid and 1 of selection_cli_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection_eid and 1 of selection_cli_*

Stage 1: selection_eid

selection_eid:
    EventID: 4697

Stage 2: selection_cli_cmd

selection_cli_cmd:
    ServiceFileName|contains|all:
        - '/c'
        - 'echo'
        - '\pipe\'
    ServiceFileName|contains:
        - 'cmd'
        - '%COMSPEC%'

Stage 3: selection_cli_rundll

selection_cli_rundll:
    ServiceFileName|contains|all:
        - 'rundll32'
        - '.dll,a'
        - '/p:'

Stage 4: selection_cli_share

selection_cli_share:
    ServiceFileName|startswith: '\\\\127.0.0.1\\ADMIN$\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ServiceFileNamematch
  • %COMSPEC% corpus 2 (sigma 2)
  • .dll,a
  • /c corpus 3 (sigma 3)
  • /p:
  • \pipe\
  • cmd corpus 5 (sigma 5)
  • echo
  • rundll32 corpus 2 (sigma 2)
field:"ServiceFileName" kind:match
ServiceFileNamestarts_with
  • \\\\127.0.0.1\\ADMIN$\
field:"ServiceFileName" kind:starts_with value:"\\\\127.0.0.1\\ADMIN$\"

Microsoft Word Add-In Loaded

#
Status
test
Severity
low
Author
Steffen Rogge (dr0pd34d)
Source
github.com/SigmaHQ/sigma

Detects Microsoft Word loading an Add-In (.wll) file which can be used by threat actors for initial access or persistence.

Known False Positives

  • The rules is only looking for ".wll" loads. So some false positives are expected with legitimate and allowed WLLs.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Microsoft Word Add-In Loaded
id: 1337afba-d17d-4d23-bd55-29b927603b30
status: test
description: |
    Detects Microsoft Word loading an Add-In (.wll) file which can be used by threat actors for initial access or persistence.
references:
    - https://labs.withsecure.com/publications/add-in-opportunities-for-office-persistence
    - https://nored0x.github.io/red-teaming/office-persistence/#what-is-a-wll-file
author: Steffen Rogge (dr0pd34d)
date: 2024-07-10
tags:
    - attack.execution
    - attack.t1204.002
    - detection.threat-hunting
logsource:
    category: image_load
    product: windows
detection:
    selection:
        Image|endswith: '\winword.exe'
        ImageLoaded|endswith: '.wll'
    condition: selection
falsepositives:
    - The rules is only looking for ".wll" loads. So some false positives are expected with legitimate and allowed WLLs.
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\winword.exe'
    ImageLoaded|endswith: '.wll'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \winword.exe corpus 17 (sigma 17)
field:"Image" kind:ends_with value:"\winword.exe"
ImageLoadedends_with
  • .wll
field:"ImageLoaded" kind:ends_with value:".wll"

Network Connection Initiated To Visual Studio Code Tunnels Domain

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

Detects network connections to Visual Studio Code tunnel domains initiated by a process on a system. Attackers can abuse that feature to establish a reverse shell or persistence on a machine.

Known False Positives

  • Legitimate use of Visual Studio Code tunnel will also trigger this.

MITRE ATT&CK Coverage

TacticTechniques
Command & Control
Exfiltration

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Network Connection Initiated To Visual Studio Code Tunnels Domain
id: 4b657234-038e-4ad5-997c-4be42340bce4
related:
    - id: 9501f8e6-8e3d-48fc-a8a6-1089dd5d7ef4 # Net Connection DevTunnels
      type: similar
    - id: b3e6418f-7c7a-4fad-993a-93b65027a9f1 # DNS VsCode
      type: similar
    - id: 1cb0c6ce-3d00-44fc-ab9c-6d6d577bf20b # DNS DevTunnels
      type: similar
status: test
description: |
    Detects network connections to Visual Studio Code tunnel domains initiated by a process on a system. Attackers can abuse that feature to establish a reverse shell or persistence on a machine.
references:
    - https://ipfyx.fr/post/visual-studio-code-tunnel/
    - https://badoption.eu/blog/2023/01/31/code_c2.html
    - https://cydefops.com/vscode-data-exfiltration
author: Kamran Saifullah
date: 2023-11-20
tags:
    - attack.exfiltration
    - attack.command-and-control
    - attack.t1567
    - attack.t1572
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        DestinationHostname|endswith: '.tunnels.api.visualstudio.com'
    condition: selection
falsepositives:
    - Legitimate use of Visual Studio Code tunnel will also trigger this.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Initiated: 'true'
    DestinationHostname|endswith: '.tunnels.api.visualstudio.com'

Indicators

These rows show field, operator, and value matches.

New Kind of Network (NKN) Detection

#
Status
test
Severity
low
Author
Michael Portera (@mportatoes)
Source
github.com/SigmaHQ/sigma

NKN is a networking service using blockchain technology to support a decentralized network of peers. While there are legitimate uses for it, it can also be used as a C2 channel. This rule looks for a DNS request to the ma>

MITRE ATT&CK Coverage

TacticTechniques
Command & ControlNo specific technique

Rule Body

title: New Kind of Network (NKN) Detection
id: fa7703d6-0ee8-4949-889c-48c84bc15b6f
status: test
description: NKN is a networking service using blockchain technology to support a decentralized network of peers. While there are legitimate uses for it, it can also be used as a C2 channel. This rule looks for a DNS request to the ma>
references:
    - https://github.com/nknorg/nkn-sdk-go
    - https://unit42.paloaltonetworks.com/manageengine-godzilla-nglite-kdcsponge/
    - https://github.com/Maka8ka/NGLite
author: Michael Portera (@mportatoes)
date: 2022-04-21
tags:
    - attack.command-and-control
logsource:
    product: zeek
    service: dns
detection:
    selection:
        query|contains|all:
            - 'seed'
            - '.nkn.org'
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    query|contains|all:
        - 'seed'
        - '.nkn.org'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
querymatch
  • .nkn.org
  • seed
field:"query" kind:match

Potential CobaltStrike Service Installations - Registry

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

Detects known malicious service installs that appear in cases in which a Cobalt Strike beacon elevates privileges or lateral movement.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential CobaltStrike Service Installations - Registry
id: 61a7697c-cb79-42a8-a2ff-5f0cdfae0130
status: test
description: |
    Detects known malicious service installs that appear in cases in which a Cobalt Strike beacon elevates privileges or lateral movement.
references:
    - https://www.sans.org/webcasts/tech-tuesday-workshop-cobalt-strike-detection-log-analysis-119395
author: Wojciech Lesicki
date: 2021-06-29
modified: 2024-03-25
tags:
    - attack.persistence
    - attack.execution
    - attack.privilege-escalation
    - attack.lateral-movement
    - attack.t1021.002
    - attack.t1543.003
    - attack.t1569.002
logsource:
    category: registry_set
    product: windows
detection:
    selection_key:
        - TargetObject|contains: '\System\CurrentControlSet\Services'
        - TargetObject|contains|all:
              - '\System\ControlSet'
              - '\Services'
    selection_details:
        - Details|contains|all:
              - 'ADMIN$'
              - '.exe'
        - Details|contains|all:
              - '%COMSPEC%'
              - 'start'
              - 'powershell'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_key

selection_key:
    - TargetObject|contains: '\System\CurrentControlSet\Services'
    - TargetObject|contains|all:
          - '\System\ControlSet'
          - '\Services'

Stage 2: selection_details

selection_details:
    - Details|contains|all:
          - 'ADMIN$'
          - '.exe'
    - Details|contains|all:
          - '%COMSPEC%'
          - 'start'
          - 'powershell'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Detailsmatch
  • %COMSPEC% corpus 3 (sigma 3)
  • .exe corpus 4 (sigma 3, splunk 1)
  • ADMIN$ corpus 2 (sigma 1, elastic 1)
  • powershell corpus 10 (sigma 9, elastic 1)
  • start
field:"Details" kind:match
TargetObjectmatch
  • \Services
  • \System\ControlSet
  • \System\CurrentControlSet\Services
field:"TargetObject" kind:match

Potential Encoded PowerShell Patterns In CommandLine

#
Status
test
Severity
low
Author
Teymur Kheirkhabarov (idea), Vasiliy Burov (rule), oscd.community, Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects specific combinations of encoding methods in PowerShell via the commandline

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential Encoded PowerShell Patterns In CommandLine
id: cdf05894-89e7-4ead-b2b0-0a5f97a90f2f
related:
    - id: 5b572dcf-254b-425c-a8c5-d9af6bea35a6
      type: similar
status: test
description: Detects specific combinations of encoding methods in PowerShell via the commandline
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=65
author: Teymur Kheirkhabarov (idea), Vasiliy Burov (rule), oscd.community, Tim Shelton
date: 2020-10-11
modified: 2023-01-26
tags:
    - attack.stealth
    - attack.t1027
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_to_1:
        CommandLine|contains:
            - 'ToInt'
            - 'ToDecimal'
            - 'ToByte'
            - 'ToUint'
            - 'ToSingle'
            - 'ToSByte'
    selection_to_2:
        CommandLine|contains:
            - 'ToChar'
            - 'ToString'
            - 'String'
    selection_gen_1:
        CommandLine|contains|all:
            - 'char'
            - 'join'
    selection_gen_2:
        CommandLine|contains|all:
            - 'split'
            - 'join'
    condition: selection_img and (all of selection_to_* or 1 of selection_gen_*)
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection_img and (all of selection_to_* or 1 of selection_gen_*)

Stage 1: selection_img

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

Stage 2: selection_to_1

selection_to_1:
    CommandLine|contains:
        - 'ToInt'
        - 'ToDecimal'
        - 'ToByte'
        - 'ToUint'
        - 'ToSingle'
        - 'ToSByte'

Stage 3: selection_to_2

selection_to_2:
    CommandLine|contains:
        - 'ToChar'
        - 'ToString'
        - 'String'

Stage 4: selection_gen_1

selection_gen_1:
    CommandLine|contains|all:
        - 'char'
        - 'join'

Stage 5: selection_gen_2

selection_gen_2:
    CommandLine|contains|all:
        - 'split'
        - 'join'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • String
  • ToByte
  • ToChar
  • ToDecimal
  • ToInt
  • ToSByte
  • ToSingle
  • ToString
  • ToUint
  • char
  • join
  • split
field:"CommandLine" kind:match
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
OriginalFileNameeq
  • PowerShell.EXE corpus 134 (sigma 86, splunk 30, elastic 18)
  • pwsh.dll corpus 115 (sigma 81, splunk 30, elastic 4)
field:"OriginalFileName" kind:eq

Potential File Override/Append Via SET Command

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

Detects the use of the "SET" internal command of Cmd.EXE with the /p flag followed directly by an "=" sign. Attackers used this technique along with an append redirection operator ">>" in order to update the content of a file indirectly. Ex: cmd /c >> example.txt set /p="test data". This will append "test data" to contents of "example.txt". The typical use case of the "set /p=" command is to prompt the user for input.

Known False Positives

  • Legitimate use of the SET with the "/p" flag for user prompting. command in administrative scripts or user-generated scripts.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential File Override/Append Via SET Command
id: 65e4c134-ee52-4099-9e35-5e17a4b45c62
status: test
description: |
    Detects the use of the "SET" internal command of Cmd.EXE with the /p flag followed directly by an "=" sign.
    Attackers used this technique along with an append redirection operator ">>" in order to update the content of a file indirectly.
    Ex: cmd /c >> example.txt set /p="test data". This will append "test data" to contents of "example.txt".
    The typical use case of the "set /p=" command is to prompt the user for input.
references:
    - https://news.sophos.com/en-us/2024/08/07/sophos-mdr-hunt-tracks-mimic-ransomware-campaign-against-organizations-in-india/
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/set_1
    - https://ss64.com/nt/set.html
author: Nasreddine Bencherchali (Nextron Systems), MahirAli Khan (in/mahiralikhan)
date: 2024-08-22
tags:
    - attack.execution
    - detection.threat-hunting
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\cmd.exe'
        - OriginalFileName: 'Cmd.Exe'
    selection_cli:
        CommandLine|contains:
            - '/c set /p='
            - '"set /p='
            - '>>*set /p=' # To catch edge cases where the attacker passes it via a "cmd /c"
    condition: all of selection_*
falsepositives:
    - Legitimate use of the SET with the "/p" flag for user prompting. command in administrative scripts or user-generated scripts.
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - '/c set /p='
        - '"set /p='
        - '>>*set /p='

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • "set /p=
  • /c set /p=
  • >>*set /p=
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"

Potential Java WebShell Upload in SAP NetViewer Server

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

Detects potential Java webshell uploads via HTTP requests with Content-Type 'application/octet-stream' and Java file extensions. This behavior might indicate exploitation of vulnerabilities like CVE-2025-31324, which allows remote code execution through webshells in SAP NetViewer.

Known False Positives

  • Legitimate uploads of Java files in development environments

MITRE ATT&CK Coverage

Rule Body

title: Potential Java WebShell Upload in SAP NetViewer Server
id: 639b893f-f93a-4e53-a7c8-f08cf73fe7f7
status: experimental
description: |
    Detects potential Java webshell uploads via HTTP requests with Content-Type 'application/octet-stream' and Java file extensions.
    This behavior might indicate exploitation of vulnerabilities like CVE-2025-31324, which allows remote code execution through webshells in SAP NetViewer.
references:
    - https://blog.eclecticiq.com/china-nexus-nation-state-actors-exploit-sap-netweaver-cve-2025-31324-to-target-critical-infrastructures
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-05-14
tags:
    - attack.persistence
    - attack.t1505.003
    - detection.emerging-threats
    - cve.2025-31324
logsource:
    category: webserver
detection:
    selection:
        cs-content-type: 'application/octet-stream'
        cs-method: 'POST'
        cs-uri-stem|contains|all:
            - '/irj/'
            - '.jsp'
        cs-uri-stem|endswith:
            - '.class'
            - '.java'
            - '.jsp'
    condition: selection
falsepositives:
    - Legitimate uploads of Java files in development environments
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-content-type: 'application/octet-stream'
    cs-method: 'POST'
    cs-uri-stem|contains|all:
        - '/irj/'
        - '.jsp'
    cs-uri-stem|endswith:
        - '.class'
        - '.java'
        - '.jsp'

Indicators

These rows show field, operator, and value matches.

Potential Mpclient.DLL Sideloading

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

Detects potential sideloading of "mpclient.dll" by Windows Defender processes ("MpCmdRun" and "NisSrv") from their non-default directory.

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Potential Mpclient.DLL Sideloading
id: 418dc89a-9808-4b87-b1d7-e5ae0cb6effc
related:
    - id: 7002aa10-b8d4-47ae-b5ba-51ab07e228b9
      type: similar
status: test
description: Detects potential sideloading of "mpclient.dll" by Windows Defender processes ("MpCmdRun" and "NisSrv") from their non-default directory.
references:
    - https://www.sentinelone.com/blog/living-off-windows-defender-lockbit-ransomware-sideloads-cobalt-strike-through-microsoft-security-tool
author: Bhabesh Raj
date: 2022-08-02
modified: 2023-08-04
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    product: windows
    category: image_load
detection:
    selection:
        ImageLoaded|endswith: '\mpclient.dll'
        Image|endswith:
            - '\MpCmdRun.exe'
            - '\NisSrv.exe'
    filter_main_known_locations:
        Image|startswith:
            - 'C:\Program Files (x86)\Windows Defender\'
            - 'C:\Program Files\Microsoft Security Client\'
            - 'C:\Program Files\Windows Defender\'
            - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
            - 'C:\Windows\WinSxS\'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    ImageLoaded|endswith: '\mpclient.dll'
    Image|endswith:
        - '\MpCmdRun.exe'
        - '\NisSrv.exe'

Stage 2: not filter_main_known_locations

filter_main_known_locations:
    Image|startswith:
        - 'C:\Program Files (x86)\Windows Defender\'
        - 'C:\Program Files\Microsoft Security Client\'
        - 'C:\Program Files\Windows Defender\'
        - 'C:\ProgramData\Microsoft\Windows Defender\Platform\'
        - 'C:\Windows\WinSxS\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \MpCmdRun.exe corpus 4 (sigma 4)
  • \NisSrv.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with
ImageLoadedends_with
  • \mpclient.dll
field:"ImageLoaded" kind:ends_with value:"\mpclient.dll"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagestarts_withC:\Program Files (x86)\Windows Defender\excludes:Image field:"Image" value:"C:\Program Files (x86)\Windows Defender\"
Imagestarts_withC:\Program Files\Microsoft Security Client\excludes:Image field:"Image" value:"C:\Program Files\Microsoft Security Client\"
Imagestarts_withC:\Program Files\Windows Defender\excludes:Image field:"Image" value:"C:\Program Files\Windows Defender\"
Imagestarts_withC:\ProgramData\Microsoft\Windows Defender\Platform\excludes:Image field:"Image" value:"C:\ProgramData\Microsoft\Windows Defender\Platform\"
Imagestarts_withC:\Windows\WinSxS\excludes:Image field:"Image" value:"C:\Windows\WinSxS\"

PowerShell Create Local User

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

Detects creation of a local user via PowerShell

Known False Positives

  • Legitimate user creation

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: PowerShell Create Local User
id: 243de76f-4725-4f2e-8225-a8a69b15ad61
status: test
description: Detects creation of a local user via PowerShell
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1136.001/T1136.001.md
author: '@ROxPinTeddy'
date: 2020-04-11
modified: 2022-12-25
tags:
    - attack.execution
    - attack.t1059.001
    - attack.persistence
    - attack.t1136.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains: 'New-LocalUser'
    condition: selection
falsepositives:
    - Legitimate user creation
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains: 'New-LocalUser'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • New-LocalUser corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match value:"New-LocalUser"

Ps.exe Renamed SysInternals Tool

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

Detects renamed SysInternals tool execution with a binary named ps.exe as used by Dragonfly APT group and documented in TA17-293A report

Known False Positives

  • Renamed SysInternals tool

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Ps.exe Renamed SysInternals Tool
id: 18da1007-3f26-470f-875d-f77faf1cab31
status: test
description: Detects renamed SysInternals tool execution with a binary named ps.exe as used by Dragonfly APT group and documented in TA17-293A report
references:
    - https://www.us-cert.gov/ncas/alerts/TA17-293A
author: Florian Roth (Nextron Systems)
date: 2017-10-22
modified: 2023-05-02
tags:
    - attack.stealth
    - attack.g0035
    - attack.t1036.003
    - car.2013-05-009
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'ps.exe -accepteula'
            - '-s cmd /c netstat'
    condition: selection
falsepositives:
    - Renamed SysInternals tool
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'ps.exe -accepteula'
        - '-s cmd /c netstat'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -s cmd /c netstat
  • ps.exe -accepteula
field:"CommandLine" kind:match

RDP session hijack via TSCON abuse command

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

Detects scenarios where an attacker attempts to create a service that triggers TSCON in order to preform local RDP session hijack.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: RDP session hijack via TSCON abuse command
description: Detects scenarios where an attacker attempts to create a service that triggers TSCON in order to preform local RDP session hijack.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.001-Remote%20Desktop%20Protocol
- https://www.ired.team/offensive-security/lateral-movement/t1076-rdp-hijacking-for-lateral-movement
- https://www.csoonline.com/article/3566917/rdp-hijacking-attacks-explained-and-how-to-mitigate-them.html
- https://gist.github.com/bohops/f722f1a54d9ac1070350bdcaf2da618b
- https://doublepulsar.com/rdp-hijacking-how-to-hijack-rds-and-remoteapp-sessions-transparently-to-move-through-an-da2a1e73a5f6
- https://twitter.com/bohops/status/992232940900962304
tags:
- attack.lateral_movement
- attack.t1563.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    EventID: 4688
    CommandLine|contains|all: # full command "sc.exe create random_service binpath= "cmd.exe /k tscon 2 /dest:rdp-tcp#5""
      - tscon
      - 'dest:rdp-'
  condition: selection
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  CommandLine|contains|all:
    - tscon
    - 'dest:rdp-'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • dest:rdp-
  • tscon
field:"CommandLine" kind:match

Role Assignment Created

#
Status
test
Severity
informational
Author
Fukusuke Takahashi
Source
github.com/Yamato-Security/suzaku-rules

Creates role assignment.

MITRE ATT&CK Coverage

TacticTechniques
Privilege EscalationNo specific technique

Telemetry Coverage

Rule Body

title: Role Assignment Created
id: c3425eff-76ea-42f5-8874-aeaa30d499fb
status: test
description:
    Creates role assignment.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/change-history-report#interpret-a-log-entry
author: Fukusuke Takahashi
date: 2025-12-02
tags:
    - attack.privilege-escalation
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName: MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE
        properties.statusCode: Created
    condition: selection
falsepositives:
level: informational

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operationName: MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE
    properties.statusCode: Created

Indicators

These rows show field, operator, and value matches.

Scheduled task creation with command line

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

Detects scenarios where an attacker creates a scheduled task via commmand line.

Known False Positives

  • Administrator

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Scheduled task creation with command line
description: Detects scenarios where an attacker creates a scheduled task via commmand line.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1053.005-Scheduled%20Task
- https://www.ired.team/offensive-security/persistence/t1053-schtask
- https://pentestlab.blog/2019/11/04/persistence-scheduled-tasks/
- http://www.fuzzysecurity.com/tutorials/19.html
- https://nasbench.medium.com/a-deep-dive-into-windows-scheduled-tasks-and-the-processes-running-them-218d1eed4cce
- https://posts.specterops.io/abstracting-scheduled-tasks-3b6451f6a1c5
- https://www.darkoperator.com/blog/2009/4/11/abusing-the-scheduler-with-meterpreter.html
- https://blog.menasec.net/2019/03/threat-hunting-25-scheduled-tasks-for.html
- https://strontic.github.io/xcyclopedia/library/schtasks.exe-5BD86A7193D38880F339D4AFB1F9B63A.html
- https://nasbench.medium.com/behind-the-detection-schtasks-eb67a33a8710
- https://redcanary.com/threat-detection-report/techniques/scheduled-task/
- https://www.linkedin.com/pulse/lolbin-attacks-scheduled-tasks-t1503005-how-detect-them-v%C3%B6gele
- https://www.elastic.co/security-labs/invisible-miners-unveiling-ghostengine
tags:
- attack.execution
- attack.t1053.005
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection: # Full command: "schtasks" /create /sc minute /mo 1 /tn eviltask /tr C:\tools\shell.cmd /ru SYSTEM
  selection:
    NewProcessName|endswith: \schtasks.exe
    CommandLine|contains: create
  filter:
    CommandLine|contains|all: # See schedule persistent rule with SYSTEM privileges
        #- ru      # Run with privileges from user X
        #- SYSTEM  # Run with SYSTEM privileges
      - tr      # Program, path or command to run
      - sc      # Run task every X minutes
  condition: selection and not filter
falsepositives:
- Administrator
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  NewProcessName|endswith: \schtasks.exe
  CommandLine|contains: create

Stage 2: not filter

filter:
  CommandLine|contains|all:
    - tr
    - sc

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • create corpus 29 (sigma 17, splunk 7, elastic 5)
field:"CommandLine" kind:match value:"create"
NewProcessNameends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematchscexcludes:CommandLine field:"CommandLine" value:"sc"
CommandLinematchtrexcludes:CommandLine field:"CommandLine" value:"tr"

Security Software Discovery Via Powershell Script

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

Detects calls to "get-process" where the output is piped to a "where-object" filter to search for security solution processes. Adversaries may attempt to get a listing of security software, configurations, defensive tools, and sensors that are installed on a system or in a cloud environment. This may include things such as firewall rules and anti-virus

Known False Positives

  • False positives might occur due to the nature of the ScriptBlock being ingested as a big blob. Initial tuning is required.
  • As the "selection_cmdlet" is common in scripts the matching engine might slow down the search. Change into regex or a more accurate string to avoid heavy resource consumption if experienced

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Security Software Discovery Via Powershell Script
id: 904e8e61-8edf-4350-b59c-b905fc8e810c
status: test
description: |
    Detects calls to "get-process" where the output is piped to a "where-object" filter to search for security solution processes.
    Adversaries may attempt to get a listing of security software, configurations, defensive tools, and sensors that are installed on a system or in a cloud environment. This may include things such as firewall rules and anti-virus
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1518.001/T1518.001.md#atomic-test-2---security-software-discovery---powershell
author: frack113, Anish Bogati, Nasreddine Bencherchali (Nextron Systems)
date: 2021-12-16
modified: 2023-10-24
tags:
    - attack.discovery
    - attack.t1518.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_cmdlet:
        ScriptBlockText|contains:
            - 'get-process | \?'
            - 'get-process | where'
            - 'gps | \?'
            - 'gps | where'
    selection_field:
        ScriptBlockText|contains:
            - 'Company -like'
            - 'Description -like'
            - 'Name -like'
            - 'Path -like'
            - 'Product -like'
    selection_keywords:
        ScriptBlockText|contains:
            # Note: These strings are using wildcard assuming the search is using the "-like" operator.
            #       You can add specific variant with the actual process names to increase coverage
            - '\*avira\*'
            - '\*carbonblack\*'
            - '\*cylance\*'
            - '\*defender\*'
            - '\*kaspersky\*'
            - '\*malware\*'
            - '\*sentinel\*'
            - '\*symantec\*'
            - '\*virus\*'
    condition: all of selection_*
falsepositives:
    - False positives might occur due to the nature of the ScriptBlock being ingested as a big blob. Initial tuning is required.
    - As the "selection_cmdlet" is common in scripts the matching engine might slow down the search. Change into regex or a more accurate string to avoid heavy resource consumption if experienced
level: medium
regression_tests_path: regression_data/rules/windows/powershell/powershell_script/posh_ps_get_process_security_software_discovery/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_cmdlet

selection_cmdlet:
    ScriptBlockText|contains:
        - 'get-process | \?'
        - 'get-process | where'
        - 'gps | \?'
        - 'gps | where'

Stage 2: selection_field

selection_field:
    ScriptBlockText|contains:
        - 'Company -like'
        - 'Description -like'
        - 'Name -like'
        - 'Path -like'
        - 'Product -like'

Stage 3: selection_keywords

selection_keywords:
    ScriptBlockText|contains:
        - '\*avira\*'
        - '\*carbonblack\*'
        - '\*cylance\*'
        - '\*defender\*'
        - '\*kaspersky\*'
        - '\*malware\*'
        - '\*sentinel\*'
        - '\*symantec\*'
        - '\*virus\*'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ScriptBlockTextmatch
  • Company -like
  • Description -like
  • Name -like
  • Path -like
  • Product -like
  • \*avira\*
  • \*carbonblack\*
  • \*cylance\*
  • \*defender\*
  • \*kaspersky\*
  • \*malware\*
  • \*sentinel\*
  • \*symantec\*
  • \*virus\*
  • get-process | \?
  • get-process | where
  • gps | \?
  • gps | where
field:"ScriptBlockText" kind:match

Service deactivation (command)

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

Detects scenarios where an attacker attempts to disable

Known False Positives

  • troubleshooting

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Service deactivation (command)
description: Detects scenarios where an attacker attempts to disable 
references:
- https://www.sentinelone.com/labs/black-basta-ransomware-attacks-deploy-custom-edr-evasion-tools-tied-to-fin7-threat-actor/
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:
  selection:
    NewProcessName|endswith: '\sc.exe'
    CommandLine|contains|all:
      - sc
      - config
      - disabled
  condition: selection
falsepositives:
- troubleshooting
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith: '\sc.exe'
  CommandLine|contains|all:
    - sc
    - config
    - disabled

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • config corpus 16 (sigma 15, splunk 1)
  • disabled corpus 7 (sigma 5, elastic 1, splunk 1)
  • sc corpus 6 (sigma 6)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \sc.exe corpus 30 (sigma 30)
field:"Image" kind:ends_with value:"\sc.exe"

Service Registry Key Deleted Via Reg.EXE

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

Detects execution of "reg.exe" commands with the "delete" flag on services registry key. Often used by attacker to remove AV software services

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Service Registry Key Deleted Via Reg.EXE
id: 05b2aa93-1210-42c8-8d9a-2fcc13b284f5
status: test
description: Detects execution of "reg.exe" commands with the "delete" flag on services registry key. Often used by attacker to remove AV software services
references:
    - https://www.virustotal.com/gui/file/2bcd5702a7565952c44075ac6fb946c7780526640d1264f692c7664c02c68465
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-01
modified: 2023-02-04
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: 'reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_delete:
        CommandLine|contains: ' delete '
    selection_key:
        # Add specific services if you would like the rule to be more specific
        CommandLine|contains: '\SYSTEM\CurrentControlSet\services\'
    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: 'reg.exe'
    - OriginalFileName: 'reg.exe'

Stage 2: selection_delete

selection_delete:
    CommandLine|contains: ' delete '

Stage 3: selection_key

selection_key:
    CommandLine|contains: '\SYSTEM\CurrentControlSet\services\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • delete corpus 5 (sigma 4, splunk 1)
  • \SYSTEM\CurrentControlSet\services\ corpus 4 (sigma 4)
field:"CommandLine" kind:match
Imageends_with
  • reg.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"reg.exe"
OriginalFileNameeq
  • reg.exe corpus 41 (sigma 32, splunk 8, elastic 1)
field:"OriginalFileName" kind:eq value:"reg.exe"

SMB admin share accessed

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

Detects scenarios where an attacker attempts to connect to the administrative SMB share.

Known False Positives

  • Administrator activity, backup solutions

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: SMB admin share accessed
description: Detects scenarios where an attacker attempts to connect to the administrative SMB share.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.002%20-SMB%20Windows%20Admin%20Shares
tags:
- attack.lateral_movement
- attack.t1021.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID:
      - 5140
      - 5145
    ShareName: '\\*\ADMIN$'
  filter: # Filter works only with ID 5145
    - RelativeTargetName|endswith:
      - \cmd.exe        # see remote shell execution via SMB rule
      - \powershell.exe # see remote shell execution via SMB rule
      - \pwsh.exe       # see remote shell execution via SMB rule
    - IpAddress:
      - '%vulnerability_scanners%'
      - '%admin_netork_administration%'
  condition: selection and not filter
falsepositives:
- Administrator activity, backup solutions
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID:
    - 5140
    - 5145
  ShareName: '\\*\ADMIN$'

Stage 2: not filter

filter:
  - RelativeTargetName|endswith:
    - \cmd.exe
    - \powershell.exe
    - \pwsh.exe
  - IpAddress:
    - '%vulnerability_scanners%'
    - '%admin_netork_administration%'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ShareNamewildcard
  • \\*\ADMIN$ corpus 6 (sigma 6)
field:"ShareName" kind:wildcard value:"\\*\ADMIN$"

Exclusions

The rule actively suppresses these predicates.

Sofacy Trojan Loader Activity

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

Detects Trojan loader activity as used by APT28

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Sofacy Trojan Loader Activity
id: ba778144-5e3d-40cf-8af9-e28fb1df1e20
status: test
description: Detects Trojan loader activity as used by APT28
references:
    - https://researchcenter.paloaltonetworks.com/2018/02/unit42-sofacy-attacks-multiple-government-entities/
    - https://www.hybrid-analysis.com/sample/ff808d0a12676bfac88fd26f955154f8884f2bb7c534b9936510fd6296c543e8?environmentId=110
    - https://twitter.com/ClearskySec/status/960924755355369472
author: Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
date: 2018-03-01
modified: 2023-05-31
tags:
    - attack.execution
    - attack.stealth
    - attack.g0007
    - attack.t1059.003
    - attack.t1218.011
    - car.2013-10-002
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_path:
        Image|endswith: '\rundll32.exe'
        CommandLine|contains:
            - '%LOCALAPPDATA%'
            - '\AppData\Local\'
    selection_extensions:
        - CommandLine|contains: '.dat",'
        - CommandLine|endswith:
              - '.dll #1'
              - '.dll" #1'
              - '.dll",#1'
    filter_main_exclude_temp:
        CommandLine|contains: '\AppData\Local\Temp\'
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_path

selection_path:
    Image|endswith: '\rundll32.exe'
    CommandLine|contains:
        - '%LOCALAPPDATA%'
        - '\AppData\Local\'

Stage 2: selection_extensions

selection_extensions:
    - CommandLine|contains: '.dat",'
    - CommandLine|endswith:
          - '.dll #1'
          - '.dll" #1'
          - '.dll",#1'

Stage 3: not filter_main_exclude_temp

filter_main_exclude_temp:
    CommandLine|contains: '\AppData\Local\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • .dll #1
  • .dll" #1
  • .dll",#1
field:"CommandLine" kind:ends_with
CommandLinematch
  • %LOCALAPPDATA% corpus 4 (sigma 4)
  • .dat",
  • \AppData\Local\ corpus 11 (sigma 10, elastic 1)
field:"CommandLine" kind:match
Imageends_with
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with value:"\rundll32.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch\AppData\Local\Temp\excludes:CommandLine field:"CommandLine" value:"\AppData\Local\Temp\"

Suspicious AddinUtil.EXE CommandLine Execution

#
Status
test
Severity
high
Author
Nasreddine Bencherchali (Nextron Systems), Michael McKinley (@McKinleyMike), Tony Latteri (@TheLatteri)
Source
github.com/SigmaHQ/sigma

Detects execution of the Add-In deployment cache updating utility (AddInutil.exe) with suspicious Addinroot or Pipelineroot paths. An adversary may execute AddinUtil.exe with uncommon Addinroot/Pipelineroot paths that point to the adversaries Addins.Store payload.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious AddinUtil.EXE CommandLine Execution
id: 631b22a4-70f4-4e2f-9ea8-42f84d9df6d8
status: test
description: |
    Detects execution of the Add-In deployment cache updating utility (AddInutil.exe) with suspicious Addinroot or Pipelineroot paths. An adversary may execute AddinUtil.exe with uncommon Addinroot/Pipelineroot paths that point to the adversaries Addins.Store payload.
references:
    - https://www.blue-prints.blog/content/blog/posts/lolbin/addinutil-lolbas.html
author: Nasreddine Bencherchali (Nextron Systems), Michael McKinley (@McKinleyMike), Tony Latteri (@TheLatteri)
date: 2023-09-18
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\addinutil.exe'
        - OriginalFileName: 'AddInUtil.exe'
    selection_susp_1_flags:
        CommandLine|contains:
            - '-AddInRoot:'
            - '-PipelineRoot:'
    selection_susp_1_paths:
        CommandLine|contains:
            - '\AppData\Local\Temp\'
            - '\Desktop\'
            - '\Downloads\'
            - '\Users\Public\'
            - '\Windows\Temp\'
    selection_susp_2:
        CommandLine|contains:
            - '-AddInRoot:.'
            - '-AddInRoot:"."'
            - '-PipelineRoot:.'
            - '-PipelineRoot:"."'
        CurrentDirectory|contains:
            - '\AppData\Local\Temp\'
            - '\Desktop\'
            - '\Downloads\'
            - '\Users\Public\'
            - '\Windows\Temp\'
    condition: selection_img and (all of selection_susp_1_* or selection_susp_2)
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_img and (all of selection_susp_1_* or selection_susp_2)

Stage 1: selection_img

selection_img:
    - Image|endswith: '\addinutil.exe'
    - OriginalFileName: 'AddInUtil.exe'

Stage 2: selection_susp_1_flags

selection_susp_1_flags:
    CommandLine|contains:
        - '-AddInRoot:'
        - '-PipelineRoot:'

Stage 3: selection_susp_1_paths

selection_susp_1_paths:
    CommandLine|contains:
        - '\AppData\Local\Temp\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Users\Public\'
        - '\Windows\Temp\'

Stage 4: selection_susp_2

selection_susp_2:
    CommandLine|contains:
        - '-AddInRoot:.'
        - '-AddInRoot:"."'
        - '-PipelineRoot:.'
        - '-PipelineRoot:"."'
    CurrentDirectory|contains:
        - '\AppData\Local\Temp\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Users\Public\'
        - '\Windows\Temp\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -AddInRoot: corpus 2 (sigma 2)
  • -AddInRoot:"."
  • -AddInRoot:.
  • -PipelineRoot: corpus 2 (sigma 2)
  • -PipelineRoot:"."
  • -PipelineRoot:.
  • \AppData\Local\Temp\ corpus 28 (sigma 26, elastic 2)
  • \Desktop\ corpus 13 (sigma 13)
  • \Downloads\ corpus 15 (sigma 14, elastic 1)
  • \Users\Public\ corpus 18 (sigma 17, elastic 1)
  • \Windows\Temp\ corpus 13 (sigma 12, elastic 1)
field:"CommandLine" kind:match
CurrentDirectorymatch
  • \AppData\Local\Temp\
  • \Desktop\
  • \Downloads\
  • \Users\Public\
  • \Windows\Temp\
field:"CurrentDirectory" kind:match
Imageends_with
  • \addinutil.exe corpus 4 (sigma 4)
field:"Image" kind:ends_with value:"\addinutil.exe"
OriginalFileNameeq
  • AddInUtil.exe corpus 4 (sigma 3, elastic 1)
field:"OriginalFileName" kind:eq value:"AddInUtil.exe"

Suspicious Get Information for SMB Share - PowerShell Module

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

Adversaries may look for folders and drives shared on remote systems as a means of identifying sources of information to gather as a precursor for Collection and to identify potential systems of interest for Lateral Movement. Networks often contain shared network drives and folders that enable users to access file directories on various systems across a network.

Known False Positives

  • Administrator script

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Get Information for SMB Share - PowerShell Module
id: 6942bd25-5970-40ab-af49-944247103358
status: test
description: |
    Adversaries may look for folders and drives shared on remote systems as a means of identifying sources of information to gather as a precursor for Collection and
    to identify potential systems of interest for Lateral Movement.
    Networks often contain shared network drives and folders that enable users to access file directories on various systems across a network.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md
author: frack113
date: 2021-12-15
modified: 2022-12-02
tags:
    - attack.discovery
    - attack.t1069.001
logsource:
    product: windows
    category: ps_module
    definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
    selection:
        - Payload|contains: get-smbshare
        - ContextInfo|contains: get-smbshare
    condition: selection
falsepositives:
    - Administrator script
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Payload|contains: get-smbshare
    - ContextInfo|contains: get-smbshare

Indicators

These rows show field, operator, and value matches.

Suspicious Modification Of Scheduled Tasks

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

Detects when an attacker tries to modify an already existing scheduled tasks to run from a suspicious location Attackers can create a simple looking task in order to avoid detection on creation as it's often the most focused on Instead they modify the task after creation to include their malicious payload

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Modification Of Scheduled Tasks
id: 1c0e41cd-21bb-4433-9acc-4a2cd6367b9b
related:
    - id: 614cf376-6651-47c4-9dcc-6b9527f749f4 # Security-Audting Eventlog
      type: similar
status: test
description: |
    Detects when an attacker tries to modify an already existing scheduled tasks to run from a suspicious location
    Attackers can create a simple looking task in order to avoid detection on creation as it's often the most focused on
    Instead they modify the task after creation to include their malicious payload
references:
    - Internal Research
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-28
modified: 2022-11-18
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.t1053.005
logsource:
    product: windows
    category: process_creation
detection:
    selection_schtasks:
        Image|endswith: '\schtasks.exe'
        CommandLine|contains|all:
            - ' /Change '
            - ' /TN '
    selection_susp_locations:
        CommandLine|contains:
            - '\AppData\Local\Temp'
            - '\AppData\Roaming\'
            - '\Users\Public\'
            - '\WINDOWS\Temp\'
            - '\Desktop\'
            - '\Downloads\'
            - '\Temporary Internet'
            - 'C:\ProgramData\'
            - 'C:\Perflogs\'
            - '%ProgramData%'
            - '%appdata%'
            - '%comspec%'
            - '%localappdata%'
    selection_susp_images:
        CommandLine|contains:
            - 'regsvr32'
            - 'rundll32'
            - 'cmd /c '
            - 'cmd /k '
            - 'cmd /r '
            - 'cmd.exe /c '
            - 'cmd.exe /k '
            - 'cmd.exe /r '
            - 'powershell'
            - 'mshta'
            - 'wscript'
            - 'cscript'
            - 'certutil'
            - 'bitsadmin'
            - 'bash.exe'
            - 'bash '
            - 'scrcons'
            - 'wmic '
            - 'wmic.exe'
            - 'forfiles'
            - 'scriptrunner'
            - 'hh.exe'
            - 'hh '
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_schtasks

selection_schtasks:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|all:
        - ' /Change '
        - ' /TN '

Stage 2: selection_susp_locations

selection_susp_locations:
    CommandLine|contains:
        - '\AppData\Local\Temp'
        - '\AppData\Roaming\'
        - '\Users\Public\'
        - '\WINDOWS\Temp\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Temporary Internet'
        - 'C:\ProgramData\'
        - 'C:\Perflogs\'
        - '%ProgramData%'
        - '%appdata%'
        - '%comspec%'
        - '%localappdata%'

Stage 3: selection_susp_images

selection_susp_images:
    CommandLine|contains:
        - 'regsvr32'
        - 'rundll32'
        - 'cmd /c '
        - 'cmd /k '
        - 'cmd /r '
        - 'cmd.exe /c '
        - 'cmd.exe /k '
        - 'cmd.exe /r '
        - 'powershell'
        - 'mshta'
        - 'wscript'
        - 'cscript'
        - 'certutil'
        - 'bitsadmin'
        - 'bash.exe'
        - 'bash '
        - 'scrcons'
        - 'wmic '
        - 'wmic.exe'
        - 'forfiles'
        - 'scriptrunner'
        - 'hh.exe'
        - 'hh '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /Change corpus 3 (sigma 3)
  • /TN corpus 2 (sigma 2)
  • %ProgramData% corpus 4 (sigma 4)
  • %appdata% corpus 11 (sigma 11)
  • %comspec% corpus 6 (sigma 5, splunk 1)
  • %localappdata% corpus 4 (sigma 4)
  • C:\Perflogs\ corpus 2 (sigma 2)
  • C:\ProgramData\ corpus 6 (sigma 6)
  • \AppData\Local\Temp corpus 8 (sigma 8)
  • \AppData\Roaming\ corpus 17 (sigma 16, elastic 1)
  • \Desktop\ corpus 13 (sigma 13)
  • \Downloads\ corpus 15 (sigma 14, elastic 1)
  • \Temporary Internet corpus 7 (sigma 7)
  • \Users\Public\ corpus 18 (sigma 17, elastic 1)
  • \WINDOWS\Temp\ corpus 13 (sigma 12, elastic 1)
  • bash
  • bash.exe
  • bitsadmin corpus 10 (sigma 10)
  • certutil corpus 10 (sigma 10)
  • cmd /c corpus 4 (sigma 4)
  • cmd /k corpus 4 (sigma 4)
  • cmd /r corpus 4 (sigma 4)
  • cmd.exe /c corpus 6 (sigma 6)
  • cmd.exe /k corpus 5 (sigma 5)
  • cmd.exe /r corpus 5 (sigma 5)
  • cscript corpus 15 (sigma 15)
  • forfiles corpus 2 (sigma 2)
  • hh
  • hh.exe
  • mshta corpus 14 (sigma 14)
  • powershell corpus 24 (sigma 24)
  • regsvr32 corpus 15 (sigma 15)
  • rundll32 corpus 23 (sigma 23)
  • scrcons
  • scriptrunner
  • wmic corpus 2 (sigma 2)
  • wmic.exe corpus 2 (sigma 2)
  • wscript corpus 16 (sigma 16)
field:"CommandLine" kind:match
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"

Suspicious Regsvr32 Execution From Remote Share

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

Detects REGSVR32.exe to execute DLL hosted on remote shares

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Regsvr32 Execution From Remote Share
id: 88a87a10-384b-4ad7-8871-2f9bf9259ce5
status: test
description: Detects REGSVR32.exe to execute DLL hosted on remote shares
references:
    - https://thedfirreport.com/2022/10/31/follina-exploit-leads-to-domain-compromise/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-31
tags:
    - attack.stealth
    - attack.t1218.010
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\regsvr32.exe'
        - OriginalFileName: '\REGSVR32.EXE'
    selection_cli:
        CommandLine|contains: ' \\\\'
    condition: all of selection_*
falsepositives:
    - Unknown
# Decrease to medium if this is something common in your org
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: ' \\\\'

Indicators

These rows show field, operator, and value matches.

Suspicious Scheduled Task Creation via Masqueraded XML File

#
Status
test
Severity
medium
Author
Swachchhanda Shrawan Poudel, Elastic (idea)
Source
github.com/SigmaHQ/sigma

Detects the creation of a scheduled task using the "-XML" flag with a file without the '.xml' extension. This behavior could be indicative of potential defense evasion attempt during persistence

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Scheduled Task Creation via Masqueraded XML File
id: dd2a821e-3b07-4d3b-a9ac-929fe4c6ca0c
status: test
description: Detects the creation of a scheduled task using the "-XML" flag with a file without the '.xml' extension. This behavior could be indicative of potential defense evasion attempt during persistence
references:
    - https://learn.microsoft.com/en-us/windows/win32/taskschd/daily-trigger-example--xml-
    - https://github.com/elastic/protections-artifacts/blob/084067123d3328a823b1c3fdde305b694275c794/behavior/rules/persistence_suspicious_scheduled_task_creation_via_masqueraded_xml_file.toml
author: Swachchhanda Shrawan Poudel, Elastic (idea)
date: 2023-04-20
modified: 2024-12-01
tags:
    - attack.privilege-escalation
    - attack.execution
    - attack.persistence
    - attack.stealth
    - attack.t1036.005
    - attack.t1053.005
logsource:
    product: windows
    category: process_creation
detection:
    selection_img:
        - Image|endswith: '\schtasks.exe'
        - OriginalFileName: 'schtasks.exe'
    selection_cli_create:
        CommandLine|contains:
            - '/create'
            - '-create'
    selection_cli_xml:
        CommandLine|contains:
            - '/xml'
            - '-xml'
    filter_main_extension_xml:
        CommandLine|contains: '.xml'
    filter_main_system_process:
        IntegrityLevel:
            - 'System'
            - 'S-1-16-16384'
    filter_main_rundll32:
        ParentImage|endswith: '\rundll32.exe'
        ParentCommandLine|contains|all:
            - ':\WINDOWS\Installer\MSI'
            - '.tmp,zzzzInvokeManagedCustomActionOutOfProc'
    filter_optional_third_party:
        ParentImage|endswith:
            # Consider removing any tools that you don't use to avoid blind spots
            - ':\ProgramData\OEM\UpgradeTool\CareCenter_*\BUnzip\Setup_msi.exe'
            - ':\Program Files\Axis Communications\AXIS Camera Station\SetupActions.exe'
            - ':\Program Files\Axis Communications\AXIS Device Manager\AdmSetupActions.exe'
            - ':\Program Files (x86)\Zemana\AntiMalware\AntiMalware.exe'
            - ':\Program Files\Dell\SupportAssist\pcdrcui.exe'
    condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

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

Stage 1: selection_img

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

Stage 2: selection_cli_create

selection_cli_create:
    CommandLine|contains:
        - '/create'
        - '-create'

Stage 3: selection_cli_xml

selection_cli_xml:
    CommandLine|contains:
        - '/xml'
        - '-xml'

Stage 4: not filter_main_*

filter_main_extension_xml:
    CommandLine|contains: '.xml'
filter_main_system_process:
    IntegrityLevel:
        - 'System'
        - 'S-1-16-16384'
filter_main_rundll32:
    ParentImage|endswith: '\rundll32.exe'
    ParentCommandLine|contains|all:
        - ':\WINDOWS\Installer\MSI'
        - '.tmp,zzzzInvokeManagedCustomActionOutOfProc'

Stage 5: not filter_optional_third_party

filter_optional_third_party:
    ParentImage|endswith:
        - ':\ProgramData\OEM\UpgradeTool\CareCenter_*\BUnzip\Setup_msi.exe'
        - ':\Program Files\Axis Communications\AXIS Camera Station\SetupActions.exe'
        - ':\Program Files\Axis Communications\AXIS Device Manager\AdmSetupActions.exe'
        - ':\Program Files (x86)\Zemana\AntiMalware\AntiMalware.exe'
        - ':\Program Files\Dell\SupportAssist\pcdrcui.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -create corpus 2 (sigma 1, splunk 1)
  • -xml
  • /create corpus 8 (sigma 6, splunk 2)
  • /xml
field:"CommandLine" kind:match
Imageends_with
  • \schtasks.exe corpus 55 (sigma 55)
field:"Image" kind:ends_with value:"\schtasks.exe"
OriginalFileNameeq
  • schtasks.exe corpus 29 (sigma 18, elastic 7, splunk 4)
field:"OriginalFileName" kind:eq value:"schtasks.exe"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ParentCommandLinematch.tmp,zzzzInvokeManagedCustomActionOutOfProcexcludes:ParentCommandLine field:"ParentCommandLine" value:".tmp,zzzzInvokeManagedCustomActionOutOfProc"
ParentCommandLinematch:\WINDOWS\Installer\MSIexcludes:ParentCommandLine field:"ParentCommandLine" value:":\WINDOWS\Installer\MSI"
ParentImageends_with\rundll32.exeexcludes:ParentImage field:"ParentImage" value:"\rundll32.exe"
CommandLinematch.xmlexcludes:CommandLine field:"CommandLine" value:".xml"
IntegrityLeveleqS-1-16-16384excludes:IntegrityLevel field:"IntegrityLevel" value:"S-1-16-16384"
IntegrityLeveleqSystemexcludes:IntegrityLevel field:"IntegrityLevel" value:"System"
ParentImageends_with:\Program Files (x86)\Zemana\AntiMalware\AntiMalware.exeexcludes:ParentImage field:"ParentImage" value:":\Program Files (x86)\Zemana\AntiMalware\AntiMalware.exe"
ParentImageends_with:\Program Files\Axis Communications\AXIS Camera Station\SetupActions.exeexcludes:ParentImage field:"ParentImage" value:":\Program Files\Axis Communications\AXIS Camera Station\SetupActions.exe"
ParentImageends_with:\Program Files\Axis Communications\AXIS Device Manager\AdmSetupActions.exeexcludes:ParentImage field:"ParentImage" value:":\Program Files\Axis Communications\AXIS Device Manager\AdmSetupActions.exe"
ParentImageends_with:\Program Files\Dell\SupportAssist\pcdrcui.exeexcludes:ParentImage field:"ParentImage" value:":\Program Files\Dell\SupportAssist\pcdrcui.exe"
ParentImageends_with:\ProgramData\OEM\UpgradeTool\CareCenter_*\BUnzip\Setup_msi.exeexcludes:ParentImage field:"ParentImage" value:":\ProgramData\OEM\UpgradeTool\CareCenter_*\BUnzip\Setup_msi.exe"

Suspicious SQL Query

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

Detects suspicious SQL query keywrods that are often used during recon, exfiltration or destructive activities. Such as dropping tables and selecting wildcard fields

Known False Positives

  • Inventory and monitoring activity
  • Vulnerability scanners
  • Legitimate applications

MITRE ATT&CK Coverage

Rule Body

title: Suspicious SQL Query
id: d84c0ded-edd7-4123-80ed-348bb3ccc4d5
status: test
description: Detects suspicious SQL query keywrods that are often used during recon, exfiltration or destructive activities. Such as dropping tables and selecting wildcard fields
author: '@juju4'
date: 2022-12-27
references:
    - https://github.com/sqlmapproject/sqlmap
tags:
    - attack.exfiltration
    - attack.initial-access
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1190
    - attack.t1505.001
logsource:
    category: database
    definition: 'Requirements: Must be able to log the SQL queries'
detection:
    keywords:
        - 'drop'
        - 'truncate'
        - 'dump'
        - 'select \*'
    condition: keywords
falsepositives:
    - Inventory and monitoring activity
    - Vulnerability scanners
    - Legitimate applications
level: medium

Stages and Predicates

Stage 0: condition

keywords

Stage 1: keywords

keywords:
    - 'drop'
    - 'truncate'
    - 'dump'
    - 'select \*'

Uncommon FileSystem Load Attempt By Format.com

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

Detects the execution of format.com with an uncommon filesystem selection that could indicate a defense evasion activity in which "format.com" is used to load malicious DLL files or other programs.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

Rule Body

title: Uncommon FileSystem Load Attempt By Format.com
id: 9fb6b26e-7f9e-4517-a48b-8cac4a1b6c60
status: test
description: |
    Detects the execution of format.com with an uncommon filesystem selection that could indicate a defense evasion activity in which "format.com" is used to load malicious DLL files or other programs.
references:
    - https://twitter.com/0gtweet/status/1477925112561209344
    - https://twitter.com/wdormann/status/1478011052130459653?s=20
author: Florian Roth (Nextron Systems)
date: 2022-01-04
modified: 2024-05-13
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\format.com'
        CommandLine|contains: '/fs:'
    filter_main_known_fs:
        CommandLine|contains:
            - '/fs:exFAT'
            - '/fs:FAT'
            - '/fs:NTFS'
            - '/fs:ReFS'
            - '/fs:UDF'
    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: '\format.com'
    CommandLine|contains: '/fs:'

Stage 2: not filter_main_known_fs

filter_main_known_fs:
    CommandLine|contains:
        - '/fs:exFAT'
        - '/fs:FAT'
        - '/fs:NTFS'
        - '/fs:ReFS'
        - '/fs:UDF'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Windows Internet Hosted WebDav Share Mount Via Net.EXE

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

Detects when an internet hosted webdav share is mounted using the "net.exe" utility

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Windows Internet Hosted WebDav Share Mount Via Net.EXE
id: 7e6237fe-3ddb-438f-9381-9bf9de5af8d0
status: test
description: Detects when an internet hosted webdav share is mounted using the "net.exe" utility
references:
    - https://drive.google.com/file/d/1lKya3_mLnR3UQuCoiYruO3qgu052_iS_/view
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-02-21
modified: 2023-07-25
tags:
    - attack.lateral-movement
    - attack.t1021.002
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\net.exe'
              - '\net1.exe'
        - OriginalFileName:
              - 'net.exe'
              - 'net1.exe'
    selection_cli:
        CommandLine|contains|all:
            - ' use '
            - ' http'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\net.exe'
          - '\net1.exe'
    - OriginalFileName:
          - 'net.exe'
          - 'net1.exe'

Stage 2: selection_cli

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

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • http corpus 2 (sigma 2)
  • use corpus 6 (sigma 6)
field:"CommandLine" kind:match
Imageends_with
  • \net.exe corpus 49 (sigma 49)
  • \net1.exe corpus 47 (sigma 47)
field:"Image" kind:ends_with
OriginalFileNameeq
  • net.exe corpus 25 (sigma 19, elastic 4, splunk 2)
  • net1.exe corpus 39 (sigma 19, splunk 19, elastic 1)
field:"OriginalFileName" kind:eq

Back to all Sigma rules