TGViewer
网络安全笔记 网络安全笔记 @tsecrecord · 7.96K subscribers
Post #1425 4.9K
该文章围绕Windows EDR系统调用挂钩技术与“幽灵狩猎”理论展开,介绍了EDR系统的基础组件、系统调用挂钩原理,详细阐述“幽灵狩猎”理论的实现方法、优缺点及应用场景,并规划了后续研究方向。

1. EDR系统基础组件:Sanctum EDR已搭建起基础架构,涵盖驱动与IOCTL、进程句柄及创建拦截、驱动控制、向新进程注入DLL、用户模式引擎进程监控、驱动与用户模式引擎通信、GUI和日志记录功能。
2. 系统调用挂钩原理:用户模式操作需经接口库调用系统服务号(SSN)与内核交互,恶意软件常直接调用系统调用绕过EDR检测。EDR可在用户模式挂钩相关函数,如通过改写 ZwOpenProcess 等函数指令,跳转到注入的DLL来检查参数等信息,并借助IPC与用户模式引擎、驱动通信。
3. “幽灵狩猎”理论:这是一种实验性技术,旨在对抗恶意软件利用SysWhispers、Hells Gate等手段躲避EDR挂钩。以挂钩 OpenProcess 为例,在新进程启动时注入EDR的DLL,改写系统调用存根跳转到挂钩接收函数,检查参数并与引擎通信。若内核在系统调用前已发出句柄,则判定存在系统调用逃避行为,可选择终止进程。但该方法存在需挂钩多个函数、跟踪句柄创建困难等缺点,相比 OpenProcess ,在 CreateRemoteThread  API上应用该技术问题较少 。
4. 后续研究方向:下一步先实现系统调用挂钩,完成基本POC后创建内部工具简化函数挂钩流程,待挂钩正常工作后深入研究“幽灵狩猎”技术。
https://fluxsec.red/edr-syscall-hooking
fluxsec.red EDR Syscall Hooking and Ghost Hunting: A Deep Dive Uncover the theory and methods behind hooking syscalls, detecting evasive malware techniques, and leveraging Ghost Hunting for robust EDR protection in Windows environments.
  • ❤ 3
More from @tsecrecord
  1. Sep 27, 2026一款本地数字取证/事件响应辅助工具。该浏览器扩展程序会捕获您调查过程中的屏幕截图(例如 Velociraptor、EDR/SIEM 控制面板、Security Onion、Splu…
  2. Sep 20, 2026https://opsectechniques.com/
  3. Aug 27, 2026https://github.com/hypnguyen1209/log4j2-rce
  4. Aug 15, 2026https://telegra.ph/weekly-408-08-14
  5. Jul 6, 2026The Long Watch — Scenario Select https://mr-r3b00t.github.io/org_cyber_attack_sim/
  6. Jun 24, 2026https://techblog.zozo.com/entry/soc-claude-agent#SOC-Agent%E3%81%AE%E8%A8%AD%E8%A8%88
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →