Skip to content

Commit

Permalink
Reduce alerting when MSK_FETCHER_PASSWORD value is used
Browse files Browse the repository at this point in the history
This alert appears quite commonly within the search repository. In
some cases, it's the only alert that appears too. Given this appears
to be a safe pattern, it makes sense to reduce alerting when this is
used without turning off any of the other alerting that should occur
from this rule.
  • Loading branch information
kdenhartog committed Dec 16, 2024
1 parent c3a4e70 commit 758937c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/semgrep_rules/generated/nonfree/vulns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4859,7 +4859,7 @@ rules:
url: https://semgrep.dev/playground/r/GxTDEKp/generic.secrets.gitleaks.hashicorp-tf-password.hashicorp-tf-password
origin: community
patterns:
- pattern-regex: (?i)(?:administrator_login_password|password)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}("[a-z0-9=_\-]{8,20}")(?:['|\"|\n|\r|\s|\x60|;]|$)
- pattern-regex: (?i)(?!password_env\s*=\s*"MSK_FETCHER_PASSWORD"$)(?:administrator_login_password|password)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}("[a-z0-9=_\-]{8,20}")(?:['|\"|\n|\r|\s|\x60|;]|$)
- id: generic.secrets.gitleaks.heroku-api-key.heroku-api-key
message: A gitleaks heroku-api-key was detected which attempts to identify hard-coded
credentials. It is not recommended to store credentials in source-code, as this
Expand Down

0 comments on commit 758937c

Please sign in to comment.