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

Detect a patch partially overlapping Import Address Table #15

Closed
hasherezade opened this issue Apr 23, 2018 · 1 comment
Closed

Detect a patch partially overlapping Import Address Table #15

hasherezade opened this issue Apr 23, 2018 · 1 comment
Assignees

Comments

@hasherezade
Copy link
Owner

hasherezade commented Apr 23, 2018

Full area of IAT (as defined in Data Directory) is excluded from the code scan. It is scanned by another type of scan, detecting IAT hooks. This is in general a good behavior, but it creates a blind spot for the patches that are installed in the padding at the end of the IAT.

Example:

Test case:

Below: the patched svchost vs the original one:

androm_err1

So, the patch starts in the last DWORD of the IAT (which was filled with padding).

@hasherezade hasherezade self-assigned this Apr 23, 2018
@hasherezade hasherezade changed the title Scan Import Address Table Detect a patch partially overlapping Import Address Table Sep 9, 2021
hasherezade added a commit that referenced this issue Sep 9, 2021
@hasherezade
Copy link
Owner Author

Fixed: after more precise clearing of IAT, entire patch is detected:

iatp_detected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant