Skip to content
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

Merged
merged 1 commit into from
Mar 14, 2023
Merged

improve debug detection features #721

merged 1 commit into from
Mar 14, 2023

Conversation

mr-tz
Copy link
Collaborator

@mr-tz mr-tz commented Mar 11, 2023

ref #595

Comment on lines +18 to +20
# 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.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Comment on lines +17 to +20
- api: NtQuerySystemInformation
- api: NtQuerySystemInformationEx
- api: ZwQuerySystemInformation
- api: ZwQuerySystemInformationEx
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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)

@mr-tz mr-tz requested a review from mike-hunhoff March 14, 2023 07:09
Copy link
Collaborator

@mike-hunhoff mike-hunhoff left a 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 🚀

Comment on lines +18 to +20
# 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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@mr-tz mr-tz merged commit 977ad92 into master Mar 14, 2023
@mr-tz mr-tz deleted the rules52-10 branch March 14, 2023 18:30
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