← Back to SOC feed Coverage →

Registry Persistence Mechanisms in Recycle Bin

sigma HIGH SigmaHQ
T1547
imRegistry
persistence
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-05-24T23:00:00Z · Confidence: medium

Hunt Hypothesis

Detects persistence registry keys for Recycle Bin

Detection Rule

Sigma (Original)

title: Registry Persistence Mechanisms in Recycle Bin
id: 277efb8f-60be-4f10-b4d3-037802f37167
status: test
description: Detects persistence registry keys for Recycle Bin
references:
    - https://github.com/vxunderground/VXUG-Papers/blob/751edb8d50f95bd7baa730adf2c6c3bb1b034276/The%20Persistence%20Series/Persistence%20via%20Recycle%20Bin/Persistence_via_Recycle_Bin.pdf
    - https://persistence-info.github.io/Data/recyclebin.html
    - https://www.hexacorn.com/blog/2018/05/28/beyond-good-ol-run-key-part-78-2/
author: frack113
date: 2021-11-18
modified: 2022-12-06
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547
logsource:
    category: registry_event
    product: windows
detection:
    selection_create:
        EventType: RenameKey
        NewName|contains: '\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open'
    selection_set:
        EventType: SetValue
        TargetObject|contains: '\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command\(Default)'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

KQL (Azure Sentinel)

imRegistry
| where ((EventType in~ ("RegistryValueSet", "RegistryKeyCreated")) and RegistryKey contains "\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open") or (EventType =~ "RegistryValueSet" and RegistryKey contains "\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\\(Default)")

KQL (Microsoft 365 Defender)

DeviceRegistryEvents
| where ((ActionType in~ ("RegistryValueSet", "RegistryKeyCreated")) and RegistryKey contains "\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open") or (ActionType =~ "RegistryValueSet" and RegistryKey contains "\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\\(Default)")

Required Data Sources

Sentinel TableNotes
imRegistryEnsure this data connector is enabled

False Positive Guidance

MITRE ATT&CK Context

References

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/registry/registry_event/registry_event_persistence_recycle_bin.yml