{"id":"dfb5b4e8-91d0-4291-b40a-e3b0d3942c45","title":"Potential Persistence Via Shim Database Modification","description":"Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims.\nThe 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\n","author":"frack113","status":"test","level":"medium","date":"2021-12-30","modified":"2025-10-22","tags":["attack.privilege-escalation","attack.persistence","attack.t1546.011"],"technique_ids":["T1546.011"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Legitimate custom SHIM installations will also trigger this rule"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.011/T1546.011.md#atomic-test-3---registry-key-creation-andor-modification-events-for-sdb","https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html","https://andreafortuna.org/2018/11/12/process-injection-and-persistence-using-application-shimming/"],"source_path":"rules/windows/registry/registry_set/registry_set_persistence_shim_database.yml","source_sha256":"3db0af1bfb165b3036d16505c04b5f3e502a857f8a129ad3ab7d5319480e9860","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_persistence_shim_database.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential Persistence Via Shim Database Modification\nid: dfb5b4e8-91d0-4291-b40a-e3b0d3942c45\nstatus: test\ndescription: |\n    Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims.\n    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\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.011/T1546.011.md#atomic-test-3---registry-key-creation-andor-modification-events-for-sdb\n    - https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html\n    - https://andreafortuna.org/2018/11/12/process-injection-and-persistence-using-application-shimming/\nauthor: frack113\ndate: 2021-12-30\nmodified: 2025-10-22\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1546.011\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection:\n        TargetObject|contains:\n            - '\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\InstalledSDB\\'\n            - '\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\\'\n    filter_main_empty_string:\n        Details: ''\n    filter_main_empty_value:\n        Details: '(Empty)'\n    filter_main_null:\n        Details: null\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Legitimate custom SHIM installations will also trigger this rule\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1546.011","id":"T1546.011","name":"Application Shimming","page":"techniques/enterprise/T1546.011/"}],"data_path":"data/detection-rules/dfb5b4e8-91d0-4291-b40a-e3b0d3942c45.json","kind":"sigma"}
