Potential Persistence Via Shim Database Modification

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

Sigma rule (View on GitHub)

 1title: Potential Persistence Via Shim Database Modification
 2id: dfb5b4e8-91d0-4291-b40a-e3b0d3942c45
 3status: test
 4description: |
 5    Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims.
 6    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    
 7references:
 8    - 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
 9    - https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html
10    - https://andreafortuna.org/2018/11/12/process-injection-and-persistence-using-application-shimming/
11author: frack113
12date: 2021-12-30
13modified: 2023-08-17
14tags:
15    - attack.persistence
16    - attack.t1546.011
17logsource:
18    category: registry_set
19    product: windows
20detection:
21    selection:
22        TargetObject|contains:
23            - '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\InstalledSDB\'
24            - '\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\'
25    filter_main_empty:
26        Details: ''
27    condition: selection and not 1 of filter_main_*
28falsepositives:
29    - Legitimate custom SHIM installations will also trigger this rule
30level: medium

References

Related rules

to-top