Skip to content

Commit

Permalink
Update credsweeper/scanner/scan_type/pem_key_pattern.py
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek authored Jul 4, 2023
1 parent 8080c82 commit 552e55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credsweeper/scanner/scan_type/pem_key_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def detect_pem_key(cls, config: Config, rule: Rule, target: AnalysisTarget) -> L
elif PEM_END_PATTERN in subline:
# Check if entropy is high enough for base64 set with padding sign
entropy = Util.get_shannon_entropy(key_data, Chars.BASE64_CHARS.value)
if 4.85 > entropy:
if 4.5 > entropy:
logger.debug("Filtered with entropy %f '%s'", entropy, key_data)
return []
# OPENSSH format has multiple AAAAA pattern
Expand Down

0 comments on commit 552e55c

Please sign in to comment.