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

Add rule for detecting hiding shutdown actions #935

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

Still34
Copy link
Contributor

@Still34 Still34 commented Sep 25, 2024

Summary

This PR adds a rule that detects registry values related to hiding shutdown actions (i.e., logout, shutdown, reboot, etc.), specifically ones using policy registry values. This is often abused by ransomware to prevent mid-encryption-shutdowns.

@Still34
Copy link
Contributor Author

Still34 commented Sep 25, 2024

Let me know if this looks okay. I've opted to use case insensitive regex instead of substrings. If all looks good, I'll open a PR on the test data repo.

@Still34 Still34 changed the title Add rule for hiding shutdown actions Add rule for detecting hiding shutdown actions Sep 25, 2024
Copy link
Collaborator

@williballenthin williballenthin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rule logic looks good 👍

i'm not familiar with this technique though i can kinda guess about it based on the key names. are you able to find a reference or two that i could use to learn more (and we can include in the meta block)?

@Still34
Copy link
Contributor Author

Still34 commented Sep 25, 2024

image
Roughly what it may look like in some ransomware; this specific one was Mallox/TargetCompany.

@mr-tz
Copy link
Collaborator

mr-tz commented Sep 25, 2024

I agree on the reference, this appears to be one: https://securelist.com/mallox-ransomware/113529/

@mr-tz mr-tz merged commit 9da73be into mandiant:master Sep 26, 2024
3 checks passed
@mr-tz
Copy link
Collaborator

mr-tz commented Sep 26, 2024

thank you!

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.

3 participants