
Obex – Blocking unwanted DLLs in user mode
Obex is a PoC tool/technique that can be used to prevent unwanted modules (e.g., EDR or monitoring libraries) from being loaded into a newly started process during process initialization or at runtime.
LoadLibrary*).obex.exe "<command with args>" [dll1.dll,dll2.dll,...]
amsi.dll).Besides parsing cli arguments the PoC does the following (in a rough overview):

For deeper understanding check code (obviously) or contact me on discord or twitter.
The screenshot shows spawning with the default blocklist (only ). Additionally you can see the spawned process’s module list to verify that was not loaded.
obexpowershell.exeamsi.dllamsi.dll