-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve debug detection features #721
Conversation
# We're not including kernel32.IsDebuggerPresent here because some exception handlers and other compiler-inserted | ||
# code may add calls to it, especially in debug builds. So, likely even with pretty good library code detection | ||
# this feature could result in many false positives. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #100 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
- api: NtQuerySystemInformation | ||
- api: NtQuerySystemInformationEx | ||
- api: ZwQuerySystemInformation | ||
- api: ZwQuerySystemInformationEx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #720
references: | ||
- https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/AntiDebug/NtQuerySystemInformation_SystemKernelDebuggerInformation.cpp | ||
features: | ||
- and: | ||
- api: NtQueryInformationProcess | ||
- or: | ||
- api: NtQuerySystemInformation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix: ...SystemInformation
(see al-khaser and Anti-DebugNet source)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thank you! LGTM 🚀
# We're not including kernel32.IsDebuggerPresent here because some exception handlers and other compiler-inserted | ||
# code may add calls to it, especially in debug builds. So, likely even with pretty good library code detection | ||
# this feature could result in many false positives. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
ref #595