WCU / Cybersecurity
~/CSC 471/Class 07/KP 18
Class 07 · KP 18 / 19

Summary

  • Hooking interposes on a function boundary to observe or alter behavior — neutral technique, offense and defense both use it.
  • IAT: patch a caller's pointer — simple, but misses dynamic resolution and is easy to spot.
  • Inline / trampoline: patch the callee's prologue with a jmp; keep a trampoline to call through — great coverage, tricky byte surgery (Detours / MinHook help).
  • EAT / vtable / kernel (SSDT, ftrace) extend the same idea.
  • Detect by comparing running code / pointers to a trusted baseline.
Key Takeaway

Control the function boundary and you control the program. Next: reading args and hooking MessageBoxW in Lab 3 Part B.