Skip to content

Reduce severity and confidence levels in mountpoints#539

Open
kevross33 wants to merge 2 commits intoCAPESandbox:masterfrom
kevross33:patch-584079
Open

Reduce severity and confidence levels in mountpoints#539
kevross33 wants to merge 2 commits intoCAPESandbox:masterfrom
kevross33:patch-584079

Conversation

@kevross33
Copy link
Contributor

Seems this alerts more than I anticipated in samples. I didn't overly see it outside bootkits and ransomware in testing against others but I was focused on specific samples.

Until signature can be tightened or false positives/true positives confirmed dropping it to an info as still useful.

Seems this alerts more than I anticipated in samples. I didn't overly see it outside bootkits and ransomware in testing against others but I was focused on specific samples. 

Until signature can be tightened or false positives/true positives confirmed dropping it to an info as still useful.
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 addresses an issue where two Windows mount point discovery signatures were generating more alerts than anticipated. The changes reduce the severity and confidence levels of these signatures, effectively treating them as informational alerts. This adjustment aims to decrease noise until the signatures can be further refined to reduce false positives or confirm true positives more accurately.

Highlights

  • DiscoverRegistryMountPoints Signature: The 'DiscoverRegistryMountPoints' signature's severity was reduced from 2 to 1, and a confidence level of 20 was added.
  • MountPointsVolumeDiscovery Signature: The 'MountPointsVolumeDiscovery' signature's severity was reduced from 3 to 1, and its confidence level was reduced from 80 to 20.

🧠 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.

Changelog
  • modules/signatures/windows/discovery_mountpoints.py
    • Reduced the 'severity' from 2 to 1 and added a 'confidence' of 20 for the 'DiscoverRegistryMountPoints' signature.
    • Reduced the 'severity' from 3 to 1 and the 'confidence' from 80 to 20 for the 'MountPointsVolumeDiscovery' signature.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request reduces the severity and confidence levels for the discover_registry_mount_points and mountpoints_volume_discovery signatures to decrease the number of alerts. This is a reasonable temporary measure given the high rate of false positives. I have suggested adding TODO comments to both updated signatures. This will serve as a reminder to re-evaluate these values once the signatures have been refined, improving the long-term maintainability of the code.

Comment on lines +22 to +23
severity = 1
confidence = 20
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Given the PR description mentions these changes are temporary until the signature can be tightened, it would be beneficial to add a TODO comment. This will serve as a reminder for future developers to re-evaluate these values, improving code maintainability.

Suggested change
severity = 1
confidence = 20
# TODO: Re-evaluate severity and confidence once the signature is tightened to reduce false positives.
severity = 1
confidence = 20

Comment on lines +54 to +55
severity = 1
confidence = 20
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Similar to the DiscoverRegistryMountPoints signature, it would be helpful to add a TODO comment here. This reflects that these values are temporary and should be revisited once the signature is improved to reduce false positives.

Suggested change
severity = 1
confidence = 20
# TODO: Re-evaluate severity and confidence once the signature is tightened to reduce false positives.
severity = 1
confidence = 20

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.

1 participant