-
Notifications
You must be signed in to change notification settings - Fork 192
Clearing Event Log with wevtapi functions #1006
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Initially I was unsure if the name "... remotely" was appropriate, but as I look at some examples and the API documentation, I see that NULL would be provided instead of the session, so requiring EvtOpenSession
is great here.
for example here is it imports only EvtClearLog, not any of the other routines. so here's a VT search for local clearing: https://www.virustotal.com/gui/search/imports%253AEvtClearLog%2520and%2520not%2520imports%253AEvtOpenSession?type=files and likely remote clearing: https://www.virustotal.com/gui/search/imports%253AEvtClearLog%2520and%2520imports%253AEvtOpenSession?type=files (very few hits aside from wevtutil) |
This reverts commit 97b5730.
anti-analysis/anti-forensic/clear-logs/clear-windows-event-logs-remotely.yml
Show resolved
Hide resolved
Sorry about all of the mess in the commits, it's my first time writing a CAPA rule and I'm not used to your workflows |
no worries! I appreciate the patience. and I'll squash merge so the history ends up clean. really neat that you took the time to submit a rule after developing the POC. i hope we can continue to work together :-) |
Added detection of clearing event logs with functions from wevtapi.dll, these functions can also be used remotely after a session is established with RPC using the EvtOpenSession function.
Reference Code:
getel-arch/ClearLogsRemotely