Skip to content
0xJsPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MyMiniEDR

My Mini EDR driver to learn about kernel callbacks and EDR detecions. It's work in progress, just releasing it to share code for a short workshop atm :)

Building

  • Visual Studio 2022
    • C++ Workload
    • Windows SDK and Windows Driver Kit
      • Make sure the WDK and SDK versions match!
      • Make sure to select "Install Windows Driver Kit Visual Studio extension"
  • Enable testsigning mode and reboot machine (Requires secure boot to be disabled) bcdedit /set testsigning on
  • Inside the project properties go to Linker -> Command Line, and add the option /integritycheck to be able to disable the integrity check. This makes the registration of kernel callbacks possible. Prevents NTSTATUS 0xC0000022 error on callback registration.

Kernel Callbacks

  • Process Creation Kernel Callbacks (PsSetCreateProcessNotifyRoutine, PsSetCreateProcessNotifyRoutineEx, PsSetCreateProcessNotifyRoutineEx2)
  • Thread Creation Kernel Callbacks (PsSetCreateThreadNotifyRoutine)
  • Image Load Kernel Callbacks (PsSetLoadImageNotifyRoutine)
  • Registry Callbacks (CmRegisterCallbackEx)
  • Object Callbacks (ObRegisterCallbacks)
    • Process handle operations (OB_TYPE_PROCESS)
    • Thread handle operations (OB_TYPE_THREAD)
    • Token handle operations (OB_TYPE_TOKEN)
  • File System Filter Callbacks (MiniFilter driver: FltRegisterFilter)
  • Network Filter Callbacks (WFP Callouts / NDIS filter drivers)

Detections

  • PPID Spoofing
  • Command Line argument (just mimikatz)
  • WRITE TODO

Receive output from driver

  • Currently output is written to the debug view using the DbgPrintEx function. Output can be viewed using the Sysinternals DebugView

Credits

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages