Sigma rule: Potential Persistence Via Shim Database Modification

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-5a0c4f75df13, updated 2025-10-22T00:00:00.000Z.

Rule

Title
Potential Persistence Via Shim Database Modification
Status
test
Level
medium
Author
frack113
Date
2021-12-30
Modified
2025-10-22
File
rules/windows/registry/registry_set/registry_set_persistence_shim_database.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims.
The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time

Log source

product
windows
category
registry_set

Detection

selection:
    TargetObject|contains:
        - '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\InstalledSDB\'
        - '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\'
filter_main_empty_string:
    Details: ''
filter_main_empty_value:
    Details: '(Empty)'
filter_main_null:
    Details: null
condition: selection and not 1 of filter_main_*

False positives (as the rule lists them)

  • Legitimate custom SHIM installations will also trigger this rule

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.yml

Sources and licences

  • SigmaHQ

    "Potential Persistence Via Shim Database Modification" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_persistence_shim_database.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: Potential Persistence Via Shim Database Modification",
entity page, dataset version ref-5a0c4f75df13, updated 2025-10-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/dfb5b4e8-91d0-4291-b40a-e3b0d3942c45 (accessed 2026-11-03).
Underlying source: SigmaHQ rule dfb5b4e8-91d0-4291-b40a-e3b0d3942c45, 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.