Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
prevent www from being a key to prevent fp (#1418)
Zubair Khancd67f6bf1673
diff --git a/pkg/detectors/falsepositives.go b/pkg/detectors/falsepositives.goindex b1ea5de67..e63de9ff1 100644--- a/pkg/detectors/falsepositives.go+++ b/pkg/detectors/falsepositives.go@@ -6,7 +6,7 @@ import ("unicode")-var DefaultFalsePositives = []FalsePositive{"example", "xxxxxx", "aaaaaa", "abcde", "00000", "sample"}+var DefaultFalsePositives = []FalsePositive{"example", "xxxxxx", "aaaaaa", "abcde", "00000", "sample", "www"}type FalsePositive string@@ -31,9 +31,9 @@ var FalsePositiveWordlists = Wordlists{programmingBookWords: bytesToCleanWordList(programmingBookWords),}-//IsKnownFalsePositives will not return a valid secret finding if any of the disqualifying conditions are met-//Currently that includes: No number, english word in key, or matches common example pattens.-//Only the secret key material should be passed into this function+// IsKnownFalsePositives will not return a valid secret finding if any of the disqualifying conditions are met+// Currently that includes: No number, english word in key, or matches common example pattens.+// Only the secret key material should be passed into this functionfunc IsKnownFalsePositive(match string, falsePositives []FalsePositive, wordCheck bool) bool {for _, fp := range falsePositives {