MCPcopy Index your code
hub / github.com/Mr-Un1k0d3r/EDRs

github.com/Mr-Un1k0d3r/EDRs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
40 symbols 84 edges 12 files 0 documented · 0% updated 3mo ago★ 2,1923 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

EDRs

Starlog

This repo contains information about EDRs that can be useful during red team exercise.

patch_syscall_dynamically64.c

This proof-of-concept is resolving the syscall ID dynamically no need to check the version running on the remote host. To get the information on disk (not tampered) a call to CreateFileMapping and MapViewOfFile Windows APIs is performed. The DLL is then parsed to retrived the data and used to patch the live code.

patch_syscall64.c

This proof-of-concept is patching the syscall ID specified in the code. The live version of the DLL is then patched using the hardcoded syscall ID and reverted to the original unpatched state.

get_syscall64.c

This utility is used to retrived the sycall ID associated with a Windows API.

get_syscall64.exe ntdll.dll NtOpenProcess

ntdll.dll!NtOpenProcess at 0x00007FF873F6CAD0
NtOpenProcess syscall ID 0x00000026 (38)

unhookIAT.c

This proof-of-concept detects hooks placed by EDR/AV/Malware in the Import Address Table and replace them with original addresses (coded by xalicex).

Excel version of the list of hooks

EDRs.xlsx formatted by Vincent Yiu

Markdown version of the list of hooks

EDRs.md formatted by Vincent Yiu

EDRs Hooked APIs

Want to contribute simply run hook_finder64.exe C:\windows\system32\ntdll.dll and submit the output.

CrowdStrike hooked ntdll.dll APIs

CrowdStrike hooks list

The newer version moved away from UMH and instead rely on kernel callback as shown below:

kernel callback

SentinelOne hooked ntdll.dll APIs

SentinelOne hooks list

Cylance hooked ntdll.dll APIs (Thanks to Seemant Bisht)

Cylance hooks list

Sophos hooked ntdll.dll APIs

Sophos hooks list

Attivo Deception hooked ntdll.dll APIs

Attivo hooks list

CarbonBlack hooked ntdll.dll APIs (Thanks to Hackndo)

CarbonBlack hooks list

Symantec hooked ntdll.dll APIs (Thanks to CarsonSallis)

Symantec hooks list

DeepInstinct hooked ntdll.dll APIs (Thanks to P0chAcc0)

DeepInstinct hooks list

McAfee hooked ntdll.dll APIs

McAfee hooks list

CheckPoint SandBlast hooked ntdll APIs

CheckPoint SandBlast hooks list

ESET endpoint Security 8.0.2028.0 hooked ntdll APIs

Eset hooks list

TrendMicro 17.7.1130 hooked ntdll APIs

TrendMicro hooks list

Cortex XDR hooked APIs (KERNEL MODE)

:warning: These hooks are set kernel mode. They can't be unhooked from the user mode

Cortex XDR hooks list

Bitdefender hooked ntdll APIs

Bitdefender hooks list

Credit

Mr.Un1k0d3r RingZer0 Team

And the whole community <3

Core symbols most depended-on inside this repo

PatchAPI
called by 37
unhook_bof.c
Resolver
called by 20
elevate_to_system_or_trustedinstaller_bof.c
PatchHook
called by 19
patch_syscall64.c
Resolver
called by 16
unhook_bof.c
ImpersonateByPID
called by 2
elevate_to_system_or_trustedinstaller.c
CreateProcessImpersonate
called by 2
elevate_to_system_or_trustedinstaller.c
ImpersonateByPID
called by 2
elevate_to_system_or_trustedinstaller_bof.c
CleanUp
called by 1
patch_syscall64.c

Shape

Function 40

Languages

C100%

Modules by API surface

elevate_to_system_or_trustedinstaller_bof.c7 symbols
elevate_to_system_or_trustedinstaller.c7 symbols
unhook_bof.c6 symbols
patch_syscall_dynamically64.c4 symbols
hook_finder64.c4 symbols
patch_syscall64.c3 symbols
unhookIAT.c2 symbols
listdlls.c2 symbols
dumpbytes.c2 symbols
dump_dll_export.c2 symbols
get_syscall64.c1 symbols

For agents

$ claude mcp add EDRs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact