Manipulating Shim and Office for Code Injection
Stealthy code injection technique using process shimming without registry modifications or on-disk SDB files.
Summary
Revisiting Application Shims
This talk brings back from the dead an attack surface that security vendors believed they had addressed a long time ago.
Stealthy Shim Injection Without Registry Edits
We will introduce a novel and stealthy technique to apply malicious shims on a process that does not require registry modification or SDB files and leaves no traces on the disk.
Targeting Microsoft Office Processes
The reverse engineering of the shim infrastructure will be shown while focusing on undocumented API and the kernel driver of the infrastructure.
The various operations offered by the infrastructure will be analyzed from an offensive point of view, and the course we took to achieve this unique technique will be presented.
In addition, we will unveil an attack surface research that resulted in a noteworthy attack that manipulates 2 different OS components into performing DLL injection and privilege escalation.
Researching the undocumented RPC interfaces of the service OfficeClickToRun.exe uncovered a method that can inject a DLL into another process running as “NT AUTHORITY\SYSTEM”, which achieves privilege escalation. For this to work, specific conditions had to be met.
The conditions we tailored will be displayed as we abuse the Opportunistic Lock and App Compatibility (shim) mechanisms.
Related talks
Main Stage·43 min
A Hernando · B Martinez
Uncovers overlooked legacy Windows execution paths and registry mechanisms to establish stealthy persistence that evades modern EDR detection.
Main Stage·18 min
Alon Weinberg
Introduces a novel x64 code injection technique that bypasses modern Windows security controls without process hollowing.
Main Stage·45 min
Michael Leibowitz
Catalogs practical techniques for evading modern EDR solutions across file system, memory, process, and network visibility layers.


