mantvydasb / RedTeaming-Tactics-and-Techniques

Red Teaming Tactics and Techniques
http://ired.team
4.06k stars 1.06k forks source link

AddressOfEntryPoint Injection still uses RWX #36

Closed GuyPerson7018 closed 1 year ago

GuyPerson7018 commented 1 year ago

At the page on AddressOfEntryPoint Code Injection without VirtualAllocEx RWX, this is not really done without using RWX. As shown in the first picture, the entrypoint memory page is already under RX permissions, and as shown here, the only reason this method works is because WriteProcessMemory is being nice and trying to change RX to RWX temporarily, which would end up creating an RWX page anyways, essentially making this technique still easily detectable by EDRs that look for RWX regions.

mantvydasb commented 1 year ago

Thanks, updated the page by including your comment.