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

Add new rule linked-against-minhook.yml #920

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Conversation

jtothej
Copy link
Contributor

@jtothej jtothej commented Aug 11, 2024

Add new rule linked-against-minhook.yml

- string: "MH_ERROR_MEMORY_PROTECT"
- string: "MH_ERROR_MODULE_NOT_FOUND"
- string: "MH_ERROR_FUNCTION_NOT_FOUND"
- string: "MH_Initialize"
Copy link
Collaborator

Choose a reason for hiding this comment

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

are any of these exports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When MinHook is compiled as a standalone DLL some of the symbols are exported, e.g. https://github.com/TsudaKageyu/minhook/blob/c1a7c3843bd1a5fe3eb779b64c0d823bca3dc339/dll_resources/MinHook.def

Copy link
Collaborator

Choose a reason for hiding this comment

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

do you think it's worth adding export features for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added export features in d2d7791. I can imagine situations where these symbols are exported in executables compiled with MinHook.

@mr-tz mr-tz merged commit bf22c34 into mandiant:master Sep 11, 2024
3 checks passed
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.

3 participants