Giter Site home page Giter Site logo

shutupandhack-club / nopatchguardcallback Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kkent030315/nopatchguardcallback

0.0 0.0 0.0 288 KB

x64 Windows PatchGuard bypass, register process-creation callbacks from unsigned code

Home Page: https://www.godeye.club/2021/05/22/001-bypass-patchguard-pssetcreateprocessnotifyroutine.html

License: MIT License

C 100.00%

nopatchguardcallback's Introduction

NoPatchGuardCallback

x64 Windows PatchGuard bypass, register process-creation callbacks from unsigned code

Read: https://www.godeye.club/2021/05/22/001-bypass-patchguard-pssetcreateprocessnotifyroutine.html

What

This project is to bypass PatchGuard protection against PsSetCreateProcessNotifyRoutine by DKOM - self register arbitrary callback routine by directly manipulating kernel objects.

Why

PsSetCreateProcessNotifyRoutine is the one of powerful NT Kernel API which allows driver to receive callbacks asynchronously.
And it is protected by PatchGuard - The Kernel Patch Protection technology by Microsoft.

PatchGuard has a deep history of how it come in to the world - but not talk here.

The PatchGuard protects unsigned code to be register callbacks by PsSetCreateProcessNotifyRoutine.
PsSetCreateProcessNotifyRoutineEx, PsSetCreateThreadNotifyRoutine and PsSetLoadImageNotifyRoutine is not an exception, and many other.

When PsSetCreateProcessNotifyRoutine is called by the unsigned code, KiRaiseSecurityCheckFailure, the ISR, immediately interrupts and raises bugcheck 0x139 eventually.

bugcheck 0x139

Warn

This PoC does not implement callback-block deletion.
Please make sure to create fresh VM in order to try it.

License

MIT ๐Ÿ„ซ Kento Oki <[email protected]>

nopatchguardcallback's People

Contributors

kkent030315 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.