Skip to content

Conversation

@Rosalie79
Copy link
Contributor

Fixed DepStatus on OS servers where Dep was set to 'false' for 64 bits processes

…tQueryInformationProcess with ProcessExecuteFlags returns the status code STATUS_INVALID_PARAMETER

On 64 processes on 64 bits OS, Dep is always enabled (https://blogs.technet.microsoft.com/srd/2009/06/12/understanding-dep-as-a-mitigation-technology-part-1/)
I copied the behavior of ProcessMitigation (Get-ProcessMitigation cmdlet) : with this tool, if the API NtQueryInformationProcess returns an error, it sets DEP status to enabled for 64 bits processes
@tyranid tyranid merged commit 403933d into googleprojectzero:master Jul 30, 2018
@tyranid
Copy link
Collaborator

tyranid commented Jul 30, 2018

Weird that it fails with that error on server edition. Thought it might be related to forcing NX on for everything but a change with BCDEDIT on a client edition didn't make a difference. Oh well, thanks for the patch.

@Rosalie79
Copy link
Contributor Author

yup, the function failed only if we target a 64 bits process, it returns correctly if we want to get dep information for a Wow64 process

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