MITRE ATT&CKsub-technique

T1546.011 Application Shimming

Published 2020-01-24 Modified 2025-10-24 Official page ↗
Domain
enterprise
Tactics
Privilege Escalation, Persistence
Platforms
Windows
Version
1.1
Created
2020-01-24

Description

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. For example, the application shimming feature allows developers to apply fixes to applications (without rewriting code) that were created for Windows XP so that it will work with Windows 10. Within the framework, shims are created to act as a buffer between the program (or more specifically, the Import Address Table) and the Windows OS. When a program is executed, the shim cache is referenced to determine if the program requires the use of the shim database (.sdb). If so, the shim database uses hooking to redirect the code as necessary in order to communicate with the OS. A list of all shims currently installed by the default Windows installer (sdbinst.exe) is kept in: • %WINDIR%\AppPatch\sysmain.sdb and • hklm\software\microsoft\windows nt\currentversion\appcompatflags\installedsdb Custom databases are stored in: • %WINDIR%\AppPatch\custom & %WINDIR%\AppPatch\AppPatch64\Custom and • hklm\software\microsoft\windows nt\currentversion\appcompatflags\custom To keep shims secure, Windows designed them to run in user mode so they cannot modify the kernel and you must have administrator privileges to install a shim. However, certain shims can be used to Bypass User Account Control (UAC and RedirectEXE), inject DLLs into processes (InjectDLL), disable Data Execution Prevention (DisableNX) and Structure Exception Handling (DisableSEH), and intercept memory addresses (GetProcAddress). Utilizing these shims may allow an adversary to perform several malicious acts such as elevate privileges, install backdoors, disable defenses like Windows Defender, etc. Shims can also be abused to establish persistence by continuously being invoked by affected programs.

Related

Subtechnique of · MITRE ATT&CK (1)

  • T1546 Event Triggered Execution technique

Tactic · MITRE ATT&CK (2)

  • TA0003 Persistence tactic
  • TA0004 Privilege Escalation tactic

Referenced by MITRE ATT&CK · mitigates (2)

  • M1051 Update Software mitigation
  • M1052 User Account Control mitigation

Referenced by MITRE ATT&CK · uses (4)

  • S0517 Pillowmint software (malware)
  • S0461 SDBbot software (malware)
  • S0444 ShimRat software (malware)
  • G0046 FIN7 group

Referenced by Compliance · mitigates (4)

  • CIS-7.3 Perform Automated Operating System Patch Management CIS Safeguard v8.1
  • CIS-7.7 Remediate Detected Vulnerabilities CIS Safeguard v8.1
  • NIST-AC-6 Least Privilege NIST 800-53 control
  • NIST-SI-2 Flaw Remediation NIST 800-53 control

References