Skip to content

Conversation

gsutherland-trailofbits
Copy link

@gsutherland-trailofbits gsutherland-trailofbits commented Jul 16, 2025

As it stands the query outputs detections that look like this:

Potential use of legacy cryptographic algorithm cast_to_string detected

This PR alters the message to include the detected cipher name, to make it easier to identify which substring triggered the detection:

Potential use of legacy cryptographic algorithm CAST detected in function name cast_to_string

This makes things a bit less confusing and makes it easier to quickly triage false positives.

This PR also reduces false positive detections for the DES cipher by using a regex match to avoid common words like "description" and "nodes". The regex has been tested to ensure that fragments such as "descrypt", "3des", "tripledes", etc. are still properly detected.

Adds the name of the detected algorithm to help identify the substring that triggered the detection, and reduces false positives when detecting DES by using a regex to exclude common words like "description" and "nodes".
@CLAassistant
Copy link

CLAassistant commented Jul 16, 2025

CLA assistant check
All committers have signed the CLA.

The "DES" string is covered by the regex and should not be in the first list. This was a typo made during testing.
Copy link
Contributor

@GrosQuildu GrosQuildu left a comment

Choose a reason for hiding this comment

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

Thanks!

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