Skip to content

Conversation

mmpnelson
Copy link
Contributor

Description:

Add MaxMind license key rule

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

RuleID: "maxmind-license-key",
Description: "Discovered a potential MaxMind license key.",
Regex: utils.GenerateUniqueTokenRegex(`[A-Za-z0-9]{6}_[A-Za-z0-9]{29}_mmk`, false),
Keywords: []string{"mmk"},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's add an entropy filter as well. How about a threshold of 4?

@mmpnelson
Copy link
Contributor Author

Great, thanks! How does this look?

@zricethezav zricethezav merged commit 3e8cd2d into gitleaks:master Mar 29, 2025
2 checks passed
sirakav pushed a commit to sirakav/gitleaks that referenced this pull request Apr 25, 2025
* Add MaxMind license key rule

* Address review feedback for MaxMind license key rule
alayne222 pushed a commit to alayne222/gitleaks that referenced this pull request May 28, 2025
* Add MaxMind license key rule

* Address review feedback for MaxMind license key rule
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.

2 participants