Skip to content

Detection vector fix: RWX allocation removed#198

Merged
TheCruZ merged 2 commits intoTheCruZ:masterfrom
werw58:master
Aug 12, 2025
Merged

Detection vector fix: RWX allocation removed#198
TheCruZ merged 2 commits intoTheCruZ:masterfrom
werw58:master

Conversation

@werw58
Copy link
Contributor

@werw58 werw58 commented Aug 10, 2025

Removed global RWX protection applied after MmAllocateIndependentPages. Implemented per-section protection logic matching PE section characteristics to avoid long-lived RWX memory regions, minimizing behavioral detection vectors.

Removed global RWX protection applied after MmAllocateIndependentPages. Implemented per-section protection logic matching PE section characteristics to avoid long-lived RWX memory regions, minimizing behavioral detection vectors.
@TheCruZ
Copy link
Owner

TheCruZ commented Aug 12, 2025

Change the default PAGE_NOACCESS to PAGE_READONLY to prevent any issue with packed/modified drivers and also check that the section has a VirtualSize > 0
for the rest, I don't think that this will help with any detection since anticheats base his detections in threads that enter in executable memory that they don't recognize(e.g. path guard) more than the size of the executable section

Use READONLY instead of NOACCESS for default section prot, skip empty sections
@werw58
Copy link
Contributor Author

werw58 commented Aug 12, 2025

for the rest, I don't think that this will help with any detection since anticheats base his detections in threads that enter in executable memory that they don't recognize(e.g. path guard) more than the size of the executable section

Splitting protections per PE section is still better than keeping a long-lived single RWX region. At least it reduces the footprint of writable executable memory, which can help minimize heuristic flags (probably l0l)

@TheCruZ TheCruZ merged commit a7ff70c into TheCruZ:master Aug 12, 2025
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.

2 participants