2025-09-18 17:47:13 +02:00
2025-09-18 17:47:13 +02:00
2025-09-18 17:43:11 +02:00
2025-09-18 17:47:13 +02:00
2025-09-18 17:47:13 +02:00

Obex - DLL Blocking

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.

Features

  • Spawns any process with arguments under debug control.
  • Blocks a configurable list of DLLs by name.
  • Works both for startup DLLs and dynamically loaded DLLs (LoadLibrary*).
  • Written in plain C with no external dependencies.

Usage

obex.exe "<command with args>" [dll1.dll,dll2.dll,...]
  • If no DLL list is provided, a default blocklist is used (at the time of writing just amsi.dll).
  • DLL names are case-insensitive.

How Does It Work?

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.

Screenshot

The screenshot shows obex spawning powershell.exe with the default blocklist (only amsi.dll). Additionally you can see the spawned processs module list to verify that amsi.dll was not loaded.

S
Description
Automated archival mirror of github.com/dis0rder0x00/obex
Readme BSD-3-Clause 259 KiB
Languages
C 100%