Abusing Native Shims for Post Exploitation
summary
Shows how to build and install shim database files (sdb) that hook Windows APIs by writing two registry keys and dropping the sdb (sdbinst is used) so a shim can be loaded from disk or even a UNC path. Demonstrations include using inject dll to push a Putty Rider DLL and capture SSH credentials, using redirect exe and path-redirect fixes to steal Firefox’s key3.db and hide persistence from Autoruns, hotpatching and runtime-patching malware, and six released tools to detect, block, and inspect malicious shims.
AI-written summary · about
chapters (32)
- 0:00Intro
- 0:22About me
- 1:18Why am I here
- 2:06History of Application Compatibility
- 7:51Compatibility Vocabulary
- 8:53What happens when a process is shimmed
- 10:29Official uses for shims
- 11:55App Compatibility Administrator
- 16:20Mike
- 18:37Registry Keys
- 18:55SDBS
- 19:49Persistence
- 23:25DriedX
- 23:46BlackEnergy
- 24:30Cyber Espionage
- 25:07Roaming Tiger
- 26:00Custom Fix
- 26:13Old to New
- 27:32Putty Writer
- 30:26Correct File Path Fix
- 32:46Autoruns
- 35:58Malware
- 37:20Off you skated
- 38:25How I make and install
- 40:24Config for patching
- 40:39Disable shimming
- 43:01Detection tools
- 44:30Autopsy
- 45:03Wrap Up
- 45:53Prior Work
- 46:34Special Thanks
- 47:14Application Compatibility
