Detection rules › Sigma

Sigma rules: 11

RuleSeverity
Access To Chromium Browsers Sensitive Files By Uncommon Applicationslow
AD Object WriteDAC Accesscritical
ADSelfService Exploitationhigh
All Backups Deleted Via Wbadmin.EXEhigh
AWS ConsoleLogin Failed Authenticationmedium
AWS GuardDuty Detector Deleted Or Updatedhigh
Azure Virtual Network Modified or Deletedmedium
Code Execution via Pcwutl.dllmedium
Commands to Clear or Remove the Syslog - Builtinhigh
Csc.EXE Execution Form Potentially Suspicious Parenthigh
Deletion of Volume Shadow Copies via WMI with PowerShellhigh
Encoded PowerShell payload deployed via process executionhigh
HackTool - CoercedPotato Executionhigh
HackTool - DInjector PowerShell Cradle Executioncritical
HackTool - PPID Spoofing SelectMyParent Tool Executionhigh
Local File Read Using Curl.EXEmedium
LSASS credential dump with LSASSY (kernel access)high
LSASS credential dump with LSASSY (PowerShell)medium
Malicious IP Address Sign-In Failure Ratehigh
OneLogin User Account Lockedlow
Potential DLL Sideloading Activity Via ExtExport.EXEmedium
Potential Exploitation of GoAnywhere MFT Vulnerabilityhigh
Potential Information Disclosure CVE-2023-43261 Exploitation - Proxyhigh
Potential PetitPotam Attack Via EFS RPC Callsmedium
Potential Registry Persistence Attempt Via DbgManagedDebuggermedium
Potential SharePoint ToolShell CVE-2025-53770 Exploitation - File Createcritical
Potential WMI Lateral Movement WmiPrvSE Spawned PowerShellmedium
Potentially Suspicious Shell Script Creation in Profile Folderlow
Privilege escalation via RunasCSlow
Process Deletion of Its Own Executablemedium
PUA - AdvancedRun Suspicious Executionhigh
Python One-Liners with Base64 Decodinghigh
Remote Access Tool - GoToAssist Executionmedium
Remote Access Tool - NetSupport Execution From Unusual Locationmedium
SafeBoot Registry Key Deleted Via Reg.EXEhigh
Security package (SSP) loaded into LSA (native)high
Suspicious Child Process Created as Systemhigh
Suspicious Kerberos password account reset to issue potential Golden ticketmedium
Suspicious Network Connection Binary No CommandLinehigh
Suspicious Rundll32 Invoking Inline VBScripthigh
Terminate Linux Process Via Killmedium
Third Party Software DLL Sideloadingmedium
UAC Bypass Using Disk Cleanuphigh
WebDAV Temporary Local File Creationmedium
Windows Pcap Driversmedium
WinRM listening service reconnaissance (WS-Management)medium

Access To Chromium Browsers Sensitive Files By Uncommon Applications

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

Detects file access requests to chromium based browser sensitive files by uncommon processes. Could indicate potential attempt of stealing sensitive information.

Known False Positives

  • Antivirus, Anti-Spyware, Anti-Malware Software
  • Backup software
  • Legitimate software installed on partitions other than "C:\"
  • Searching software such as "everything.exe"

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Rule Body

title: Access To Chromium Browsers Sensitive Files By Uncommon Applications
id: c5f37810-a85f-4186-81e9-33f23abb4141
status: test
description: |
    Detects file access requests to chromium based browser sensitive files by uncommon processes.
    Could indicate potential attempt of stealing sensitive information.
references:
    - Internal Research
author: X__Junior (Nextron Systems)
date: 2024-07-29
tags:
    - attack.t1003
    - attack.credential-access
    - detection.threat-hunting
logsource:
    category: file_access
    product: windows
    definition: 'Requirements: Microsoft-Windows-Kernel-File ETW provider'
detection:
    selection:
        FileName|contains:
            - '\User Data\Default\Cookies'
            - '\User Data\Default\History'
            - '\User Data\Default\Network\Cookies'
            - '\User Data\Default\Web Data'
    filter_main_system:
        Image: System
    filter_main_generic:
        # This filter is added to avoid large amount of FP with 3rd party software. You should remove this in favour of specific filter per-application
        Image|startswith:
            - 'C:\Program Files (x86)\'
            - 'C:\Program Files\'
            - 'C:\Windows\system32\'
            - 'C:\Windows\SysWOW64\'
    filter_optional_defender:
        Image|startswith: 'C:\ProgramData\Microsoft\Windows Defender\'
        Image|endswith:
            - '\MpCopyAccelerator.exe'
            - '\MsMpEng.exe'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Antivirus, Anti-Spyware, Anti-Malware Software
    - Backup software
    - Legitimate software installed on partitions other than "C:\"
    - Searching software such as "everything.exe"
level: low

Stages and Predicates

Stage 0: condition

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

Stage 1: selection

selection:
    FileName|contains:
        - '\User Data\Default\Cookies'
        - '\User Data\Default\History'
        - '\User Data\Default\Network\Cookies'
        - '\User Data\Default\Web Data'

Stage 2: not filter_main_*

filter_main_system:
    Image: System
filter_main_generic:
    Image|startswith:
        - 'C:\Program Files (x86)\'
        - 'C:\Program Files\'
        - 'C:\Windows\system32\'
        - 'C:\Windows\SysWOW64\'

Stage 3: not filter_optional_defender

filter_optional_defender:
    Image|startswith: 'C:\ProgramData\Microsoft\Windows Defender\'
    Image|endswith:
        - '\MpCopyAccelerator.exe'
        - '\MsMpEng.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
FileNamematch
  • \User Data\Default\Cookies
  • \User Data\Default\History
  • \User Data\Default\Network\Cookies
  • \User Data\Default\Web Data
field:"file_name" kind:match

Exclusions

The rule actively suppresses these predicates.

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

AD Object WriteDAC Access

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

Detects WRITE_DAC access to a domain object

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: AD Object WriteDAC Access
id: 028c7842-4243-41cd-be6f-12f3cf1a26c7
status: test
description: Detects WRITE_DAC access to a domain object
references:
    - https://threathunterplaybook.com/hunts/windows/180815-ADObjectAccessReplication/notebook.html
    - https://threathunterplaybook.com/library/windows/active_directory_replication.html
    - https://threathunterplaybook.com/hunts/windows/190101-ADModDirectoryReplication/notebook.html
author: Roberto Rodriguez @Cyb3rWard0g
date: 2019-09-12
modified: 2021-11-27
tags:
    - attack.defense-impairment
    - attack.t1222.001
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4662
        ObjectServer: 'DS'
        AccessMask: '0x40000'
        ObjectType:
            - '19195a5b-6da0-11d0-afd3-00c04fd930c9'
            - 'domainDNS'
    condition: selection
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4662
    ObjectServer: 'DS'
    AccessMask: '0x40000'
    ObjectType:
        - '19195a5b-6da0-11d0-afd3-00c04fd930c9'
        - 'domainDNS'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
AccessMaskeq
  • 0x40000 corpus 2 (sigma 1, elastic 1)
field:"AccessMask" kind:eq value:"0x40000"
ObjectServereq
  • DS corpus 3 (sigma 3)
field:"ObjectServer" kind:eq value:"DS"
ObjectTypeeq
  • 19195a5b-6da0-11d0-afd3-00c04fd930c9
  • domainDNS
field:"ObjectType" kind:eq

ADSelfService Exploitation

#
Status
test
Severity
high
Author
Tobias Michalski (Nextron Systems), Max Altgelt (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious access to URLs that was noticed in cases in which attackers exploitated the ADSelfService vulnerability CVE-2021-40539

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: ADSelfService Exploitation
id: 6702b13c-e421-44cc-ab33-42cc25570f11
status: test
description: Detects suspicious access to URLs that was noticed in cases in which attackers exploitated the ADSelfService vulnerability CVE-2021-40539
references:
    - https://us-cert.cisa.gov/ncas/alerts/aa21-259a
author: Tobias Michalski (Nextron Systems), Max Altgelt (Nextron Systems)
date: 2021-09-20
modified: 2023-01-02
tags:
    - cve.2021-40539
    - detection.emerging-threats
    - attack.initial-access
    - attack.t1190
logsource:
    category: webserver
detection:
    selection:
        cs-uri-query|contains:
            - '/help/admin-guide/Reports/ReportGenerate.jsp'
            - '/ServletApi/../RestApi/LogonCustomization'
            - '/ServletApi/../RestAPI/Connection'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-uri-query|contains:
        - '/help/admin-guide/Reports/ReportGenerate.jsp'
        - '/ServletApi/../RestApi/LogonCustomization'
        - '/ServletApi/../RestAPI/Connection'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-uri-querymatch
  • /ServletApi/../RestAPI/Connection
  • /ServletApi/../RestApi/LogonCustomization
  • /help/admin-guide/Reports/ReportGenerate.jsp
field:"cs-uri-query" kind:match

All Backups Deleted Via Wbadmin.EXE

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

Detects the deletion of all backups or system state backups via "wbadmin.exe". This technique is used by numerous ransomware families and actors. This may only be successful on server platforms that have Windows Backup enabled.

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: All Backups Deleted Via Wbadmin.EXE
id: 639c9081-f482-47d3-a0bd-ddee3d4ecd76
related:
    - id: 89f75308-5b1b-4390-b2d8-d6b2340efaf8
      type: derived
status: test
description: |
    Detects the deletion of all backups or system state backups via "wbadmin.exe".
    This technique is used by numerous ransomware families and actors.
    This may only be successful on server platforms that have Windows Backup enabled.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1490/T1490.md#atomic-test-5---windows---delete-volume-shadow-copies-via-wmi-with-powershell
    - https://github.com/albertzsigovits/malware-notes/blob/558898932c1579ff589290092a2c8febefc3a4c9/Ransomware/Lockbit.md
    - https://www.sentinelone.com/labs/ranzy-ransomware-better-encryption-among-new-features-of-thunderx-derivative/
    - https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/ransomware-report-avaddon-and-new-techniques-emerge-industrial-sector-targeted
    - https://www.trendmicro.com/content/dam/trendmicro/global/en/research/24/b/lockbit-attempts-to-stay-afloat-with-a-new-version/technical-appendix-lockbit-ng-dev-analysis.pdf
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/wbadmin-delete-systemstatebackup
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2021-12-13
modified: 2024-05-10
tags:
    - attack.impact
    - attack.t1490
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\wbadmin.exe'
        - OriginalFileName: 'WBADMIN.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'delete'
            - 'backup' # Also covers "SYSTEMSTATEBACKUP"
        CommandLine|contains: 'keepVersions:0'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_wbadmin_delete_all_backups/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\wbadmin.exe'
    - OriginalFileName: 'WBADMIN.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'delete'
        - 'backup'
    CommandLine|contains: 'keepVersions:0'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • backup corpus 6 (sigma 5, splunk 1)
  • delete corpus 30 (sigma 16, elastic 8, splunk 6)
  • keepVersions:0
field:"CommandLine" kind:match
Imageends_with
  • \wbadmin.exe corpus 7 (sigma 7)
field:"Image" kind:ends_with value:"\wbadmin.exe"
OriginalFileNameeq
  • WBADMIN.EXE corpus 16 (elastic 8, sigma 6, splunk 2)
field:"OriginalFileName" kind:eq value:"WBADMIN.EXE"

AWS ConsoleLogin Failed Authentication

#
Status
experimental
Severity
medium
Author
Ivan Saakov, Nasreddine Bencherchali
Source
github.com/SigmaHQ/sigma

Detects failed AWS console login attempts due to authentication failures. Monitoring these events is crucial for identifying potential brute-force attacks or unauthorized access attempts to AWS accounts.

Known False Positives

  • Legitimate failed login attempts by authorized users. Investigate the source of repeated failed login attempts.

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: AWS ConsoleLogin Failed Authentication
id: 6393e346-1977-46ef-8987-ad414a145fad
status: experimental
description: |
    Detects failed AWS console login attempts due to authentication failures. Monitoring these events is crucial for identifying potential brute-force attacks or unauthorized access attempts to AWS accounts.
references:
    - https://naikordian.github.io/blog/posts/brute-force-aws-console/
    - https://help.fortinet.com/fsiem/Public_Resource_Access/7_2_1/rules/PH_RULE_AWS_Management_Console_Brute_Force_of_Root_User_Identity.htm
    - https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1110.001/aws_login_failure/aws_cloudtrail_events.json
author: Ivan Saakov, Nasreddine Bencherchali
date: 2025-10-19
tags:
    - attack.credential-access
    - attack.t1110
logsource:
    product: aws
    service: cloudtrail
detection:
    selection:
        eventName: 'ConsoleLogin'
        errorMessage: 'Failed authentication'
    condition: selection
falsepositives:
    - Legitimate failed login attempts by authorized users. Investigate the source of repeated failed login attempts.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    eventName: 'ConsoleLogin'
    errorMessage: 'Failed authentication'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
errorMessageeq
  • Failed authentication corpus 4 (splunk 3, sigma 1)
field:"aws::errorMessage" kind:eq value:"Failed authentication"
eventNameeq
  • ConsoleLogin corpus 19 (splunk 10, sigma 6, kusto 3)
field:"aws::eventName" kind:eq value:"ConsoleLogin"

AWS GuardDuty Detector Deleted Or Updated

#
Status
experimental
Severity
high
Author
suktech24
Source
github.com/SigmaHQ/sigma

Detects successful deletion or disabling of an AWS GuardDuty detector, possibly by an attacker trying to avoid detection of its malicious activities. Upon deletion, GuardDuty stops monitoring the environment and all existing findings are lost. Verify with the user identity that this activity is legitimate.

Known False Positives

  • Legitimate detector deletion by an admin (e.g., during account decommissioning).
  • Temporary disablement for troubleshooting (verify via change management tickets).
  • Automated deployment tools (e.g. Terraform) managing GuardDuty state.

MITRE ATT&CK Coverage

Telemetry Coverage

Rules Detecting the Same Action

These rules filter on the same operation.

Rule Body

title: AWS GuardDuty Detector Deleted Or Updated
id: d2656e78-c069-4571-8220-9e0ab5913f19
status: experimental
description: |
    Detects successful deletion or disabling of an AWS GuardDuty detector, possibly by an attacker trying to avoid detection of its malicious activities.
    Upon deletion, GuardDuty stops monitoring the environment and all existing findings are lost.
    Verify with the user identity that this activity is legitimate.
references:
    - https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DeleteDetector.html
    - https://docs.aws.amazon.com/guardduty/latest/APIReference/API_UpdateDetector.html
    - https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_suspend-disable.html
    - https://docs.datadoghq.com/security/default_rules/719-39f-9cd/
    - https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/ensure-aws-guardduty-detector-is-enabled
    - https://docs.stellarcyber.ai/5.2.x/Using/ML/Alert-Rule-Based-Potentially_Malicious_AWS_Activity.html
    - https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Amazon%20Web%20Services/Analytic%20Rules/AWS_GuardDutyDisabled.yaml
    - https://github.com/elastic/detection-rules/blob/main/rules/integrations/aws/defense_evasion_guardduty_detector_deletion.toml
    - https://help.fortinet.com/fsiem/Public_Resource_Access/7_4_0/rules/PH_RULE_AWS_GuardDuty_Detector_Deletion.htm
    - https://research.splunk.com/sources/5d8bd475-c8bc-4447-b27f-efa508728b90/
    - https://suktech24.com/2025/07/17/aws-threat-detection-rule-guardduty-detector-disabled-or-suspended/
    - https://www.atomicredteam.io/atomic-red-team/atomics/T156001#atomic-test-46---aws---guardduty-suspension-or-deletion
author: suktech24
date: 2025-11-27
tags:
    - attack.defense-impairment
    - attack.t1685
    - attack.t1685.002
logsource:
    product: aws
    service: cloudtrail
detection:
    selection_event_source:
        eventSource: 'guardduty.amazonaws.com'
    selection_action_delete:
        eventName: 'DeleteDetector'
    selection_action_update:
        eventName: 'UpdateDetector'
        requestParameters.enable: 'false'
    selection_status_success:
        errorCode: 'Success'
    selection_status_null:
        errorCode: null
    condition: selection_event_source and 1 of selection_action_* and 1 of selection_status_*
falsepositives:
    - Legitimate detector deletion by an admin (e.g., during account decommissioning).
    - Temporary disablement for troubleshooting (verify via change management tickets).
    - Automated deployment tools (e.g. Terraform) managing GuardDuty state.
level: high

Stages and Predicates

Stage 0: condition

selection_event_source and 1 of selection_action_* and 1 of selection_status_*

Stage 1: selection_event_source

selection_event_source:
    eventSource: 'guardduty.amazonaws.com'

Stage 2: selection_action_delete

selection_action_delete:
    eventName: 'DeleteDetector'

Stage 3: selection_action_update

selection_action_update:
    eventName: 'UpdateDetector'
    requestParameters.enable: 'false'

Stage 4: selection_status_success

selection_status_success:
    errorCode: 'Success'

Stage 5: selection_status_null

selection_status_null:
    errorCode: null

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
errorCodeeq
  • Success corpus 16 (splunk 12, sigma 4)
field:"aws::errorCode" kind:eq value:"Success"
errorCodeis_null
  • (no value, null check)
field:"aws::errorCode" kind:is_null
eventNameeq
  • DeleteDetector corpus 2 (sigma 1, splunk 1)
  • UpdateDetector
field:"aws::eventName" kind:eq
eventSourceeq
  • guardduty.amazonaws.com corpus 3 (sigma 2, splunk 1)
field:"aws::eventSource" kind:eq value:"guardduty.amazonaws.com"
requestParameters.enableeq
  • false
field:"requestParameters.enable" kind:eq value:"false"

Azure Virtual Network Modified or Deleted

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

Identifies when a Virtual Network is modified or deleted in Azure.

Known False Positives

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

MITRE ATT&CK Coverage

TacticTechniques
ImpactNo specific technique

Rule Body

title: Azure Virtual Network Modified or Deleted
id: bcfcc962-0e4a-4fd9-84bb-a833e672df3f
status: test
description: Identifies when a Virtual Network is modified or deleted in Azure.
references:
    - https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations
author: Austin Songer @austinsonger
date: 2021-08-08
modified: 2022-08-23
tags:
    - attack.impact
logsource:
    product: azure
    service: activitylogs
detection:
    selection:
        operationName|startswith:
            - MICROSOFT.NETWORK/VIRTUALNETWORKGATEWAYS/
            - MICROSOFT.NETWORK/VIRTUALNETWORKS/
        operationName|endswith:
            - /WRITE
            - /DELETE
    condition: selection
falsepositives:
    - Virtual Network being modified or deleted may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
    - Virtual Network modified or deleted from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operationName|startswith:
        - MICROSOFT.NETWORK/VIRTUALNETWORKGATEWAYS/
        - MICROSOFT.NETWORK/VIRTUALNETWORKS/
    operationName|endswith:
        - /WRITE
        - /DELETE

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
operationNameends_with
  • /DELETE
  • /WRITE
field:"operationName" kind:ends_with
operationNamestarts_with
  • MICROSOFT.NETWORK/VIRTUALNETWORKGATEWAYS/
  • MICROSOFT.NETWORK/VIRTUALNETWORKS/
field:"operationName" kind:starts_with

Code Execution via Pcwutl.dll

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

Detects launch of executable by calling the LaunchApplication function from pcwutl.dll library.

Known False Positives

  • Use of Program Compatibility Troubleshooter Helper

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Code Execution via Pcwutl.dll
id: 9386d78a-7207-4048-9c9f-a93a7c2d1c05
status: test
description: Detects launch of executable by calling the LaunchApplication function from pcwutl.dll library.
references:
    - https://lolbas-project.github.io/lolbas/Libraries/Pcwutl/
    - https://twitter.com/harr0ey/status/989617817849876488
author: Julia Fomina, oscd.community
date: 2020-10-05
modified: 2023-02-09
tags:
    - attack.stealth
    - attack.t1218.011
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\rundll32.exe'
        - OriginalFileName: 'RUNDLL32.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'pcwutl'
            - 'LaunchApplication'
    condition: all of selection_*
falsepositives:
    - Use of Program Compatibility Troubleshooter Helper
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\rundll32.exe'
    - OriginalFileName: 'RUNDLL32.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'pcwutl'
        - 'LaunchApplication'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • LaunchApplication corpus 2 (sigma 2)
  • pcwutl
field:"CommandLine" kind:match
Imageends_with
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with value:"\rundll32.exe"
OriginalFileNameeq
  • RUNDLL32.EXE corpus 72 (sigma 35, splunk 21, elastic 16)
field:"OriginalFileName" kind:eq value:"RUNDLL32.EXE"

Commands to Clear or Remove the Syslog - Builtin

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

Detects specific commands commonly used to remove or empty the syslog

Known False Positives

  • Log rotation

MITRE ATT&CK Coverage

Rule Body

title: Commands to Clear or Remove the Syslog - Builtin
id: e09eb557-96d2-4de9-ba2d-30f712a5afd3
status: test
description: Detects specific commands commonly used to remove or empty the syslog
references:
    - https://www.virustotal.com/gui/file/fc614fb4bda24ae8ca2c44e812d12c0fab6dd7a097472a35dd12ded053ab8474
author: Max Altgelt (Nextron Systems)
date: 2021-09-10
modified: 2022-11-26
tags:
    - attack.impact
    - attack.t1565.001
logsource:
    product: linux
detection:
    selection:
        - 'rm /var/log/syslog'
        - 'rm -r /var/log/syslog'
        - 'rm -f /var/log/syslog'
        - 'rm -rf /var/log/syslog'
        - 'mv /var/log/syslog'
        - ' >/var/log/syslog'
        - ' > /var/log/syslog'
    falsepositives:
        - '/syslog.'
    condition: selection and not falsepositives
falsepositives:
    - Log rotation
level: high

Stages and Predicates

Stage 0: condition

selection and not falsepositives

Stage 1: selection

selection:
    - 'rm /var/log/syslog'
    - 'rm -r /var/log/syslog'
    - 'rm -f /var/log/syslog'
    - 'rm -rf /var/log/syslog'
    - 'mv /var/log/syslog'
    - ' >/var/log/syslog'
    - ' > /var/log/syslog'

Stage 2: not falsepositives

falsepositives:
    - '/syslog.'

Csc.EXE Execution Form Potentially Suspicious Parent

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

Detects a potentially suspicious parent of "csc.exe", which could be a sign of payload delivery.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Csc.EXE Execution Form Potentially Suspicious Parent
id: b730a276-6b63-41b8-bcf8-55930c8fc6ee
status: test
description: Detects a potentially suspicious parent of "csc.exe", which could be a sign of payload delivery.
references:
    - https://www.uptycs.com/blog/warzonerat-can-now-evade-with-process-hollowing
    - https://reaqta.com/2017/11/short-journey-darkvnc/
    - https://www.pwc.com/gx/en/issues/cybersecurity/cyber-threat-intelligence/yellow-liderc-ships-its-scripts-delivers-imaploader-malware.html
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems)
date: 2019-02-11
modified: 2026-03-23
tags:
    - attack.execution
    - attack.stealth
    - attack.t1059.005
    - attack.t1059.007
    - attack.t1218.005
    - attack.t1027.004
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\csc.exe'
        - OriginalFileName: 'csc.exe'
    selection_parent_generic:
        ParentImage|endswith:
            - '\cscript.exe'
            - '\excel.exe'
            - '\mshta.exe'
            - '\onenote.exe'
            - '\outlook.exe'
            - '\powerpnt.exe'
            - '\winword.exe'
            - '\wscript.exe'
    selection_parent_powershell:
        ParentImage|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
        ParentCommandLine|contains:
            - '-Encoded '
            - 'FromBase64String'
    selection_parent_susp_location:
        - ParentCommandLine|re: '(?:[Pp]rogram[Dd]ata|%(?:[Ll]ocal)?[Aa]pp[Dd]ata%|\\[Aa]pp[Dd]ata\\(?:[Ll]ocal(?:[Ll]ow)?|[Rr]oaming))\\[^\\]{1,256}$'
        - ParentCommandLine|contains:
              - ':\PerfLogs\'
              - ':\Users\Public\'
              - ':\Windows\Temp\'
              - '\Temporary Internet'
        - ParentCommandLine|contains|all:
              - ':\Users\'
              - '\Favorites\'
        - ParentCommandLine|contains|all:
              - ':\Users\'
              - '\Favourites\'
        - ParentCommandLine|contains|all:
              - ':\Users\'
              - '\Contacts\'
        - ParentCommandLine|contains|all:
              - ':\Users\'
              - '\Pictures\'
    filter_main_programfiles:
        # Note: this is a generic filter. You could baseline execution in your env for a more robust rule
        ParentImage|startswith:
            - 'C:\Program Files (x86)\' # https://twitter.com/gN3mes1s/status/1206874118282448897
            - 'C:\Program Files\' # https://twitter.com/gN3mes1s/status/1206874118282448897
    filter_main_sdiagnhost:
        ParentImage: 'C:\Windows\System32\sdiagnhost.exe' # https://twitter.com/gN3mes1s/status/1206874118282448897
    filter_main_w3p:
        ParentImage: 'C:\Windows\System32\inetsrv\w3wp.exe' # https://twitter.com/gabriele_pippi/status/1206907900268072962
    filter_optional_chocolatey:
        ParentImage: 'C:\ProgramData\chocolatey\choco.exe' # Chocolatey https://chocolatey.org/
    filter_optional_defender:
        ParentCommandLine|contains: '\ProgramData\Microsoft\Windows Defender Advanced Threat Protection'
    filter_optional_ansible:
        # Note: As ansible is widely used we exclude it with this generic filter.
        # A better option would be to filter based on script content basis or other marker while hunting
        ParentCommandLine|contains:
            # '{"failed":true,"msg":"Ansible requires PowerShell v3.0 or newer"}'
            - 'JwB7ACIAZgBhAGkAbABlAGQAIgA6AHQAcgB1AGUALAAiAG0AcwBnACIAOgAiAEEAbgBzAGkAYgBsAGUAIAByAGUAcQB1AGkAcgBlAHMAIABQAG8AdwBlAHIAUwBoAGUAbABsACAAdgAzAC4AMAAgAG8AcgAgAG4AZQB3AGUAcgAiAH0AJw'
            - 'cAewAiAGYAYQBpAGwAZQBkACIAOgB0AHIAdQBlACwAIgBtAHMAZwAiADoAIgBBAG4AcwBpAGIAbABlACAAcgBlAHEAdQBpAHIAZQBzACAAUABvAHcAZQByAFMAaABlAGwAbAAgAHYAMwAuADAAIABvAHIAIABuAGUAdwBlAHIAIgB9ACcA'
            - 'nAHsAIgBmAGEAaQBsAGUAZAAiADoAdAByAHUAZQAsACIAbQBzAGcAIgA6ACIAQQBuAHMAaQBiAGwAZQAgAHIAZQBxAHUAaQByAGUAcwAgAFAAbwB3AGUAcgBTAGgAZQBsAGwAIAB2ADMALgAwACAAbwByACAAbgBlAHcAZQByACIAfQAnA'
    condition: selection_img and 1 of selection_parent_* and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_csc_susp_parent/info.yml

Stages and Predicates

Stage 0: condition

selection_img and 1 of selection_parent_* and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection_img

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

Stage 2: selection_parent_generic

selection_parent_generic:
    ParentImage|endswith:
        - '\cscript.exe'
        - '\excel.exe'
        - '\mshta.exe'
        - '\onenote.exe'
        - '\outlook.exe'
        - '\powerpnt.exe'
        - '\winword.exe'
        - '\wscript.exe'

Stage 3: selection_parent_powershell

selection_parent_powershell:
    ParentImage|endswith:
        - '\powershell.exe'
        - '\pwsh.exe'
    ParentCommandLine|contains:
        - '-Encoded '
        - 'FromBase64String'

Stage 4: selection_parent_susp_location

selection_parent_susp_location:
    - ParentCommandLine|re: '(?:[Pp]rogram[Dd]ata|%(?:[Ll]ocal)?[Aa]pp[Dd]ata%|\\[Aa]pp[Dd]ata\\(?:[Ll]ocal(?:[Ll]ow)?|[Rr]oaming))\\[^\\]{1,256}$'
    - ParentCommandLine|contains:
          - ':\PerfLogs\'
          - ':\Users\Public\'
          - ':\Windows\Temp\'
          - '\Temporary Internet'
    - ParentCommandLine|contains|all:
          - ':\Users\'
          - '\Favorites\'
    - ParentCommandLine|contains|all:
          - ':\Users\'
          - '\Favourites\'
    - ParentCommandLine|contains|all:
          - ':\Users\'
          - '\Contacts\'
    - ParentCommandLine|contains|all:
          - ':\Users\'
          - '\Pictures\'

Stage 5: not filter_main_*

filter_main_programfiles:
    ParentImage|startswith:
        - 'C:\Program Files (x86)\'
        - 'C:\Program Files\'
filter_main_sdiagnhost:
    ParentImage: 'C:\Windows\System32\sdiagnhost.exe'
filter_main_w3p:
    ParentImage: 'C:\Windows\System32\inetsrv\w3wp.exe'

Stage 6: not filter_optional_*

filter_optional_chocolatey:
    ParentImage: 'C:\ProgramData\chocolatey\choco.exe'
filter_optional_defender:
    ParentCommandLine|contains: '\ProgramData\Microsoft\Windows Defender Advanced Threat Protection'
filter_optional_ansible:
    ParentCommandLine|contains:
        - 'JwB7ACIAZgBhAGkAbABlAGQAIgA6AHQAcgB1AGUALAAiAG0AcwBnACIAOgAiAEEAbgBzAGkAYgBsAGUAIAByAGUAcQB1AGkAcgBlAHMAIABQAG8AdwBlAHIAUwBoAGUAbABsACAAdgAzAC4AMAAgAG8AcgAgAG4AZQB3AGUAcgAiAH0AJw'
        - 'cAewAiAGYAYQBpAGwAZQBkACIAOgB0AHIAdQBlACwAIgBtAHMAZwAiADoAIgBBAG4AcwBpAGIAbABlACAAcgBlAHEAdQBpAHIAZQBzACAAUABvAHcAZQByAFMAaABlAGwAbAAgAHYAMwAuADAAIABvAHIAIABuAGUAdwBlAHIAIgB9ACcA'
        - 'nAHsAIgBmAGEAaQBsAGUAZAAiADoAdAByAHUAZQAsACIAbQBzAGcAIgA6ACIAQQBuAHMAaQBiAGwAZQAgAHIAZQBxAHUAaQByAGUAcwAgAFAAbwB3AGUAcgBTAGgAZQBsAGwAIAB2ADMALgAwACAAbwByACAAbgBlAHcAZQByACIAfQAnA'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \csc.exe corpus 9 (sigma 9)
field:"Image" kind:ends_with value:"\csc.exe"
OriginalFileNameeq
  • csc.exe corpus 4 (elastic 2, sigma 1, splunk 1)
field:"OriginalFileName" kind:eq value:"csc.exe"
ParentCommandLinematch
  • -Encoded
  • :\PerfLogs\ corpus 2 (sigma 2)
  • :\Users\ corpus 2 (sigma 2)
  • :\Users\Public\ corpus 2 (sigma 2)
  • :\Windows\Temp\ corpus 2 (sigma 2)
  • FromBase64String
  • \Contacts\ corpus 2 (sigma 2)
  • \Favorites\ corpus 2 (sigma 2)
  • \Favourites\ corpus 2 (sigma 2)
  • \Pictures\
  • \Temporary Internet corpus 2 (sigma 2)
field:"ParentCommandLine" kind:match
ParentCommandLineregex_match
  • (?:[Pp]rogram[Dd]ata|%(?:[Ll]ocal)?[Aa]pp[Dd]ata%|\[Aa]pp[Dd]ata\(?:[Ll]ocal(?:[Ll]ow)?|[Rr]oaming))\[^\]{1,256}$
field:"ParentCommandLine" kind:regex_match value:"(?:[Pp]rogram[Dd]ata|%(?:[Ll]ocal)?[Aa]pp[Dd]ata%|\[Aa]pp[Dd]ata\(?:[Ll]ocal(?:[Ll]ow)?|[Rr]oaming))\[^\]{1,256}$"
ParentImageends_with
  • \cscript.exe corpus 17 (sigma 17)
  • \excel.exe corpus 8 (sigma 8)
  • \mshta.exe corpus 13 (sigma 13)
  • \onenote.exe corpus 5 (sigma 5)
  • \outlook.exe corpus 5 (sigma 5)
  • \powerpnt.exe corpus 6 (sigma 6)
  • \powershell.exe corpus 24 (sigma 24)
  • \pwsh.exe corpus 21 (sigma 21)
  • \winword.exe corpus 10 (sigma 10)
  • \wscript.exe corpus 19 (sigma 19)
field:"ParentImage" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ParentImageeqC:\Windows\System32\inetsrv\w3wp.exeexcludes:ParentImage field:"ParentImage" value:"C:\Windows\System32\inetsrv\w3wp.exe"
ParentImageeqC:\Windows\System32\sdiagnhost.exeexcludes:ParentImage field:"ParentImage" value:"C:\Windows\System32\sdiagnhost.exe"
ParentImagestarts_withC:\Program Files (x86)\excludes:ParentImage field:"ParentImage" value:"C:\Program Files (x86)\"
ParentImagestarts_withC:\Program Files\excludes:ParentImage field:"ParentImage" value:"C:\Program Files\"
ParentCommandLinematchJwB7ACIAZgBhAGkAbABlAGQAIgA6AHQAcgB1AGUALAAiAG0AcwBnACIAOgAiAEEAbgBzAGkAYgBsAGUAIAByAGUAcQB1AGkAcgBlAHMAIABQAG8AdwBlAHIAUwBoAGUAbABsACAAdgAzAC4AMAAgAG8AcgAgAG4AZQB3AGUAcgAiAH0AJwexcludes:ParentCommandLine field:"ParentCommandLine" value:"JwB7ACIAZgBhAGkAbABlAGQAIgA6AHQAcgB1AGUALAAiAG0AcwBnACIAOgAiAEEAbgBzAGkAYgBsAGUAIAByAGUAcQB1AGkAcgBlAHMAIABQAG8AdwBlAHIAUwBoAGUAbABsACAAdgAzAC4AMAAgAG8AcgAgAG4AZQB3AGUAcgAiAH0AJw"
ParentCommandLinematch\ProgramData\Microsoft\Windows Defender Advanced Threat Protectionexcludes:ParentCommandLine field:"ParentCommandLine" value:"\ProgramData\Microsoft\Windows Defender Advanced Threat Protection"
ParentCommandLinematchcAewAiAGYAYQBpAGwAZQBkACIAOgB0AHIAdQBlACwAIgBtAHMAZwAiADoAIgBBAG4AcwBpAGIAbABlACAAcgBlAHEAdQBpAHIAZQBzACAAUABvAHcAZQByAFMAaABlAGwAbAAgAHYAMwAuADAAIABvAHIAIABuAGUAdwBlAHIAIgB9ACcAexcludes:ParentCommandLine field:"ParentCommandLine" value:"cAewAiAGYAYQBpAGwAZQBkACIAOgB0AHIAdQBlACwAIgBtAHMAZwAiADoAIgBBAG4AcwBpAGIAbABlACAAcgBlAHEAdQBpAHIAZQBzACAAUABvAHcAZQByAFMAaABlAGwAbAAgAHYAMwAuADAAIABvAHIAIABuAGUAdwBlAHIAIgB9ACcA"
ParentCommandLinematchnAHsAIgBmAGEAaQBsAGUAZAAiADoAdAByAHUAZQAsACIAbQBzAGcAIgA6ACIAQQBuAHMAaQBiAGwAZQAgAHIAZQBxAHUAaQByAGUAcwAgAFAAbwB3AGUAcgBTAGgAZQBsAGwAIAB2ADMALgAwACAAbwByACAAbgBlAHcAZQByACIAfQAnAexcludes:ParentCommandLine field:"ParentCommandLine" value:"nAHsAIgBmAGEAaQBsAGUAZAAiADoAdAByAHUAZQAsACIAbQBzAGcAIgA6ACIAQQBuAHMAaQBiAGwAZQAgAHIAZQBxAHUAaQByAGUAcwAgAFAAbwB3AGUAcgBTAGgAZQBsAGwAIAB2ADMALgAwACAAbwByACAAbgBlAHcAZQByACIAfQAnA"
ParentImageeqC:\ProgramData\chocolatey\choco.exeexcludes:ParentImage field:"ParentImage" value:"C:\ProgramData\chocolatey\choco.exe"

Deletion of Volume Shadow Copies via WMI with PowerShell

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

Detects deletion of Windows Volume Shadow Copies with PowerShell code and Get-WMIObject. This technique is used by numerous ransomware families such as Sodinokibi/REvil

MITRE ATT&CK Coverage

TacticTechniques
Impact

Telemetry Coverage

Rule Body

title: Deletion of Volume Shadow Copies via WMI with PowerShell
id: 21ff4ca9-f13a-41ad-b828-0077b2af2e40
related:
    - id: e17121b4-ef2a-4418-8a59-12fb1631fa9e
      type: derived
    - id: c1337eb8-921a-4b59-855b-4ba188ddcc42
      type: similar
status: test
description: Detects deletion of Windows Volume Shadow Copies with PowerShell code and Get-WMIObject. This technique is used by numerous ransomware families such as Sodinokibi/REvil
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1490/T1490.md#atomic-test-5---windows---delete-volume-shadow-copies-via-wmi-with-powershell
    - https://www.elastic.co/guide/en/security/current/volume-shadow-copy-deletion-via-powershell.html
author: Tim Rauch, Elastic (idea)
date: 2022-09-20
modified: 2022-12-30
tags:
    - attack.impact
    - attack.t1490
logsource:
    category: process_creation
    product: windows
detection:
    selection_get:
        CommandLine|contains:
            - 'Get-WmiObject'
            - 'gwmi'
            - 'Get-CimInstance'
            - 'gcim'
    selection_shadowcopy:
        CommandLine|contains: 'Win32_ShadowCopy'
    selection_delete:
        CommandLine|contains:
            - '.Delete()'
            - 'Remove-WmiObject'
            - 'rwmi'
            - 'Remove-CimInstance'
            - 'rcim'
    condition: all of selection*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_get

selection_get:
    CommandLine|contains:
        - 'Get-WmiObject'
        - 'gwmi'
        - 'Get-CimInstance'
        - 'gcim'

Stage 2: selection_shadowcopy

selection_shadowcopy:
    CommandLine|contains: 'Win32_ShadowCopy'

Stage 3: selection_delete

selection_delete:
    CommandLine|contains:
        - '.Delete()'
        - 'Remove-WmiObject'
        - 'rwmi'
        - 'Remove-CimInstance'
        - 'rcim'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .Delete() corpus 2 (sigma 2)
  • Get-CimInstance
  • Get-WmiObject corpus 6 (splunk 5, sigma 1)
  • Remove-CimInstance
  • Remove-WmiObject
  • Win32_ShadowCopy
  • gcim
  • gwmi
  • rcim
  • rwmi
field:"CommandLine" kind:match

Encoded PowerShell payload deployed via process execution

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

Detects scenarios where an attacker deployed an encoded PowerShell payload via a process execution. Some parameters are commented in case you would like to reduce false positives or make the rule more precise.

Known False Positives

  • none

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Encoded PowerShell payload deployed via process execution
description: Detects scenarios where an attacker deployed an encoded PowerShell payload via a process execution. Some parameters are commented in case you would like to reduce false positives or make the rule more precise.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1059.001-PowerShell
- https://www.offensive-security.com/metasploit-unleashed/psexec-pass-hash/
- https://www.fortinet.com/blog/threat-research/newly-discovered-function-in-darkside-ransomware-variant-targets-disk-partitions
- https://www.huntress.com/blog/from-powershell-to-payload-an-analysis-of-weaponized-malware
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1569.002/T1569.002.md
- https://www.f5.com/labs/articles/threat-intelligence/vulnerabilities-exploits-and-malware-driving-attack-campaigns-in-october-2019
- https://www.crowdstrike.com/blog/getting-the-bacon-from-cobalt-strike-beacon/
- https://research.splunk.com/endpoint/8acbc04c-c882-11eb-b060-acde48001122/
tags:
- attack.execution
- attack.t1059.003
- attack.defense_evasion
- attack.t1027
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    NewProcessName|endswith:
      - \cmd.exe
      - \powershell.exe
      - \pwsh.exe # PowerShell v6
      - \powershell_ise.exe # Development GUI
    CommandLine|contains:
      - '[System.Convert]::'
      - 'FromBase64String'
      - 'IO.StreamReader'
      - 'IO.Compression.'
  condition: selection
falsepositives:
  - none
level: high

#Payload sample:
#C:\Windows\system32\cmd.exe /b /c start /b /min powershell.exe -nop -w hidden -noni -c "if([IntPtr]::Size -eq 4){$b='powershell.exe'}else{$b=$env:windir+'\syswow64\WindowsPowerShell\v1.0\powershell.exe'};$s=New-Object System.Diagnostics.ProcessStartInfo;$s.FileName=$b;$s.Arguments='-noni -nop -w hidden -c &([scriptblock]::create((New-Object System.IO.StreamReader(New-Object System.IO.Compression.GzipStream((New-Object System.IO.MemoryStream(,[System.Convert]::FromBase64String(''H4sIA3+DTnHlctdCgAA''))),[System.IO.Compression.CompressionMode]::Decompress))).ReadToEnd()))';$s.UseShellExecute=$false;$s.RedirectStandardOutput=$true;$s.WindowStyle='Hidden';$s.CreateNoWindow=$true;$p=[System.Diagnostics.Process]::Start($s);" 

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith:
    - \cmd.exe
    - \powershell.exe
    - \pwsh.exe
    - \powershell_ise.exe
  CommandLine|contains:
    - '[System.Convert]::'
    - 'FromBase64String'
    - 'IO.StreamReader'
    - 'IO.Compression.'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • FromBase64String corpus 15 (sigma 9, elastic 4, splunk 2)
  • IO.Compression.
  • IO.StreamReader
  • [System.Convert]::
field:"CommandLine" kind:match
NewProcessNameends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with

HackTool - CoercedPotato Execution

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

Detects the use of CoercedPotato, a tool for privilege escalation

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: HackTool - CoercedPotato Execution
id: e8d34729-86a4-4140-adfd-0a29c2106307
status: test
description: Detects the use of CoercedPotato, a tool for privilege escalation
references:
    - https://github.com/hackvens/CoercedPotato
    - https://blog.hackvens.fr/articles/CoercedPotato.html
author: Florian Roth (Nextron Systems)
date: 2023-10-11
modified: 2024-11-23
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
logsource:
    category: process_creation
    product: windows
detection:
    selection_loader_img:
        Image|endswith: '\CoercedPotato.exe'
    selection_params:
        CommandLine|contains: ' --exploitId '
    selection_loader_imphash:
        Hashes|contains:
            - 'IMPHASH=A75D7669DB6B2E107A44C4057FF7F7D6'
            - 'IMPHASH=F91624350E2C678C5DCBE5E1F24E22C9'
            - 'IMPHASH=14C81850A079A87E83D50CA41C709A15'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_loader_img

selection_loader_img:
    Image|endswith: '\CoercedPotato.exe'

Stage 2: selection_params

selection_params:
    CommandLine|contains: ' --exploitId '

Stage 3: selection_loader_imphash

selection_loader_imphash:
    Hashes|contains:
        - 'IMPHASH=A75D7669DB6B2E107A44C4057FF7F7D6'
        - 'IMPHASH=F91624350E2C678C5DCBE5E1F24E22C9'
        - 'IMPHASH=14C81850A079A87E83D50CA41C709A15'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • --exploitId
field:"CommandLine" kind:match value:" --exploitId "
Hashesmatch
  • IMPHASH=14C81850A079A87E83D50CA41C709A15
  • IMPHASH=A75D7669DB6B2E107A44C4057FF7F7D6
  • IMPHASH=F91624350E2C678C5DCBE5E1F24E22C9
field:"Hashes" kind:match
Imageends_with
  • \CoercedPotato.exe
field:"Image" kind:ends_with value:"\CoercedPotato.exe"

HackTool - DInjector PowerShell Cradle Execution

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

Detects the use of the Dinject PowerShell cradle based on the specific flags

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: HackTool - DInjector PowerShell Cradle Execution
id: d78b5d61-187d-44b6-bf02-93486a80de5a
status: test
description: Detects the use of the Dinject PowerShell cradle based on the specific flags
references:
    - https://web.archive.org/web/20211001064856/https://github.com/snovvcrash/DInjector # Original got deleted. This is a fork
author: Florian Roth (Nextron Systems)
date: 2021-12-07
modified: 2023-02-04
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - ' /am51'
            - ' /password'
    condition: selection
falsepositives:
    - Unlikely
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - ' /am51'
        - ' /password'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /am51
  • /password
field:"CommandLine" kind:match

HackTool - PPID Spoofing SelectMyParent Tool Execution

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

Detects the use of parent process ID spoofing tools like Didier Stevens tool SelectMyParent

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: HackTool - PPID Spoofing SelectMyParent Tool Execution
id: 52ff7941-8211-46f9-84f8-9903efb7077d
status: test
description: Detects the use of parent process ID spoofing tools like Didier Stevens tool SelectMyParent
references:
    - https://pentestlab.blog/2020/02/24/parent-pid-spoofing/
    - https://www.picussecurity.com/resource/blog/how-to-detect-parent-pid-ppid-spoofing-attacks
    - https://www.ired.team/offensive-security/defense-evasion/parent-process-id-ppid-spoofing
    - https://www.virustotal.com/gui/search/filename%253A*spoof*%2520filename%253A*ppid*/files
author: Florian Roth (Nextron Systems)
date: 2022-07-23
modified: 2024-11-23
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.004
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\SelectMyParent.exe'
        - CommandLine|contains:
              - 'PPID-spoof'
              - 'ppid_spoof'
              - 'spoof-ppid'
              - 'spoof_ppid'
              - 'ppidspoof'
              - 'spoofppid'
              - 'spoofedppid'
              - ' -spawnto '
        - OriginalFileName|contains:
              - 'PPID-spoof'
              - 'ppid_spoof'
              - 'spoof-ppid'
              - 'spoof_ppid'
              - 'ppidspoof'
              - 'spoofppid'
              - 'spoofedppid'
        - Description: 'SelectMyParent'
        - Hashes|contains:
              - 'IMPHASH=04D974875BD225F00902B4CAD9AF3FBC'
              - 'IMPHASH=A782AF154C9E743DDF3F3EB2B8F3D16E'
              - 'IMPHASH=89059503D7FBF470E68F7E63313DA3AD'
              - 'IMPHASH=CA28337632625C8281AB8A130B3D6BAD'
    condition: selection
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_hktl_selectmyparent/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|endswith: '\SelectMyParent.exe'
    - CommandLine|contains:
          - 'PPID-spoof'
          - 'ppid_spoof'
          - 'spoof-ppid'
          - 'spoof_ppid'
          - 'ppidspoof'
          - 'spoofppid'
          - 'spoofedppid'
          - ' -spawnto '
    - OriginalFileName|contains:
          - 'PPID-spoof'
          - 'ppid_spoof'
          - 'spoof-ppid'
          - 'spoof_ppid'
          - 'ppidspoof'
          - 'spoofppid'
          - 'spoofedppid'
    - Description: 'SelectMyParent'
    - Hashes|contains:
          - 'IMPHASH=04D974875BD225F00902B4CAD9AF3FBC'
          - 'IMPHASH=A782AF154C9E743DDF3F3EB2B8F3D16E'
          - 'IMPHASH=89059503D7FBF470E68F7E63313DA3AD'
          - 'IMPHASH=CA28337632625C8281AB8A130B3D6BAD'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -spawnto
  • PPID-spoof
  • ppid_spoof
  • ppidspoof
  • spoof-ppid
  • spoof_ppid
  • spoofedppid
  • spoofppid
field:"CommandLine" kind:match
Descriptioneq
  • SelectMyParent
field:"Description" kind:eq value:"SelectMyParent"
Hashesmatch
  • IMPHASH=04D974875BD225F00902B4CAD9AF3FBC
  • IMPHASH=89059503D7FBF470E68F7E63313DA3AD
  • IMPHASH=A782AF154C9E743DDF3F3EB2B8F3D16E
  • IMPHASH=CA28337632625C8281AB8A130B3D6BAD
field:"Hashes" kind:match
Imageends_with
  • \SelectMyParent.exe
field:"Image" kind:ends_with value:"\SelectMyParent.exe"
OriginalFileNamematch
  • PPID-spoof
  • ppid_spoof
  • ppidspoof
  • spoof-ppid
  • spoof_ppid
  • spoofedppid
  • spoofppid
field:"OriginalFileName" kind:match

Local File Read Using Curl.EXE

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

Detects execution of "curl.exe" with the "file://" protocol handler in order to read local files.

MITRE ATT&CK Coverage

TacticTechniques
ExecutionNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Local File Read Using Curl.EXE
id: aa6f6ea6-0676-40dd-b510-6e46f02d8867
status: test
description: Detects execution of "curl.exe" with the "file://" protocol handler in order to read local files.
references:
    - https://curl.se/docs/manpage.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-07-27
tags:
    - attack.execution
logsource:
    product: windows
    category: process_creation
detection:
    selection_img:
        - Image|endswith: '\curl.exe'
        - OriginalFileName: 'curl.exe'
    selection_cli:
        CommandLine|contains: 'file:///'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_curl_local_file_read/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains: 'file:///'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • file:///
field:"CommandLine" kind:match value:"file:///"
Imageends_with
  • \curl.exe corpus 31 (sigma 31)
field:"Image" kind:ends_with value:"\curl.exe"
OriginalFileNameeq
  • curl.exe corpus 22 (sigma 13, elastic 6, splunk 3)
field:"OriginalFileName" kind:eq value:"curl.exe"

LSASS credential dump with LSASSY (kernel access)

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

Detects scenarios where an attacker remotely dump LSASS credentials using the LSASSY tool.

Known False Positives

  • Antivirus, security products, browsers

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: LSASS credential dump with LSASSY (kernel access)
description: Detects scenarios where an attacker remotely dump LSASS credentials using the LSASSY tool.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1003-Credential%20dumping
- https://github.com/Hackndo/lsassy
tags:
- attack.credential_access
- attack.t1003.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID:
      - 4656 # A handle to an object was requested (Kernel object).
      - 4663 # An attempt was made to access an object (Kernel object).
    ObjectType: Process
    ObjectServer: Security
    ProcessName|endswith: '\rundll32.exe'
    ObjectName|endswith: '\lsass.exe'
  filter:
    SubjectUserName|endswith: '$'
  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:
    - 4656
    - 4663
  ObjectType: Process
  ObjectServer: Security
  ProcessName|endswith: '\rundll32.exe'
  ObjectName|endswith: '\lsass.exe'

Stage 2: not filter

filter:
  SubjectUserName|endswith: '$'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

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

LSASS credential dump with LSASSY (PowerShell)

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

Detects scenarios where an attacker remotely dump LSASS credentials using the LSASSY tool.

Known False Positives

  • legitimate administrator activation

MITRE ATT&CK Coverage

TacticTechniques
Credential Access

Telemetry Coverage

Rule Body

title: LSASS credential dump with LSASSY (PowerShell)
description: Detects scenarios where an attacker remotely dump LSASS credentials using the LSASSY tool.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0006-Credential%20Access/T1003-Credential%20dumping
- https://github.com/Hackndo/lsassy
tags:
- attack.credential_access
- attack.t1003.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category:
    - ps_module
    - ps_classic_script
    - ps_script
detection: # full command: 'C:\Windows\System32\rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump (Get-Process lsass).Id \Windows\Temp\vtnr8kff.dmp full;Wait-Process -Id (Get-Process rundll32).id'
  selection_powershell_native:
    EventID: 800
    EventData|contains|all:
      - rundll32.exe
      - comsvcs.dll
      - lsass
      #- '.dmp' # Extension can be changed in source code

  selection_powershell_modern:
    EventID: 4103
    Payload|contains|all:
      - rundll32.exe
      - comsvcs.dll
      - lsass
      #- '.dmp' # Extension can be changed in source code

  selection_powershell_block:
    EventID: 4104
    ScriptBlockText|contains|all:
      - rundll32.exe
      - comsvcs.dll
      - lsass
      #- '.dmp' # Extension can be changed in source code

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

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_powershell_native

selection_powershell_native:
  EventID: 800
  EventData|contains|all:
    - rundll32.exe
    - comsvcs.dll
    - lsass

Stage 2: selection_powershell_modern

selection_powershell_modern:
  EventID: 4103
  Payload|contains|all:
    - rundll32.exe
    - comsvcs.dll
    - lsass

Stage 3: selection_powershell_block

selection_powershell_block:
  EventID: 4104
  ScriptBlockText|contains|all:
    - rundll32.exe
    - comsvcs.dll
    - lsass

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventDatamatch
  • comsvcs.dll
  • lsass
  • rundll32.exe
field:"EventData" kind:match
Payloadmatch
  • comsvcs.dll
  • lsass
  • rundll32.exe corpus 2 (sigma 2)
field:"Payload" kind:match
ScriptBlockTextmatch
  • comsvcs.dll
  • lsass
  • rundll32.exe corpus 2 (sigma 2)
field:"ScriptBlockText" kind:match

Malicious IP Address Sign-In Failure Rate

#
Status
test
Severity
high
Author
Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
Source
github.com/SigmaHQ/sigma

Indicates sign-in from a malicious IP address based on high failure rates.

Known False Positives

  • We recommend investigating the sessions flagged by this detection in the context of other sign-ins from the user.

MITRE ATT&CK Coverage

TacticTechniques
Command & Control

Rule Body

title: Malicious IP Address Sign-In Failure Rate
id: a3f55ebd-0c01-4ed6-adc0-8fb76d8cd3cd
status: test
description: Indicates sign-in from a malicious IP address based on high failure rates.
references:
    - https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-risks#malicious-ip-address
    - https://learn.microsoft.com/en-us/entra/architecture/security-operations-user-accounts#unusual-sign-ins
author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
date: 2023-09-07
tags:
    - attack.t1090
    - attack.command-and-control
logsource:
    product: azure
    service: riskdetection
detection:
    selection:
        riskEventType: 'maliciousIPAddress'
    condition: selection
falsepositives:
    - We recommend investigating the sessions flagged by this detection in the context of other sign-ins from the user.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    riskEventType: 'maliciousIPAddress'

Indicators

These rows show field, operator, and value matches.

OneLogin User Account Locked

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

Detects when an user account is locked or suspended.

Known False Positives

  • System may lock or suspend user accounts.

MITRE ATT&CK Coverage

TacticTechniques
ImpactNo specific technique

Rule Body

title: OneLogin User Account Locked
id: a717c561-d117-437e-b2d9-0118a7035d01
status: test
description: Detects when an user account is locked or suspended.
references:
    - https://developers.onelogin.com/api-docs/1/events/event-resource/
author: Austin Songer @austinsonger
date: 2021-10-12
modified: 2022-12-25
tags:
    - attack.impact
logsource:
    product: onelogin
    service: onelogin.events
detection:
    selection1: # Locked via API
        event_type_id: 532
    selection2: # Locked via API
        event_type_id: 553
    selection3: # Suspended via API
        event_type_id: 551
    condition: 1 of selection*
falsepositives:
    - System may lock or suspend user accounts.
level: low

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection1

selection1:
    event_type_id: 532

Stage 2: selection2

selection2:
    event_type_id: 553

Stage 3: selection3

selection3:
    event_type_id: 551

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event_type_ideq
  • 532
  • 551
  • 553
field:"event_type_id" kind:eq

Potential DLL Sideloading Activity Via ExtExport.EXE

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

Detects the execution of "Extexport.exe".A utility that is part of the Internet Explorer browser and is used to export and import various settings and data, particularly when switching between Internet Explorer and other web browsers like Firefox. It allows users to transfer bookmarks, browsing history, and other preferences from Internet Explorer to Firefox or vice versa. It can be abused as a tool to side load any DLL. If a folder is provided in the command line it'll load any DLL with one of the following names "mozcrt19.dll", "mozsqlite3.dll", or "sqlite.dll". Arbitrary DLLs can also be loaded if a specific number of flags was provided.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential DLL Sideloading Activity Via ExtExport.EXE
id: fb0b815b-f5f6-4f50-970f-ffe21f253f7a
status: test
description: |
    Detects the execution of "Extexport.exe".A utility that is part of the Internet Explorer browser and is used to export and import various settings and data, particularly when switching between Internet Explorer and other web browsers like Firefox. It allows users to transfer bookmarks, browsing history, and other preferences from Internet Explorer to Firefox or vice versa.
    It can be abused as a tool to side load any DLL. If a folder is provided in the command line it'll load any DLL with one of the following names "mozcrt19.dll", "mozsqlite3.dll", or "sqlite.dll".
    Arbitrary DLLs can also be loaded if a specific number of flags was provided.
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Extexport/
    - https://www.hexacorn.com/blog/2018/04/24/extexport-yet-another-lolbin/
    - https://www.microsoft.com/en-us/security/blog/2020/03/23/latest-astaroth-living-off-the-land-attacks-are-even-more-invisible-but-not-less-observable/
    - https://res.armor.com/resources/threat-intelligence/astaroth-banking-trojan/
    - https://securelist.com/the-tetrade-brazilian-banking-malware/97779/
    - https://www.welivesecurity.com/2020/03/05/guildma-devil-drives-electric/
author: frack113, Nasreddine Bencherchali (Nextron Systems)
date: 2021-11-26
modified: 2024-08-26
tags:
    - attack.stealth
    - attack.t1218
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\Extexport.exe'
        - OriginalFileName: 'extexport.exe'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Image|endswith: '\Extexport.exe'
    - OriginalFileName: 'extexport.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \Extexport.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\Extexport.exe"
OriginalFileNameeq
  • extexport.exe corpus 2 (sigma 1, elastic 1)
field:"OriginalFileName" kind:eq value:"extexport.exe"

Potential Exploitation of GoAnywhere MFT Vulnerability

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

Detects suspicious command execution by child processes of the GoAnywhere Managed File Transfer (MFT) application, which may indicate exploitation such as CVE-2025-10035. This behavior is indicative of post-exploitation activity related to CVE-2025-10035, as observed in campaigns by the threat actor Storm-1175.

Known False Positives

  • Legitimate administrative scripts or built-in GoAnywhere functions could potentially trigger this rule. Tuning may be required based on normal activity in your environment.

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Exploitation of GoAnywhere MFT Vulnerability
id: 6c76b3d0-afe4-4870-9443-ffe6773c5fef
status: experimental
description: |
    Detects suspicious command execution by child processes of the GoAnywhere Managed File Transfer (MFT) application, which may indicate exploitation such as CVE-2025-10035.
    This behavior is indicative of post-exploitation activity related to CVE-2025-10035, as observed in campaigns by the threat actor Storm-1175.
references:
    - https://www.microsoft.com/en-us/security/blog/2025/10/06/investigating-active-exploitation-of-cve-2025-10035-goanywhere-managed-file-transfer-vulnerability/
author: MSFT (idea), Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-10-07
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.001
    - attack.persistence
    - attack.t1133
    - detection.emerging-threats
    - cve.2025-10035
logsource:
    category: process_creation
    product: windows
detection:
    # Detects the GoAnywhere Tomcat parent process based on path and command line arguments
    selection_parent:
        ParentImage|contains: '\GoAnywhere\tomcat\'
    selection_powershell_img:
        Image|endswith:
            - '\powershell.exe'
            - '\powershell_ise.exe'
            - '\pwsh.exe'
    selection_powershell_cmd:
        - CommandLine|contains|all:
              - 'IEX'
              - 'enc'
              - 'Hidden'
              - 'bypass'
        - CommandLine|re:
              - 'net\s+user'
              - 'net\s+group'
              - 'query\s+session'
        - CommandLine|contains:
              - 'whoami'
              - 'systeminfo'
              - 'dsquery'
              - 'localgroup administrators'
              - 'nltest'
              - 'samaccountname='
              - 'adscredentials'
              - 'o365accountconfiguration'
              - '.DownloadString('
              - '.DownloadFile('
              - 'FromBase64String('
              - 'System.IO.Compression'
              - 'System.IO.MemoryStream'
              - 'curl'
    selection_child_cmd:
        Image|endswith: '\cmd.exe'
        CommandLine|contains:
            - 'powershell'
            - 'whoami'
            - 'net.exe'
            - 'net1.exe'
            - 'rundll32'
            - 'quser'
            - 'nltest'
            - 'curl'
    selection_child_others:
        CommandLine|contains:
            - 'bitsadmin'
            - 'certutil'
            - 'mshta'
            - 'cscript'
            - 'wscript'
    condition: selection_parent and (all of selection_powershell_* or 1 of selection_child_*)
falsepositives:
    - Legitimate administrative scripts or built-in GoAnywhere functions could potentially trigger this rule. Tuning may be required based on normal activity in your environment.
level: high

Stages and Predicates

Stage 0: condition

selection_parent and (all of selection_powershell_* or 1 of selection_child_*)

Stage 1: selection_parent

selection_parent:
    ParentImage|contains: '\GoAnywhere\tomcat\'

Stage 2: selection_powershell_img

selection_powershell_img:
    Image|endswith:
        - '\powershell.exe'
        - '\powershell_ise.exe'
        - '\pwsh.exe'

Stage 3: selection_powershell_cmd

selection_powershell_cmd:
    - CommandLine|contains|all:
          - 'IEX'
          - 'enc'
          - 'Hidden'
          - 'bypass'
    - CommandLine|re:
          - 'net\s+user'
          - 'net\s+group'
          - 'query\s+session'
    - CommandLine|contains:
          - 'whoami'
          - 'systeminfo'
          - 'dsquery'
          - 'localgroup administrators'
          - 'nltest'
          - 'samaccountname='
          - 'adscredentials'
          - 'o365accountconfiguration'
          - '.DownloadString('
          - '.DownloadFile('
          - 'FromBase64String('
          - 'System.IO.Compression'
          - 'System.IO.MemoryStream'
          - 'curl'

Stage 4: selection_child_cmd

selection_child_cmd:
    Image|endswith: '\cmd.exe'
    CommandLine|contains:
        - 'powershell'
        - 'whoami'
        - 'net.exe'
        - 'net1.exe'
        - 'rundll32'
        - 'quser'
        - 'nltest'
        - 'curl'

Stage 5: selection_child_others

selection_child_others:
    CommandLine|contains:
        - 'bitsadmin'
        - 'certutil'
        - 'mshta'
        - 'cscript'
        - 'wscript'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .DownloadFile( corpus 7 (sigma 7)
  • .DownloadString( corpus 7 (sigma 7)
  • FromBase64String(
  • Hidden corpus 4 (sigma 4)
  • IEX corpus 6 (sigma 5, splunk 1)
  • System.IO.Compression corpus 3 (sigma 3)
  • System.IO.MemoryStream corpus 3 (sigma 3)
  • adscredentials corpus 3 (sigma 3)
  • bitsadmin corpus 10 (sigma 10)
  • bypass corpus 6 (sigma 6)
  • certutil corpus 10 (sigma 10)
  • cscript corpus 15 (sigma 15)
  • curl corpus 17 (sigma 14, elastic 2, splunk 1)
  • dsquery corpus 3 (sigma 3)
  • enc corpus 3 (sigma 3)
  • localgroup administrators corpus 3 (sigma 3)
  • mshta corpus 14 (sigma 14)
  • net.exe corpus 2 (sigma 2)
  • net1.exe corpus 2 (sigma 2)
  • nltest corpus 2 (sigma 2)
  • o365accountconfiguration corpus 3 (sigma 3)
  • powershell corpus 24 (sigma 24)
  • quser
  • rundll32 corpus 23 (sigma 23)
  • samaccountname= corpus 3 (sigma 3)
  • systeminfo corpus 5 (sigma 4, splunk 1)
  • whoami corpus 12 (sigma 9, splunk 2, elastic 1)
  • wscript corpus 16 (sigma 16)
field:"CommandLine" kind:match
CommandLineregex_match
  • net\s+group corpus 3 (sigma 3)
  • net\s+user corpus 3 (sigma 3)
  • query\s+session corpus 2 (sigma 2)
field:"CommandLine" kind:regex_match
Imageends_with
  • \cmd.exe corpus 132 (sigma 130, splunk 2)
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
ParentImagematch
  • \GoAnywhere\tomcat\
field:"ParentImage" kind:match value:"\GoAnywhere\tomcat\"

Potential Information Disclosure CVE-2023-43261 Exploitation - Proxy

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

Detects exploitation attempts of CVE-2023-43261 and information disclosure in Milesight UR5X, UR32L, UR32, UR35, UR41 before v35.3.0.7 that allows attackers to access sensitive router components in proxy logs.

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Rule Body

title: Potential Information Disclosure CVE-2023-43261 Exploitation - Proxy
id: f48f5368-355c-4a1b-8bf5-11c13d589eaa
related:
    - id: a2bcca38-9f3a-4d5e-b603-0c587e8569d7
      type: similar
status: test
description: |
    Detects exploitation attempts of CVE-2023-43261 and information disclosure in Milesight UR5X, UR32L, UR32, UR35, UR41 before v35.3.0.7 that allows attackers to access sensitive router components in proxy logs.
references:
    - https://thehackernews.com/2023/10/experts-warn-of-severe-flaws-affecting.html
    - https://medium.com/@win3zz/inside-the-router-how-i-accessed-industrial-routers-and-reported-the-flaws-29c34213dfdf
    - https://github.com/win3zz/CVE-2023-43261
    - https://vulncheck.com/blog/real-world-cve-2023-43261
author: Nasreddine Bencherchali (Nextron Systems), Thurein Oo
date: 2023-10-20
modified: 2023-10-30
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2023-43621
    - detection.emerging-threats
logsource:
    category: proxy
detection:
    selection:
        cs-method: 'GET'
        # Note: In theory the path can also be for other files. But since the logs can contains password and interesting information. Its most likely going to be targeted during a real attack
        c-uri|contains: '/lang/log/httpd.log' # Als covered .old
        sc-status: 200
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-method: 'GET'
    c-uri|contains: '/lang/log/httpd.log'
    sc-status: 200

Indicators

These rows show field, operator, and value matches.

Potential PetitPotam Attack Via EFS RPC Calls

#
Status
test
Severity
medium
Author
@neu5ron, @Antonlovesdnb, Mike Remen
Source
github.com/SigmaHQ/sigma

Detects usage of the windows RPC library Encrypting File System Remote Protocol (MS-EFSRPC). Variations of this RPC are used within the attack refereed to as PetitPotam. The usage of this RPC function should be rare if ever used at all. Thus usage of this function is uncommon enough that any usage of this RPC function should warrant further investigation to determine if it is legitimate. View surrounding logs (within a few minutes before and after) from the Source IP to. Logs from from the Source IP would include dce_rpc, smb_mapping, smb_files, rdp, ntlm, kerberos, etc..'

Known False Positives

  • Uncommon but legitimate windows administrator or software tasks that make use of the Encrypting File System RPC Calls. Verify if this is common activity (see description).

MITRE ATT&CK Coverage

Rule Body

title: Potential PetitPotam Attack Via EFS RPC Calls
id: 4096842a-8f9f-4d36-92b4-d0b2a62f9b2a
status: test
description: |
    Detects usage of the windows RPC library Encrypting File System Remote Protocol (MS-EFSRPC). Variations of this RPC are used within the attack refereed to as PetitPotam.
    The usage of this RPC function should be rare if ever used at all.
    Thus usage of this function is uncommon enough that any usage of this RPC function should warrant further investigation to determine if it is legitimate.
     View surrounding logs (within a few minutes before and after) from the Source IP to. Logs from from the Source IP would include dce_rpc, smb_mapping, smb_files, rdp, ntlm, kerberos, etc..'
references:
    - https://github.com/topotam/PetitPotam/blob/d83ac8f2dd34654628c17490f99106eb128e7d1e/PetitPotam/PetitPotam.cpp
    - https://msrc.microsoft.com/update-guide/vulnerability/ADV210003
    - https://vx-underground.org/archive/Symantec/windows-vista-network-attack-07-en.pdf
    - https://threatpost.com/microsoft-petitpotam-poc/168163/
author: '@neu5ron, @Antonlovesdnb, Mike Remen'
date: 2021-08-17
modified: 2022-11-28
tags:
    - attack.collection
    - attack.credential-access
    - attack.t1557.001
    - attack.t1187
logsource:
    product: zeek
    service: dce_rpc
detection:
    selection:
        operation|startswith: 'efs'
    condition: selection
falsepositives:
    - Uncommon but legitimate windows administrator or software tasks that make use of the Encrypting File System RPC Calls. Verify if this is common activity (see description).
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    operation|startswith: 'efs'

Indicators

These rows show field, operator, and value matches.

Potential Registry Persistence Attempt Via DbgManagedDebugger

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

Detects the addition of the "Debugger" value to the "DbgManagedDebugger" key in order to achieve persistence. Which will get invoked when an application crashes

Known False Positives

  • Legitimate use of the key to setup a debugger. Which is often the case on developers machines

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Potential Registry Persistence Attempt Via DbgManagedDebugger
id: 9827ae57-3802-418f-994b-d5ecf5cd974b
status: test
description: Detects the addition of the "Debugger" value to the "DbgManagedDebugger" key in order to achieve persistence. Which will get invoked when an application crashes
references:
    - https://www.hexacorn.com/blog/2013/09/19/beyond-good-ol-run-key-part-4/
    - https://github.com/last-byte/PersistenceSniper
author: frack113
date: 2022-08-07
modified: 2023-08-17
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.t1574
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|endswith: '\Microsoft\.NETFramework\DbgManagedDebugger'
    filter:
        Details: '"C:\Windows\system32\vsjitdebugger.exe" PID %d APPDOM %d EXTEXT "%s" EVTHDL %d'
    condition: selection and not filter
falsepositives:
    - Legitimate use of the key to setup a debugger. Which is often the case on developers machines
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    TargetObject|endswith: '\Microsoft\.NETFramework\DbgManagedDebugger'

Stage 2: not filter

filter:
    Details: '"C:\Windows\system32\vsjitdebugger.exe" PID %d APPDOM %d EXTEXT "%s" EVTHDL %d'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetObjectends_with
  • \Microsoft\.NETFramework\DbgManagedDebugger
field:"TargetObject" kind:ends_with value:"\Microsoft\.NETFramework\DbgManagedDebugger"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Detailseq"C:\Windows\system32\vsjitdebugger.exe" PID %d APPDOM %d EXTEXT "%s" EVTHDL %dexcludes:Details

Potential SharePoint ToolShell CVE-2025-53770 Exploitation - File Create

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

Detects the creation of file such as spinstall0.aspx which may indicate successful exploitation of CVE-2025-53770. CVE-2025-53770 is a zero-day vulnerability in SharePoint that allows remote code execution.

MITRE ATT&CK Coverage

TacticTechniques
Initial Access

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: Potential SharePoint ToolShell CVE-2025-53770 Exploitation - File Create
id: ba479447-721f-42a9-9af2-6dcd517bbdb3
status: experimental
description: |
    Detects the creation of file such as spinstall0.aspx which may indicate successful exploitation of CVE-2025-53770.
    CVE-2025-53770 is a zero-day vulnerability in SharePoint that allows remote code execution.
references:
    - https://research.eye.security/sharepoint-under-siege/
    - https://msrc.microsoft.com/blog/2025/07/customer-guidance-for-sharepoint-vulnerability-cve-2025-53770/
    - https://unit42.paloaltonetworks.com/microsoft-sharepoint-cve-2025-49704-cve-2025-49706-cve-2025-53770/
author: Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-07-21
modified: 2025-07-24
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2025-53770
    - detection.emerging-threats
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|startswith:
            - 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\'
            - 'C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\'
        TargetFilename|contains:
            - '\15\TEMPLATE\LAYOUTS\'
            - '\16\TEMPLATE\LAYOUTS\'
        TargetFilename|endswith:
            - '\spinstall.aspx'
            - '\spinstall?.aspx'
            - '\debug_dev.js'
    condition: selection
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|startswith:
        - 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\'
        - 'C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\'
    TargetFilename|contains:
        - '\15\TEMPLATE\LAYOUTS\'
        - '\16\TEMPLATE\LAYOUTS\'
    TargetFilename|endswith:
        - '\spinstall.aspx'
        - '\spinstall?.aspx'
        - '\debug_dev.js'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • \debug_dev.js
  • \spinstall.aspx
  • \spinstall?.aspx
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • \15\TEMPLATE\LAYOUTS\ corpus 2 (sigma 2)
  • \16\TEMPLATE\LAYOUTS\ corpus 2 (sigma 2)
field:"TargetFilename" kind:match
TargetFilenamestarts_with
  • C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\ corpus 2 (sigma 2)
  • C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ corpus 2 (sigma 2)
field:"TargetFilename" kind:starts_with

Potential WMI Lateral Movement WmiPrvSE Spawned PowerShell

#
Status
stable
Severity
medium
Author
Markus Neis @Karneades
Source
github.com/SigmaHQ/sigma

Detects Powershell as a child of the WmiPrvSE process. Which could be a sign of lateral movement via WMI.

Known False Positives

  • AppvClient
  • CCM
  • WinRM

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Potential WMI Lateral Movement WmiPrvSE Spawned PowerShell
id: 692f0bec-83ba-4d04-af7e-e884a96059b6
related:
    - id: 8a582fe2-0882-4b89-a82a-da6b2dc32937
      type: similar
    - id: d21374ff-f574-44a7-9998-4a8c8bf33d7d
      type: similar
status: stable
description: Detects Powershell as a child of the WmiPrvSE process. Which could be a sign of lateral movement via WMI.
references:
    - https://any.run/report/68bc255f9b0db6a0d30a8f2dadfbee3256acfe12497bf93943bc1eab0735e45e/a2385d6f-34f7-403c-90d3-b1f9d2a90a5e
author: Markus Neis @Karneades
date: 2019-04-03
modified: 2023-03-29
tags:
    - attack.execution
    - attack.t1047
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\WmiPrvSE.exe'
    selection_img:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    condition: all of selection_*
falsepositives:
    - AppvClient
    - CCM
    - WinRM
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith: '\WmiPrvSE.exe'

Stage 2: selection_img

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

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \powershell.exe corpus 181 (sigma 180, splunk 1)
  • \pwsh.exe corpus 166 (sigma 166)
field:"Image" kind:ends_with
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
ParentImageends_with
  • \WmiPrvSE.exe corpus 8 (sigma 8)
field:"ParentImage" kind:ends_with value:"\WmiPrvSE.exe"

Potentially Suspicious Shell Script Creation in Profile Folder

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

Detects the creation of shell scripts under the "profile.d" path.

Known False Positives

  • Legitimate shell scripts in the "profile.d" directory could be common in your environment. Apply additional filter accordingly via "image", by adding specific filenames you "trust" or by correlating it with other events.
  • Regular file creation during system update or software installation by the package manager

MITRE ATT&CK Coverage

TacticTechniques
PersistenceNo specific technique

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 11: File created

Rule Body

title: Potentially Suspicious Shell Script Creation in Profile Folder
id: 13f08f54-e705-4498-91fd-cce9d9cee9f1
status: test
description: Detects the creation of shell scripts under the "profile.d" path.
references:
    - https://blogs.jpcert.or.jp/en/2023/05/gobrat.html
    - https://jstnk9.github.io/jstnk9/research/GobRAT-Malware/
    - https://www.virustotal.com/gui/file/60bcd645450e4c846238cf0e7226dc40c84c96eba99f6b2cffcd0ab4a391c8b3/detection
    - https://www.virustotal.com/gui/file/3e44c807a25a56f4068b5b8186eee5002eed6f26d665a8b791c472ad154585d1/detection
author: Joseliyo Sanchez, @Joseliyo_Jstnk
date: 2023-06-02
tags:
    - attack.persistence
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|contains: '/etc/profile.d/'
        TargetFilename|endswith:
            - '.csh'
            - '.sh'
    condition: selection
falsepositives:
    - Legitimate shell scripts in the "profile.d" directory could be common in your environment. Apply additional filter accordingly via "image", by adding specific filenames you "trust" or by correlating it with other events.
    - Regular file creation during system update or software installation by the package manager
level: low # Can be increased to a higher level after some tuning

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains: '/etc/profile.d/'
    TargetFilename|endswith:
        - '.csh'
        - '.sh'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • .csh
  • .sh
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • /etc/profile.d/ corpus 2 (sigma 1, splunk 1)
field:"TargetFilename" kind:match value:"/etc/profile.d/"

Privilege escalation via RunasCS

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

Detects scenarios where attack attempts to elevate privileges via customize Runas tool.

Known False Positives

  • Administrator activity

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Privilege escalation via RunasCS
description: Detects scenarios where attack attempts to elevate privileges via customize Runas tool.
correlation: correlation with ID 4648 can be done over SubjectLogonId in order to get more context.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0004-Privilege%20Escalation/T1134-Access%20Token%20Manipulation
- https://github.com/antonioCoco/RunasCs
- https://twitter.com/SBousseaden/status/1478373779642400783
tags:
- attack.privilege_escalation
- attack.t1134.002
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:

  selection_process: # optional parameter with suspicious behavior reported by SBousseaden
    EventID: 4688
    TargetUserSid: S-1-0-0 # everyone

  filter_user_process:
    - TargetUserName:
      - 'LOCAL SERVICE'
      - 'Network Service'
      - 'DWM-*'
      - 'UMFD-*'
      - 'sshd_*'
      - '*$'
      - 'DefaultAppPool'
      - '-'
    - TargetDomainName:
      - 'NT Service'
      - 'NT AUTHORITY'
      - 'Font Driver Host'
      - 'Window Manager'
      - 'IIS APPPOOL'
      - 'VIRTUAL USERS'

  condition: selection_process and not filter_user_process
falsepositives:
- Administrator activity
level: low

Stages and Predicates

Stage 0: condition

selection_process and not filter_user_process

Stage 1: selection_process

selection_process:
  EventID: 4688
  TargetUserSid: S-1-0-0

Stage 2: not filter_user_process

filter_user_process:
  - TargetUserName:
    - 'LOCAL SERVICE'
    - 'Network Service'
    - 'DWM-*'
    - 'UMFD-*'
    - 'sshd_*'
    - '*$'
    - 'DefaultAppPool'
    - '-'
  - TargetDomainName:
    - 'NT Service'
    - 'NT AUTHORITY'
    - 'Font Driver Host'
    - 'Window Manager'
    - 'IIS APPPOOL'
    - 'VIRTUAL USERS'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

Process Deletion of Its Own Executable

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

Detects the deletion of a process's executable by itself. This is usually not possible without workarounds and may be used by malware to hide its traces.

Known False Positives

  • Some false positives are to be expected from uninstallers.

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

Rule Body

title: Process Deletion of Its Own Executable
id: f01d1f70-cd41-42ec-9c0b-26dd9c22bf29
status: test
description: |
    Detects the deletion of a process's executable by itself. This is usually not possible without workarounds and may be used by malware to hide its traces.
references:
    - https://github.com/joaoviictorti/RustRedOps/tree/ce04369a246006d399e8c61d9fe0e6b34f988a49/Self_Deletion
author: Max Altgelt (Nextron Systems)
date: 2024-09-03
tags:
    - attack.stealth
logsource:
    product: windows
    category: file_delete
detection:
    selection:
        TargetFilename|fieldref: Image
    condition: selection
falsepositives:
    - Some false positives are to be expected from uninstallers.
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|fieldref: Image

PUA - AdvancedRun Suspicious Execution

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

Detects the execution of AdvancedRun utility in the context of the TrustedInstaller, SYSTEM, Local Service or Network Service accounts

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: PUA - AdvancedRun Suspicious Execution
id: fa00b701-44c6-4679-994d-5a18afa8a707
related:
    - id: d2b749ee-4225-417e-b20e-a8d2193cbb84
      type: similar
status: test
description: Detects the execution of AdvancedRun utility in the context of the TrustedInstaller, SYSTEM, Local Service or Network Service accounts
references:
    - https://twitter.com/splinter_code/status/1483815103279603714
    - https://medium.com/s2wblog/analysis-of-destructive-malware-whispergate-targeting-ukraine-9d5d158f19f3
    - https://www.elastic.co/security-labs/operation-bleeding-bear
    - https://www.winhelponline.com/blog/run-program-as-system-localsystem-account-windows/
author: Florian Roth (Nextron Systems)
date: 2022-01-20
modified: 2023-02-21
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.002
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        CommandLine|contains:
            - '/EXEFilename'
            - '/CommandLine'
    selection_runas:
        - CommandLine|contains:
              - ' /RunAs 8 '
              - ' /RunAs 4 '
              - ' /RunAs 10 '
              - ' /RunAs 11 '
        - CommandLine|endswith:
              - '/RunAs 8'
              - '/RunAs 4'
              - '/RunAs 10'
              - '/RunAs 11'
    condition: all of selection*
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_pua_advancedrun_priv_user/info.yml

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection

selection:
    CommandLine|contains:
        - '/EXEFilename'
        - '/CommandLine'

Stage 2: selection_runas

selection_runas:
    - CommandLine|contains:
          - ' /RunAs 8 '
          - ' /RunAs 4 '
          - ' /RunAs 10 '
          - ' /RunAs 11 '
    - CommandLine|endswith:
          - '/RunAs 8'
          - '/RunAs 4'
          - '/RunAs 10'
          - '/RunAs 11'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • /RunAs 10
  • /RunAs 11
  • /RunAs 4
  • /RunAs 8
field:"CommandLine" kind:ends_with
CommandLinematch
  • /RunAs 10
  • /RunAs 11
  • /RunAs 4
  • /RunAs 8
  • /CommandLine
  • /EXEFilename
field:"CommandLine" kind:match

Python One-Liners with Base64 Decoding

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

Detects Python one-liners that use base64 decoding functions in command line executions. Malicious scripts or attackers often use python one-liners to decode and execute base64-encoded payloads, which is a common technique for obfuscation and evasion.

Known False Positives

  • Legitimate use of Python for decoding data, which is uncommon in typical enterprise environments but possible in development or data analysis contexts.

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Python One-Liners with Base64 Decoding
id: 50a0aa3d-ab16-4594-a8aa-5145a6e6792b
related:
    - id: 55e862a8-dd9c-4651-807a-f21fcad56716
      type: similar
status: experimental
description: |
    Detects Python one-liners that use base64 decoding functions in command line executions.
    Malicious scripts or attackers often use python one-liners to decode and execute base64-encoded payloads, which is a common technique for obfuscation and evasion.
references:
    - https://docs.python.org/3/library/base64.html
    - https://www.virustotal.com/gui/file/bc43e925d7b4b74319f6e74e836a96f1997ba404e14ac566cf12a21e9da463db/behavior
    - https://cloud.google.com/blog/topics/threat-intelligence/cybercriminals-weaponize-fake-ai-websites
author: Hugh Ryan (HueCodes), Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2026-03-09
tags:
    - attack.execution
    - attack.stealth
    - attack.t1059.006
    - attack.t1027.010
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|contains: '\python'
        - OriginalFileName|contains: 'python'
    selection_cli:
        CommandLine|contains|all:
            - 'import'
            - 'base64'
            - ' -c'
        CommandLine|contains:
            - '.decode'
            - 'b16decode'
            - 'b32decode'
            - 'b32hexdecode'
            - 'b64decode'
            - 'b85decode'
            - 'z85decode'
    condition: all of selection_*
falsepositives:
    - Legitimate use of Python for decoding data, which is uncommon in typical enterprise environments but possible in development or data analysis contexts.
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_python_base64_encoded_execution/info.yml

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|contains: '\python'
    - OriginalFileName|contains: 'python'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'import'
        - 'base64'
        - ' -c'
    CommandLine|contains:
        - '.decode'
        - 'b16decode'
        - 'b32decode'
        - 'b32hexdecode'
        - 'b64decode'
        - 'b85decode'
        - 'z85decode'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -c corpus 5 (sigma 5)
  • .decode corpus 2 (sigma 2)
  • b16decode corpus 2 (sigma 2)
  • b32decode corpus 4 (sigma 2, elastic 2)
  • b32hexdecode corpus 2 (sigma 2)
  • b64decode corpus 9 (elastic 7, sigma 2)
  • b85decode corpus 4 (sigma 2, elastic 2)
  • base64 corpus 18 (elastic 11, sigma 7)
  • import corpus 4 (sigma 4)
  • z85decode corpus 2 (sigma 2)
field:"CommandLine" kind:match
Imagematch
  • \python corpus 3 (sigma 3)
field:"Image" kind:match value:"\python"
OriginalFileNamematch
  • python
field:"OriginalFileName" kind:match value:"python"

Remote Access Tool - GoToAssist Execution

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

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

Known False Positives

  • Legitimate use

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Remote Access Tool - GoToAssist Execution
id: b6d98a4f-cef0-4abf-bbf6-24132854a83d
status: test
description: |
    An adversary may use legitimate desktop support and remote access software, such as Team Viewer, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks.
    These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment.
    Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries. (Citation: Symantec Living off the Land)
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1219/T1219.md#atomic-test-4---gotoassist-files-detected-test-on-windows
author: frack113
date: 2022-02-13
modified: 2023-03-05
tags:
    - attack.command-and-control
    - attack.t1219.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Description: 'GoTo Opener'
        - Product: 'GoTo Opener'
        - Company: 'LogMeIn, Inc.'
    condition: selection
falsepositives:
    - Legitimate use
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_remote_access_tools_gotoopener/info.yml

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - Description: 'GoTo Opener'
    - Product: 'GoTo Opener'
    - Company: 'LogMeIn, Inc.'

Indicators

These rows show field, operator, and value matches.

Remote Access Tool - NetSupport Execution From Unusual Location

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

Detects execution of client32.exe (NetSupport RAT) from an unusual location (outside of 'C:\Program Files')

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Remote Access Tool - NetSupport Execution From Unusual Location
id: 37e8d358-6408-4853-82f4-98333fca7014
status: test
description: Detects execution of client32.exe (NetSupport RAT) from an unusual location (outside of 'C:\Program Files')
references:
    - https://redcanary.com/blog/misbehaving-rats/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-19
modified: 2024-11-23
tags:
    - attack.stealth
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith: '\client32.exe'
        - Product|contains: 'NetSupport Remote Control'
        - OriginalFileName|contains: 'client32.exe'
        - Hashes|contains: IMPHASH=a9d50692e95b79723f3e76fcf70d023e
    filter:
        Image|startswith:
            - 'C:\Program Files\'
            - 'C:\Program Files (x86)\'
    condition: selection and not filter
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    - Image|endswith: '\client32.exe'
    - Product|contains: 'NetSupport Remote Control'
    - OriginalFileName|contains: 'client32.exe'
    - Hashes|contains: IMPHASH=a9d50692e95b79723f3e76fcf70d023e

Stage 2: not filter

filter:
    Image|startswith:
        - 'C:\Program Files\'
        - 'C:\Program Files (x86)\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Hashesmatch
  • IMPHASH=a9d50692e95b79723f3e76fcf70d023e corpus 2 (sigma 2)
field:"Hashes" kind:match value:"IMPHASH=a9d50692e95b79723f3e76fcf70d023e"
Imageends_with
  • \client32.exe
field:"Image" kind:ends_with value:"\client32.exe"
OriginalFileNamematch
  • client32.exe corpus 2 (sigma 2)
field:"OriginalFileName" kind:match value:"client32.exe"
Productmatch
  • NetSupport Remote Control corpus 2 (sigma 2)
field:"Product" kind:match value:"NetSupport Remote Control"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagestarts_withC:\Program Files (x86)\excludes:Image field:"Image" value:"C:\Program Files (x86)\"
Imagestarts_withC:\Program Files\excludes:Image field:"Image" value:"C:\Program Files\"

SafeBoot Registry Key Deleted Via Reg.EXE

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

Detects execution of "reg.exe" commands with the "delete" flag on safe boot registry keys. Often used by attacker to prevent safeboot execution of security products

Known False Positives

  • Unlikely

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: SafeBoot Registry Key Deleted Via Reg.EXE
id: fc0e89b5-adb0-43c1-b749-c12a10ec37de
related:
    - id: d7662ff6-9e97-4596-a61d-9839e32dee8d
      type: similar
status: test
description: Detects execution of "reg.exe" commands with the "delete" flag on safe boot registry keys. Often used by attacker to prevent safeboot execution of security products
references:
    - https://www.trendmicro.com/en_us/research/22/e/avoslocker-ransomware-variant-abuses-driver-file-to-disable-anti-Virus-scans-log4shell.html
author: Nasreddine Bencherchali (Nextron Systems), Tim Shelton
date: 2022-08-08
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|all:
            - ' delete '
            - '\SYSTEM\CurrentControlSet\Control\SafeBoot'
    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|all:
        - ' delete '
        - '\SYSTEM\CurrentControlSet\Control\SafeBoot'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • delete corpus 5 (sigma 4, splunk 1)
  • \SYSTEM\CurrentControlSet\Control\SafeBoot corpus 2 (sigma 2)
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"

Security package (SSP) loaded into LSA (native)

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

Detects scenarios where an attacker loads a malicious SSP (Security Support Provider) into the LSA process. Note that this rule will not work with "in memory" SSP injection (Mimikatz) as no event will be triggered.

Known False Positives

  • None

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Security package (SSP) loaded into LSA (native)
description: Detects scenarios where an attacker loads a malicious SSP (Security Support Provider) into the LSA process. Note that this rule will not work with "in memory" SSP injection (Mimikatz) as no event will be triggered.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1547-Boot%20or%20Logon%20Autostart%20Execution
- https://twitter.com/JohnLaTwC/status/1417106953881497602?s=09
- https://blog.xpnsec.com/exploring-mimikatz-part-2/
- https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4622
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn408187(v=ws.11)?redirectedfrom=MSDN
- https://pentestlab.blog/2019/10/21/persistence-security-support-provider/
- https://www.ired.team/offensive-security/credential-access-and-credential-dumping/intercepting-logon-credentials-via-custom-security-support-provider-and-authentication-package
- https://securityintelligence.com/posts/hunting-evidence-dll-side-loading-powershell-sysmon/
- https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
- https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet#custom-ssp
- https://www.sentinelone.com/blog/how-attackers-exploit-security-support-provider-ssp-for-credential-dumping/
tags:
- attack.persistence
- attack.t1547.008
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4622 # Security package loaded by LSA (Local Security Authority)
  filter:
    SecurityPackageName|contains: # native Windows SSP
      - '\Windows\system32\cloudAP.dll'  # CloudAP
      - '\Windows\system32\kerberos.dll' # Kerberos
      - '\Windows\system32\lsasrv.dll'   # Negotiate
      - '\Windows\system32\msv1_0.dll'   # NTLM
      - '\Windows\system32\negoexts.dll' # NegoExtender
      - '\Windows\system32\pku2u.dll'    # pku2u
      - '\Windows\system32\schannel.dll' # Schannel
      - '\Windows\system32\tspkg.dll'    # TSSSP
      - '\Windows\system32\wdigest.dll'  # WDigest
  condition: selection and not filter
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 4622

Stage 2: not filter

filter:
  SecurityPackageName|contains:
    - '\Windows\system32\cloudAP.dll'
    - '\Windows\system32\kerberos.dll'
    - '\Windows\system32\lsasrv.dll'
    - '\Windows\system32\msv1_0.dll'
    - '\Windows\system32\negoexts.dll'
    - '\Windows\system32\pku2u.dll'
    - '\Windows\system32\schannel.dll'
    - '\Windows\system32\tspkg.dll'
    - '\Windows\system32\wdigest.dll'

Exclusions

The rule actively suppresses these predicates.

Suspicious Child Process Created as System

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

Detection of child processes spawned with SYSTEM privileges by parents with LOCAL SERVICE or NETWORK SERVICE accounts

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: Suspicious Child Process Created as System
id: 590a5f4c-6c8c-4f10-8307-89afe9453a9d
status: test
description: Detection of child processes spawned with SYSTEM privileges by parents with LOCAL SERVICE or NETWORK SERVICE accounts
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-privilege-escalation-in-windows-environment
    - https://foxglovesecurity.com/2016/09/26/rotten-potato-privilege-escalation-from-service-accounts-to-system/
    - https://github.com/antonioCoco/RogueWinRM
    - https://twitter.com/Cyb3rWard0g/status/1453123054243024897
author: Teymur Kheirkhabarov, Roberto Rodriguez (@Cyb3rWard0g), Open Threat Research (OTR)
date: 2019-10-26
modified: 2024-12-01
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.002
logsource:
    category: process_creation
    product: windows
    definition: 'Requirements: ParentUser field needs sysmon >= 13.30'
detection:
    selection:
        ParentUser|contains:
            - 'AUTHORI'
            - 'AUTORI'
        ParentUser|endswith:
            - '\NETWORK SERVICE'
            - '\LOCAL SERVICE'
        User|contains: # covers many language settings
            - 'AUTHORI'
            - 'AUTORI'
        User|endswith: # System
            - '\SYSTEM'
            - '\Système'
            - '\СИСТЕМА'
        IntegrityLevel:
            - 'System'
            - 'S-1-16-16384'
    filter_rundll32:
        Image|endswith: '\rundll32.exe'
        CommandLine|contains: 'DavSetCookie'
    condition: selection and not 1 of filter_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    ParentUser|contains:
        - 'AUTHORI'
        - 'AUTORI'
    ParentUser|endswith:
        - '\NETWORK SERVICE'
        - '\LOCAL SERVICE'
    User|contains:
        - 'AUTHORI'
        - 'AUTORI'
    User|endswith:
        - '\SYSTEM'
        - '\Système'
        - '\СИСТЕМА'
    IntegrityLevel:
        - 'System'
        - 'S-1-16-16384'

Stage 2: not filter_rundll32

filter_rundll32:
    Image|endswith: '\rundll32.exe'
    CommandLine|contains: 'DavSetCookie'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
IntegrityLeveleq
  • S-1-16-16384 corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
  • System corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
field:"IntegrityLevel" kind:eq
ParentUserends_with
  • \LOCAL SERVICE
  • \NETWORK SERVICE
field:"ParentUser" kind:ends_with
ParentUsermatch
  • AUTHORI corpus 2 (sigma 2)
  • AUTORI corpus 2 (sigma 2)
field:"ParentUser" kind:match
Userends_with
  • \SYSTEM
  • \Système
  • \СИСТЕМА
field:"user" kind:ends_with
Usermatch
  • AUTHORI corpus 14 (sigma 14)
  • AUTORI corpus 14 (sigma 14)
field:"user" kind:match

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematchDavSetCookieexcludes:CommandLine field:"CommandLine" value:"DavSetCookie"
Imageends_with\rundll32.exeexcludes:Image field:"Image" value:"\rundll32.exe"

Suspicious Kerberos password account reset to issue potential Golden ticket

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

Detects scenarios where a suspicious password reset of the Krbtgt account is performed by attacker to issue a potential Golden ticket.

Known False Positives

  • Administrators following best practices and reseting the Krbtgt password 1 or 2 times a year

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: Suspicious Kerberos password account reset to issue potential Golden ticket
description: Detects scenarios where a suspicious password reset of the Krbtgt account is performed by attacker to issue a potential Golden ticket.
references:
- https://cert.europa.eu/static/WhitePapers/CERT-EU-SWP_14_07_PassTheGolden_Ticket_v1_1.pdf
- https://adsecurity.org/?p=483
tags:
- attack.credential_access
- attack.t1558.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4724
    TargetSid|endswith: '-502' # Krbtgt account SID
  condition: selection
falsepositives:
- Administrators following best practices and reseting the Krbtgt password 1 or 2 times a year
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4724
  TargetSid|endswith: '-502'

Indicators

These rows show field, operator, and value matches.

Suspicious Network Connection Binary No CommandLine

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

Detects suspicious network connections made by a well-known Windows binary run with no command line parameters

MITRE ATT&CK Coverage

TacticTechniques
StealthNo specific technique

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule Body

title: Suspicious Network Connection Binary No CommandLine
id: 20384606-a124-4fec-acbb-8bd373728613
status: test
description: Detects suspicious network connections made by a well-known Windows binary run with no command line parameters
references:
    - https://redcanary.com/blog/raspberry-robin/
author: Florian Roth (Nextron Systems)
date: 2022-07-03
tags:
    - attack.stealth
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        Initiated: 'true'
        Image|endswith:
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\dllhost.exe'
        CommandLine|endswith:
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\dllhost.exe'
    filter_no_cmdline:
        CommandLine: ''
    filter_null: # e.g. Sysmon has no CommandLine field in network events with ID 3
        CommandLine: null
    condition: selection and not 1 of filter*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection and not 1 of filter*

Stage 1: selection

selection:
    Initiated: 'true'
    Image|endswith:
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\dllhost.exe'
    CommandLine|endswith:
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\dllhost.exe'

Stage 2: not filter*

filter_no_cmdline:
    CommandLine: ''
filter_null:
    CommandLine: null

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • \dllhost.exe
  • \regsvr32.exe
  • \rundll32.exe corpus 3 (sigma 3)
field:"CommandLine" kind:ends_with
Imageends_with
  • \dllhost.exe corpus 11 (sigma 11)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with
Initiatedeq
  • true corpus 50 (sigma 50)
field:"Initiated" kind:eq value:"true"

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLineis_null(no value, null check)excludes:CommandLine

Suspicious Rundll32 Invoking Inline VBScript

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

Detects suspicious process related to rundll32 based on command line that invokes inline VBScript as seen being used by UNC2452

MITRE ATT&CK Coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry Coverage

Rule Body

title: Suspicious Rundll32 Invoking Inline VBScript
id: 1cc50f3f-1fc8-4acf-b2e9-6f172e1fdebd
status: test
description: Detects suspicious process related to rundll32 based on command line that invokes inline VBScript as seen being used by UNC2452
references:
    - https://www.microsoft.com/security/blog/2021/03/04/goldmax-goldfinder-sibot-analyzing-nobelium-malware/
author: Florian Roth (Nextron Systems)
date: 2021-03-05
modified: 2022-10-09
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains|all:
            - 'rundll32.exe'
            - 'Execute'
            - 'RegRead'
            - 'window.close'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|contains|all:
        - 'rundll32.exe'
        - 'Execute'
        - 'RegRead'
        - 'window.close'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • Execute corpus 2 (sigma 2)
  • RegRead corpus 2 (sigma 2)
  • rundll32.exe corpus 8 (sigma 8)
  • window.close corpus 2 (sigma 2)
field:"CommandLine" kind:match

Terminate Linux Process Via Kill

#
Status
test
Severity
medium
Author
Tuan Le (NCSGroup)
Source
github.com/SigmaHQ/sigma

Detects usage of command line tools such as "kill", "pkill" or "killall" to terminate or signal a running process.

MITRE ATT&CK Coverage

TacticTechniques
Defense Impairment

Telemetry Coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule Body

title: Terminate Linux Process Via Kill
id: 64c41342-6b27-523b-5d3f-c265f3efcdb3
status: test
description: Detects usage of command line tools such as "kill", "pkill" or "killall" to terminate or signal a running process.
references:
    - https://www.trendmicro.com/en_us/research/23/c/iron-tiger-sysupdate-adds-linux-targeting.html
    - https://www.cyberciti.biz/faq/how-force-kill-process-linux/
    - https://www.geeksforgeeks.org/how-to-kill-processes-on-the-linux-desktop-with-xkill/
author: Tuan Le (NCSGroup)
date: 2023-03-16
modified: 2024-12-12
tags:
    - attack.defense-impairment
    - attack.t1685
    - detection.threat-hunting
logsource:
    product: linux
    category: process_creation
detection:
    selection:
        Image|endswith:
            - '/kill'
            - '/killall'
            - '/pkill'
            - '/xkill'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '/kill'
        - '/killall'
        - '/pkill'
        - '/xkill'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • /kill
  • /killall
  • /pkill
  • /xkill
field:"Image" kind:ends_with

Third Party Software DLL Sideloading

#
Status
test
Severity
medium
Author
Nasreddine Bencherchali (Nextron Systems), Wietze Beukema (project and research)
Source
github.com/SigmaHQ/sigma

Detects DLL sideloading of DLLs that are part of third party software (zoom, discord....etc)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 7: Image loaded

Rule Body

title: Third Party Software DLL Sideloading
id: f9df325d-d7bc-4a32-8a1a-2cc61dcefc63
status: test
description: Detects DLL sideloading of DLLs that are part of third party software (zoom, discord....etc)
references:
    - https://hijacklibs.net/ # For list of DLLs that could be sideloaded (search for dlls mentioned here in there)
author: Nasreddine Bencherchali (Nextron Systems), Wietze Beukema (project and research)
date: 2022-08-17
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    # Lenovo
    selection_lenovo:
        ImageLoaded|endswith: '\commfunc.dll'
    filter_lenovo:
        - ImageLoaded|contains: '\AppData\local\Google\Chrome\Application\'
        - ImageLoaded|startswith:
              - 'C:\Program Files\Lenovo\Communications Utility\'
              - 'C:\Program Files (x86)\Lenovo\Communications Utility\'
    # Toshiba
    selection_toshiba:
        ImageLoaded|endswith: '\tosbtkbd.dll'
    filter_toshiba:
        ImageLoaded|startswith:
            - 'C:\Program Files\Toshiba\Bluetooth Toshiba Stack\'
            - 'C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\'
    # Zoom (FP with System32)
    # selection_zoom:
    #     ImageLoaded|endswith: '\version.dll'
    # filter_zoom:
    #     ImageLoaded|startswith: 'C:\Users\'
    #     ImageLoaded|contains: '\AppData\Roaming\Zoom\bin\'
    condition: (selection_lenovo and not filter_lenovo) or (selection_toshiba and not filter_toshiba)
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

(selection_lenovo and not filter_lenovo) or (selection_toshiba and not filter_toshiba)

Stage 1: selection_lenovo

selection_lenovo:
    ImageLoaded|endswith: '\commfunc.dll'

Stage 2: not filter_lenovo

filter_lenovo:
    - ImageLoaded|contains: '\AppData\local\Google\Chrome\Application\'
    - ImageLoaded|startswith:
          - 'C:\Program Files\Lenovo\Communications Utility\'
          - 'C:\Program Files (x86)\Lenovo\Communications Utility\'

Stage 3: selection_toshiba

selection_toshiba:
    ImageLoaded|endswith: '\tosbtkbd.dll'

Stage 4: not filter_toshiba

filter_toshiba:
    ImageLoaded|startswith:
        - 'C:\Program Files\Toshiba\Bluetooth Toshiba Stack\'
        - 'C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImageLoadedends_with
  • \commfunc.dll
  • \tosbtkbd.dll
field:"ImageLoaded" kind:ends_with

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImageLoadedmatch\AppData\local\Google\Chrome\Application\excludes:ImageLoaded field:"ImageLoaded" value:"\AppData\local\Google\Chrome\Application\"
ImageLoadedstarts_withC:\Program Files (x86)\Lenovo\Communications Utility\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files (x86)\Lenovo\Communications Utility\"
ImageLoadedstarts_withC:\Program Files\Lenovo\Communications Utility\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files\Lenovo\Communications Utility\"
ImageLoadedstarts_withC:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\"
ImageLoadedstarts_withC:\Program Files\Toshiba\Bluetooth Toshiba Stack\excludes:ImageLoaded field:"ImageLoaded" value:"C:\Program Files\Toshiba\Bluetooth Toshiba Stack\"

UAC Bypass Using Disk Cleanup

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

Detects the pattern of UAC Bypass using scheduled tasks and variable expansion of cleanmgr.exe (UACMe 34)

MITRE ATT&CK Coverage

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule Body

title: UAC Bypass Using Disk Cleanup
id: b697e69c-746f-4a86-9f59-7bfff8eab881
status: test
description: Detects the pattern of UAC Bypass using scheduled tasks and variable expansion of cleanmgr.exe (UACMe 34)
references:
    - https://github.com/hfiref0x/UACME
author: Christian Burkard (Nextron Systems)
date: 2021-08-30
modified: 2024-12-01
tags:
    - attack.privilege-escalation
    - attack.t1548.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|endswith: '"\system32\cleanmgr.exe /autoclean /d C:'
        ParentCommandLine: 'C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule'
        IntegrityLevel:
            - 'High'
            - 'System'
            - 'S-1-16-16384' # System
            - 'S-1-16-12288' # High
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    CommandLine|endswith: '"\system32\cleanmgr.exe /autoclean /d C:'
    ParentCommandLine: 'C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule'
    IntegrityLevel:
        - 'High'
        - 'System'
        - 'S-1-16-16384'
        - 'S-1-16-12288'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLineends_with
  • "\system32\cleanmgr.exe /autoclean /d C:
field:"CommandLine" kind:ends_with
IntegrityLeveleq
  • High corpus 18 (sigma 17, splunk 1)
  • S-1-16-12288 corpus 18 (sigma 17, splunk 1)
  • S-1-16-16384 corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
  • System corpus 31 (sigma 22, splunk 5, elastic 3, kusto 1)
field:"IntegrityLevel" kind:eq
ParentCommandLineeq
  • C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule
field:"ParentCommandLine" kind:eq value:"C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule"

WebDAV Temporary Local File Creation

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

Detects the creation of WebDAV temporary files with potentially suspicious extensions

Known False Positives

  • Legitimate use of WebDAV in an environment

MITRE ATT&CK Coverage

TacticTechniques
Resource Development
Initial Access

Telemetry Coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule Body

title: WebDAV Temporary Local File Creation
id: 4c55738d-72d8-490e-a2db-7969654e375f
related:
    - id: 1ae64f96-72b6-48b3-ad3d-e71dff6c6398
      type: similar
status: test
description: Detects the creation of WebDAV temporary files with potentially suspicious extensions
references:
    - https://www.trellix.com/en-us/about/newsroom/stories/research/beyond-file-search-a-novel-method.html
    - https://micahbabinski.medium.com/search-ms-webdav-and-chill-99c5b23ac462
    - https://dear-territory-023.notion.site/WebDav-Share-Testing-e4950fa0c00149c3aa430d779b9b1d0f?pvs=4
author: Micah Babinski
date: 2023-08-21
tags:
    - attack.initial-access
    - attack.resource-development
    - attack.t1584
    - attack.t1566
    - detection.threat-hunting
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains: '\AppData\Local\Temp\TfsStore\Tfs_DAV\'
        TargetFilename|endswith:
            - '.7z'
            - '.bat'
            - '.dat'
            - '.ico'
            - '.js'
            - '.lnk'
            - '.ps1'
            - '.rar'
            - '.vbe'
            - '.vbs'
            - '.zip'
    condition: selection
falsepositives:
    - Legitimate use of WebDAV in an environment
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains: '\AppData\Local\Temp\TfsStore\Tfs_DAV\'
    TargetFilename|endswith:
        - '.7z'
        - '.bat'
        - '.dat'
        - '.ico'
        - '.js'
        - '.lnk'
        - '.ps1'
        - '.rar'
        - '.vbe'
        - '.vbs'
        - '.zip'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
TargetFilenameends_with
  • .7z corpus 5 (sigma 5)
  • .bat corpus 17 (sigma 17)
  • .dat corpus 4 (sigma 3, splunk 1)
  • .ico
  • .js corpus 10 (sigma 10)
  • .lnk corpus 6 (sigma 6)
  • .ps1 corpus 17 (sigma 17)
  • .rar corpus 5 (sigma 5)
  • .vbe corpus 16 (sigma 16)
  • .vbs corpus 18 (sigma 18)
  • .zip corpus 7 (sigma 6, splunk 1)
field:"TargetFilename" kind:ends_with
TargetFilenamematch
  • \AppData\Local\Temp\TfsStore\Tfs_DAV\
field:"TargetFilename" kind:match value:"\AppData\Local\Temp\TfsStore\Tfs_DAV\"

Windows Pcap Drivers

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

Detects Windows Pcap driver installation based on a list of associated .sys files.

MITRE ATT&CK Coverage

TacticTechniques
Credential Access
Discovery

Telemetry Coverage

Rule Body

title: Windows Pcap Drivers
id: 7b687634-ab20-11ea-bb37-0242ac130002
status: test
description: Detects Windows Pcap driver installation based on a list of associated .sys files.
references:
    - https://ragged-lab.blogspot.com/2020/06/capturing-pcap-driver-installations.html#more
author: Cian Heasley
date: 2020-06-10
modified: 2023-04-14
tags:
    - attack.discovery
    - attack.credential-access
    - attack.t1040
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    selection:
        EventID: 4697
        ServiceFileName|contains:
            - 'pcap'
            - 'npcap'
            - 'npf'
            - 'nm3'
            - 'ndiscap'
            - 'nmnt'
            - 'windivert'
            - 'USBPcap'
            - 'pktmon'
    condition: selection
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 4697
    ServiceFileName|contains:
        - 'pcap'
        - 'npcap'
        - 'npf'
        - 'nm3'
        - 'ndiscap'
        - 'nmnt'
        - 'windivert'
        - 'USBPcap'
        - 'pktmon'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ServiceFileNamematch
  • USBPcap
  • ndiscap
  • nm3
  • nmnt
  • npcap
  • npf
  • pcap
  • pktmon
  • windivert
field:"ServiceFileName" kind:match

WinRM listening service reconnaissance (WS-Management)

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

Detects scenarios where an attacker enumerates different remote WinRM listeners for lateral movement purposes.

Known False Positives

  • Administrator activity, Windows Server Manager, applications using WinRM

MITRE ATT&CK Coverage

Telemetry Coverage

Rule Body

title: WinRM listening service reconnaissance (WS-Management)
description: Detects scenarios where an attacker enumerates different remote WinRM listeners for lateral movement purposes.
correlation: correlate SubjectLogonId from event ID 4656 with TargetLogonId from event ID 4624 to identify the source host.
auditing: requires 'Object Access'> 'Other Object Access Events' to be enabled. Note that event is produced only if the login via WinRM is successful.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0008-Lateral%20Movement/T1021.006-Windows%20Remote%20Management
- https://www.rapid7.com/blog/post/2012/11/08/abusing-windows-remote-management-winrm-with-metasploit/
- https://securethelogs.com/2019/08/30/hacking-windows-remote-management-winrm/
- https://www.ired.team/offensive-security/lateral-movement/winrs-for-lateral-movement
- https://www.redcanary.com/blog/lateral-movement-winrm-wmi/
- https://bohops.com/2020/05/12/ws-management-com-another-approach-for-winrm-lateral-movement/
- https://threathunterplaybook.com/notebooks/windows/02_execution/WIN-190511223310.html
- https://jpcertcc.github.io/ToolAnalysisResultSheet/details/WinRM.htm
- https://github.com/bohops/WSMan-WinRM
- https://github.com/mez-0/CSharpWinR
- https://github.com/antonioCoco/RogueWinRM
tags:
- attack.lateral_movement
- attack.t1021.006
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: winrm
detection:
  selection:
    EventID: 4656 # Other Object Access Events
    ObjectServer: 'WS-Management Listener'
  filter:
    SubjectUserName|endswith: '$'
  condition: selection and not filter | count(Computer) > 30
  timeframe: 15m
falsepositives:
- Administrator activity, Windows Server Manager, applications using WinRM
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter | count(Computer) > 30

Stage 1: selection

selection:
  EventID: 4656
  ObjectServer: 'WS-Management Listener'
Threshold
> 30

Stage 2: not filter

filter:
  SubjectUserName|endswith: '$'

Indicators

These rows show field, operator, and value matches.

Exclusions

The rule actively suppresses these predicates.

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

Back to all Sigma rules