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

Identify the hook target #23

Closed
hasherezade opened this issue Dec 2, 2018 · 2 comments
Closed

Identify the hook target #23

hasherezade opened this issue Dec 2, 2018 · 2 comments
Assignees

Comments

@hasherezade
Copy link
Owner

hasherezade commented Dec 2, 2018

Test cases

Case 1:
c999ab160f652e1c6980c50507e1aacb9058d3aa359c92dd74bf3fc5ae5fd47b - KeygenMe v7 by MaxXor
Case 2:
5e1967db286d886b87d1ec655559b9af694fc6e002fea3a6c7fd3c6b0b49ea6e - Floki Bot

How it is

The hooks are tagged in the following way:

ec7c;CreateWindowExW->402551;5
1e981;CharUpperW->4017be;5

We can see the offset where the hook is installed, and the name of the hooked function. Hook target is represented by its VA. However, finding what is the module where the hook leads to, requires manual analysis.

How it should be

The target module should be mentioned in the report, i.e.:

ec7c;CreateWindowExW->402551[400000+2551:KeygenMev7.exe];5
1e981;CharUpperW->4017be[400000+17be:KeygenMev7.exe];5

or, in case if the hook leads to unnamed implant, it should be marked as unnamed:

ec7c;CreateWindowExW->402551[400000+2551:(unnamed)];5
1e981;CharUpperW->4017be[400000+17be:(unnamed)];5
@hasherezade hasherezade self-assigned this Dec 2, 2018
@hasherezade
Copy link
Owner Author

hasherezade commented Dec 16, 2018

Addressed in the commits:

  1. 8d9e209
  2. 2a8345b
  3. 85bee89
  4. 07b40ea

@hasherezade
Copy link
Owner Author

Result:

All mentioned above is implemented. Additionally, the module is marked with 0 (if not detected as suspicious) or 1 (if detected as suspicious).

  • for the use case 1:
    result_tags
  • for the use case 2:
    floki_tags

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