Skip to content

Introducing wmi_etw auxiliary module #2449

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

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Introducing wmi_etw auxiliary module #2449

merged 2 commits into from
Jan 7, 2025

Conversation

IridiumXOR
Copy link
Contributor

During the analysis of a sample, we observed that it could modify the Registry contents, but Cape was unable to detect this activity (tracing WMI StdRegProv::CreateKey calls). After conducting a manual analysis, we discovered that the sample initiated a Registry modification request through WMI APIs, which Cape seems unable to properly track. To address this, we developed a plugin, wmi_etw.py, that enables the tracking of WMI activity via ETW. The code is based on the existing dns_etw.py plugin and saves the log trace in aux/wmi_etw.json. It is important to note that, like the dns_etw.py plugin, it requires the installation of the pywintrace Python package within the test VM to function correctly.

@kevoreilly
Copy link
Owner

Very interesting! Thank you. Any chance you could share the example sample mentioned? Or its hash!

@IridiumXOR
Copy link
Contributor Author

hash: 0a06a25efb1dfea94e24096f64b40cc3661ef97a0de194fd83d2ca8d9a3648cc
Our sample come from VT, but it seems available also from open-source repositories

@doomedraven
Copy link
Collaborator

thank you very much, we need to add entry to aux config to load it, i will add it after the dinner

@doomedraven
Copy link
Collaborator

\cc FYI @dsecuma

@dsecuma
Copy link
Contributor

dsecuma commented Jan 7, 2025

\cc FYI @dsecuma

Thank you. I will take a look at this in the coming days, cool @IridiumXOR.

@doomedraven doomedraven merged commit 827eb8b into kevoreilly:master Jan 7, 2025
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.

4 participants