Add signatures for unbacked memory activities#547
Add signatures for unbacked memory activities#547kevoreilly merged 19 commits intoCAPESandbox:masterfrom
Conversation
This file implements multiple signatures to detect suspicious activities related to unbacked memory, including DLL loading, token manipulation, registry modifications, network connections, named pipe creation, VEH registration, and process creation.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new Python module containing a suite of Cuckoo Sandbox signatures. These signatures are designed to enhance the detection capabilities for advanced evasion techniques by identifying various suspicious activities, such as DLL loading, token manipulation, registry modifications, network connections, named pipe creation, VEH registration, and process creation, specifically when these actions originate from dynamically allocated, unbacked memory regions. This helps in uncovering fileless malware and other stealthy threats. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a valuable set of signatures for detecting suspicious activities originating from unbacked memory. The overall implementation is solid, but I've identified a few areas for improvement. Specifically, there's a correctness issue in the UnbackedMemoryNetworkConnection signature that could cause it to miss detections, for which I've provided a fix. I also noticed a minor issue with a duplicated TTP entry and significant code duplication across the new signature classes. Addressing the code duplication by refactoring the common logic would greatly improve the long-term maintainability of this new module.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Updated the UnbackedMemoryNetworkConnection class to enhance detection of network connections from unbacked memory. Increased severity and refined the description to indicate fileless C2 beaconing.
Removed UnbackedMemoryNetworkConnection class and its methods.
This file implements multiple signatures to detect suspicious activities related to unbacked memory, including DLL loading, token manipulation, registry modifications, network connections, named pipe creation, VEH registration, and process creation.
Some of these are still not fully tested but I don't think they should not work as the ones I have found work fine and they are all implemented with similar logic.
Kazuar (Turla APT backdoor) 1749c96cc1a4beb9ad4d6e037e40902fac31042fa40152f1d3794f49ed1a2b5c

LUMMA 47b04598800c3231e8dd3eae7d187a42b131f851584403be28f1f4364cf523fa

Dridexv4 17afaf60c24ec98039d4273f24888fd457b4aede1e11871e56ed7149ff504fea

Pikabot ca5fb5814ec62c8f04936740aabe2664b3c7d036203afbd8425cd67cf1f4b79d
