Sigma rule: Suspicious Shim Database Patching Activity

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-2710c7948967, updated 2023-12-06T00:00:00.000Z.

Rule

Title
Suspicious Shim Database Patching Activity
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2023-08-01
Modified
2023-12-06
File
rules/windows/registry/registry_set/registry_set_persistence_shim_database_susp_application.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects installation of new shim databases that try to patch sections of known processes for potential process injection or persistence.

Log source

product
windows
category
registry_set

Detection

selection:
    TargetObject|contains: '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\'
    TargetObject|endswith:
        # Note: add other application to increase coverage
        - '\csrss.exe'
        - '\dllhost.exe'
        - '\explorer.exe'
        - '\RuntimeBroker.exe'
        - '\services.exe'
        - '\sihost.exe'
        - '\svchost.exe'
        - '\taskhostw.exe'
        - '\winlogon.exe'
        - '\WmiPrvSe.exe'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.privilege-escalation
  • attack.persistence
  • attack.t1546.011

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_persistence_shim_database_susp_application.yml

Sources and licences

  • SigmaHQ

    "Suspicious Shim Database Patching Activity" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_persistence_shim_database_susp_application.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious Shim Database Patching Activity",
entity page, dataset version ref-2710c7948967, updated 2023-12-06T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/bf344fea-d947-4ef4-9192-34d008315d3a (accessed 2026-11-03).
Underlying source: SigmaHQ rule bf344fea-d947-4ef4-9192-34d008315d3a, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.