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

remove redundant matches for dynamic scope #987

Merged
merged 5 commits into from
Feb 4, 2025

Conversation

mike-hunhoff
Copy link
Collaborator

This PR restricts link function at runtime on Windows submatches to static scope to remove redundant matches for dynamic scope. Basically, some capa rules had logic to match both direct API calls and resolution of those APIs via dynamic linking. This results in redundant matches when matching dynamic scope because the logic matches both the dynamic link and the invocation. These usually match within a few traced calls of each other.

@mike-hunhoff mike-hunhoff requested a review from a team January 30, 2025 19:02
lib/change-memory-protection.yml Outdated Show resolved Hide resolved
@williballenthin williballenthin merged commit 75c16e4 into master Feb 4, 2025
3 checks passed
@williballenthin williballenthin deleted the fix/dynamic/linking branch February 4, 2025 08:32
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