Skip to content

add toggle_callbacks support#33

Open
evilele wants to merge 10 commits into
wavestone-cdt:masterfrom
evilele:master
Open

add toggle_callbacks support#33
evilele wants to merge 10 commits into
wavestone-cdt:masterfrom
evilele:master

Conversation

@evilele

@evilele evilele commented Oct 7, 2025

Copy link
Copy Markdown

New Features

  • only toggle EDRProcessAndThreadObjectsCallbacks to methodically disable/restore (process handle) EDR protections
    EDRSandblast.exe toggle_callbacks 0|1|0e1|0t1 --kernelmode -i

Reason

  • MsMpEng.exe (Windows 11 24H2, Defender for Individuals) downgrades any OpenProcess handles, even when running as PPL
    • h = OpenProcess(PROCESS_ALL_ACCESS, FALSE, <pid>); h.GrantedAccess --> 0x1ff7d4
image
  • but now after disabling the relevant callback we have full access
disabled-callback
  • after the relevant actions are completed, the callback can be restored and Defender should work as expected
enabled-callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant