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

feat: add string entropy greater than filter #1334

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

didroe
Copy link
Contributor

@didroe didroe commented Oct 16, 2023

Description

Adds a new filter type entropy_greater_than which takes a decimal number and compares it to the Shannon Entropy of the string.

This will be used to improve the PHP hardcoded secret rule which currently triggers many false positives.

Checklist

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.
  • I've included usage information in the description if CLI behavior was updated or added.
  • PR title follows Conventional Commits format

@didroe didroe force-pushed the feat/add-string-entropy-filter branch from a0450aa to 891d903 Compare October 16, 2023 15:09
@didroe didroe merged commit 3f9c112 into main Oct 16, 2023
8 checks passed
@didroe didroe deleted the feat/add-string-entropy-filter branch October 16, 2023 15:32
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.

None yet

2 participants