Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Clean up comments. (#562)
ahrav198cb1a786a9
diff --git a/pkg/detectors/abbysale/abbysale.go b/pkg/detectors/abbysale/abbysale.goindex 11f0019aa..8f961d4ca 100644--- a/pkg/detectors/abbysale/abbysale.go+++ b/pkg/detectors/abbysale/abbysale.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"abbysale"}) + `\b([a-z0-9A-Z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/abstract/abstract.go b/pkg/detectors/abstract/abstract.goindex fc604721a..183f461da 100644--- a/pkg/detectors/abstract/abstract.go+++ b/pkg/detectors/abstract/abstract.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"abstract"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/abuseipdb/abuseipdb.go b/pkg/detectors/abuseipdb/abuseipdb.goindex eb8692b83..fc538f7ec 100644--- a/pkg/detectors/abuseipdb/abuseipdb.go+++ b/pkg/detectors/abuseipdb/abuseipdb.go@@ -17,13 +17,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"abuseipdb"}) + `\b([a-z0-9]{80})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/accuweather/accuweather.go b/pkg/detectors/accuweather/accuweather.goindex 9bb313a07..7078551d7 100644--- a/pkg/detectors/accuweather/accuweather.go+++ b/pkg/detectors/accuweather/accuweather.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"accuweather"}) + `([a-z0-9A-Z\%]{35})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/adafruitio/adafruitio.go b/pkg/detectors/adafruitio/adafruitio.goindex c21430fb0..3f72878ab 100644--- a/pkg/detectors/adafruitio/adafruitio.go+++ b/pkg/detectors/adafruitio/adafruitio.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(aio\_[a-zA-Z0-9]{28})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/adobeio/adobeio.go b/pkg/detectors/adobeio/adobeio.goindex f4f1df931..b8ee57c70 100644--- a/pkg/detectors/adobeio/adobeio.go+++ b/pkg/detectors/adobeio/adobeio.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"adobe"}) + `\b([a-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"adobe"}) + `\b([a-zA-Z0-9.]{12})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/adzuna/adzuna.go b/pkg/detectors/adzuna/adzuna.goindex b6857370d..821a871ca 100644--- a/pkg/detectors/adzuna/adzuna.go+++ b/pkg/detectors/adzuna/adzuna.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"adzuna"}) + `\b([a-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"adzuna"}) + `\b([a-z0-9]{8})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/aeroworkflow/aeroworkflow.go b/pkg/detectors/aeroworkflow/aeroworkflow.goindex 380d87a08..d74677fbb 100644--- a/pkg/detectors/aeroworkflow/aeroworkflow.go+++ b/pkg/detectors/aeroworkflow/aeroworkflow.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aeroworkflow"}) + `\b([a-zA-Z0-9^!]{20})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aeroworkflow"}) + `\b([0-9]{1,})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/agora/agora.go b/pkg/detectors/agora/agora.goindex 0dc0ce8af..32095a65e 100644--- a/pkg/detectors/agora/agora.go+++ b/pkg/detectors/agora/agora.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"agora"}) + `\b([a-z0-9]{32})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"agora"}) + `\b([a-z0-9]{32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/aha/aha.go b/pkg/detectors/aha/aha.goindex 4ec5e878b..add34d30c 100644--- a/pkg/detectors/aha/aha.go+++ b/pkg/detectors/aha/aha.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aha"}) + `\b([0-9a-f]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.goindex 9ee5cfb55..c9487469a 100644--- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go+++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"airbrake"}) + `\b([a-zA-Z-0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"airbrake"}) + `\b([0-9]{6})\b`))diff --git a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.goindex bc74a5bf1..f47afa189 100644--- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go+++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"airbrake"}) + `\b([a-zA-Z-0-9]{40})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/airship/airship.go b/pkg/detectors/airship/airship.goindex 60e32c43e..0f4dce5a2 100644--- a/pkg/detectors/airship/airship.go+++ b/pkg/detectors/airship/airship.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"airship"}) + `\b([0-9Aa-zA-Z]{91})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/airtableapikey/airtableapikey.go b/pkg/detectors/airtableapikey/airtableapikey.goindex a47f43575..71e350791 100644--- a/pkg/detectors/airtableapikey/airtableapikey.go+++ b/pkg/detectors/airtableapikey/airtableapikey.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/airvisual/airvisual.go b/pkg/detectors/airvisual/airvisual.goindex cfbfca27b..51bd1736b 100644--- a/pkg/detectors/airvisual/airvisual.go+++ b/pkg/detectors/airvisual/airvisual.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"airvisual"}) + `\b([a-z0-9-]{36})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/alconost/alconost.go b/pkg/detectors/alconost/alconost.goindex b41a15a37..75c1901c1 100644--- a/pkg/detectors/alconost/alconost.go+++ b/pkg/detectors/alconost/alconost.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"alconost"}) + `\b([0-9Aa-z]{32})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/alegra/alegra.go b/pkg/detectors/alegra/alegra.goindex d829ad56a..24f012dba 100644--- a/pkg/detectors/alegra/alegra.go+++ b/pkg/detectors/alegra/alegra.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"alegra"}) + `\b([a-z0-9-]{20})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"alegra"}) + `\b([a-zA-Z0-9.-@]{25,30})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/aletheiaapi/aletheiaapi.go b/pkg/detectors/aletheiaapi/aletheiaapi.goindex 1dfcae695..ada90d1f5 100644--- a/pkg/detectors/aletheiaapi/aletheiaapi.go+++ b/pkg/detectors/aletheiaapi/aletheiaapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aletheiaapi"}) + `\b([A-Z0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey.go b/pkg/detectors/algoliaadminkey/algoliaadminkey.goindex f86daded7..05250f7d7 100644--- a/pkg/detectors/algoliaadminkey/algoliaadminkey.go+++ b/pkg/detectors/algoliaadminkey/algoliaadminkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"algolia"}) + `\b([a-zA-Z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"algolia"}) + `\b([A-Z0-9]{10})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.goindex 3fcde5dde..b280bc148 100644--- a/pkg/detectors/alibaba/alibaba.go+++ b/pkg/detectors/alibaba/alibaba.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/alienvault/alienvault.go b/pkg/detectors/alienvault/alienvault.goindex 64ed94bfa..bda9f6dc5 100644--- a/pkg/detectors/alienvault/alienvault.go+++ b/pkg/detectors/alienvault/alienvault.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"alienvault"}) + `\b([a-z0-9]{64})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/allsports/allsports.go b/pkg/detectors/allsports/allsports.goindex 91dbc8a5e..3b3ef2ce4 100644--- a/pkg/detectors/allsports/allsports.go+++ b/pkg/detectors/allsports/allsports.go@@ -17,13 +17,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"allsports"}) + `\b([0-9a-z]{64})\b`))diff --git a/pkg/detectors/amadeus/amadeus.go b/pkg/detectors/amadeus/amadeus.goindex 0748d1e34..b90e32b7f 100644--- a/pkg/detectors/amadeus/amadeus.go+++ b/pkg/detectors/amadeus/amadeus.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"amadeus"}) + `\b([0-9A-Za-z]{32})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"amadeus"}) + `\b([0-9A-Za-z]{16})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) && strings.Contains(body, "access_token") {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ambee/ambee.go b/pkg/detectors/ambee/ambee.goindex 1114fcee4..140d12778 100644--- a/pkg/detectors/ambee/ambee.go+++ b/pkg/detectors/ambee/ambee.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ambee"}) + `\b([0-9a-f]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/amplitudeapikey/amplitudeapikey.go b/pkg/detectors/amplitudeapikey/amplitudeapikey.goindex ce805d936..477843a8d 100644--- a/pkg/detectors/amplitudeapikey/amplitudeapikey.go+++ b/pkg/detectors/amplitudeapikey/amplitudeapikey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"amplitude"}) + `\b([a-f0-9]{32})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/anypoint/anypoint.go b/pkg/detectors/anypoint/anypoint.goindex 00d7ead8e..fd6c9f63e 100644--- a/pkg/detectors/anypoint/anypoint.go+++ b/pkg/detectors/anypoint/anypoint.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`)orgPat = regexp.MustCompile(detectors.PrefixRegex([]string{"org"}) + `\b([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apacta/apacta.go b/pkg/detectors/apacta/apacta.goindex 0db5c7451..9d8d80be7 100644--- a/pkg/detectors/apacta/apacta.go+++ b/pkg/detectors/apacta/apacta.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apacta"}) + `\b([a-z0-9-]{36})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/api2cart/api2cart.go b/pkg/detectors/api2cart/api2cart.goindex db37bdbe1..93d09b298 100644--- a/pkg/detectors/api2cart/api2cart.go+++ b/pkg/detectors/api2cart/api2cart.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"api2cart"}) + `\b([0-9a-f]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && result.ReturnCode == 0 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apideck/apideck.go b/pkg/detectors/apideck/apideck.goindex a1f3ee060..c7ea1c1f8 100644--- a/pkg/detectors/apideck/apideck.go+++ b/pkg/detectors/apideck/apideck.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(sk_live_[a-z0-9A-Z-]{93})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apideck"}) + `\b([a-z0-9A-Z]{40})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apiflash/apiflash.go b/pkg/detectors/apiflash/apiflash.goindex 715278e3d..35cf7245e 100644--- a/pkg/detectors/apiflash/apiflash.go+++ b/pkg/detectors/apiflash/apiflash.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apiflash"}) + `\b([a-z0-9]{32})\b`)urlPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apiflash"}) + `\b([a-zA-Z0-9\S]{21,30})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apifonica/apifonica.go b/pkg/detectors/apifonica/apifonica.goindex f69fc4cb3..1d605fb5c 100644--- a/pkg/detectors/apifonica/apifonica.go+++ b/pkg/detectors/apifonica/apifonica.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apifonica"}) + `\b([0-9a-z]{11}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apify/apify.go b/pkg/detectors/apify/apify.goindex d98dc1095..2a5eb5d23 100644--- a/pkg/detectors/apify/apify.go+++ b/pkg/detectors/apify/apify.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(apify\_api\_[a-zA-Z-0-9]{36})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apimatic/apimatic.go b/pkg/detectors/apimatic/apimatic.goindex 4fdbe8bd9..83fc4ec8c 100644--- a/pkg/detectors/apimatic/apimatic.go+++ b/pkg/detectors/apimatic/apimatic.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apimatic"}) + `\b([a-zA-Z0-9]{3,20}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,5})\b`)passPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apimatic"}) + `\b([a-z0-9-\S]{8,32})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(passPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apiscience/apiscience.go b/pkg/detectors/apiscience/apiscience.goindex 90834d13a..103c9152f 100644--- a/pkg/detectors/apiscience/apiscience.go+++ b/pkg/detectors/apiscience/apiscience.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apiscience"}) + `\b([a-bA-Z0-9\S]{22})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apitemplate/apitemplate.go b/pkg/detectors/apitemplate/apitemplate.goindex fc19854f4..0876d7d4a 100644--- a/pkg/detectors/apitemplate/apitemplate.go+++ b/pkg/detectors/apitemplate/apitemplate.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apitemplate"}) + `\b([0-9a-zA-Z]{39})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apollo/apollo.go b/pkg/detectors/apollo/apollo.goindex 50ee7b2cc..51e0d9f1c 100644--- a/pkg/detectors/apollo/apollo.go+++ b/pkg/detectors/apollo/apollo.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apollo"}) + `\b([a-zA-Z0-9]{22})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/appcues/appcues.go b/pkg/detectors/appcues/appcues.goindex 6f846b9e0..1bee72394 100644--- a/pkg/detectors/appcues/appcues.go+++ b/pkg/detectors/appcues/appcues.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"appcues"}) + `\b([a-z0-9-]{36})\b`)userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"appcues"}) + `\b([a-z0-9-]{39})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"appcues"}) + `\b([0-9]{5})\b`)@@ -76,7 +76,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/appfollow/appfollow.go b/pkg/detectors/appfollow/appfollow.goindex 49045120d..feb389b1d 100644--- a/pkg/detectors/appfollow/appfollow.go+++ b/pkg/detectors/appfollow/appfollow.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"appfollow"}) + `\b([0-9A-Za-z]{20})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/appsynergy/appsynergy.go b/pkg/detectors/appsynergy/appsynergy.goindex a614697d2..48a17dc3f 100644--- a/pkg/detectors/appsynergy/appsynergy.go+++ b/pkg/detectors/appsynergy/appsynergy.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"appsynergy"}) + `\b([a-z0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/apptivo/apptivo.go b/pkg/detectors/apptivo/apptivo.goindex 48b16d5b5..2d6d5aa0a 100644--- a/pkg/detectors/apptivo/apptivo.go+++ b/pkg/detectors/apptivo/apptivo.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apptivo"}) + `\b([a-z0-9-]{36})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"apptivo"}) + `\b([a-zA-Z0-9-]{32})\b`))@@ -76,7 +76,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/artifactory/artifactory.go b/pkg/detectors/artifactory/artifactory.goindex 44002211f..ebee1d598 100644--- a/pkg/detectors/artifactory/artifactory.go+++ b/pkg/detectors/artifactory/artifactory.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b([a-zA-Z0-9]{73})`)URLPat = regexp.MustCompile(`\b([A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])\.jfrog\.io)`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/artsy/artsy.go b/pkg/detectors/artsy/artsy.goindex c6b918a9d..548cc7a88 100644--- a/pkg/detectors/artsy/artsy.go+++ b/pkg/detectors/artsy/artsy.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"artsy"}) + `\b([0-9a-zA-Z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"artsy"}) + `\b([0-9a-zA-Z]{20})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/asanaoauth/asanaoauth.go b/pkg/detectors/asanaoauth/asanaoauth.goindex 2a383d937..26c220359 100644--- a/pkg/detectors/asanaoauth/asanaoauth.go+++ b/pkg/detectors/asanaoauth/asanaoauth.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"asana"}) + `\b([a-z\/:0-9]{51})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.goindex 89e9ccd2a..7915cb394 100644--- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go+++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/assemblyai/assemblyai.go b/pkg/detectors/assemblyai/assemblyai.goindex fe562a67d..c7e33dba4 100644--- a/pkg/detectors/assemblyai/assemblyai.go+++ b/pkg/detectors/assemblyai/assemblyai.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"assemblyai"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/atera/atera.go b/pkg/detectors/atera/atera.goindex 681e70bfd..5aff5be41 100644--- a/pkg/detectors/atera/atera.go+++ b/pkg/detectors/atera/atera.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"atera"}) + `\b([[0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/audd/audd.go b/pkg/detectors/audd/audd.goindex 3d36041b0..6fdde0714 100644--- a/pkg/detectors/audd/audd.go+++ b/pkg/detectors/audd/audd.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"audd"}) + `\b([a-z0-9-]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.goindex 95f023038..e2c5eeec9 100644--- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go+++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/auth0oauth/auth0oauth.go b/pkg/detectors/auth0oauth/auth0oauth.goindex 962ae2e8e..e3b24e6da 100644--- a/pkg/detectors/auth0oauth/auth0oauth.go+++ b/pkg/detectors/auth0oauth/auth0oauth.go@@ -18,7 +18,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/autodesk/autodesk.go b/pkg/detectors/autodesk/autodesk.goindex ed5c651d0..f70016331 100644--- a/pkg/detectors/autodesk/autodesk.go+++ b/pkg/detectors/autodesk/autodesk.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"autodesk"}) + `\b([0-9A-Za-z]{32})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"autodesk"}) + `\b([0-9A-Za-z]{16})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/autoklose/autoklose.go b/pkg/detectors/autoklose/autoklose.goindex c065b1031..b96983eb4 100644--- a/pkg/detectors/autoklose/autoklose.go+++ b/pkg/detectors/autoklose/autoklose.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"autoklose"}) + `\b([a-zA-Z0-9-]{32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/autopilot/autopilot.go b/pkg/detectors/autopilot/autopilot.goindex 2c7913c89..f4e82ef68 100644--- a/pkg/detectors/autopilot/autopilot.go+++ b/pkg/detectors/autopilot/autopilot.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"autopilot"}) + `\b([0-9a-f]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.goindex 2c87c66c6..843eac4fa 100644--- a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go+++ b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.//The number prefix increments for every Personal Access Token created.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"avaza"}) + `\b([0-9]+-[0-9a-f]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/aviationstack/aviationstack.go b/pkg/detectors/aviationstack/aviationstack.goindex bf5b6f98c..2ed3fc1bf 100644--- a/pkg/detectors/aviationstack/aviationstack.go+++ b/pkg/detectors/aviationstack/aviationstack.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aviationstack"}) + `\b([a-z0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/aws/aws.go b/pkg/detectors/aws/aws.goindex 0675c314e..3081a390b 100644--- a/pkg/detectors/aws/aws.go+++ b/pkg/detectors/aws/aws.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/axonaut/axonaut.go b/pkg/detectors/axonaut/axonaut.goindex a241a8665..9267af29a 100644--- a/pkg/detectors/axonaut/axonaut.go+++ b/pkg/detectors/axonaut/axonaut.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"axonaut"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/aylien/aylien.go b/pkg/detectors/aylien/aylien.goindex 2b45071ef..2ae1e9eb9 100644--- a/pkg/detectors/aylien/aylien.go+++ b/pkg/detectors/aylien/aylien.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aylien"}) + `\b([a-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"aylien"}) + `\b([a-z0-9]{8})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ayrshare/ayrshare.go b/pkg/detectors/ayrshare/ayrshare.goindex 0c91f0980..a67ea03b8 100644--- a/pkg/detectors/ayrshare/ayrshare.go+++ b/pkg/detectors/ayrshare/ayrshare.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ayrshare"}) + `\b([A-Z]{7}-[A-Z0-9]{7}-[A-Z0-9]{7}-[A-Z0-9]{7})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/azure/azure.go b/pkg/detectors/azure/azure.goindex 8a4621f9d..6b14e798c 100644--- a/pkg/detectors/azure/azure.go+++ b/pkg/detectors/azure/azure.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)func mustFmtPat(id, pat string) *regexp.Regexp {diff --git a/pkg/detectors/bannerbear/bannerbear.go b/pkg/detectors/bannerbear/bannerbear.goindex fdd0f80bd..79afdd13a 100644--- a/pkg/detectors/bannerbear/bannerbear.go+++ b/pkg/detectors/bannerbear/bannerbear.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bannerbear"}) + `\b([0-9a-zA-Z]{22}tt)\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/baremetrics/baremetrics.go b/pkg/detectors/baremetrics/baremetrics.goindex 5443c5e0f..e9065c52b 100644--- a/pkg/detectors/baremetrics/baremetrics.go+++ b/pkg/detectors/baremetrics/baremetrics.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"baremetrics"}) + `\b([a-zA-Z0-9_]{25})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/baseapiio/baseapiio.go b/pkg/detectors/baseapiio/baseapiio.goindex 17e8802ec..ec571fad9 100644--- a/pkg/detectors/baseapiio/baseapiio.go+++ b/pkg/detectors/baseapiio/baseapiio.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"baseapi", "base-api"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))diff --git a/pkg/detectors/beamer/beamer.go b/pkg/detectors/beamer/beamer.goindex 81e0b10ba..b14339508 100644--- a/pkg/detectors/beamer/beamer.go+++ b/pkg/detectors/beamer/beamer.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"beamer"}) + `\b([a-zA-Z0-9_+/]{45}=)`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/beebole/beebole.go b/pkg/detectors/beebole/beebole.goindex 1c1caa4ea..c9cd9fe3a 100644--- a/pkg/detectors/beebole/beebole.go+++ b/pkg/detectors/beebole/beebole.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"beebole"}) + `\b([0-9a-z]{40})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/besttime/besttime.go b/pkg/detectors/besttime/besttime.goindex 50ad2b8a8..0869e1464 100644--- a/pkg/detectors/besttime/besttime.go+++ b/pkg/detectors/besttime/besttime.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"besttime"}) + `\b([0-9A-Za-z_]{36})\b`))diff --git a/pkg/detectors/billomat/billomat.go b/pkg/detectors/billomat/billomat.goindex 8cf9764b5..fd14f4d70 100644--- a/pkg/detectors/billomat/billomat.go+++ b/pkg/detectors/billomat/billomat.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"billomat"}) + `\b([0-9a-z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"billomat"}) + `\b([0-9a-z]{1,})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bitbar/bitbar.go b/pkg/detectors/bitbar/bitbar.goindex 6c9aaae2f..2f13ec952 100644--- a/pkg/detectors/bitbar/bitbar.go+++ b/pkg/detectors/bitbar/bitbar.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bitbar"}) + `\b([0-9a-z]{32})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bitcoinaverage/bitcoinaverage.go b/pkg/detectors/bitcoinaverage/bitcoinaverage.goindex cade9c516..9d5d7691b 100644--- a/pkg/detectors/bitcoinaverage/bitcoinaverage.go+++ b/pkg/detectors/bitcoinaverage/bitcoinaverage.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bitcoinaverage"}) + `\b([a-zA-Z0-9]{43})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bitfinex/bitfinex.go b/pkg/detectors/bitfinex/bitfinex.goindex 5c1be1981..006aadbb6 100644--- a/pkg/detectors/bitfinex/bitfinex.go+++ b/pkg/detectors/bitfinex/bitfinex.go@@ -16,7 +16,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.goindex 2156cf010..4b77101b5 100644--- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go+++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bitly"}) + `\b([a-zA-Z-0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bitmex/bitmex.go b/pkg/detectors/bitmex/bitmex.goindex 575457b91..a7ef5aeb1 100644--- a/pkg/detectors/bitmex/bitmex.go+++ b/pkg/detectors/bitmex/bitmex.go@@ -19,13 +19,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bitmex"}) + `([ \r\n]{1}[0-9a-zA-Z\-\_]{24}[ \r\n]{1})`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bitmex"}) + `([ \r\n]{1}[0-9a-zA-Z\-\_]{48}[ \r\n]{1})`))@@ -82,7 +82,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/blablabus/blablabus.go b/pkg/detectors/blablabus/blablabus.goindex 01f67d5d0..b72619858 100644--- a/pkg/detectors/blablabus/blablabus.go+++ b/pkg/detectors/blablabus/blablabus.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"blablabus"}) + `\b([0-9A-Za-z]{22})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/blazemeter/blazemeter.go b/pkg/detectors/blazemeter/blazemeter.goindex e6ede15d4..6d5d2d067 100644--- a/pkg/detectors/blazemeter/blazemeter.go+++ b/pkg/detectors/blazemeter/blazemeter.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"blazemeter", "runscope"}) + `\b([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/blitapp/blitapp.go b/pkg/detectors/blitapp/blitapp.goindex f92ad90d0..c7e7ebc63 100644--- a/pkg/detectors/blitapp/blitapp.go+++ b/pkg/detectors/blitapp/blitapp.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"blitapp"}) + `\b([a-zA-Z0-9_-]{39})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/blogger/blogger.go b/pkg/detectors/blogger/blogger.goindex 3fc4eb394..1ade35d41 100644--- a/pkg/detectors/blogger/blogger.go+++ b/pkg/detectors/blogger/blogger.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"blogger"}) + `\b([0-9A-Za-z-]{39})\b`))@@ -56,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bombbomb/bombbomb.go b/pkg/detectors/bombbomb/bombbomb.goindex 49f050369..46636b9e8 100644--- a/pkg/detectors/bombbomb/bombbomb.go+++ b/pkg/detectors/bombbomb/bombbomb.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bombbomb"}) + `\b([a-zA-Z0-9-._]{704})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/boostnote/boostnote.go b/pkg/detectors/boostnote/boostnote.goindex 4cb32b2eb..16c9a66dc 100644--- a/pkg/detectors/boostnote/boostnote.go+++ b/pkg/detectors/boostnote/boostnote.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"boostnote"}) + `\b([0-9a-f]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/borgbase/borgbase.go b/pkg/detectors/borgbase/borgbase.goindex 18fedd47d..afca05950 100644--- a/pkg/detectors/borgbase/borgbase.go+++ b/pkg/detectors/borgbase/borgbase.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"borgbase"}) + `\b([a-zA-Z0-9/_.-]{148,152})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/brandfetch/brandfetch.go b/pkg/detectors/brandfetch/brandfetch.goindex 0d9c5ae0a..13c454586 100644--- a/pkg/detectors/brandfetch/brandfetch.go+++ b/pkg/detectors/brandfetch/brandfetch.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"brandfetch"}) + `\b([0-9A-Za-z]{40})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/browserstack/browserstack.go b/pkg/detectors/browserstack/browserstack.goindex 15d7968ae..07728afb4 100644--- a/pkg/detectors/browserstack/browserstack.go+++ b/pkg/detectors/browserstack/browserstack.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browserstack"}) + `\b([0-9a-zA-Z]{20})\b`)userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browserstack"}) + `\b([0-9a-zA-Z]{3,10}_[0-9a-zA-Z]{6})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/browshot/browshot.go b/pkg/detectors/browshot/browshot.goindex 646013d82..33f8fe2f6 100644--- a/pkg/detectors/browshot/browshot.go+++ b/pkg/detectors/browshot/browshot.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"browshot"}) + `\b([a-zA-Z-0-9]{28})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/buddyns/buddyns.go b/pkg/detectors/buddyns/buddyns.goindex 20572ab86..a36b5ce7f 100644--- a/pkg/detectors/buddyns/buddyns.go+++ b/pkg/detectors/buddyns/buddyns.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"buddyns"}) + `\b([0-9a-z]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bugherd/bugherd.go b/pkg/detectors/bugherd/bugherd.goindex 54a1f9375..ee301080f 100644--- a/pkg/detectors/bugherd/bugherd.go+++ b/pkg/detectors/bugherd/bugherd.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bugherd"}) + `\b([0-9a-z]{22})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bugsnag/bugsnag.go b/pkg/detectors/bugsnag/bugsnag.goindex 6121a29aa..4b9147211 100644--- a/pkg/detectors/bugsnag/bugsnag.go+++ b/pkg/detectors/bugsnag/bugsnag.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bugsnag"}) + `\b([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/buildkite/buildkite.go b/pkg/detectors/buildkite/buildkite.goindex 48ce92a83..4e6ba7797 100644--- a/pkg/detectors/buildkite/buildkite.go+++ b/pkg/detectors/buildkite/buildkite.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"buildkite"}) + `\b([a-z0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/bulbul/bulbul.go b/pkg/detectors/bulbul/bulbul.goindex 070915159..c5d4e0d15 100644--- a/pkg/detectors/bulbul/bulbul.go+++ b/pkg/detectors/bulbul/bulbul.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"bulbul"}) + `\b([a-z0-9]{32})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/buttercms/buttercms.go b/pkg/detectors/buttercms/buttercms.goindex 6942316c0..2f114c286 100644--- a/pkg/detectors/buttercms/buttercms.go+++ b/pkg/detectors/buttercms/buttercms.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"buttercms"}) + `\b([a-z0-9]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/caflou/caflou.go b/pkg/detectors/caflou/caflou.goindex e7feea4e8..f61efab61 100644--- a/pkg/detectors/caflou/caflou.go+++ b/pkg/detectors/caflou/caflou.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"caflou"}) + `\b([a-bA-Z0-9\S]{155})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/calendarific/calendarific.go b/pkg/detectors/calendarific/calendarific.goindex d37e70d59..d0e855db9 100644--- a/pkg/detectors/calendarific/calendarific.go+++ b/pkg/detectors/calendarific/calendarific.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"calendarific"}) + `\b([a-z0-9]{40})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/calendlyapikey/calendlyapikey.go b/pkg/detectors/calendlyapikey/calendlyapikey.goindex d26f51224..ebe3d1854 100644--- a/pkg/detectors/calendlyapikey/calendlyapikey.go+++ b/pkg/detectors/calendlyapikey/calendlyapikey.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"calendly"}) + `\b([a-zA-Z-0-9]{20}.[a-zA-Z-0-9]{171}.[a-zA-Z-0-9_]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/calorieninja/calorieninja.go b/pkg/detectors/calorieninja/calorieninja.goindex e262e5ae0..c2f06261e 100644--- a/pkg/detectors/calorieninja/calorieninja.go+++ b/pkg/detectors/calorieninja/calorieninja.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"calorieninja"}) + `\b([0-9A-Za-z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/campayn/campayn.go b/pkg/detectors/campayn/campayn.goindex 7c8cd3937..914d9ac84 100644--- a/pkg/detectors/campayn/campayn.go+++ b/pkg/detectors/campayn/campayn.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"campayn"}) + `\b([a-z0-9]{64})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cannyio/cannyio.go b/pkg/detectors/cannyio/cannyio.goindex 918645fc1..4eef48c93 100644--- a/pkg/detectors/cannyio/cannyio.go+++ b/pkg/detectors/cannyio/cannyio.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"canny"}) + `\b([a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[0-9]{4}-[a-z0-9]{12})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/capsulecrm/capsulecrm.go b/pkg/detectors/capsulecrm/capsulecrm.goindex 8c81c8c8c..262c0f38c 100644--- a/pkg/detectors/capsulecrm/capsulecrm.go+++ b/pkg/detectors/capsulecrm/capsulecrm.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"capsulecrm"}) + `\b([a-zA-Z0-9-._+=]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/captaindata/captaindata.go b/pkg/detectors/captaindata/captaindata.goindex 776d1ba65..edbddcbbb 100644--- a/pkg/detectors/captaindata/captaindata.go+++ b/pkg/detectors/captaindata/captaindata.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"captaindata"}) + `\b([0-9a-f]{64})\b`)projIdPat = regexp.MustCompile(detectors.PrefixRegex([]string{"captaindata"}) + `\b([0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/carboninterface/carboninterface.go b/pkg/detectors/carboninterface/carboninterface.goindex 9c9e6168b..ee1e877f1 100644--- a/pkg/detectors/carboninterface/carboninterface.go+++ b/pkg/detectors/carboninterface/carboninterface.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"carboninterface"}) + `\b([a-zA-Z0-9]{21})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cashboard/cashboard.go b/pkg/detectors/cashboard/cashboard.goindex f701ee64d..793c72a10 100644--- a/pkg/detectors/cashboard/cashboard.go+++ b/pkg/detectors/cashboard/cashboard.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cashboard"}) + `\b([0-9A-Z]{3}-[0-9A-Z]{3}-[0-9A-Z]{3}-[0-9A-Z]{3})\b`)userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cashboard"}) + `\b([0-9a-z]{1,})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/caspio/caspio.go b/pkg/detectors/caspio/caspio.goindex fe039116e..9c2461988 100644--- a/pkg/detectors/caspio/caspio.go+++ b/pkg/detectors/caspio/caspio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"caspio"}) + `\b([a-z0-9]{50})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"caspio"}) + `\b([a-z0-9]{50})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"caspio"}) + `\b([a-z0-9]{8})\b`)@@ -78,7 +78,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/censys/censys.go b/pkg/detectors/censys/censys.goindex d044464f1..3c6e06f56 100644--- a/pkg/detectors/censys/censys.go+++ b/pkg/detectors/censys/censys.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"censys"}) + `\b([a-zA-Z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"censys"}) + `\b([a-z0-9-]{36})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/centralstationcrm/centralstationcrm.go b/pkg/detectors/centralstationcrm/centralstationcrm.goindex 830dd8c14..f21a11489 100644--- a/pkg/detectors/centralstationcrm/centralstationcrm.go+++ b/pkg/detectors/centralstationcrm/centralstationcrm.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"centralstation"}) + `\b([a-z0-9]{30})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cexio/cexio.go b/pkg/detectors/cexio/cexio.goindex 22a5269af..ba857574c 100644--- a/pkg/detectors/cexio/cexio.go+++ b/pkg/detectors/cexio/cexio.go@@ -22,13 +22,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cexio", "cex.io"}) + `\b([0-9A-Za-z]{24,27})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cexio", "cex.io"}) + `\b([0-9A-Za-z]{24,27})\b`)userIdPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cexio", "cex.io"}) + `\b([a-z]{2}[0-9]{9})\b`)@@ -107,7 +107,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resUserIdMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/chartmogul/chartmogul.go b/pkg/detectors/chartmogul/chartmogul.goindex 769ec4a48..d0d284a39 100644--- a/pkg/detectors/chartmogul/chartmogul.go+++ b/pkg/detectors/chartmogul/chartmogul.go@@ -2,11 +2,11 @@ package chartmogulimport ("context"+ b64 "encoding/base64""fmt""net/http""regexp""strings"- b64 "encoding/base64""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"chartmogul"}) + `\b([a-z0-9]{32})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/chatbot/chatbot.go b/pkg/detectors/chatbot/chatbot.goindex 25712cbcd..59cd72544 100644--- a/pkg/detectors/chatbot/chatbot.go+++ b/pkg/detectors/chatbot/chatbot.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"chatbot"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/chatfule/chatfule.go b/pkg/detectors/chatfule/chatfule.goindex 49558df5a..d91127659 100644--- a/pkg/detectors/chatfule/chatfule.go+++ b/pkg/detectors/chatfule/chatfule.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"chatfuel"}) + `\b([a-zA-Z0-9]{128})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/checio/checio.go b/pkg/detectors/checio/checio.goindex 1c9a42b07..9ff6874d1 100644--- a/pkg/detectors/checio/checio.go+++ b/pkg/detectors/checio/checio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"checio"}) + `\b(pk_[a-z0-9]{45})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/checklyhq/checklyhq.go b/pkg/detectors/checklyhq/checklyhq.goindex ba9406778..8ffdc28ca 100644--- a/pkg/detectors/checklyhq/checklyhq.go+++ b/pkg/detectors/checklyhq/checklyhq.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"checklyhq"}) + `\b([a-z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/checkout/checkout.go b/pkg/detectors/checkout/checkout.goindex a66c8cf65..28040131d 100644--- a/pkg/detectors/checkout/checkout.go+++ b/pkg/detectors/checkout/checkout.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.//Tokens starting with sk_test are used for the app's sandbox environment while tokens starting with sk only are for production environmentkeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"checkout"}) + `\b((sk_|sk_test_)[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"checkout"}) + `\b(cus_[0-9a-zA-Z]{26})\b`)@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/checkvist/checkvist.go b/pkg/detectors/checkvist/checkvist.goindex de16a57d7..ccdb7d53f 100644--- a/pkg/detectors/checkvist/checkvist.go+++ b/pkg/detectors/checkvist/checkvist.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"checkvist"}) + `\b([0-9a-zA-Z]{14})\b`)emailPat = regexp.MustCompile(detectors.PrefixRegex([]string{"checkvist"}) + `\b([\w\.-]+@[\w-]+\.[\w\.-]{2,5})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cicero/cicero.go b/pkg/detectors/cicero/cicero.goindex a364ff8e2..d459ddc52 100644--- a/pkg/detectors/cicero/cicero.go+++ b/pkg/detectors/cicero/cicero.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cicero"}) + `\b([0-9a-z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/circleci/circleci.go b/pkg/detectors/circleci/circleci.goindex c58f81dd1..4cb8dae1f 100644--- a/pkg/detectors/circleci/circleci.go+++ b/pkg/detectors/circleci/circleci.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/clarifai/clarifai.go b/pkg/detectors/clarifai/clarifai.goindex a4e5ef141..4f53df5fa 100644--- a/pkg/detectors/clarifai/clarifai.go+++ b/pkg/detectors/clarifai/clarifai.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/clearbit/clearbit.go b/pkg/detectors/clearbit/clearbit.goindex 17c97e588..8cc45ca16 100644--- a/pkg/detectors/clearbit/clearbit.go+++ b/pkg/detectors/clearbit/clearbit.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clearbit"}) + `\b([0-9a-z_]{35})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clickhelp/clickhelp.go b/pkg/detectors/clickhelp/clickhelp.goindex 82f8725aa..8afb6f059 100644--- a/pkg/detectors/clickhelp/clickhelp.go+++ b/pkg/detectors/clickhelp/clickhelp.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.serverPat = regexp.MustCompile(`\b([0-9A-Za-z]{3,20}.try.clickhelp.co)\b`)emailPat = regexp.MustCompile(`\b([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]+)\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clickhelp"}) + `\b([0-9A-Za-z]{24})\b`)@@ -78,7 +78,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resServer, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clicksendsms/clicksendsms.go b/pkg/detectors/clicksendsms/clicksendsms.goindex 791efd9d1..bf6c15f75 100644--- a/pkg/detectors/clicksendsms/clicksendsms.go+++ b/pkg/detectors/clicksendsms/clicksendsms.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b([A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sms"}) + `\b([a-zA-Z0-9]{3,20}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,5})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.goindex e2c9d8431..a7a5df90b 100644--- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go+++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clickup"}) + `\b(pk_[0-9]{8}_[0-9A-Z]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cliengo/cliengo.go b/pkg/detectors/cliengo/cliengo.goindex b5b9bb874..06bb93a1c 100644--- a/pkg/detectors/cliengo/cliengo.go+++ b/pkg/detectors/cliengo/cliengo.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cliengo"}) + `\b([0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clinchpad/clinchpad.go b/pkg/detectors/clinchpad/clinchpad.goindex 9c1cbe5d1..72d774f76 100644--- a/pkg/detectors/clinchpad/clinchpad.go+++ b/pkg/detectors/clinchpad/clinchpad.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clinchpad"}) + `\b([a-z0-9]{32})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clockify/clockify.go b/pkg/detectors/clockify/clockify.goindex 51cd12bb0..6d332e193 100644--- a/pkg/detectors/clockify/clockify.go+++ b/pkg/detectors/clockify/clockify.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clockify"}) + `\b([a-zA-Z0-9]{48})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clockworksms/clockworksms.go b/pkg/detectors/clockworksms/clockworksms.goindex b9f9922d5..35fa521b0 100644--- a/pkg/detectors/clockworksms/clockworksms.go+++ b/pkg/detectors/clockworksms/clockworksms.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.userKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clockwork", "textanywhere"}) + `\b([0-9]{5})\b`)tokenPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clockwork", "textanywhere"}) + `\b([0-9a-zA-Z]{24})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/closecrm/close.go b/pkg/detectors/closecrm/close.goindex 05be7cb62..3cbc6f7d2 100644--- a/pkg/detectors/closecrm/close.go+++ b/pkg/detectors/closecrm/close.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(api_[a-z0-9A-Z.]{45})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloudelements/cloudelements.go b/pkg/detectors/cloudelements/cloudelements.goindex 0e6cf3955..5adc5c090 100644--- a/pkg/detectors/cloudelements/cloudelements.go+++ b/pkg/detectors/cloudelements/cloudelements.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudelements"}) + `\b([a-zA-Z0-9]{43})\b`)orgPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudelements"}) + `\b([a-z0-9]{32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.goindex cef107f2b..365feabc6 100644--- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go+++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey.go b/pkg/detectors/cloudflarecakey/cloudflarecakey.goindex 90002216e..75d3bdea8 100644--- a/pkg/detectors/cloudflarecakey/cloudflarecakey.go+++ b/pkg/detectors/cloudflarecakey/cloudflarecakey.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.goindex 1f7ffa816..b0320924c 100644--- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go+++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/cloudimage/cloudimage.go b/pkg/detectors/cloudimage/cloudimage.goindex ff2a33516..3df903f63 100644--- a/pkg/detectors/cloudimage/cloudimage.go+++ b/pkg/detectors/cloudimage/cloudimage.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudimage"}) + `\b([a-z0-9_]{30})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloudmersive/cloudmersive.go b/pkg/detectors/cloudmersive/cloudmersive.goindex 4c9eac029..b2441250d 100644--- a/pkg/detectors/cloudmersive/cloudmersive.go+++ b/pkg/detectors/cloudmersive/cloudmersive.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudmersive"}) + `\b([a-z0-9-]{36})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloudplan/cloudplan.go b/pkg/detectors/cloudplan/cloudplan.goindex 91a24409a..b28a41e72 100644--- a/pkg/detectors/cloudplan/cloudplan.go+++ b/pkg/detectors/cloudplan/cloudplan.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudplan"}) + `\b([A-Z0-9-]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloudsmith/cloudsmith.go b/pkg/detectors/cloudsmith/cloudsmith.goindex 9431b52df..5b799b865 100644--- a/pkg/detectors/cloudsmith/cloudsmith.go+++ b/pkg/detectors/cloudsmith/cloudsmith.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloudsmith"}) + `\b([0-9a-f]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloverly/cloverly.go b/pkg/detectors/cloverly/cloverly.goindex 8c448fe9e..80421e5b2 100644--- a/pkg/detectors/cloverly/cloverly.go+++ b/pkg/detectors/cloverly/cloverly.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloverly"}) + `\b([a-z0-9:_]{28})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cloze/cloze.go b/pkg/detectors/cloze/cloze.goindex 795b9ccfa..215b788cc 100644--- a/pkg/detectors/cloze/cloze.go+++ b/pkg/detectors/cloze/cloze.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloze"}) + `\b([0-9a-f]{32})\b`)emailPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cloze"}) + `\b([\w\.-]+@[\w-]+\.[\w\.-]{2,5})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/clustdoc/clustdoc.go b/pkg/detectors/clustdoc/clustdoc.goindex 7ccee4ed0..def8bf563 100644--- a/pkg/detectors/clustdoc/clustdoc.go+++ b/pkg/detectors/clustdoc/clustdoc.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"clustdoc"}) + `\b([0-9a-zA-Z]{60})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/codacy/codacy.go b/pkg/detectors/codacy/codacy.goindex f942c8696..ac23298a0 100644--- a/pkg/detectors/codacy/codacy.go+++ b/pkg/detectors/codacy/codacy.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"codacy"}) + `\b([0-9A-Za-z]{20})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/codequiry/codequiry.go b/pkg/detectors/codequiry/codequiry.goindex 71d74a061..ddd2f693c 100644--- a/pkg/detectors/codequiry/codequiry.go+++ b/pkg/detectors/codequiry/codequiry.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"codequiry"}) + `\b([a-zA-Z-0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/coinapi/coinapi.go b/pkg/detectors/coinapi/coinapi.goindex 58c7e3eed..6e3f34f53 100644--- a/pkg/detectors/coinapi/coinapi.go+++ b/pkg/detectors/coinapi/coinapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"coinapi"}) + `\b([A-Z0-9-]{36})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/coinbase/coinbase.go b/pkg/detectors/coinbase/coinbase.goindex 053a5fa6f..0ac4fbe5d 100644--- a/pkg/detectors/coinbase/coinbase.go+++ b/pkg/detectors/coinbase/coinbase.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"coinbase"}) + `\b([a-zA-Z-0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/coinlayer/coinlayer.go b/pkg/detectors/coinlayer/coinlayer.goindex a8f71a24c..1d34da144 100644--- a/pkg/detectors/coinlayer/coinlayer.go+++ b/pkg/detectors/coinlayer/coinlayer.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"coinlayer"}) + `\b([a-z0-9]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/coinlib/coinlib.go b/pkg/detectors/coinlib/coinlib.goindex 82a627c94..2c2dce67d 100644--- a/pkg/detectors/coinlib/coinlib.go+++ b/pkg/detectors/coinlib/coinlib.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"coinlib"}) + `\b([a-z0-9]{16})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/column/column.go b/pkg/detectors/column/column.goindex 28963a4b8..e54bf3557 100644--- a/pkg/detectors/column/column.go+++ b/pkg/detectors/column/column.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"column"}) + `\b((?:test|live)_[a-zA-Z0-9]{27})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = true} else {s1.Verified = false- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.// if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {// continue// }diff --git a/pkg/detectors/commercejs/commercejs.go b/pkg/detectors/commercejs/commercejs.goindex f06ab1835..afb0018ee 100644--- a/pkg/detectors/commercejs/commercejs.go+++ b/pkg/detectors/commercejs/commercejs.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"commercejs"}) + `\b([a-z0-9_]{48})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/commodities/commodities.go b/pkg/detectors/commodities/commodities.goindex a004c3852..e63fbd32c 100644--- a/pkg/detectors/commodities/commodities.go+++ b/pkg/detectors/commodities/commodities.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"commodities"}) + `\b([a-zA-Z0-9]{60})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/companyhub/companyhub.go b/pkg/detectors/companyhub/companyhub.goindex 080ae8d97..be57f408b 100644--- a/pkg/detectors/companyhub/companyhub.go+++ b/pkg/detectors/companyhub/companyhub.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"companyhub"}) + `\b([0-9a-zA-Z]{20})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"companyhub"}) + `\b([a-zA-Z0-9$%^=-]{4,32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/confluent/confluent.go b/pkg/detectors/confluent/confluent.goindex 5bf7d3e9d..366551051 100644--- a/pkg/detectors/confluent/confluent.go+++ b/pkg/detectors/confluent/confluent.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"confluent"}) + `\b([a-zA-Z-0-9]{16})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"confluent"}) + `\b([a-zA-Z-0-9]{64})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.goindex 9ece53eb5..91941d250 100644--- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go+++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/conversiontools/conversiontools.go b/pkg/detectors/conversiontools/conversiontools.goindex 6e7ef54ab..84c51e8d6 100644--- a/pkg/detectors/conversiontools/conversiontools.go+++ b/pkg/detectors/conversiontools/conversiontools.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"conversiontools"}) + `\b(ey[a-zA-Z0-9_.]{157,165})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/convertkit/convertkit.go b/pkg/detectors/convertkit/convertkit.goindex ffc67cd68..90a3cdf1a 100644--- a/pkg/detectors/convertkit/convertkit.go+++ b/pkg/detectors/convertkit/convertkit.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"convertkit"}) + `\b([a-z0-9A-Z_]{22})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/convier/convier.go b/pkg/detectors/convier/convier.goindex b777d4927..e65f01902 100644--- a/pkg/detectors/convier/convier.go+++ b/pkg/detectors/convier/convier.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"convier"}) + `\b([0-9]{2}\|[a-zA-Z0-9]{40})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/copper/copper.go b/pkg/detectors/copper/copper.goindex c3106fefd..0a6ed6283 100644--- a/pkg/detectors/copper/copper.go+++ b/pkg/detectors/copper/copper.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"copper"}) + `\b([a-z0-9]{32})\b`)idPat = regexp.MustCompile(`\b([a-z0-9]{4,25}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,6})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/countrylayer/countrylayer.go b/pkg/detectors/countrylayer/countrylayer.goindex 29206e3a8..2ab26348b 100644--- a/pkg/detectors/countrylayer/countrylayer.go+++ b/pkg/detectors/countrylayer/countrylayer.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"countrylayer"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/courier/courier.go b/pkg/detectors/courier/courier.goindex 8fda9242e..6941fc7f0 100644--- a/pkg/detectors/courier/courier.go+++ b/pkg/detectors/courier/courier.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"courier"}) + `\b(pk\_[a-zA-Z0-9]{1,}\_[a-zA-Z0-9]{28})\b`))diff --git a/pkg/detectors/coveralls/coveralls.go b/pkg/detectors/coveralls/coveralls.goindex 93aa691a9..49b1aff0c 100644--- a/pkg/detectors/coveralls/coveralls.go+++ b/pkg/detectors/coveralls/coveralls.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"coveralls"}) + `\b([a-zA-Z0-9-]{37})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/craftmypdf/craftmypdf.go b/pkg/detectors/craftmypdf/craftmypdf.goindex f4cd35977..6cd7336e7 100644--- a/pkg/detectors/craftmypdf/craftmypdf.go+++ b/pkg/detectors/craftmypdf/craftmypdf.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"craftmypdf"}) + `\b([0-9a-zA-Z]{35})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.goindex 1543059a1..09fb1c429 100644--- a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go+++ b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"crossbrowsertesting"}) + `\b([0-9a-z]{16})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"crossbrowsertesting"}) + `\b([a-z0-9]{4,25}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,6})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/crowdin/crowdin.go b/pkg/detectors/crowdin/crowdin.goindex 4b487594f..82abb7b12 100644--- a/pkg/detectors/crowdin/crowdin.go+++ b/pkg/detectors/crowdin/crowdin.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"crowdin"}) + `\b([0-9A-Za-z]{80})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/cryptocompare/cryptocompare.go b/pkg/detectors/cryptocompare/cryptocompare.goindex d02a8efa3..98367ff8b 100644--- a/pkg/detectors/cryptocompare/cryptocompare.go+++ b/pkg/detectors/cryptocompare/cryptocompare.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"cryptocompare"}) + `\b([a-z-0-9]{64})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/currencycloud/currencycloud.go b/pkg/detectors/currencycloud/currencycloud.goindex 11bab2b8d..a1a04481b 100644--- a/pkg/detectors/currencycloud/currencycloud.go+++ b/pkg/detectors/currencycloud/currencycloud.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"currencycloud"}) + `\b([0-9a-z]{64})\b`)emailPat = regexp.MustCompile(`\b([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]+)\b`))diff --git a/pkg/detectors/currencyfreaks/currencyfreaks.go b/pkg/detectors/currencyfreaks/currencyfreaks.goindex 441e4a18a..ad2d300dc 100644--- a/pkg/detectors/currencyfreaks/currencyfreaks.go+++ b/pkg/detectors/currencyfreaks/currencyfreaks.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"currencyfreaks"}) + `\b([0-9a-z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/currencylayer/currencylayer.go b/pkg/detectors/currencylayer/currencylayer.goindex cae43a0ad..dd753985f 100644--- a/pkg/detectors/currencylayer/currencylayer.go+++ b/pkg/detectors/currencylayer/currencylayer.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"currencylayer"}) + `\b([a-z0-9]{32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/currencyscoop/currencyscoop.go b/pkg/detectors/currencyscoop/currencyscoop.goindex eca1c0776..151098729 100644--- a/pkg/detectors/currencyscoop/currencyscoop.go+++ b/pkg/detectors/currencyscoop/currencyscoop.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"currencyscoop"}) + `\b([a-z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/currentsapi/currentsapi.go b/pkg/detectors/currentsapi/currentsapi.goindex fe5359a99..9126cef9c 100644--- a/pkg/detectors/currentsapi/currentsapi.go+++ b/pkg/detectors/currentsapi/currentsapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"currentsapi"}) + `\b([a-zA-Z0-9\S]{48})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/customerguru/customerguru.go b/pkg/detectors/customerguru/customerguru.goindex fcca83bad..ee71140fc 100644--- a/pkg/detectors/customerguru/customerguru.go+++ b/pkg/detectors/customerguru/customerguru.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"guru"}) + `\b([a-z0-9A-Z]{30})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"guru"}) + `\b([a-z0-9A-Z]{50})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/customerio/customerio.go b/pkg/detectors/customerio/customerio.goindex 5be4c5430..6d58e1db9 100644--- a/pkg/detectors/customerio/customerio.go+++ b/pkg/detectors/customerio/customerio.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"customer"}) + `\b([a-z0-9A-Z]{20})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"customer"}) + `\b([a-z0-9A-Z]{20})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/d7network/d7network.go b/pkg/detectors/d7network/d7network.goindex 50e5c4cd6..839bbcef0 100644--- a/pkg/detectors/d7network/d7network.go+++ b/pkg/detectors/d7network/d7network.go@@ -12,11 +12,11 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"d7network"}) + `\b([a-zA-Z0-9\W\S]{23}\=)`))@@ -55,7 +55,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dailyco/dailyco.go b/pkg/detectors/dailyco/dailyco.goindex 69d45c1fe..5a0e80c87 100644--- a/pkg/detectors/dailyco/dailyco.go+++ b/pkg/detectors/dailyco/dailyco.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"daily"}) + `\b([0-9a-f]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dandelion/dandelion.go b/pkg/detectors/dandelion/dandelion.goindex 15f7db74c..dec310281 100644--- a/pkg/detectors/dandelion/dandelion.go+++ b/pkg/detectors/dandelion/dandelion.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dandelion"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dareboost/dareboost.go b/pkg/detectors/dareboost/dareboost.goindex 9b260634b..3707eae2e 100644--- a/pkg/detectors/dareboost/dareboost.go+++ b/pkg/detectors/dareboost/dareboost.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dareboost"}) + `\b([0-9a-zA-Z]{60})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/datadogtoken/datadogtoken.go b/pkg/detectors/datadogtoken/datadogtoken.goindex fadce4951..962371923 100644--- a/pkg/detectors/datadogtoken/datadogtoken.go+++ b/pkg/detectors/datadogtoken/datadogtoken.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"datadog"}) + `\b([a-zA-Z-0-9]{40})\b`)apiPat = regexp.MustCompile(detectors.PrefixRegex([]string{"datadog"}) + `\b([a-zA-Z-0-9]{32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/datafire/datafire.go b/pkg/detectors/datafire/datafire.goindex 7db001af7..a39ed3009 100644--- a/pkg/detectors/datafire/datafire.go+++ b/pkg/detectors/datafire/datafire.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"datafire"}) + `\b([a-z0-9\S]{175,190})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/datagov/datagov.go b/pkg/detectors/datagov/datagov.goindex 37c2083a8..1b8b27636 100644--- a/pkg/detectors/datagov/datagov.go+++ b/pkg/detectors/datagov/datagov.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"data.gov"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/debounce/debounce.go b/pkg/detectors/debounce/debounce.goindex e488aa094..c0cf2b731 100644--- a/pkg/detectors/debounce/debounce.go+++ b/pkg/detectors/debounce/debounce.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"debounce"}) + `\b([a-zA-Z0-9]{13})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/deepai/deepai.go b/pkg/detectors/deepai/deepai.goindex 12a87ba37..376660b8b 100644--- a/pkg/detectors/deepai/deepai.go+++ b/pkg/detectors/deepai/deepai.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"deepai"}) + `\b([a-z0-9-]{36})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/deepgram/deepgram.go b/pkg/detectors/deepgram/deepgram.goindex b8e7e8d10..8107ce3f4 100644--- a/pkg/detectors/deepgram/deepgram.go+++ b/pkg/detectors/deepgram/deepgram.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"deepgram"}) + `\b([0-9a-z]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/delighted/delighted.go b/pkg/detectors/delighted/delighted.goindex ccbe91144..5c7d13ae6 100644--- a/pkg/detectors/delighted/delighted.go+++ b/pkg/detectors/delighted/delighted.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"delighted"}) + `\b([a-z0-9A-Z]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/deputy/deputy.go b/pkg/detectors/deputy/deputy.goindex dfd1318d9..aa87dd958 100644--- a/pkg/detectors/deputy/deputy.go+++ b/pkg/detectors/deputy/deputy.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"deputy"}) + `\b([0-9a-z]{32})\b`)urlPat = regexp.MustCompile(`\b([0-9a-z]{1,}\.as\.deputy\.com)\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/detectify/detectify.go b/pkg/detectors/detectify/detectify.goindex f6999796c..d2502b5bd 100644--- a/pkg/detectors/detectify/detectify.go+++ b/pkg/detectors/detectify/detectify.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"detectify"}) + `\b([0-9a-z]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/detectlanguage/detectlanguage.go b/pkg/detectors/detectlanguage/detectlanguage.goindex e90e27f9d..15dcb788a 100644--- a/pkg/detectors/detectlanguage/detectlanguage.go+++ b/pkg/detectors/detectlanguage/detectlanguage.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"detectlanguage"}) + `\b([a-z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dfuse/dfuse.go b/pkg/detectors/dfuse/dfuse.goindex 8a39a6fb4..0011535ea 100644--- a/pkg/detectors/dfuse/dfuse.go+++ b/pkg/detectors/dfuse/dfuse.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(web\_[0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/diffbot/diffbot.go b/pkg/detectors/diffbot/diffbot.goindex 7574d153c..309b7ca38 100644--- a/pkg/detectors/diffbot/diffbot.go+++ b/pkg/detectors/diffbot/diffbot.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"diffbot"}) + `\b([a-z0-9]{32})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/digitaloceantoken/digitaloceantoken.go b/pkg/detectors/digitaloceantoken/digitaloceantoken.goindex d835f6893..c31232aa7 100644--- a/pkg/detectors/digitaloceantoken/digitaloceantoken.go+++ b/pkg/detectors/digitaloceantoken/digitaloceantoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/discordbottoken/discordbottoken.go b/pkg/detectors/discordbottoken/discordbottoken.goindex 8e52d4704..170e741c2 100644--- a/pkg/detectors/discordbottoken/discordbottoken.go+++ b/pkg/detectors/discordbottoken/discordbottoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/discordwebhook/discordwebhook.go b/pkg/detectors/discordwebhook/discordwebhook.goindex 9ade2391f..809168266 100644--- a/pkg/detectors/discordwebhook/discordwebhook.go+++ b/pkg/detectors/discordwebhook/discordwebhook.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`(https:\/\/discord\.com\/api\/webhooks\/[0-9]{18}\/[0-9a-zA-Z-]{68})`))diff --git a/pkg/detectors/disqus/disqus.go b/pkg/detectors/disqus/disqus.goindex 1605894b3..5f869da52 100644--- a/pkg/detectors/disqus/disqus.go+++ b/pkg/detectors/disqus/disqus.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"disqus"}) + `\b([a-zA-Z0-9]{64})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ditto/ditto.go b/pkg/detectors/ditto/ditto.goindex d0123b4b0..089be1fa2 100644--- a/pkg/detectors/ditto/ditto.go+++ b/pkg/detectors/ditto/ditto.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ditto"}) + `\b([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12}\.[a-z0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dnscheck/dnscheck.go b/pkg/detectors/dnscheck/dnscheck.goindex 590cff5a4..f55b9b8e1 100644--- a/pkg/detectors/dnscheck/dnscheck.go+++ b/pkg/detectors/dnscheck/dnscheck.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dnscheck"}) + `\b([a-z0-9A-Z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dnscheck"}) + `\b([a-z0-9A-Z-]{36})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/documo/documo.go b/pkg/detectors/documo/documo.goindex 1358c38d8..86ae5cfe4 100644--- a/pkg/detectors/documo/documo.go+++ b/pkg/detectors/documo/documo.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(ey[a-zA-Z0-9]{34}.ey[a-zA-Z0-9]{154}.[a-zA-Z0-9_-]{43})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/doppler/doppler.go b/pkg/detectors/doppler/doppler.goindex bcfc09e0b..b55b0fc7c 100644--- a/pkg/detectors/doppler/doppler.go+++ b/pkg/detectors/doppler/doppler.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(dp\.pt\.[a-zA-Z0-9]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dotmailer/dotmailer.go b/pkg/detectors/dotmailer/dotmailer.goindex eb99430f3..225f1ad31 100644--- a/pkg/detectors/dotmailer/dotmailer.go+++ b/pkg/detectors/dotmailer/dotmailer.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dotmailer"}) + `\b(apiuser-[a-z0-9]{12}@apiconnector.com)\b`)passPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dotmailer"}) + `\b([a-zA-Z0-9\S]{8,24})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resPassMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dovico/dovico.go b/pkg/detectors/dovico/dovico.goindex f6ce98fae..94cb8d3a8 100644--- a/pkg/detectors/dovico/dovico.go+++ b/pkg/detectors/dovico/dovico.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dovico"}) + `\b([0-9a-z]{32}\.[0-9a-z]{1,}\b)`)userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dovico"}) + `\b([0-9a-z]{32}\.[0-9a-z]{1,}\b)`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dronahq/dronahq.go b/pkg/detectors/dronahq/dronahq.goindex 32236d9b5..74686bd14 100644--- a/pkg/detectors/dronahq/dronahq.go+++ b/pkg/detectors/dronahq/dronahq.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dronahq"}) + `\b([a-z0-9]{50})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/droneci/droneci.go b/pkg/detectors/droneci/droneci.goindex fa5a476dd..cec6c5208 100644--- a/pkg/detectors/droneci/droneci.go+++ b/pkg/detectors/droneci/droneci.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"droneci"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dropbox/dropbox.go b/pkg/detectors/dropbox/dropbox.goindex 0c036da09..bf7d1ae5f 100644--- a/pkg/detectors/dropbox/dropbox.go+++ b/pkg/detectors/dropbox/dropbox.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/dwolla/dwolla.go b/pkg/detectors/dwolla/dwolla.goindex c9c1fb28d..3f6aa16db 100644--- a/pkg/detectors/dwolla/dwolla.go+++ b/pkg/detectors/dwolla/dwolla.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dwolla"}) + `\b([a-zA-Z-0-9]{50})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dwolla"}) + `\b([a-zA-Z-0-9]{50})\b`))@@ -76,7 +76,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(idMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dynalist/dynalist.go b/pkg/detectors/dynalist/dynalist.goindex ca77a83ba..75f17b448 100644--- a/pkg/detectors/dynalist/dynalist.go+++ b/pkg/detectors/dynalist/dynalist.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dynalist"}) + `\b([a-zA-Z0-9-_]{128})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/dyspatch/dyspatch.go b/pkg/detectors/dyspatch/dyspatch.goindex cb28e9087..2392eb273 100644--- a/pkg/detectors/dyspatch/dyspatch.go+++ b/pkg/detectors/dyspatch/dyspatch.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"dyspatch"}) + `\b([A-Z0-9]{52})\b`))diff --git a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.goindex c12a15ee5..c5121278f 100644--- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go+++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"eagleeyenetworks"}) + `\b([a-zA-Z0-9]{15})\b`)email = regexp.MustCompile(detectors.PrefixRegex([]string{"eagleeyenetworks"}) + `\b([a-zA-Z0-9]{3,20}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,5})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/easyinsight/easyinsight.go b/pkg/detectors/easyinsight/easyinsight.goindex 2a6606b45..4777aa495 100644--- a/pkg/detectors/easyinsight/easyinsight.go+++ b/pkg/detectors/easyinsight/easyinsight.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"easyinsight", "easy-insight"}) + `\b([0-9Aa-zA-Z]{20})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"easyinsight", "easy-insight"}) + `\b([a-zA-Z0-9]{20})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/edamam/edamam.go b/pkg/detectors/edamam/edamam.goindex 3e83e0bd6..d9867cde7 100644--- a/pkg/detectors/edamam/edamam.go+++ b/pkg/detectors/edamam/edamam.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"edamam"}) + `\b([0-9a-z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"edamam"}) + `\b([0-9a-z]{8})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/edenai/edenai.go b/pkg/detectors/edenai/edenai.goindex a2fa1e2bf..28c47a0a9 100644--- a/pkg/detectors/edenai/edenai.go+++ b/pkg/detectors/edenai/edenai.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"edenai"}) + `\b([a-zA-Z0-9]{36}.[a-zA-Z0-9]{92}.[a-zA-Z0-9_]{43})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/eightxeight/eightxeight.go b/pkg/detectors/eightxeight/eightxeight.goindex 53e24bd82..99daa1682 100644--- a/pkg/detectors/eightxeight/eightxeight.go+++ b/pkg/detectors/eightxeight/eightxeight.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"8x8"}) + `\b([a-zA-Z0-9]{43})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"8x8"}) + `\b([a-zA-Z0-9_]{18,30})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/elasticemail/elasticemail.go b/pkg/detectors/elasticemail/elasticemail.goindex 3f1a73968..e392fdb7a 100644--- a/pkg/detectors/elasticemail/elasticemail.go+++ b/pkg/detectors/elasticemail/elasticemail.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/enablex/enablex.go b/pkg/detectors/enablex/enablex.goindex d0e2d5b87..3c800d4fe 100644--- a/pkg/detectors/enablex/enablex.go+++ b/pkg/detectors/enablex/enablex.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"enablex"}) + `\b([a-zA-Z0-9]{36})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"enablex"}) + `\b([a-z0-9]{24})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/enigma/enigma.go b/pkg/detectors/enigma/enigma.goindex 85a630c19..160d31ed1 100644--- a/pkg/detectors/enigma/enigma.go+++ b/pkg/detectors/enigma/enigma.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"enigma"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ethplorer/ethplorer.go b/pkg/detectors/ethplorer/ethplorer.goindex 46bab8f68..7a899a390 100644--- a/pkg/detectors/ethplorer/ethplorer.go+++ b/pkg/detectors/ethplorer/ethplorer.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ethplorer"}) + `\b([a-z0-9A-Z-]{22})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/etsyapikey/etsyapikey.go b/pkg/detectors/etsyapikey/etsyapikey.goindex 93e159136..8a5f85e25 100644--- a/pkg/detectors/etsyapikey/etsyapikey.go+++ b/pkg/detectors/etsyapikey/etsyapikey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"etsy"}) + `\b([a-zA-Z-0-9]{24})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/everhour/everhour.go b/pkg/detectors/everhour/everhour.goindex ac933789e..827d63ad8 100644--- a/pkg/detectors/everhour/everhour.go+++ b/pkg/detectors/everhour/everhour.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"everhour"}) + `\b([0-9Aa-f]{4}-[0-9a-f]{4}-[0-9a-f]{6}-[0-9a-f]{6}-[0-9a-f]{8})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/exchangerateapi/exchangerateapi.go b/pkg/detectors/exchangerateapi/exchangerateapi.goindex ae6806437..4ea1d3aff 100644--- a/pkg/detectors/exchangerateapi/exchangerateapi.go+++ b/pkg/detectors/exchangerateapi/exchangerateapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"exchangerate"}) + `\b([a-z0-9]{24})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi.go b/pkg/detectors/exchangeratesapi/exchangeratesapi.goindex 06564597c..da8005cc6 100644--- a/pkg/detectors/exchangeratesapi/exchangeratesapi.go+++ b/pkg/detectors/exchangeratesapi/exchangeratesapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"exchangerates"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/exportsdk/exportsdk.go b/pkg/detectors/exportsdk/exportsdk.goindex 6adc67d7c..35debc893 100644--- a/pkg/detectors/exportsdk/exportsdk.go+++ b/pkg/detectors/exportsdk/exportsdk.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"exportsdk"}) + `\b([0-9a-z]{5,15}_[0-9a-z-]{36})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"exportsdk"}) + `\b([0-9a-z-]{36})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/extractorapi/extractorapi.go b/pkg/detectors/extractorapi/extractorapi.goindex bdfe32333..c01dd5a8f 100644--- a/pkg/detectors/extractorapi/extractorapi.go+++ b/pkg/detectors/extractorapi/extractorapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"extractorapi"}) + `\b([a-zA-Z-0-9]{40})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/facebookoauth/facebookoauth.go b/pkg/detectors/facebookoauth/facebookoauth.goindex 970478ce6..57b805fc0 100644--- a/pkg/detectors/facebookoauth/facebookoauth.go+++ b/pkg/detectors/facebookoauth/facebookoauth.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.apiIdPat = regexp.MustCompile(detectors.PrefixRegex([]string{"facebook"}) + `\b([0-9]{15,18})\b`) // not actually sure of the upper boundapiSecretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"facebook"}) + `\b([A-Za-z0-9]{32})\b`))diff --git a/pkg/detectors/faceplusplus/faceplusplus.go b/pkg/detectors/faceplusplus/faceplusplus.goindex 7fd9b4317..8a649ae8f 100644--- a/pkg/detectors/faceplusplus/faceplusplus.go+++ b/pkg/detectors/faceplusplus/faceplusplus.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"faceplusplus"}) + `\b([0-9a-zA-Z_-]{32})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"faceplusplus"}) + `\b([0-9a-zA-Z_-]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fakejson/fakejson.go b/pkg/detectors/fakejson/fakejson.goindex 24b330afe..95c000836 100644--- a/pkg/detectors/fakejson/fakejson.go+++ b/pkg/detectors/fakejson/fakejson.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fakejson"}) + `\b([a-zA-Z0-9]{22})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fastforex/fastforex.go b/pkg/detectors/fastforex/fastforex.goindex 2290ca546..de0759bce 100644--- a/pkg/detectors/fastforex/fastforex.go+++ b/pkg/detectors/fastforex/fastforex.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fastforex"}) + `\b([a-z0-9-]{28})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.goindex a28273eee..80c0f63df 100644--- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go+++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/feedier/feedier.go b/pkg/detectors/feedier/feedier.goindex 6d44069bb..81624641c 100644--- a/pkg/detectors/feedier/feedier.go+++ b/pkg/detectors/feedier/feedier.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"feedier"}) + `\b([a-z0-9A-Z]{32})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fetchrss/fetchrss.go b/pkg/detectors/fetchrss/fetchrss.goindex 3a3decad4..7e98cb38e 100644--- a/pkg/detectors/fetchrss/fetchrss.go+++ b/pkg/detectors/fetchrss/fetchrss.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fetchrss"}) + `\b([0-9A-Za-z.]{40})\b`))diff --git a/pkg/detectors/fibery/fibery.go b/pkg/detectors/fibery/fibery.goindex bb1cbb042..391772069 100644--- a/pkg/detectors/fibery/fibery.go+++ b/pkg/detectors/fibery/fibery.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fibery"}) + `\b([0-9a-f]{8}.[0-9a-f]{35})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fibery", "domain"}) + `\b([0-9A-Za-z]{2,40})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.go b/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.goindex 7d354d4c7..8375eaa99 100644--- a/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.go+++ b/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/fileio/fileio.go b/pkg/detectors/fileio/fileio.goindex e138042f0..b87b83d17 100644--- a/pkg/detectors/fileio/fileio.go+++ b/pkg/detectors/fileio/fileio.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fileio"}) + `\b([A-Z0-9.-]{39})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/finage/finage.go b/pkg/detectors/finage/finage.goindex a3193d823..c7bc1739e 100644--- a/pkg/detectors/finage/finage.go+++ b/pkg/detectors/finage/finage.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(API_KEY[0-9A-Z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep.go b/pkg/detectors/financialmodelingprep/financialmodelingprep.goindex 9f61ce64b..3e924a94c 100644--- a/pkg/detectors/financialmodelingprep/financialmodelingprep.go+++ b/pkg/detectors/financialmodelingprep/financialmodelingprep.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"financialmodelingprep"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/findl/findl.go b/pkg/detectors/findl/findl.goindex df82d8778..e593f2897 100644--- a/pkg/detectors/findl/findl.go+++ b/pkg/detectors/findl/findl.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"findl"}) + `\b([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/finnhub/finnhub.go b/pkg/detectors/finnhub/finnhub.goindex 8ce89b32f..043c40310 100644--- a/pkg/detectors/finnhub/finnhub.go+++ b/pkg/detectors/finnhub/finnhub.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"finnhub"}) + `\b([0-9a-z]{20})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fixerio/fixerio.go b/pkg/detectors/fixerio/fixerio.goindex 5a4c9d80b..3f55305a7 100644--- a/pkg/detectors/fixerio/fixerio.go+++ b/pkg/detectors/fixerio/fixerio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fixer"}) + `\b([A-Za-z0-9]{32})\b`))diff --git a/pkg/detectors/flatio/flatio.go b/pkg/detectors/flatio/flatio.goindex f147cacbc..6c2bd1f6c 100644--- a/pkg/detectors/flatio/flatio.go+++ b/pkg/detectors/flatio/flatio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flat"}) + `\b([0-9a-z]{128})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fleetbase/fleetbase.go b/pkg/detectors/fleetbase/fleetbase.goindex f244acea0..19f938d4f 100644--- a/pkg/detectors/fleetbase/fleetbase.go+++ b/pkg/detectors/fleetbase/fleetbase.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(flb_live_[0-9a-zA-Z]{20})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flickr/flickr.go b/pkg/detectors/flickr/flickr.goindex b3fb21ce3..e0593adbf 100644--- a/pkg/detectors/flickr/flickr.go+++ b/pkg/detectors/flickr/flickr.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flickr"}) + `\b([0-9a-z]{32})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) && strings.Contains(body, "owner=") {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flightapi/flightapi.go b/pkg/detectors/flightapi/flightapi.goindex 3bf709dcb..167d5337b 100644--- a/pkg/detectors/flightapi/flightapi.go+++ b/pkg/detectors/flightapi/flightapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flightapi"}) + `\b([a-z0-9]{24})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flightstats/flightstats.go b/pkg/detectors/flightstats/flightstats.goindex 6775b4bc4..5b0eded3b 100644--- a/pkg/detectors/flightstats/flightstats.go+++ b/pkg/detectors/flightstats/flightstats.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flightstats"}) + `\b([0-9a-z]{8})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flightstats"}) + `\b([0-9a-z]{32})\b`))@@ -74,7 +74,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/float/float.go b/pkg/detectors/float/float.goindex ecfdfc105..60b8eb51b 100644--- a/pkg/detectors/float/float.go+++ b/pkg/detectors/float/float.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"float"}) + `\b([a-zA-Z0-9-._+=]{59,60})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flowdash/flowdash.go b/pkg/detectors/flowdash/flowdash.goindex 1b4b52156..dc54ec151 100644--- a/pkg/detectors/flowdash/flowdash.go+++ b/pkg/detectors/flowdash/flowdash.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flowdash"}) + `\b([0-9a-zA-Z]{24})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flowdock/flowdock.go b/pkg/detectors/flowdock/flowdock.goindex 88b74ca89..f8cc960da 100644--- a/pkg/detectors/flowdock/flowdock.go+++ b/pkg/detectors/flowdock/flowdock.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flowdock"}) + `\b([0-9a-f]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flowflu/flowflu.go b/pkg/detectors/flowflu/flowflu.goindex 6e735f284..ff8f0a5fe 100644--- a/pkg/detectors/flowflu/flowflu.go+++ b/pkg/detectors/flowflu/flowflu.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flowflu"}) + `\b([a-zA-Z0-9]{51})\b`)accountPat = regexp.MustCompile(detectors.PrefixRegex([]string{"flowflu", "account"}) + `\b([a-zA-Z0-9]{4,30})\b`))@@ -80,7 +80,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/flutterwave/flutterwave.go b/pkg/detectors/flutterwave/flutterwave.goindex a8fd74d11..6184281b8 100644--- a/pkg/detectors/flutterwave/flutterwave.go+++ b/pkg/detectors/flutterwave/flutterwave.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(FLWSECK-[0-9a-z]{32}-X)\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fmfw/fmfw.go b/pkg/detectors/fmfw/fmfw.goindex 16dc18ab3..bef7a66ab 100644--- a/pkg/detectors/fmfw/fmfw.go+++ b/pkg/detectors/fmfw/fmfw.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fmfw"}) + `\b([a-zA-Z0-9_-]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fmfw"}) + `\b([a-zA-Z0-9-]{32})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/formbucket/formbucket.go b/pkg/detectors/formbucket/formbucket.goindex cc5b337aa..cbdcbe207 100644--- a/pkg/detectors/formbucket/formbucket.go+++ b/pkg/detectors/formbucket/formbucket.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formbucket"}) + `\b([0-9A-Za-z]{1,}.[0-9A-Za-z]{1,}\.[0-9A-Z-a-z\-_]{1,})`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/formcraft/formcraft.go b/pkg/detectors/formcraft/formcraft.goindex a4861718c..7943c9c77 100644--- a/pkg/detectors/formcraft/formcraft.go+++ b/pkg/detectors/formcraft/formcraft.go@@ -2,11 +2,11 @@ package formcraftimport ("context"+ b64 "encoding/base64""fmt""net/http""regexp""strings"- b64 "encoding/base64""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formcraft"}) + `\b([0-9a-z]{16})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/formio/formio.go b/pkg/detectors/formio/formio.goindex 2f3945611..dec2c7559 100644--- a/pkg/detectors/formio/formio.go+++ b/pkg/detectors/formio/formio.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"formio"}) + `\b(eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\.[0-9A-Za-z]{310}\.[0-9A-Z-a-z\-_]{43}[ \r\n]{1})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/foursquare/foursquare.go b/pkg/detectors/foursquare/foursquare.goindex 7970ce076..afb957221 100644--- a/pkg/detectors/foursquare/foursquare.go+++ b/pkg/detectors/foursquare/foursquare.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"foursquare"}) + `\b([0-9A-Z]{48})\b`)secretMatch = regexp.MustCompile(detectors.PrefixRegex([]string{"foursquare"}) + `\b([0-9A-Z]{48})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/frameio/frameio.go b/pkg/detectors/frameio/frameio.goindex c9a64a6eb..4275cea1e 100644--- a/pkg/detectors/frameio/frameio.go+++ b/pkg/detectors/frameio/frameio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(fio-u-[0-9a-zA-Z_-]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/freshbooks/freshbooks.go b/pkg/detectors/freshbooks/freshbooks.goindex 5c3f53382..39f3a6386 100644--- a/pkg/detectors/freshbooks/freshbooks.go+++ b/pkg/detectors/freshbooks/freshbooks.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"freshbooks"}) + `\b([0-9a-z]{64})\b`)uriPat = regexp.MustCompile(detectors.PrefixRegex([]string{"freshbooks"}) + `\b(https://www.[0-9A-Za-z_-]{1,}.com)\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(body, "Log In to FreshBooks") {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/freshdesk/freshdesk.go b/pkg/detectors/freshdesk/freshdesk.goindex e47e77ab0..9dcf6e5a4 100644--- a/pkg/detectors/freshdesk/freshdesk.go+++ b/pkg/detectors/freshdesk/freshdesk.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.urlPat = regexp.MustCompile(`\b([0-9a-z-]{1,}\.freshdesk\.com)\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"freshdesk"}) + `\b([0-9A-Za-z]{20})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/front/front.go b/pkg/detectors/front/front.goindex bf9c03e34..16a2d6cb4 100644--- a/pkg/detectors/front/front.go+++ b/pkg/detectors/front/front.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"front"}) + `\b([0-9a-zA-Z]{36}.[0-9a-zA-Z\.\-\_]{188,244})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fulcrum/fulcrum.go b/pkg/detectors/fulcrum/fulcrum.goindex e5fad496a..1339cba82 100644--- a/pkg/detectors/fulcrum/fulcrum.go+++ b/pkg/detectors/fulcrum/fulcrum.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fulcrum"}) + `\b([a-z0-9]{80})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fullstory/fullstory.go b/pkg/detectors/fullstory/fullstory.goindex 3f42c0f92..f6cb3b822 100644--- a/pkg/detectors/fullstory/fullstory.go+++ b/pkg/detectors/fullstory/fullstory.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fullstory"}) + `\b([a-zA-Z-0-9/+]{88})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fusebill/fusebill.go b/pkg/detectors/fusebill/fusebill.goindex 3b95432bd..6299234c2 100644--- a/pkg/detectors/fusebill/fusebill.go+++ b/pkg/detectors/fusebill/fusebill.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fusebill"}) + `\b([a-zA-Z0-9]{88})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/fxmarket/fxmarket.go b/pkg/detectors/fxmarket/fxmarket.goindex b7cbebfe1..87480bafe 100644--- a/pkg/detectors/fxmarket/fxmarket.go+++ b/pkg/detectors/fxmarket/fxmarket.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"fxmarket"}) + `\b([0-9Aa-zA-Z-_=]{20})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/gcp/gcp.go b/pkg/detectors/gcp/gcp.goindex d993439a0..6edc28dca 100644--- a/pkg/detectors/gcp/gcp.go+++ b/pkg/detectors/gcp/gcp.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/geckoboard/geckoboard.go b/pkg/detectors/geckoboard/geckoboard.goindex 956228e42..969a8f4f1 100644--- a/pkg/detectors/geckoboard/geckoboard.go+++ b/pkg/detectors/geckoboard/geckoboard.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"geckoboard"}) + `\b([a-zA-Z0-9]{44})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/generic/generic.go b/pkg/detectors/generic/generic.goindex 44cc264c6..f87a6b043 100644--- a/pkg/detectors/generic/generic.go+++ b/pkg/detectors/generic/generic.go@@ -50,7 +50,7 @@ type Scanner struct {excludeMatchers []*regexp.Regexp}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var keywords = []string{"pass", "token", "cred", "secret", "key"}diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.goindex 440641953..7f536877e 100644--- a/pkg/detectors/gengo/gengo.go+++ b/pkg/detectors/gengo/gengo.go@@ -21,13 +21,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.//Removed bounds since there are some cases where the start and end of the token is a special characterkeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gengo"}) + `([ ]{0,1}[0-9a-zA-Z\[\]\-\(\)\{\}|_^@$=~]{64}[ \r\n]{1})`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gengo"}) + `([ ]{0,1}[0-9a-zA-Z\[\]\-\(\)\{\}|_^@$=~]{64}[ \r\n]{1})`)@@ -85,7 +85,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && response.OpStat == "ok" {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/geoapify/geoapify.go b/pkg/detectors/geoapify/geoapify.goindex 317e25748..c4c2543a6 100644--- a/pkg/detectors/geoapify/geoapify.go+++ b/pkg/detectors/geoapify/geoapify.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"geoapify"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/geocode/geocode.go b/pkg/detectors/geocode/geocode.goindex 6cd19e312..e3dd8d182 100644--- a/pkg/detectors/geocode/geocode.go+++ b/pkg/detectors/geocode/geocode.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"geocode"}) + `\b([a-z0-9]{28})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/geocodify/geocodify.go b/pkg/detectors/geocodify/geocodify.goindex dd45c6026..3a5845a7e 100644--- a/pkg/detectors/geocodify/geocodify.go+++ b/pkg/detectors/geocodify/geocodify.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"geocodify"}) + `\b([0-9a-z]{40})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/geocodio/geocodio.go b/pkg/detectors/geocodio/geocodio.goindex 24853fa8a..14d3e02bb 100644--- a/pkg/detectors/geocodio/geocodio.go+++ b/pkg/detectors/geocodio/geocodio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"geocod"}) + `\b([a-z0-9]{39})\b`)searchPat = regexp.MustCompile(detectors.PrefixRegex([]string{"geocod"}) + `\b([a-zA-Z0-9\S]{7,30})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/geoipifi/geoipifi.go b/pkg/detectors/geoipifi/geoipifi.goindex 031c24795..c74b9d8a5 100644--- a/pkg/detectors/geoipifi/geoipifi.go+++ b/pkg/detectors/geoipifi/geoipifi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipifi"}) + `\b([a-z0-9A-Z_]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/getemail/getemail.go b/pkg/detectors/getemail/getemail.goindex d63202fa2..dbe3626a5 100644--- a/pkg/detectors/getemail/getemail.go+++ b/pkg/detectors/getemail/getemail.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClientTimeOut(5)- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getemail"}) + `\b([a-zA-Z0-9-]{20})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = true}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/getemails/getemails.go b/pkg/detectors/getemails/getemails.goindex d753b9c6e..5b49f7e56 100644--- a/pkg/detectors/getemails/getemails.go+++ b/pkg/detectors/getemails/getemails.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getemails"}) + `\b([a-z0-9-]{26})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getemails"}) + `\b([a-z0-9-]{18})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/getgeoapi/getgeoapi.go b/pkg/detectors/getgeoapi/getgeoapi.goindex dae3c93af..858469ede 100644--- a/pkg/detectors/getgeoapi/getgeoapi.go+++ b/pkg/detectors/getgeoapi/getgeoapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getgeoapi"}) + `\b([0-9a-z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/getgist/getgist.go b/pkg/detectors/getgist/getgist.goindex 8cf3e6a0d..dd1f34082 100644--- a/pkg/detectors/getgist/getgist.go+++ b/pkg/detectors/getgist/getgist.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getgist"}) + `\b([a-z0-9A-Z+=]{68})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/getsandbox/getsandbox.go b/pkg/detectors/getsandbox/getsandbox.goindex fbc57613b..ecb2cb1ca 100644--- a/pkg/detectors/getsandbox/getsandbox.go+++ b/pkg/detectors/getsandbox/getsandbox.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getsandbox"}) + `\b([a-z0-9-]{40})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"getsandbox"}) + `\b([a-z0-9-]{15,30})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/github/github.go b/pkg/detectors/github/github.goindex 6616d8e31..7dca88437 100644--- a/pkg/detectors/github/github.go+++ b/pkg/detectors/github/github.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/github_old/github_old.go b/pkg/detectors/github_old/github_old.goindex 64b95df03..14582be46 100644--- a/pkg/detectors/github_old/github_old.go+++ b/pkg/detectors/github_old/github_old.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/githubapp/githubapp.go b/pkg/detectors/githubapp/githubapp.goindex a2d56949b..088a8582f 100644--- a/pkg/detectors/githubapp/githubapp.go+++ b/pkg/detectors/githubapp/githubapp.go@@ -18,13 +18,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.appPat = regexp.MustCompile(detectors.PrefixRegex([]string{"github"}) + `\b([0-9]{6})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"github"}) + `(-----BEGIN RSA PRIVATE KEY-----\s[A-Za-z0-9+\/\s]*\s-----END RSA PRIVATE KEY-----)`)diff --git a/pkg/detectors/gitlab/gitlab.go b/pkg/detectors/gitlab/gitlab.goindex 3221b831c..d1b60de59 100644--- a/pkg/detectors/gitlab/gitlab.go+++ b/pkg/detectors/gitlab/gitlab.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/gitlabv2/gitlab.go b/pkg/detectors/gitlabv2/gitlab.goindex 2e811fa96..e373552ed 100644--- a/pkg/detectors/gitlabv2/gitlab.go+++ b/pkg/detectors/gitlabv2/gitlab.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/gitter/gitter.go b/pkg/detectors/gitter/gitter.goindex b038c76ab..342b09dd0 100644--- a/pkg/detectors/gitter/gitter.go+++ b/pkg/detectors/gitter/gitter.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gitter"}) + `\b([a-z0-9-]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/glassnode/glassnode.go b/pkg/detectors/glassnode/glassnode.goindex 59f810a14..9c2cffd3f 100644--- a/pkg/detectors/glassnode/glassnode.go+++ b/pkg/detectors/glassnode/glassnode.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"glassnode"}) + `\b([0-9A-Za-z]{27})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/glitterlyapi/glitterlyapi.go b/pkg/detectors/glitterlyapi/glitterlyapi.goindex c51cb5378..ac4d5f458 100644--- a/pkg/detectors/glitterlyapi/glitterlyapi.go+++ b/pkg/detectors/glitterlyapi/glitterlyapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"glitterlyapi"}) + `\b([0-9a-z-]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/gocanvas/gocanvas.go b/pkg/detectors/gocanvas/gocanvas.goindex b2adc568b..9d6411f7e 100644--- a/pkg/detectors/gocanvas/gocanvas.go+++ b/pkg/detectors/gocanvas/gocanvas.go@@ -17,13 +17,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gocanvas"}) + `\b([0-9A-Za-z/+]{43}=[ \r\n]{1})`)emailPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gocanvas"}) + `\b([\w\.-]+@[\w-]+\.[\w\.-]{2,5})\b`))@@ -81,7 +81,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && response.Error == nil {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/gocardless/gocardless.go b/pkg/detectors/gocardless/gocardless.goindex 40032fd51..56e39ea47 100644--- a/pkg/detectors/gocardless/gocardless.go+++ b/pkg/detectors/gocardless/gocardless.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.//Removed bounds at the end of the regex since there are some cases that the token ends with an underscore (_) or a dash (-)keyPat = regexp.MustCompile(`\b(live_[0-9A-Za-z\_\-]{40}[ "'\r\n]{1})`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/goodday/goodday.go b/pkg/detectors/goodday/goodday.goindex 4cfe0d435..1e711210c 100644--- a/pkg/detectors/goodday/goodday.go+++ b/pkg/detectors/goodday/goodday.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"goodday"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/graphcms/graphcms.go b/pkg/detectors/graphcms/graphcms.goindex d72020389..5e08fd88d 100644--- a/pkg/detectors/graphcms/graphcms.go+++ b/pkg/detectors/graphcms/graphcms.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(ey[a-zA-Z0-9]{73}.ey[a-zA-Z0-9]{365}.[a-zA-Z0-9_-]{683})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"graph"}) + `\b([a-z0-9]{25})\b`))diff --git a/pkg/detectors/graphhopper/graphhopper.go b/pkg/detectors/graphhopper/graphhopper.goindex b726ba02b..04b51ef85 100644--- a/pkg/detectors/graphhopper/graphhopper.go+++ b/pkg/detectors/graphhopper/graphhopper.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"graphhopper"}) + `\b([a-z0-9-]{36})\b`))@@ -54,7 +54,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/groovehq/groovehq.go b/pkg/detectors/groovehq/groovehq.goindex 60fde9ee2..a428c2f02 100644--- a/pkg/detectors/groovehq/groovehq.go+++ b/pkg/detectors/groovehq/groovehq.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"groove"}) + `\b([a-z0-9A-Z]{64})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/guardianapi/guardianapi.go b/pkg/detectors/guardianapi/guardianapi.goindex 839ca446f..d0a5373e0 100644--- a/pkg/detectors/guardianapi/guardianapi.go+++ b/pkg/detectors/guardianapi/guardianapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b([0-9Aa-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/gumroad/gumroad.go b/pkg/detectors/gumroad/gumroad.goindex d3fb6398a..4ded29079 100644--- a/pkg/detectors/gumroad/gumroad.go+++ b/pkg/detectors/gumroad/gumroad.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gumroad"}) + `\b([a-z0-9A-Z-]{43})\b`))@@ -45,7 +45,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultDetectorType: detectorspb.DetectorType_Gumroad,Raw: []byte(resMatch),}- payload := strings.NewReader("access_token="+resMatch)+ payload := strings.NewReader("access_token=" + resMatch)if verify {req, err := http.NewRequestWithContext(ctx, "GET", "https://api.gumroad.com/v2/products", payload)if err != nil {@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/guru/guru.go b/pkg/detectors/guru/guru.goindex db26772be..06b1f12fd 100644--- a/pkg/detectors/guru/guru.go+++ b/pkg/detectors/guru/guru.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.unamePat = regexp.MustCompile(detectors.PrefixRegex([]string{"guru"}) + `\b([a-zA-Z0-9]{3,20}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,5})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"guru"}) + `\b([a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(keyMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/gyazo/gyazo.go b/pkg/detectors/gyazo/gyazo.goindex f97a33b56..25b2bdb1f 100644--- a/pkg/detectors/gyazo/gyazo.go+++ b/pkg/detectors/gyazo/gyazo.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"gyazo"}) + `\b([0-9A-Za-z-]{43})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/happi/happi.go b/pkg/detectors/happi/happi.goindex 3c21b0090..2d1add0f9 100644--- a/pkg/detectors/happi/happi.go+++ b/pkg/detectors/happi/happi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"happi"}) + `\b([a-zA-Z0-9]{56})`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/happyscribe/happyscribe.go b/pkg/detectors/happyscribe/happyscribe.goindex 3c6f0b8c2..98420cab8 100644--- a/pkg/detectors/happyscribe/happyscribe.go+++ b/pkg/detectors/happyscribe/happyscribe.go@@ -14,12 +14,12 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"happyscribe"}) + `\b([0-9a-zA-Z]{24})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/harvest/harvest.go b/pkg/detectors/harvest/harvest.goindex 6be607677..91d66bde9 100644--- a/pkg/detectors/harvest/harvest.go+++ b/pkg/detectors/harvest/harvest.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"harvest"}) + `\b([a-z0-9A-Z._]{97})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"harvest"}) + `\b([0-9]{4,9})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/hellosign/hellosign.go b/pkg/detectors/hellosign/hellosign.goindex 2cc9d2937..fb28f86c9 100644--- a/pkg/detectors/hellosign/hellosign.go+++ b/pkg/detectors/hellosign/hellosign.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hellosign"}) + `\b([a-zA-Z-0-9/+]{64})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/helpcrunch/helpcrunch.go b/pkg/detectors/helpcrunch/helpcrunch.goindex 33f25f5f6..22b95a0b1 100644--- a/pkg/detectors/helpcrunch/helpcrunch.go+++ b/pkg/detectors/helpcrunch/helpcrunch.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"helpcrunch"}) + `\b([a-zA-Z-0-9+/=]{328})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/helpscout/helpscout.go b/pkg/detectors/helpscout/helpscout.goindex c05744bb0..1b5b29f24 100644--- a/pkg/detectors/helpscout/helpscout.go+++ b/pkg/detectors/helpscout/helpscout.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"helpscout"}) + `\b([A-Za-z0-9]{56})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/hereapi/hereapi.go b/pkg/detectors/hereapi/hereapi.goindex 8dd9c6ab3..853fa4344 100644--- a/pkg/detectors/hereapi/hereapi.go+++ b/pkg/detectors/hereapi/hereapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hereapi"}) + `\b([a-zA-Z0-9\S]{43})\b`))@@ -56,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/heroku/heroku.go b/pkg/detectors/heroku/heroku.goindex 97dbaa27e..c4be7d0be 100644--- a/pkg/detectors/heroku/heroku.go+++ b/pkg/detectors/heroku/heroku.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"heroku"}) + `\b([0-9Aa-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/hive/hive.go b/pkg/detectors/hive/hive.goindex 1c59c8d71..a71406f9d 100644--- a/pkg/detectors/hive/hive.go+++ b/pkg/detectors/hive/hive.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hive"}) + `\b([0-9A-Za-z]{17})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hive"}) + `\b([0-9a-z]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(keyMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/hiveage/hiveage.go b/pkg/detectors/hiveage/hiveage.goindex 8433fb720..611ac72ea 100644--- a/pkg/detectors/hiveage/hiveage.go+++ b/pkg/detectors/hiveage/hiveage.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hiveage"}) + `\b([0-9A-Za-z\_\-]{20})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/holidayapi/holidayapi.go b/pkg/detectors/holidayapi/holidayapi.goindex 06162aba2..2fbece910 100644--- a/pkg/detectors/holidayapi/holidayapi.go+++ b/pkg/detectors/holidayapi/holidayapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"holidayapi"}) + `\b([a-z0-9-]{36})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/host/host.go b/pkg/detectors/host/host.goindex 9b66348d4..418859c4a 100644--- a/pkg/detectors/host/host.go+++ b/pkg/detectors/host/host.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"host"}) + `\b([a-z0-9]{14})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/html2pdf/html2pdf.go b/pkg/detectors/html2pdf/html2pdf.goindex 4f96cfa01..42656b90e 100644--- a/pkg/detectors/html2pdf/html2pdf.go+++ b/pkg/detectors/html2pdf/html2pdf.go@@ -19,11 +19,11 @@ type html2pdfRequest struct {ApiKey string `json:"apiKey"`}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"html2pdf"}) + `\b([a-zA-Z0-9]{64})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/hubspotapikey/hubspotapikey.go b/pkg/detectors/hubspotapikey/hubspotapikey.goindex d91f4245c..a6fefc046 100644--- a/pkg/detectors/hubspotapikey/hubspotapikey.go+++ b/pkg/detectors/hubspotapikey/hubspotapikey.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/humanity/humanity.go b/pkg/detectors/humanity/humanity.goindex 9b74dfd70..ceeedb722 100644--- a/pkg/detectors/humanity/humanity.go+++ b/pkg/detectors/humanity/humanity.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"humanity"}) + `\b([0-9a-z]{40})\b`))diff --git a/pkg/detectors/hunter/hunter.go b/pkg/detectors/hunter/hunter.goindex b971f6749..ad61c070e 100644--- a/pkg/detectors/hunter/hunter.go+++ b/pkg/detectors/hunter/hunter.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/hybiscus/hybiscus.go b/pkg/detectors/hybiscus/hybiscus.goindex 83f401c96..7accbd52b 100644--- a/pkg/detectors/hybiscus/hybiscus.go+++ b/pkg/detectors/hybiscus/hybiscus.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hybiscus"}) + `\b([0-9a-zA-Z]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/hypertrack/hypertrack.go b/pkg/detectors/hypertrack/hypertrack.goindex 8464d63e9..849725faa 100644--- a/pkg/detectors/hypertrack/hypertrack.go+++ b/pkg/detectors/hypertrack/hypertrack.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives'+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.'accPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hypertrack"}) + `\b([0-9a-zA-Z\_\-]{27})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"hypertrack"}) + `\b([0-9a-zA-Z\_\-]{54})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.goindex cfbad1bee..9269604f4 100644--- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go+++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ibm"}) + `\b([A-Za-z0-9_-]{44})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/iconfinder/iconfinder.go b/pkg/detectors/iconfinder/iconfinder.goindex 36f8b6c22..c94241156 100644--- a/pkg/detectors/iconfinder/iconfinder.go+++ b/pkg/detectors/iconfinder/iconfinder.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"iconfinder"}) + `\b([a-zA-Z0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/iexapis/iexapis.go b/pkg/detectors/iexapis/iexapis.goindex 3d3b5b568..36a7364f9 100644--- a/pkg/detectors/iexapis/iexapis.go+++ b/pkg/detectors/iexapis/iexapis.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"iexapis"}) + `\b(sk_[a-z0-9]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/iexcloud/iexcloud.go b/pkg/detectors/iexcloud/iexcloud.goindex 4e8048677..db8465cd2 100644--- a/pkg/detectors/iexcloud/iexcloud.go+++ b/pkg/detectors/iexcloud/iexcloud.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"iexcloud"}) + `\b([a-z0-9_]{35})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/image4/image4.go b/pkg/detectors/image4/image4.goindex 72352cc60..613695231 100644--- a/pkg/detectors/image4/image4.go+++ b/pkg/detectors/image4/image4.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"image4"}) + `\b([0-9a-zA-Z]{22}[0-9a-zA-Z\=]{2})`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/imagekit/imagekit.go b/pkg/detectors/imagekit/imagekit.goindex 9c267fb52..048e44332 100644--- a/pkg/detectors/imagekit/imagekit.go+++ b/pkg/detectors/imagekit/imagekit.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"imagekit"}) + `\b([a-zA-Z0-9_=]{36})`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/imagga/imagga.go b/pkg/detectors/imagga/imagga.goindex 7b91ffdc0..9a0a828d5 100644--- a/pkg/detectors/imagga/imagga.go+++ b/pkg/detectors/imagga/imagga.go@@ -14,12 +14,12 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"imagga"}) + `\b([a-z0-9A-Z=]{72})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/impala/impala.go b/pkg/detectors/impala/impala.goindex 21d310f1c..214dc090f 100644--- a/pkg/detectors/impala/impala.go+++ b/pkg/detectors/impala/impala.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"impala"}) + `\b([0-9A-Za-z_]{46})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/insightly/insightly.go b/pkg/detectors/insightly/insightly.goindex 7002ea581..06729399a 100644--- a/pkg/detectors/insightly/insightly.go+++ b/pkg/detectors/insightly/insightly.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"insightly"}) + `\b([a-z0-9-]{36})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/integromat/integromat.go b/pkg/detectors/integromat/integromat.goindex b31980709..ea8d310d9 100644--- a/pkg/detectors/integromat/integromat.go+++ b/pkg/detectors/integromat/integromat.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"integromat"}) + `\b([a-z0-9-]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/intercom/intercom.go b/pkg/detectors/intercom/intercom.goindex d2d49df0c..05a2759ee 100644--- a/pkg/detectors/intercom/intercom.go+++ b/pkg/detectors/intercom/intercom.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"intercom"}) + `\b([a-zA-Z0-9\W\S]{59}\=)`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/intrinio/intrinio.go b/pkg/detectors/intrinio/intrinio.goindex 444430459..7fbf23ec1 100644--- a/pkg/detectors/intrinio/intrinio.go+++ b/pkg/detectors/intrinio/intrinio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"intrinio"}) + `\b([a-zA-Z0-9]{44})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/invoiceocean/invoiceocean.go b/pkg/detectors/invoiceocean/invoiceocean.goindex 4064190fc..cc4e4e1b3 100644--- a/pkg/detectors/invoiceocean/invoiceocean.go+++ b/pkg/detectors/invoiceocean/invoiceocean.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"invoiceocean"}) + `\b([0-9A-Za-z]{20})\b`)urlPat = regexp.MustCompile(`\b([0-9a-z]{1,}\.invoiceocean\.com)\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ipapi/ipapi.go b/pkg/detectors/ipapi/ipapi.goindex 77e38ad47..5749b31e2 100644--- a/pkg/detectors/ipapi/ipapi.go+++ b/pkg/detectors/ipapi/ipapi.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipapi"}) + `\b([a-z0-9]{32})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ipgeolocation/ipgeolocation.go b/pkg/detectors/ipgeolocation/ipgeolocation.goindex df6ab5df7..7d9b233bc 100644--- a/pkg/detectors/ipgeolocation/ipgeolocation.go+++ b/pkg/detectors/ipgeolocation/ipgeolocation.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipgeolocation"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ipify/ipify.go b/pkg/detectors/ipify/ipify.goindex 568f4432a..62afb12b0 100644--- a/pkg/detectors/ipify/ipify.go+++ b/pkg/detectors/ipify/ipify.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipify"}) + `\b([a-zA-Z0-9_-]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ipinfodb/ipinfodb.go b/pkg/detectors/ipinfodb/ipinfodb.goindex 46667ed56..ab68a2130 100644--- a/pkg/detectors/ipinfodb/ipinfodb.go+++ b/pkg/detectors/ipinfodb/ipinfodb.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipinfodb"}) + `\b([a-z0-9]{64})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ipquality/ipquality.go b/pkg/detectors/ipquality/ipquality.goindex 4207c68b1..6535c604f 100644--- a/pkg/detectors/ipquality/ipquality.go+++ b/pkg/detectors/ipquality/ipquality.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipquality"}) + `\b([0-9a-z]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) && validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ipstack/ipstack.go b/pkg/detectors/ipstack/ipstack.goindex 951d623d0..3f62889ec 100644--- a/pkg/detectors/ipstack/ipstack.go+++ b/pkg/detectors/ipstack/ipstack.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ipstack"}) + `\b([a-fA-f0-9]{32})\b`))diff --git a/pkg/detectors/jdbc/jdbc.go b/pkg/detectors/jdbc/jdbc.goindex 529f27d01..83b0c32a9 100644--- a/pkg/detectors/jdbc/jdbc.go+++ b/pkg/detectors/jdbc/jdbc.go@@ -11,7 +11,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/jiratoken/jiratoken.go b/pkg/detectors/jiratoken/jiratoken.goindex 2023568ba..e62219ff8 100644--- a/pkg/detectors/jiratoken/jiratoken.go+++ b/pkg/detectors/jiratoken/jiratoken.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.tokenPat = regexp.MustCompile(detectors.PrefixRegex([]string{"jira"}) + `\b([a-zA-Z-0-9]{24})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"jira"}) + `\b([a-zA-Z-0-9]{5,24}\.[a-zA-Z-0-9]{3,16}\.[a-zA-Z-0-9]{3,16})\b`)emailPat = regexp.MustCompile(detectors.PrefixRegex([]string{"jira"}) + `\b([a-zA-Z-0-9]{5,24}\@[a-zA-Z-0-9]{3,16}\.com)\b`)diff --git a/pkg/detectors/jotform/jotform.go b/pkg/detectors/jotform/jotform.goindex 8991aed6f..b7991a9de 100644--- a/pkg/detectors/jotform/jotform.go+++ b/pkg/detectors/jotform/jotform.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"jotform"}) + `\b([0-9Aa-z]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/jumpcloud/jumpcloud.go b/pkg/detectors/jumpcloud/jumpcloud.goindex b485a36d2..5eb2edf79 100644--- a/pkg/detectors/jumpcloud/jumpcloud.go+++ b/pkg/detectors/jumpcloud/jumpcloud.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"jumpcloud"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/juro/juro.go b/pkg/detectors/juro/juro.goindex c6877d047..be3a899fd 100644--- a/pkg/detectors/juro/juro.go+++ b/pkg/detectors/juro/juro.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"juro"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/kanban/kanban.go b/pkg/detectors/kanban/kanban.goindex 94c514b92..d99b20e60 100644--- a/pkg/detectors/kanban/kanban.go+++ b/pkg/detectors/kanban/kanban.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kanban"}) + `\b([0-9A-Z]{12})\b`)urlPat = regexp.MustCompile(`\b([0-9a-z]{1,}.kanbantool.com)\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/karmacrm/karmacrm.go b/pkg/detectors/karmacrm/karmacrm.goindex 4089d531f..cd2901e03 100644--- a/pkg/detectors/karmacrm/karmacrm.go+++ b/pkg/detectors/karmacrm/karmacrm.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"karma"}) + `\b([a-zA-Z0-9]{20})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/keenio/keenio.go b/pkg/detectors/keenio/keenio.goindex 3744a77ee..409599ea4 100644--- a/pkg/detectors/keenio/keenio.go+++ b/pkg/detectors/keenio/keenio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"keen"}) + `\b([0-9A-Z]{64})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"keen"}) + `\b([0-9a-z]{24})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/kickbox/kickbox.go b/pkg/detectors/kickbox/kickbox.goindex d318f2515..6ecd9dfdb 100644--- a/pkg/detectors/kickbox/kickbox.go+++ b/pkg/detectors/kickbox/kickbox.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kickbox"}) + `\b([a-zA-Z0-9_]+[a-zA-Z0-9]{64})\b`))diff --git a/pkg/detectors/klipfolio/klipfolio.go b/pkg/detectors/klipfolio/klipfolio.goindex 32a3ca8eb..fc941ed69 100644--- a/pkg/detectors/klipfolio/klipfolio.go+++ b/pkg/detectors/klipfolio/klipfolio.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"klipfolio"}) + `\b([0-9a-f]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/knapsackpro/knapsackpro.go b/pkg/detectors/knapsackpro/knapsackpro.goindex 8448839fd..07cf6adbb 100644--- a/pkg/detectors/knapsackpro/knapsackpro.go+++ b/pkg/detectors/knapsackpro/knapsackpro.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"knapsackpro"}) + `\b([0-9a-z]{32})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/kontent/kontent.go b/pkg/detectors/kontent/kontent.goindex baf90799b..085e74e65 100644--- a/pkg/detectors/kontent/kontent.go+++ b/pkg/detectors/kontent/kontent.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kontent"}) + `\b([a-z0-9-]{36})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/kraken/kraken.go b/pkg/detectors/kraken/kraken.goindex e68c14b58..8b625f4c8 100644--- a/pkg/detectors/kraken/kraken.go+++ b/pkg/detectors/kraken/kraken.go@@ -22,13 +22,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.//Bounds have been removed because there are some cases that tokens have trailing frontslash(/) or plus sign (+)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kraken"}) + `\b([0-9A-Za-z\/\+=]{56}[ "'\r\n]{1})`)privKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kraken"}) + `\b([0-9A-Za-z\/\+=]{86,88}[ "'\r\n]{1})`)diff --git a/pkg/detectors/kucoin/kucoin.go b/pkg/detectors/kucoin/kucoin.goindex 591f90133..79574a486 100644--- a/pkg/detectors/kucoin/kucoin.go+++ b/pkg/detectors/kucoin/kucoin.go@@ -18,13 +18,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kucoin"}) + `\b([0-9a-f]{24})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kucoin"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`)passphrasePat = regexp.MustCompile(detectors.PrefixRegex([]string{"kucoin"}) + `([ \r\n]{1}[!-~]{7,32}[ \r\n]{1})`)@@ -94,7 +94,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resKeyMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/kylas/kylas.go b/pkg/detectors/kylas/kylas.goindex a9c246b37..80addd612 100644--- a/pkg/detectors/kylas/kylas.go+++ b/pkg/detectors/kylas/kylas.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"kylas"}) + `\b([a-z0-9-]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/languagelayer/languagelayer.go b/pkg/detectors/languagelayer/languagelayer.goindex 8a9becb8b..fa38f9ef1 100644--- a/pkg/detectors/languagelayer/languagelayer.go+++ b/pkg/detectors/languagelayer/languagelayer.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"languagelayer"}) + `\b([a-z0-9]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/lastfm/lastfm.go b/pkg/detectors/lastfm/lastfm.goindex b0668290d..ae6a98b9d 100644--- a/pkg/detectors/lastfm/lastfm.go+++ b/pkg/detectors/lastfm/lastfm.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lastfm"}) + `\b([0-9a-z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/launchdarkly/launchdarkly.go b/pkg/detectors/launchdarkly/launchdarkly.goindex 307b9e9be..5a03538bc 100644--- a/pkg/detectors/launchdarkly/launchdarkly.go+++ b/pkg/detectors/launchdarkly/launchdarkly.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"launchdarkly"}) + `\b([a-z0-9-]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/leadfeeder/leadfeeder.go b/pkg/detectors/leadfeeder/leadfeeder.goindex 862b5aafc..f3db19929 100644--- a/pkg/detectors/leadfeeder/leadfeeder.go+++ b/pkg/detectors/leadfeeder/leadfeeder.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"leadfeeder"}) + `\b([a-zA-Z0-9-]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/lendflow/lendflow.go b/pkg/detectors/lendflow/lendflow.goindex 08d844ce6..8133ddbfb 100644--- a/pkg/detectors/lendflow/lendflow.go+++ b/pkg/detectors/lendflow/lendflow.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lendflow"}) + `\b([a-zA-Z0-9]{36}\.[a-zA-Z0-9]{235}\.[a-zA-Z0-9]{32}\-[a-zA-Z0-9]{47}\-[a-zA-Z0-9_]{162}\-[a-zA-Z0-9]{42}\-[a-zA-Z0-9_]{40}\-[a-zA-Z0-9_]{66}\-[a-zA-Z0-9_]{59}\-[a-zA-Z0-9]{7}\-[a-zA-Z0-9_]{220})\b`))diff --git a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.goindex 5132f088a..d57c5b4f3 100644--- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go+++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"less"}) + `\b([a-zA-Z0-9-]{57})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/lexigram/lexigram.go b/pkg/detectors/lexigram/lexigram.goindex 032498bfd..9fb192bb6 100644--- a/pkg/detectors/lexigram/lexigram.go+++ b/pkg/detectors/lexigram/lexigram.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lexigram"}) + `\b([a-zA-Z0-9\S]{301})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/linearapi/linearapi.go b/pkg/detectors/linearapi/linearapi.goindex 820ff9741..36022b642 100644--- a/pkg/detectors/linearapi/linearapi.go+++ b/pkg/detectors/linearapi/linearapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(lin_api_[0-9A-Za-z]{40})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(body, `"data":`) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/linemessaging/linemessaging.go b/pkg/detectors/linemessaging/linemessaging.goindex e53f5891c..30464fe2b 100644--- a/pkg/detectors/linemessaging/linemessaging.go+++ b/pkg/detectors/linemessaging/linemessaging.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"line"}) + `\b([A-Za-z0-9+/]{171,172})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/linenotify/linenotify.go b/pkg/detectors/linenotify/linenotify.goindex 6c7f52d42..837e279fb 100644--- a/pkg/detectors/linenotify/linenotify.go+++ b/pkg/detectors/linenotify/linenotify.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"linenotify"}) + `\b([0-9A-Za-z]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/linkpreview/linkpreview.go b/pkg/detectors/linkpreview/linkpreview.goindex b84879da4..6337a0d17 100644--- a/pkg/detectors/linkpreview/linkpreview.go+++ b/pkg/detectors/linkpreview/linkpreview.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"linkpreview"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -56,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/liveagent/liveagent.go b/pkg/detectors/liveagent/liveagent.goindex 25159f887..43a3c34b3 100644--- a/pkg/detectors/liveagent/liveagent.go+++ b/pkg/detectors/liveagent/liveagent.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"liveagent"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/livestorm/livestorm.go b/pkg/detectors/livestorm/livestorm.goindex 4b39090fe..047e7b6e2 100644--- a/pkg/detectors/livestorm/livestorm.go+++ b/pkg/detectors/livestorm/livestorm.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"livestorm"}) + `\b(eyJhbGciOiJIUzI1NiJ9\.eyJhdWQiOiJhcGkubGl2ZXN0b3JtLmNvIiwianRpIjoi[0-9A-Z-a-z]{134}\.[0-9A-Za-z\-\_]{43}[ \r\n]{1})`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/loadmill/loadmill.go b/pkg/detectors/loadmill/loadmill.goindex fc96f6f4d..ec0057836 100644--- a/pkg/detectors/loadmill/loadmill.go+++ b/pkg/detectors/loadmill/loadmill.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"loadmill"}) + `\b([0-9a-zA-Z]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/lob/lob.go b/pkg/detectors/lob/lob.goindex fd1fdaf2d..1400b4db8 100644--- a/pkg/detectors/lob/lob.go+++ b/pkg/detectors/lob/lob.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lob"}) + `\b([a-zA-Z0-9_]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/locationiq/locationiq.go b/pkg/detectors/locationiq/locationiq.goindex ca7cdc12e..d0627a4b1 100644--- a/pkg/detectors/locationiq/locationiq.go+++ b/pkg/detectors/locationiq/locationiq.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(pk\.[a-zA-Z-0-9]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/loginradius/loginradius.go b/pkg/detectors/loginradius/loginradius.goindex eb7f645ce..517fd4141 100644--- a/pkg/detectors/loginradius/loginradius.go+++ b/pkg/detectors/loginradius/loginradius.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"loginradius"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/lokalisetoken/lokalisetoken.go b/pkg/detectors/lokalisetoken/lokalisetoken.goindex 92c34c64e..199e42196 100644--- a/pkg/detectors/lokalisetoken/lokalisetoken.go+++ b/pkg/detectors/lokalisetoken/lokalisetoken.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lokalise"}) + `\b([a-z0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/loyverse/loyverse.go b/pkg/detectors/loyverse/loyverse.goindex 6c9809494..4b9a4f95c 100644--- a/pkg/detectors/loyverse/loyverse.go+++ b/pkg/detectors/loyverse/loyverse.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"loyverse"}) + `\b([0-9-a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/lunchmoney/lunchmoney.go b/pkg/detectors/lunchmoney/lunchmoney.goindex 2fc70dcf0..ae5b915c2 100644--- a/pkg/detectors/lunchmoney/lunchmoney.go+++ b/pkg/detectors/lunchmoney/lunchmoney.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"lunchmoney"}) + `\b([a-f0-9]{50})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/luno/luno.go b/pkg/detectors/luno/luno.goindex a6002d2a1..6d5ceb6a9 100644--- a/pkg/detectors/luno/luno.go+++ b/pkg/detectors/luno/luno.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"luno"}) + `\b([a-zA-Z0-9_-]{43})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"luno"}) + `\b([a-z0-9]{13})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/m3o/m3o.go b/pkg/detectors/m3o/m3o.goindex 324f65c19..10806f642 100644--- a/pkg/detectors/m3o/m3o.go+++ b/pkg/detectors/m3o/m3o.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"m3o"}) + `\b([0-9A-Za-z]{48})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/macaddress/macaddress.go b/pkg/detectors/macaddress/macaddress.goindex b63e33bdb..2dac49a87 100644--- a/pkg/detectors/macaddress/macaddress.go+++ b/pkg/detectors/macaddress/macaddress.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"macaddress"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/madkudu/madkudu.go b/pkg/detectors/madkudu/madkudu.goindex 0aec2147d..e8abc0306 100644--- a/pkg/detectors/madkudu/madkudu.go+++ b/pkg/detectors/madkudu/madkudu.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"madkudu"}) + `\b([0-9a-f]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/magicbell/magicbell.go b/pkg/detectors/magicbell/magicbell.goindex 0629e8689..70e785e97 100644--- a/pkg/detectors/magicbell/magicbell.go+++ b/pkg/detectors/magicbell/magicbell.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"magicbell"}) + `\b([a-zA-Z-0-9]{40})\b`)emailPat = regexp.MustCompile(`\b([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(apiKeyRes, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/magnetic/magnetic.go b/pkg/detectors/magnetic/magnetic.goindex 010d76cab..a5b746626 100644--- a/pkg/detectors/magnetic/magnetic.go+++ b/pkg/detectors/magnetic/magnetic.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"magnetic"}) + `\b([0-9Aa-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mailboxlayer/mailboxlayer.go b/pkg/detectors/mailboxlayer/mailboxlayer.goindex ba14d314f..d7b8800f8 100644--- a/pkg/detectors/mailboxlayer/mailboxlayer.go+++ b/pkg/detectors/mailboxlayer/mailboxlayer.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mailboxlayer"}) + `\b([a-z0-9]{32})\b`))diff --git a/pkg/detectors/mailchimp/mailchimp.go b/pkg/detectors/mailchimp/mailchimp.goindex f344cd4f0..423d3ecf0 100644--- a/pkg/detectors/mailchimp/mailchimp.go+++ b/pkg/detectors/mailchimp/mailchimp.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/mailerlite/mailerlite.go b/pkg/detectors/mailerlite/mailerlite.goindex 899413aa9..1cd0d12d6 100644--- a/pkg/detectors/mailerlite/mailerlite.go+++ b/pkg/detectors/mailerlite/mailerlite.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mailerlite"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mailgun/mailgun.go b/pkg/detectors/mailgun/mailgun.goindex 240c7b607..e6f615822 100644--- a/pkg/detectors/mailgun/mailgun.go+++ b/pkg/detectors/mailgun/mailgun.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.goindex 67abac8d2..7cad082dd 100644--- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go+++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/mailjetsms/mailjetsms.go b/pkg/detectors/mailjetsms/mailjetsms.goindex 6b3b1f9d2..d47cd8d82 100644--- a/pkg/detectors/mailjetsms/mailjetsms.go+++ b/pkg/detectors/mailjetsms/mailjetsms.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/mailmodo/mailmodo.go b/pkg/detectors/mailmodo/mailmodo.goindex b3baab4b0..aa2c301df 100644--- a/pkg/detectors/mailmodo/mailmodo.go+++ b/pkg/detectors/mailmodo/mailmodo.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mailmodo"}) + `\b([A-Z0-9]{7}-[A-Z0-9]{7}-[A-Z0-9]{7}-[A-Z0-9]{7})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mailsac/mailsac.go b/pkg/detectors/mailsac/mailsac.goindex 17480aa14..2106fdc66 100644--- a/pkg/detectors/mailsac/mailsac.go+++ b/pkg/detectors/mailsac/mailsac.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mailsac"}) + `\b(k_[0-9A-Za-z]{36,})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mandrill/mandrill.go b/pkg/detectors/mandrill/mandrill.goindex d7f6d65cc..8c597ee4b 100644--- a/pkg/detectors/mandrill/mandrill.go+++ b/pkg/detectors/mandrill/mandrill.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mandrill"}) + `\b([A-Za-z0-9_-]{22})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/manifest/manifest.go b/pkg/detectors/manifest/manifest.goindex 39358b946..97c8acc49 100644--- a/pkg/detectors/manifest/manifest.go+++ b/pkg/detectors/manifest/manifest.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"manifest"}) + `\b([a-zA-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mapbox/mapbox.go b/pkg/detectors/mapbox/mapbox.goindex 6195b2423..11b09a9ea 100644--- a/pkg/detectors/mapbox/mapbox.go+++ b/pkg/detectors/mapbox/mapbox.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/mapquest/mapquest.go b/pkg/detectors/mapquest/mapquest.goindex 913d95b3a..92a309d78 100644--- a/pkg/detectors/mapquest/mapquest.go+++ b/pkg/detectors/mapquest/mapquest.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mapquest"}) + `\b([0-9A-Za-z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/marketstack/marketstack.go b/pkg/detectors/marketstack/marketstack.goindex 03e0ddbc3..e3120e020 100644--- a/pkg/detectors/marketstack/marketstack.go+++ b/pkg/detectors/marketstack/marketstack.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"marketstack"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.goindex 780e13d64..1e6d05a77 100644--- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go+++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mattermost"}) + `\b([a-z0-9]{26})\b`)serverPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mattermost"}) + `\b([A-Za-z0-9-_]{1,}.cloud.mattermost.com)\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mavenlink/mavenlink.go b/pkg/detectors/mavenlink/mavenlink.goindex 2ca5f4eef..84c90ba88 100644--- a/pkg/detectors/mavenlink/mavenlink.go+++ b/pkg/detectors/mavenlink/mavenlink.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mavenlink"}) + `\b([0-9a-z]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/maxmindlicense/maxmindlicense.go b/pkg/detectors/maxmindlicense/maxmindlicense.goindex c750d3f25..8650d55a3 100644--- a/pkg/detectors/maxmindlicense/maxmindlicense.go+++ b/pkg/detectors/maxmindlicense/maxmindlicense.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/meaningcloud/meaningcloud.go b/pkg/detectors/meaningcloud/meaningcloud.goindex 3aadae691..86170ae6a 100644--- a/pkg/detectors/meaningcloud/meaningcloud.go+++ b/pkg/detectors/meaningcloud/meaningcloud.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"meaningcloud"}) + `\b([a-z0-9]{32})\b`))@@ -80,7 +80,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mediastack/mediastack.go b/pkg/detectors/mediastack/mediastack.goindex c0256628e..d9f90451d 100644--- a/pkg/detectors/mediastack/mediastack.go+++ b/pkg/detectors/mediastack/mediastack.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mediastack"}) + `\b([a-z0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/meistertask/meistertask.go b/pkg/detectors/meistertask/meistertask.goindex 3d10d8b54..9a545f5d0 100644--- a/pkg/detectors/meistertask/meistertask.go+++ b/pkg/detectors/meistertask/meistertask.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"meistertask"}) + `\b([a-zA-Z0-9]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mesibo/mesibo.go b/pkg/detectors/mesibo/mesibo.goindex 7e535ec79..fdbf071af 100644--- a/pkg/detectors/mesibo/mesibo.go+++ b/pkg/detectors/mesibo/mesibo.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mesibo"}) + `\b([0-9A-Za-z]{64})\b`))diff --git a/pkg/detectors/messagebird/messagebird.go b/pkg/detectors/messagebird/messagebird.goindex 67db8ea52..b4a5ce2be 100644--- a/pkg/detectors/messagebird/messagebird.go+++ b/pkg/detectors/messagebird/messagebird.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/metaapi/metaapi.go b/pkg/detectors/metaapi/metaapi.goindex 2ac4da826..51d0975eb 100644--- a/pkg/detectors/metaapi/metaapi.go+++ b/pkg/detectors/metaapi/metaapi.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"metaapi", "meta-api"}) + `\b([0-9a-f]{64})\b`)spellPat = regexp.MustCompile(detectors.PrefixRegex([]string{"metaapi", "meta-api"}) + `\b([0-9a-f]{24})\b`))@@ -74,7 +74,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(bodyStr, `"success":true`) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/metrilo/metrilo.go b/pkg/detectors/metrilo/metrilo.goindex 7319a3cd3..abe472741 100644--- a/pkg/detectors/metrilo/metrilo.go+++ b/pkg/detectors/metrilo/metrilo.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"metrilo"}) + `\b([a-z0-9]{16})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.goindex 0eb91a9be..416b140ce 100644--- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go+++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClientTimeOut(5)- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`(https:\/\/[a-zA-Z-0-9]+\.webhook\.office\.com\/webhookb2\/[a-zA-Z-0-9]{8}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{12}\@[a-zA-Z-0-9]{8}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{12}\/IncomingWebhook\/[a-zA-Z-0-9]{32}\/[a-zA-Z-0-9]{8}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{4}-[a-zA-Z-0-9]{12})`))diff --git a/pkg/detectors/midise/midise.go b/pkg/detectors/midise/midise.goindex 9a0f3c98f..20d1a6409 100644--- a/pkg/detectors/midise/midise.go+++ b/pkg/detectors/midise/midise.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/mindmeister/mindmeister.go b/pkg/detectors/mindmeister/mindmeister.goindex 952d36ab1..80ad81944 100644--- a/pkg/detectors/mindmeister/mindmeister.go+++ b/pkg/detectors/mindmeister/mindmeister.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mindmeister"}) + `\b([a-zA-Z0-9]{43})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/miro/miro.go b/pkg/detectors/miro/miro.goindex 800f04bf0..19fed88ff 100644--- a/pkg/detectors/miro/miro.go+++ b/pkg/detectors/miro/miro.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"miro"}) + `\b([0-9a-zA-Z]{27})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mite/mite.go b/pkg/detectors/mite/mite.goindex ffec13965..d408cbd6c 100644--- a/pkg/detectors/mite/mite.go+++ b/pkg/detectors/mite/mite.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mite"}) + `\b([0-9a-z]{16})\b`)urlPat = regexp.MustCompile(`\b([0-9a-z-]{1,}.mite.yo.lk)\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mixmax/mixmax.go b/pkg/detectors/mixmax/mixmax.goindex 1f86ed91d..f4302c71a 100644--- a/pkg/detectors/mixmax/mixmax.go+++ b/pkg/detectors/mixmax/mixmax.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mixmax"}) + `\b([a-zA-Z0-9_-]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mixpanel/mixpanel.go b/pkg/detectors/mixpanel/mixpanel.goindex 83466e096..c9de0ffb1 100644--- a/pkg/detectors/mixpanel/mixpanel.go+++ b/pkg/detectors/mixpanel/mixpanel.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mixpanel"}) + `\b([a-zA-Z0-9-]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mixpanel"}) + `\b([a-zA-Z0-9.-]{30,40})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mockaroo/mockaroo.go b/pkg/detectors/mockaroo/mockaroo.goindex db45afe2a..fb7e201ba 100644--- a/pkg/detectors/mockaroo/mockaroo.go+++ b/pkg/detectors/mockaroo/mockaroo.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mockaroo"}) + `\b([0-9a-z]{8})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/moderation/moderation.go b/pkg/detectors/moderation/moderation.goindex a6752b6a9..e96683b91 100644--- a/pkg/detectors/moderation/moderation.go+++ b/pkg/detectors/moderation/moderation.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"moderation"}) + `\b([a-zA-Z0-9]{36}\.[a-zA-Z0-9]{115}\.[a-zA-Z0-9_]{43})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/monday/monday.go b/pkg/detectors/monday/monday.goindex 3232cf2d5..027b03941 100644--- a/pkg/detectors/monday/monday.go+++ b/pkg/detectors/monday/monday.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"monday"}) + `\b(ey[a-zA-Z0-9_.]{210,225})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/moonclerck/moonclerck.go b/pkg/detectors/moonclerck/moonclerck.goindex 35534d4ab..2dbbcb0bb 100644--- a/pkg/detectors/moonclerck/moonclerck.go+++ b/pkg/detectors/moonclerck/moonclerck.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"moonclerck"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/moonclerk/moonclerk.go b/pkg/detectors/moonclerk/moonclerk.goindex a19c4ff79..980b19f19 100644--- a/pkg/detectors/moonclerk/moonclerk.go+++ b/pkg/detectors/moonclerk/moonclerk.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"moonclerk"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/moosend/moosend.go b/pkg/detectors/moosend/moosend.goindex bab4f3089..c3325b89f 100644--- a/pkg/detectors/moosend/moosend.go+++ b/pkg/detectors/moosend/moosend.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"moosend"}) + `\b([0-9Aa-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))diff --git a/pkg/detectors/mrticktock/mrticktock.go b/pkg/detectors/mrticktock/mrticktock.goindex 28f3a8b36..72367e38b 100644--- a/pkg/detectors/mrticktock/mrticktock.go+++ b/pkg/detectors/mrticktock/mrticktock.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.emailPat = regexp.MustCompile(`\b([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]+)\b`)pwordPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mrticktock"}) + `\b([a-zA-Z0-9!=@#$%()_^]{1,50})`))@@ -74,7 +74,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(body, `"errors":[]`) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/mux/mux.go b/pkg/detectors/mux/mux.goindex 97de373ca..0e7fadb80 100644--- a/pkg/detectors/mux/mux.go+++ b/pkg/detectors/mux/mux.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mux"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"mux"}) + `([ \r\n]{0,1}[0-9A-Za-z\/\+]{75}[ \r\n]{1})`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/myfreshworks/myfreshworks.go b/pkg/detectors/myfreshworks/myfreshworks.goindex 37fe82e9d..1dd149d6e 100644--- a/pkg/detectors/myfreshworks/myfreshworks.go+++ b/pkg/detectors/myfreshworks/myfreshworks.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"freshworks"}) + `\b([a-z0-9A-Z-]{22})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"freshworks"}) + `\b([a-zA-Z0-9-_]{2,20})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/myintervals/myintervals.go b/pkg/detectors/myintervals/myintervals.goindex 25433cc46..d3d1b105e 100644--- a/pkg/detectors/myintervals/myintervals.go+++ b/pkg/detectors/myintervals/myintervals.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"myintervals"}) + `\b([0-9a-z]{11})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.goindex 7f9fb6b2e..b8e22cdb3 100644--- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go+++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nasdaq"}) + `\b([a-zA-Z0-9_-]{20})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nethunt/nethunt.go b/pkg/detectors/nethunt/nethunt.goindex 9e0daa04b..057ab3ac3 100644--- a/pkg/detectors/nethunt/nethunt.go+++ b/pkg/detectors/nethunt/nethunt.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nethunt"}) + `\b([a-z0-9-\S]{36})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nethunt"}) + `\b([a-zA-Z0-9.-@]{25,30})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/netlify/netlify.go b/pkg/detectors/netlify/netlify.goindex 2802ab7e9..7c3491c9e 100644--- a/pkg/detectors/netlify/netlify.go+++ b/pkg/detectors/netlify/netlify.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/neutrinoapi/neutrinoapi.go b/pkg/detectors/neutrinoapi/neutrinoapi.goindex ab41b6e0c..7fedd9e88 100644--- a/pkg/detectors/neutrinoapi/neutrinoapi.go+++ b/pkg/detectors/neutrinoapi/neutrinoapi.go@@ -17,13 +17,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"neutrinoapi"}) + `\b([a-zA-Z0-9]{48})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"neutrinoapi"}) + `\b([a-zA-Z0-9]{6,24})\b`))@@ -82,7 +82,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.goindex c7f8d117b..bc7bd6522 100644--- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go+++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"newrelic"}) + `\b([A-Za-z0-9_\.]{4}-[A-Za-z0-9_\.]{42})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, false) {continue}diff --git a/pkg/detectors/newsapi/newsapi.go b/pkg/detectors/newsapi/newsapi.goindex 940829013..099db602a 100644--- a/pkg/detectors/newsapi/newsapi.go+++ b/pkg/detectors/newsapi/newsapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"newsapi"}) + `\b([a-z0-9]{32})`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/newscatcher/newscatcher.go b/pkg/detectors/newscatcher/newscatcher.goindex b97d7edf3..47ebffa6a 100644--- a/pkg/detectors/newscatcher/newscatcher.go+++ b/pkg/detectors/newscatcher/newscatcher.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"newscatcher"}) + `\b([0-9A-Za-z_]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nexmoapikey/nexmoapikey.go b/pkg/detectors/nexmoapikey/nexmoapikey.goindex f783c8924..573612cf9 100644--- a/pkg/detectors/nexmoapikey/nexmoapikey.go+++ b/pkg/detectors/nexmoapikey/nexmoapikey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nexmo"}) + `\b([A-Za-z0-9_-]{8})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nexmo"}) + `\b([A-Za-z0-9_-]{16})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nftport/nftport.go b/pkg/detectors/nftport/nftport.goindex 2e9c06b0f..940ac0c64 100644--- a/pkg/detectors/nftport/nftport.go+++ b/pkg/detectors/nftport/nftport.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nftport"}) + `\b([a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nicereply/nicereply.go b/pkg/detectors/nicereply/nicereply.goindex f788b5815..a44eeab3c 100644--- a/pkg/detectors/nicereply/nicereply.go+++ b/pkg/detectors/nicereply/nicereply.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nicereply"}) + `\b([0-9a-f]{40})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nightfall/nightfall.go b/pkg/detectors/nightfall/nightfall.goindex e8af1133c..df8f4a36a 100644--- a/pkg/detectors/nightfall/nightfall.go+++ b/pkg/detectors/nightfall/nightfall.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(NF\-[a-zA-Z0-9]{32})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nimble/nimble.go b/pkg/detectors/nimble/nimble.goindex f653b23f0..c04afaadc 100644--- a/pkg/detectors/nimble/nimble.go+++ b/pkg/detectors/nimble/nimble.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nimble"}) + `\b([a-zA-Z0-9]{30})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nitro/nitro.go b/pkg/detectors/nitro/nitro.goindex 5b74ab8b1..b215c1053 100644--- a/pkg/detectors/nitro/nitro.go+++ b/pkg/detectors/nitro/nitro.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nitro"}) + `\b([0-9a-f]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/noticeable/noticeable.go b/pkg/detectors/noticeable/noticeable.goindex 9cebbf2d4..f8c3ae26c 100644--- a/pkg/detectors/noticeable/noticeable.go+++ b/pkg/detectors/noticeable/noticeable.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"noticeable"}) + `\b([0-9a-zA-Z]{20})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/notion/notion.go b/pkg/detectors/notion/notion.goindex b6e46774c..10945ed25 100644--- a/pkg/detectors/notion/notion.go+++ b/pkg/detectors/notion/notion.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(secret_[A-Za-z0-9]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nozbeteams/nozbeteams.go b/pkg/detectors/nozbeteams/nozbeteams.goindex 6a267c5ed..9ea8e3bcb 100644--- a/pkg/detectors/nozbeteams/nozbeteams.go+++ b/pkg/detectors/nozbeteams/nozbeteams.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nozbe", "nozbeteams"}) + `\b([0-9A-Za-z]{16}_[0-9A-Za-z\-_]{64}[ \r\n]{1})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/numverify/numverify.go b/pkg/detectors/numverify/numverify.goindex a56a1f2fe..9a2062f88 100644--- a/pkg/detectors/numverify/numverify.go+++ b/pkg/detectors/numverify/numverify.go@@ -15,12 +15,12 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"numverify"}) + `\b([a-z0-9]{32})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nutritionix/nutritionix.go b/pkg/detectors/nutritionix/nutritionix.goindex 626d53566..f3eb8b645 100644--- a/pkg/detectors/nutritionix/nutritionix.go+++ b/pkg/detectors/nutritionix/nutritionix.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nutritionix"}) + `\b([a-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nutritionix"}) + `\b([a-z0-9]{8})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nylas/nylas.go b/pkg/detectors/nylas/nylas.goindex fd180d549..3e481a036 100644--- a/pkg/detectors/nylas/nylas.go+++ b/pkg/detectors/nylas/nylas.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nylas"}) + `\b([0-9A-Za-z]{30})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/nytimes/nytimes.go b/pkg/detectors/nytimes/nytimes.goindex 85c4089fc..b743ea7fe 100644--- a/pkg/detectors/nytimes/nytimes.go+++ b/pkg/detectors/nytimes/nytimes.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"nytimes"}) + `\b([a-z0-9A-Z-]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/oanda/oanda.go b/pkg/detectors/oanda/oanda.goindex 99e9aed92..4b784b8ac 100644--- a/pkg/detectors/oanda/oanda.go+++ b/pkg/detectors/oanda/oanda.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"oanda"}) + `\b([a-zA-Z0-9]{24})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/okta/okta.go b/pkg/detectors/okta/okta.goindex 990963bc2..3b3f9fe3e 100644--- a/pkg/detectors/okta/okta.go+++ b/pkg/detectors/okta/okta.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/omnisend/omnisend.go b/pkg/detectors/omnisend/omnisend.goindex b76789fcb..536884871 100644--- a/pkg/detectors/omnisend/omnisend.go+++ b/pkg/detectors/omnisend/omnisend.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"omnisend"}) + `\b([a-z0-9A-Z-]{75})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/onedesk/onedesk.go b/pkg/detectors/onedesk/onedesk.goindex 00370e8eb..e11b87f88 100644--- a/pkg/detectors/onedesk/onedesk.go+++ b/pkg/detectors/onedesk/onedesk.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.emailPat = regexp.MustCompile(`\b([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]+)\b`)pwordPat = regexp.MustCompile(detectors.PrefixRegex([]string{"onedesk"}) + `\b([a-zA-Z0-9!=@#$%^]{8,64})`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(body, `"code":"SUCCESS"`) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/onelogin/onelogin.go b/pkg/detectors/onelogin/onelogin.goindex 00490d745..e8a87e2e8 100644--- a/pkg/detectors/onelogin/onelogin.go+++ b/pkg/detectors/onelogin/onelogin.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/onepagecrm/onepagecrm.go b/pkg/detectors/onepagecrm/onepagecrm.goindex 6695dfb43..9a1d033ff 100644--- a/pkg/detectors/onepagecrm/onepagecrm.go+++ b/pkg/detectors/onepagecrm/onepagecrm.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"onepagecrm"}) + `\b([a-zA-Z0-9=]{44})`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"onepagecrm"}) + `\b([a-z0-9]{24})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/onwaterio/onwaterio.go b/pkg/detectors/onwaterio/onwaterio.goindex 28e783442..7e731a836 100644--- a/pkg/detectors/onwaterio/onwaterio.go+++ b/pkg/detectors/onwaterio/onwaterio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"onwater"}) + `\b([a-zA-Z0-9_-]{20})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/oopspam/oopspam.go b/pkg/detectors/oopspam/oopspam.goindex d2d0b9b37..20ebd683f 100644--- a/pkg/detectors/oopspam/oopspam.go+++ b/pkg/detectors/oopspam/oopspam.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"oopspam"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/opencagedata/opencagedata.go b/pkg/detectors/opencagedata/opencagedata.goindex fdf942643..ce8d21712 100644--- a/pkg/detectors/opencagedata/opencagedata.go+++ b/pkg/detectors/opencagedata/opencagedata.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"opencagedata"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/opengraphr/opengraphr.go b/pkg/detectors/opengraphr/opengraphr.goindex 536742869..bba66c680 100644--- a/pkg/detectors/opengraphr/opengraphr.go+++ b/pkg/detectors/opengraphr/opengraphr.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"opengraphr"}) + `\b([0-9Aa-zA-Z]{80})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/openuv/openuv.go b/pkg/detectors/openuv/openuv.goindex 62766b172..218c7586e 100644--- a/pkg/detectors/openuv/openuv.go+++ b/pkg/detectors/openuv/openuv.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"openuv"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/openweather/openweather.go b/pkg/detectors/openweather/openweather.goindex 269822540..f35b27c38 100644--- a/pkg/detectors/openweather/openweather.go+++ b/pkg/detectors/openweather/openweather.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"openweather"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/optimizely/optimizely.go b/pkg/detectors/optimizely/optimizely.goindex 024798de0..d8fcaeb49 100644--- a/pkg/detectors/optimizely/optimizely.go+++ b/pkg/detectors/optimizely/optimizely.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"optimizely"}) + `\b([0-9A-Za-z-:]{54})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/owlbot/owlbot.go b/pkg/detectors/owlbot/owlbot.goindex 4b63892de..a5f5c3ca9 100644--- a/pkg/detectors/owlbot/owlbot.go+++ b/pkg/detectors/owlbot/owlbot.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"owlbot"}) + `\b([a-z0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/packagecloud/packagecloud.go b/pkg/detectors/packagecloud/packagecloud.goindex ebb041cfa..fb6d8504e 100644--- a/pkg/detectors/packagecloud/packagecloud.go+++ b/pkg/detectors/packagecloud/packagecloud.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"packagecloud"}) + `\b([0-9a-f]{48})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.goindex 96c3ef908..94fa814f9 100644--- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go+++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pagerduty"}) + `\b([a-z]{1}\+[a-zA-Z]{9}\-[a-z]{2}\-[a-z0-9]{5})\b`))diff --git a/pkg/detectors/pandadoc/pandadoc.go b/pkg/detectors/pandadoc/pandadoc.goindex dfa8a7e08..e36446d18 100644--- a/pkg/detectors/pandadoc/pandadoc.go+++ b/pkg/detectors/pandadoc/pandadoc.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pandadoc"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pandascore/pandascore.go b/pkg/detectors/pandascore/pandascore.goindex 456e391ee..17809597e 100644--- a/pkg/detectors/pandascore/pandascore.go+++ b/pkg/detectors/pandascore/pandascore.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pandascore"}) + `([ \r\n]{0,1}[0-9A-Za-z\-\_]{51}[ \r\n]{1})`))diff --git a/pkg/detectors/paperform/paperform.go b/pkg/detectors/paperform/paperform.goindex 7105eebf9..04c6352fc 100644--- a/pkg/detectors/paperform/paperform.go+++ b/pkg/detectors/paperform/paperform.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"paperform"}) + `\b([a-z0-9A-Z-._]{850,1000})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/paralleldots/paralleldots.go b/pkg/detectors/paralleldots/paralleldots.goindex 7f008cf74..af4cadded 100644--- a/pkg/detectors/paralleldots/paralleldots.go+++ b/pkg/detectors/paralleldots/paralleldots.go@@ -17,13 +17,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"paralleldots"}) + `\b([0-9A-Za-z]{43})\b`))@@ -86,7 +86,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) && strings.Contains(body, "intent") {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/parsehub/parsehub.go b/pkg/detectors/parsehub/parsehub.goindex a47607196..70b5aa17d 100644--- a/pkg/detectors/parsehub/parsehub.go+++ b/pkg/detectors/parsehub/parsehub.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"parsehub"}) + `\b([0-9a-zA-Z]{12})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/parsers/parsers.go b/pkg/detectors/parsers/parsers.goindex 2340ba5ed..4bc466e75 100644--- a/pkg/detectors/parsers/parsers.go+++ b/pkg/detectors/parsers/parsers.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"parsers"}) + `\b([0-9a-z]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/partnerstack/partnerstack.go b/pkg/detectors/partnerstack/partnerstack.goindex 99679cdd9..0a010ab13 100644--- a/pkg/detectors/partnerstack/partnerstack.go+++ b/pkg/detectors/partnerstack/partnerstack.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"partnerstack"}) + `\b([0-9A-Za-z]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/passbase/passbase.go b/pkg/detectors/passbase/passbase.goindex c3c7f8dde..6957bfa50 100644--- a/pkg/detectors/passbase/passbase.go+++ b/pkg/detectors/passbase/passbase.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"passbase"}) + `\b([a-zA-Z0-9]{128})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pastebin/pastebin.go b/pkg/detectors/pastebin/pastebin.goindex 57681e112..5a163b505 100644--- a/pkg/detectors/pastebin/pastebin.go+++ b/pkg/detectors/pastebin/pastebin.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pastebin"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -88,7 +88,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/paydirtapp/paydirtapp.go b/pkg/detectors/paydirtapp/paydirtapp.goindex 12251e5eb..0adde9fd9 100644--- a/pkg/detectors/paydirtapp/paydirtapp.go+++ b/pkg/detectors/paydirtapp/paydirtapp.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"paydirtapp"}) + `\b([a-z0-9]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/paymoapp/paymoapp.go b/pkg/detectors/paymoapp/paymoapp.goindex f15c2dd6d..c0c0b5b21 100644--- a/pkg/detectors/paymoapp/paymoapp.go+++ b/pkg/detectors/paymoapp/paymoapp.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"paymoapp"}) + `\b([a-zA-Z0-9]{44})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/paymongo/paymongo.go b/pkg/detectors/paymongo/paymongo.goindex bff72e4a2..cbcbbc309 100644--- a/pkg/detectors/paymongo/paymongo.go+++ b/pkg/detectors/paymongo/paymongo.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"paymongo"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/paypaloauth/paypaloauth.go b/pkg/detectors/paypaloauth/paypaloauth.goindex 53070b395..e63ecbd16 100644--- a/pkg/detectors/paypaloauth/paypaloauth.go+++ b/pkg/detectors/paypaloauth/paypaloauth.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(`\b([A-Za-z0-9_\.]{7}-[A-Za-z0-9_\.]{72})\b`)keyPat = regexp.MustCompile(`\b([A-Za-z0-9_\.]{69}-[A-Za-z0-9_\.]{10})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/paystack/paystack.go b/pkg/detectors/paystack/paystack.goindex bda350845..9a5dc3852 100644--- a/pkg/detectors/paystack/paystack.go+++ b/pkg/detectors/paystack/paystack.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/pdflayer/pdflayer.go b/pkg/detectors/pdflayer/pdflayer.goindex d35a10806..1ce464729 100644--- a/pkg/detectors/pdflayer/pdflayer.go+++ b/pkg/detectors/pdflayer/pdflayer.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pdflayer"}) + `\b([a-z0-9]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pdfshift/pdfshift.go b/pkg/detectors/pdfshift/pdfshift.goindex 0d64283c2..eb418c3e4 100644--- a/pkg/detectors/pdfshift/pdfshift.go+++ b/pkg/detectors/pdfshift/pdfshift.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pdfshift"}) + `\b([0-9a-f]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/peopledatalabs/peopledatalabs.go b/pkg/detectors/peopledatalabs/peopledatalabs.goindex 04fa8d9a2..75921b248 100644--- a/pkg/detectors/peopledatalabs/peopledatalabs.go+++ b/pkg/detectors/peopledatalabs/peopledatalabs.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"peopledatalabs"}) + `\b([a-z0-9]{64})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pepipost/pepipost.go b/pkg/detectors/pepipost/pepipost.goindex 4337620ae..89345eaf5 100644--- a/pkg/detectors/pepipost/pepipost.go+++ b/pkg/detectors/pepipost/pepipost.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pepipost", "netcore"}) + `\b([a-zA-Z-0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pinata/pinata.go b/pkg/detectors/pinata/pinata.goindex 204301076..9ab2046f7 100644--- a/pkg/detectors/pinata/pinata.go+++ b/pkg/detectors/pinata/pinata.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pinata"}) + `\b([0-9a-z]{64})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pinata"}) + `\b([0-9a-z]{20})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pipedream/pipedream.go b/pkg/detectors/pipedream/pipedream.goindex 5d9b4bc72..4d0a5f911 100644--- a/pkg/detectors/pipedream/pipedream.go+++ b/pkg/detectors/pipedream/pipedream.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pipedream"}) + `\b([a-z0-9]{32})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pipedrive/pipedrive.go b/pkg/detectors/pipedrive/pipedrive.goindex 188f491ca..56c93af02 100644--- a/pkg/detectors/pipedrive/pipedrive.go+++ b/pkg/detectors/pipedrive/pipedrive.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pipedrive"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pivotaltracker/pivotaltracker.go b/pkg/detectors/pivotaltracker/pivotaltracker.goindex c7d0a609c..f68e462af 100644--- a/pkg/detectors/pivotaltracker/pivotaltracker.go+++ b/pkg/detectors/pivotaltracker/pivotaltracker.go@@ -12,7 +12,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/pixabay/pixabay.go b/pkg/detectors/pixabay/pixabay.goindex e6a103f00..5a54ec7be 100644--- a/pkg/detectors/pixabay/pixabay.go+++ b/pkg/detectors/pixabay/pixabay.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pixabay"}) + `\b([a-z0-9-]{34})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/plaidkey/plaidkey.go b/pkg/detectors/plaidkey/plaidkey.goindex 21382f234..7355065cb 100644--- a/pkg/detectors/plaidkey/plaidkey.go+++ b/pkg/detectors/plaidkey/plaidkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"plaid"}) + `\b([a-z0-9]{30})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"plaid"}) + `\b([a-z0-9]{24})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/planviewleankit/planviewleankit.go b/pkg/detectors/planviewleankit/planviewleankit.goindex a2350d267..d3cea2b07 100644--- a/pkg/detectors/planviewleankit/planviewleankit.go+++ b/pkg/detectors/planviewleankit/planviewleankit.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"planviewleankit", "planview"}) + `\b([0-9a-f]{128})\b`)subDomainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"planviewleankit", "planview"}) + `(?:subdomain).\b([a-zA-Z][a-zA-Z0-9.-]{1,23}[a-zA-Z0-9])\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/planyo/planyo.go b/pkg/detectors/planyo/planyo.goindex 906999d0b..d94de4d46 100644--- a/pkg/detectors/planyo/planyo.go+++ b/pkg/detectors/planyo/planyo.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"planyo"}) + `\b([0-9a-z]{62})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/plivo/plivo.go b/pkg/detectors/plivo/plivo.goindex 34b4e27ea..f94aae117 100644--- a/pkg/detectors/plivo/plivo.go+++ b/pkg/detectors/plivo/plivo.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/podio/podio.go b/pkg/detectors/podio/podio.goindex dc9521f91..8e86c3ccc 100644--- a/pkg/detectors/podio/podio.go+++ b/pkg/detectors/podio/podio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"podio"}) + `\b([[0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/poloniex/poloniex.go b/pkg/detectors/poloniex/poloniex.goindex 059bf6d00..effd3a579 100644--- a/pkg/detectors/poloniex/poloniex.go+++ b/pkg/detectors/poloniex/poloniex.go@@ -19,13 +19,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"poloniex"}) + `\b([0-9A-Z]{8}-[0-9A-Z]{8}-[0-9A-Z]{8}-[0-9A-Z]{8})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"poloniex"}) + `\b([0-9a-f]{128})\b`))@@ -83,7 +83,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/polygon/polygon.go b/pkg/detectors/polygon/polygon.goindex 71292b502..2a45620df 100644--- a/pkg/detectors/polygon/polygon.go+++ b/pkg/detectors/polygon/polygon.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"polygon"}) + `\b([a-z0-9A-Z]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/positionstack/positionstack.go b/pkg/detectors/positionstack/positionstack.goindex 89bbba695..df7f12033 100644--- a/pkg/detectors/positionstack/positionstack.go+++ b/pkg/detectors/positionstack/positionstack.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"positionstack"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/postageapp/postageapp.go b/pkg/detectors/postageapp/postageapp.goindex 3305d17b0..9cd79fbfb 100644--- a/pkg/detectors/postageapp/postageapp.go+++ b/pkg/detectors/postageapp/postageapp.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"postageapp"}) + `\b([0-9A-Za-z]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/posthog/posthog.go b/pkg/detectors/posthog/posthog.goindex e56f10fb1..ee63f655c 100644--- a/pkg/detectors/posthog/posthog.go+++ b/pkg/detectors/posthog/posthog.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(phc_[a-zA-Z0-9_]{43})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/postman/postman.go b/pkg/detectors/postman/postman.goindex 1be98918a..76a655c09 100644--- a/pkg/detectors/postman/postman.go+++ b/pkg/detectors/postman/postman.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(PMAK-[a-zA-Z-0-9]{59})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/postmark/postmark.go b/pkg/detectors/postmark/postmark.goindex 557a00fa5..6f0d1e166 100644--- a/pkg/detectors/postmark/postmark.go+++ b/pkg/detectors/postmark/postmark.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/powrbot/powrbot.go b/pkg/detectors/powrbot/powrbot.goindex 3d5598ba9..1880450a8 100644--- a/pkg/detectors/powrbot/powrbot.go+++ b/pkg/detectors/powrbot/powrbot.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"powrbot"}) + `\b([a-z0-9A-Z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/privatekey/privatekey.go b/pkg/detectors/privatekey/privatekey.goindex 50b06b54a..e12c23365 100644--- a/pkg/detectors/privatekey/privatekey.go+++ b/pkg/detectors/privatekey/privatekey.go@@ -18,7 +18,7 @@ type Scanner struct {IncludeExpired bool}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/prospectcrm/prospectcrm.go b/pkg/detectors/prospectcrm/prospectcrm.goindex b1321ab1e..e80ccdc9e 100644--- a/pkg/detectors/prospectcrm/prospectcrm.go+++ b/pkg/detectors/prospectcrm/prospectcrm.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"prospect"}) + `\b([a-z0-9-]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/prospectio/prospectio.go b/pkg/detectors/prospectio/prospectio.goindex 7014e784a..ca72ecdd4 100644--- a/pkg/detectors/prospectio/prospectio.go+++ b/pkg/detectors/prospectio/prospectio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"prospect"}) + `\b([a-z0-9A-Z-]{50})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/protocolsio/protocolsio.go b/pkg/detectors/protocolsio/protocolsio.goindex d689026b2..b7e796551 100644--- a/pkg/detectors/protocolsio/protocolsio.go+++ b/pkg/detectors/protocolsio/protocolsio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"protocols"}) + `\b([a-z0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/proxycrawl/proxycrawl.go b/pkg/detectors/proxycrawl/proxycrawl.goindex 15d3e8ccd..6f58ca61c 100644--- a/pkg/detectors/proxycrawl/proxycrawl.go+++ b/pkg/detectors/proxycrawl/proxycrawl.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"proxycrawl"}) + `\b([a-zA-Z0-9_]{22})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.goindex 96488ae87..2122fdd4c 100644--- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go+++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.pubPat = regexp.MustCompile(`\b(pub-c-[0-9a-z]{8}-[0-9a-z]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})\b`)subPat = regexp.MustCompile(`\b(sub-c-[0-9a-z]{8}-[a-z]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.goindex 09a373c05..3d93dfd76 100644--- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go+++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(sub-c-[0-9a-z]{8}-[a-z]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/purestake/purestake.go b/pkg/detectors/purestake/purestake.goindex 7e5fa3498..88f310f98 100644--- a/pkg/detectors/purestake/purestake.go+++ b/pkg/detectors/purestake/purestake.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"purestake"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pushbulletapikey/pushbulletapikey.go b/pkg/detectors/pushbulletapikey/pushbulletapikey.goindex 098060480..f8d689011 100644--- a/pkg/detectors/pushbulletapikey/pushbulletapikey.go+++ b/pkg/detectors/pushbulletapikey/pushbulletapikey.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pushbullet"}) + `\b([A-Za-z0-9_\.]{34})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey.go b/pkg/detectors/pusherchannelkey/pusherchannelkey.goindex 95ebd3b2e..88dc74124 100644--- a/pkg/detectors/pusherchannelkey/pusherchannelkey.go+++ b/pkg/detectors/pusherchannelkey/pusherchannelkey.go@@ -20,13 +20,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.appIdPat = regexp.MustCompile(detectors.PrefixRegex([]string{"pusher"}) + `\b([0-9]{7})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"key"}) + `\b([a-z0-9]{20})\b`)// this is currently incorrect, should be a callback from the API@@ -111,7 +111,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(ressecretMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/qase/qase.go b/pkg/detectors/qase/qase.goindex b9c3937ab..89a98ae7b 100644--- a/pkg/detectors/qase/qase.go+++ b/pkg/detectors/qase/qase.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"qase"}) + `\b([0-9a-zA-Z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/qualaroo/qualaroo.go b/pkg/detectors/qualaroo/qualaroo.goindex 3491c0796..f31b83c77 100644--- a/pkg/detectors/qualaroo/qualaroo.go+++ b/pkg/detectors/qualaroo/qualaroo.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"qualaroo"}) + `\b([a-z0-9A-Z=]{64})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/qubole/qubole.go b/pkg/detectors/qubole/qubole.goindex 46c5a86ce..ffb9fa67f 100644--- a/pkg/detectors/qubole/qubole.go+++ b/pkg/detectors/qubole/qubole.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"qubole"}) + `\b([0-9a-z]{64})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/quickmetrics/quickmetrics.go b/pkg/detectors/quickmetrics/quickmetrics.goindex bf4286ff2..e4e158457 100644--- a/pkg/detectors/quickmetrics/quickmetrics.go+++ b/pkg/detectors/quickmetrics/quickmetrics.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"quickmetrics"}) + `\b([a-zA-Z0-9_-]{22})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rapidapi/rapidapi.go b/pkg/detectors/rapidapi/rapidapi.goindex ff04385cd..1f4cc0455 100644--- a/pkg/detectors/rapidapi/rapidapi.go+++ b/pkg/detectors/rapidapi/rapidapi.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/raven/raven.go b/pkg/detectors/raven/raven.goindex af38366c1..946211e94 100644--- a/pkg/detectors/raven/raven.go+++ b/pkg/detectors/raven/raven.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"raven"}) + `\b([A-Z0-9-]{16})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rawg/rawg.go b/pkg/detectors/rawg/rawg.goindex 681d8b9da..c6182a677 100644--- a/pkg/detectors/rawg/rawg.go+++ b/pkg/detectors/rawg/rawg.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rawg"}) + `\b([0-9Aa-z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/razorpay/razorpay.go b/pkg/detectors/razorpay/razorpay.goindex 626afb32b..5a4f22354 100644--- a/pkg/detectors/razorpay/razorpay.go+++ b/pkg/detectors/razorpay/razorpay.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)//The (`) character adds secondary encoding to parsed strings by Golang which also allows for escape sequencesdiff --git a/pkg/detectors/reachmail/reachmail.go b/pkg/detectors/reachmail/reachmail.goindex b7a713e05..7e94b320b 100644--- a/pkg/detectors/reachmail/reachmail.go+++ b/pkg/detectors/reachmail/reachmail.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"reachmail"}) + `\b([a-zA-Z0-9-_]{64})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/readme/readme.go b/pkg/detectors/readme/readme.goindex 3e7143b4c..99e266779 100644--- a/pkg/detectors/readme/readme.go+++ b/pkg/detectors/readme/readme.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"readme"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/reallysimplesystems/reallysimplesystems.go b/pkg/detectors/reallysimplesystems/reallysimplesystems.goindex 2a3a05bf1..dde05f4ab 100644--- a/pkg/detectors/reallysimplesystems/reallysimplesystems.go+++ b/pkg/detectors/reallysimplesystems/reallysimplesystems.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(ey[a-zA-Z0-9-._]{153}.ey[a-zA-Z0-9-._]{916,1000})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rebrandly/rebrandly.go b/pkg/detectors/rebrandly/rebrandly.goindex 2f5131783..bdfd823fe 100644--- a/pkg/detectors/rebrandly/rebrandly.go+++ b/pkg/detectors/rebrandly/rebrandly.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rebrandly"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rechargepayments/rechargepayments.go b/pkg/detectors/rechargepayments/rechargepayments.goindex 36ce9c9ff..73ea2f1ca 100644--- a/pkg/detectors/rechargepayments/rechargepayments.go+++ b/pkg/detectors/rechargepayments/rechargepayments.go@@ -12,14 +12,14 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()verifyURL = "https://api.rechargeapps.com/token_information"- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.tokenPats = map[string]*regexp.Regexp{"Newer API Keys": regexp.MustCompile(`\bsk(_test)?_(1|2|3|5|10)x[123]_[0-9a-fA-F]{64}\b`),"Old API key (SHA-224)": regexp.MustCompile(`\b[0-9a-fA-F]{56}\b`),diff --git a/pkg/detectors/refiner/refiner.go b/pkg/detectors/refiner/refiner.goindex 6ea1e9cab..95f9c0864 100644--- a/pkg/detectors/refiner/refiner.go+++ b/pkg/detectors/refiner/refiner.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"refiner"}) + `\b([0-9Aa-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/repairshopr/repairshopr.go b/pkg/detectors/repairshopr/repairshopr.goindex b6a621d27..03c3da54e 100644--- a/pkg/detectors/repairshopr/repairshopr.go+++ b/pkg/detectors/repairshopr/repairshopr.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"repairshopr"}) + `\b([a-zA-Z0-9-]{51})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"repairshopr"}) + `\b([a-zA-Z0-9_.!+$#^*]{3,32})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/restpack/restpack.go b/pkg/detectors/restpack/restpack.goindex b11ed85c4..2b4e3ba8c 100644--- a/pkg/detectors/restpack/restpack.go+++ b/pkg/detectors/restpack/restpack.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"restpack"}) + `\b([a-zA-Z0-9]{48})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.goindex b6d5efc2a..f4d2a86ae 100644--- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go+++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"restpack"}) + `\b([0-9A-Za-z]{48})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.goindex e337178f7..7aad0c7f5 100644--- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go+++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"restpack"}) + `\b([0-9A-Za-z]{48})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rev/rev.go b/pkg/detectors/rev/rev.goindex c62ad3538..e23e2378a 100644--- a/pkg/detectors/rev/rev.go+++ b/pkg/detectors/rev/rev.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.userKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rev"}) + `\b([0-9a-zA-Z\/\+]{27}\=[ \r\n]{1})`)clientKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rev"}) + `\b([0-9a-zA-Z\-]{27}[ \r\n]{1})`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resUserMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/revampcrm/revampcrm.go b/pkg/detectors/revampcrm/revampcrm.goindex e03d08837..53931001a 100644--- a/pkg/detectors/revampcrm/revampcrm.go+++ b/pkg/detectors/revampcrm/revampcrm.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"revamp"}) + `\b([a-zA-Z0-9]{40}\b)`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"revamp"}) + `\b([a-zA-Z0-9.-@]{25,30})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ringcentral/ringcentral.go b/pkg/detectors/ringcentral/ringcentral.goindex 2f528c86d..6505f9d13 100644--- a/pkg/detectors/ringcentral/ringcentral.go+++ b/pkg/detectors/ringcentral/ringcentral.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ringcentral"}) + `\b([0-9A-Za-z_-]{22})\b`)uriPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ringcentral"}) + `\b(https://www.[0-9A-Za-z_-]{1,}.com)\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ritekit/ritekit.go b/pkg/detectors/ritekit/ritekit.goindex 9359396eb..daf493999 100644--- a/pkg/detectors/ritekit/ritekit.go+++ b/pkg/detectors/ritekit/ritekit.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ritekit"}) + `\b([0-9a-f]{44})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/roaring/roaring.go b/pkg/detectors/roaring/roaring.goindex 8e17db7c8..aeb28a72f 100644--- a/pkg/detectors/roaring/roaring.go+++ b/pkg/detectors/roaring/roaring.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.clientPat = regexp.MustCompile(detectors.PrefixRegex([]string{"roaring"}) + `\b([0-9A-Za-z_-]{28})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"roaring"}) + `\b([0-9A-Za-z_-]{28})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resSecret, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rocketreach/rocketreach.go b/pkg/detectors/rocketreach/rocketreach.goindex ce79b5e40..0ac22a91a 100644--- a/pkg/detectors/rocketreach/rocketreach.go+++ b/pkg/detectors/rocketreach/rocketreach.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rocketreach"}) + `\b([a-z0-9-]{39})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rockset/rockset.go b/pkg/detectors/rockset/rockset.goindex ef1608b1a..524087dd5 100644--- a/pkg/detectors/rockset/rockset.go+++ b/pkg/detectors/rockset/rockset.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rockset"}) + `\b([a-zA-Z0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/roninapp/roninapp.go b/pkg/detectors/roninapp/roninapp.goindex 3450506b0..3b57bae6c 100644--- a/pkg/detectors/roninapp/roninapp.go+++ b/pkg/detectors/roninapp/roninapp.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ronin"}) + `\b([0-9a-zA-Z]{26})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ronin"}) + `\b([0-9Aa-zA-Z]{3,32})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/route4me/route4me.go b/pkg/detectors/route4me/route4me.goindex a8ae33b04..b0fbbff57 100644--- a/pkg/detectors/route4me/route4me.go+++ b/pkg/detectors/route4me/route4me.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"route4me"}) + `\b([0-9A-Z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rownd/rownd.go b/pkg/detectors/rownd/rownd.goindex 3be6496de..5abc27600 100644--- a/pkg/detectors/rownd/rownd.go+++ b/pkg/detectors/rownd/rownd.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rownd"}) + `\b([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rownd"}) + `\b([a-z0-9]{48})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"rownd"}) + `\b([0-9]{18})\b`)@@ -77,7 +77,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(keyMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/rubygems/rubygems.go b/pkg/detectors/rubygems/rubygems.goindex c73545e85..855f6b349 100644--- a/pkg/detectors/rubygems/rubygems.go+++ b/pkg/detectors/rubygems/rubygems.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(rubygems_[a-zA0-9]{48})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/runrunit/runrunit.go b/pkg/detectors/runrunit/runrunit.goindex 5f8f504db..0dd1b50d6 100644--- a/pkg/detectors/runrunit/runrunit.go+++ b/pkg/detectors/runrunit/runrunit.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"runrunit"}) + `\b([0-9a-f]{32})\b`)userTokenPat = regexp.MustCompile(detectors.PrefixRegex([]string{"runrunit"}) + `\b([0-9A-Za-z]{18,20})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/salesblink/salesblink.go b/pkg/detectors/salesblink/salesblink.goindex fcb30b7eb..47e1ff8db 100644--- a/pkg/detectors/salesblink/salesblink.go+++ b/pkg/detectors/salesblink/salesblink.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesblink"}) + `\b([a-zA-Z]{16})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/salescookie/salescookie.go b/pkg/detectors/salescookie/salescookie.goindex e5f415626..bb9139fe2 100644--- a/pkg/detectors/salescookie/salescookie.go+++ b/pkg/detectors/salescookie/salescookie.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salescookie"}) + `\b([a-zA-z0-9]{32})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/salesflare/salesflare.go b/pkg/detectors/salesflare/salesflare.goindex 40f66f951..0ec14a337 100644--- a/pkg/detectors/salesflare/salesflare.go+++ b/pkg/detectors/salesflare/salesflare.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"salesflare"}) + `\b([a-zA-Z0-9_]{45})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.goindex c202202ee..95c39106a 100644--- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go+++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"satismeter"}) + `\b([a-zA-Z0-9]{24})\b`)emailPat = regexp.MustCompile(detectors.PrefixRegex([]string{"satismeter"}) + `\b([a-zA-Z0-9]{4,20}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,12})\b`)passPat = regexp.MustCompile(detectors.PrefixRegex([]string{"satismeter"}) + `\b([a-zA-Z0-9!=@#$%^]{6,32})`)@@ -80,7 +80,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey.go b/pkg/detectors/satismeterwritekey/satismeterwritekey.goindex 849f08722..1fb5df904 100644--- a/pkg/detectors/satismeterwritekey/satismeterwritekey.go+++ b/pkg/detectors/satismeterwritekey/satismeterwritekey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"satismeter"}) + `\b([a-z0-9A-Z]{16})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/saucelabs/saucelabs.go b/pkg/detectors/saucelabs/saucelabs.goindex 8f1129d23..796321cc3 100644--- a/pkg/detectors/saucelabs/saucelabs.go+++ b/pkg/detectors/saucelabs/saucelabs.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(`\b(oauth\-[a-z0-9]{8,}\-[a-z0-9]{5})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"saucelabs"}) + `\b([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(keyMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scalewaykey/scalewaykey.go b/pkg/detectors/scalewaykey/scalewaykey.goindex cfbdce810..f0f1de83b 100644--- a/pkg/detectors/scalewaykey/scalewaykey.go+++ b/pkg/detectors/scalewaykey/scalewaykey.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/scrapeowl/scrapeowl.go b/pkg/detectors/scrapeowl/scrapeowl.goindex 09dd5b62a..c55c76b1d 100644--- a/pkg/detectors/scrapeowl/scrapeowl.go+++ b/pkg/detectors/scrapeowl/scrapeowl.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrapeowl"}) + `\b([0-9a-z]{30})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scraperapi/scraperapi.go b/pkg/detectors/scraperapi/scraperapi.goindex f838805b9..82b85f9c4 100644--- a/pkg/detectors/scraperapi/scraperapi.go+++ b/pkg/detectors/scraperapi/scraperapi.go@@ -15,12 +15,12 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scraperapi"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scraperbox/scraperbox.go b/pkg/detectors/scraperbox/scraperbox.goindex 1789af113..d50afc59e 100644--- a/pkg/detectors/scraperbox/scraperbox.go+++ b/pkg/detectors/scraperbox/scraperbox.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scraperbox"}) + `\b([A-Z0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scrapersite/scrapersite.go b/pkg/detectors/scrapersite/scrapersite.goindex 1985e4c54..902e6352b 100644--- a/pkg/detectors/scrapersite/scrapersite.go+++ b/pkg/detectors/scrapersite/scrapersite.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClientTimeOut(10)- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrapersite"}) + `\b([a-zA-Z0-9]{45})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scrapestack/scrapestack.go b/pkg/detectors/scrapestack/scrapestack.goindex 2f748c6e2..dbc260388 100644--- a/pkg/detectors/scrapestack/scrapestack.go+++ b/pkg/detectors/scrapestack/scrapestack.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrapestack"}) + `\b([a-z0-9]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scrapfly/scrapfly.go b/pkg/detectors/scrapfly/scrapfly.goindex 588d83d84..4c9352c1a 100644--- a/pkg/detectors/scrapfly/scrapfly.go+++ b/pkg/detectors/scrapfly/scrapfly.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrapfly"}) + `\b([a-z0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scrapingant/scrapingant.go b/pkg/detectors/scrapingant/scrapingant.goindex 5f594f377..9d57e6ab9 100644--- a/pkg/detectors/scrapingant/scrapingant.go+++ b/pkg/detectors/scrapingant/scrapingant.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrapingant"}) + `\b([a-z0-9]{32})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scrapingbee/scrapingbee.go b/pkg/detectors/scrapingbee/scrapingbee.goindex e35ab5135..e31771962 100644--- a/pkg/detectors/scrapingbee/scrapingbee.go+++ b/pkg/detectors/scrapingbee/scrapingbee.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrapingbee"}) + `\b([A-Z0-9]{80})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/screenshotapi/screenshotapi.go b/pkg/detectors/screenshotapi/screenshotapi.goindex aea7dacb0..5c701138a 100644--- a/pkg/detectors/screenshotapi/screenshotapi.go+++ b/pkg/detectors/screenshotapi/screenshotapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"screenshotapi"}) + `\b([0-9A-Z]{7}\-[0-9A-Z]{7}\-[0-9A-Z]{7}\-[0-9A-Z]{7})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/screenshotlayer/screenshotlayer.go b/pkg/detectors/screenshotlayer/screenshotlayer.goindex d68a1a66c..530c0bbfd 100644--- a/pkg/detectors/screenshotlayer/screenshotlayer.go+++ b/pkg/detectors/screenshotlayer/screenshotlayer.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClientTimeOut(10)- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"screenshotlayer"}) + `\b([a-zA-Z0-9_]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/scrutinizerci/scrutinizerci.go b/pkg/detectors/scrutinizerci/scrutinizerci.goindex 82dfbd64e..003f24a99 100644--- a/pkg/detectors/scrutinizerci/scrutinizerci.go+++ b/pkg/detectors/scrutinizerci/scrutinizerci.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"scrutinizer"}) + `\b([0-9a-z]{64})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/securitytrails/securitytrails.go b/pkg/detectors/securitytrails/securitytrails.goindex 1f79f0849..0c777dd25 100644--- a/pkg/detectors/securitytrails/securitytrails.go+++ b/pkg/detectors/securitytrails/securitytrails.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"securitytrails"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/segmentapikey/segmentapikey.go b/pkg/detectors/segmentapikey/segmentapikey.goindex b8323126d..8ab80d6d3 100644--- a/pkg/detectors/segmentapikey/segmentapikey.go+++ b/pkg/detectors/segmentapikey/segmentapikey.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"segment"}) + `\b([A-Za-z0-9_\-a-zA-Z]{43}\.[A-Za-z0-9_\-a-zA-Z]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/selectpdf/selectpdf.go b/pkg/detectors/selectpdf/selectpdf.goindex 8d5dbfef6..8716d2f22 100644--- a/pkg/detectors/selectpdf/selectpdf.go+++ b/pkg/detectors/selectpdf/selectpdf.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"selectpdf"}) + `\b([a-z0-9-]{36})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/semaphore/semaphore.go b/pkg/detectors/semaphore/semaphore.goindex f6def3645..4926c6e42 100644--- a/pkg/detectors/semaphore/semaphore.go+++ b/pkg/detectors/semaphore/semaphore.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"semaphore"}) + `\b([0-9a-z]{32})\b`))@@ -69,7 +69,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(body, "account_id") {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sendbird/sendbird.go b/pkg/detectors/sendbird/sendbird.goindex 3c78496c0..e21b14725 100644--- a/pkg/detectors/sendbird/sendbird.go+++ b/pkg/detectors/sendbird/sendbird.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sendbird"}) + `\b([0-9a-f]{40})\b`)appIdPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sendbird"}) + `\b([0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.goindex 0eae1aa3e..dfd227df8 100644--- a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go+++ b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sendbird"}) + `\b([0-9a-f]{24})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sendgrid/sendgrid.go b/pkg/detectors/sendgrid/sendgrid.goindex 7d5ac4ef5..ccda9cac3 100644--- a/pkg/detectors/sendgrid/sendgrid.go+++ b/pkg/detectors/sendgrid/sendgrid.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/sendinbluev2/sendinbluev2.go b/pkg/detectors/sendinbluev2/sendinbluev2.goindex 7302dca10..27e87e3da 100644--- a/pkg/detectors/sendinbluev2/sendinbluev2.go+++ b/pkg/detectors/sendinbluev2/sendinbluev2.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/sentiment/sentiment.go b/pkg/detectors/sentiment/sentiment.goindex 43bd6feea..0155bb39b 100644--- a/pkg/detectors/sentiment/sentiment.go+++ b/pkg/detectors/sentiment/sentiment.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.tokenPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sentiment"}) + `\b([a-zA-Z0-9]{20})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sentiment"}) + `\b([0-9]{17})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sentrytoken/sentrytoken.go b/pkg/detectors/sentrytoken/sentrytoken.goindex c11fb132c..6822f063f 100644--- a/pkg/detectors/sentrytoken/sentrytoken.go+++ b/pkg/detectors/sentrytoken/sentrytoken.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sentry"}) + `\b([a-f0-9]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/serphouse/serphouse.go b/pkg/detectors/serphouse/serphouse.goindex 2b48ded56..f7263761e 100644--- a/pkg/detectors/serphouse/serphouse.go+++ b/pkg/detectors/serphouse/serphouse.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"serphouse"}) + `\b([0-9A-Za-z]{60})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/serpstack/serpstack.go b/pkg/detectors/serpstack/serpstack.goindex 19a36a197..b26f2bc13 100644--- a/pkg/detectors/serpstack/serpstack.go+++ b/pkg/detectors/serpstack/serpstack.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"serpstack"}) + `\b([a-z0-9]{32})\b`))@@ -70,7 +70,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sheety/sheety.go b/pkg/detectors/sheety/sheety.goindex a756e729b..99dcf8dc0 100644--- a/pkg/detectors/sheety/sheety.go+++ b/pkg/detectors/sheety/sheety.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sheety"}) + `\b([0-9a-z]{64})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sheety"}) + `\b([0-9a-z]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sherpadesk/sherpadesk.go b/pkg/detectors/sherpadesk/sherpadesk.goindex 26fafbd0e..3e4bab1cc 100644--- a/pkg/detectors/sherpadesk/sherpadesk.go+++ b/pkg/detectors/sherpadesk/sherpadesk.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sherpadesk"}) + `\b([0-9a-z]{32})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/shipday/shipday.go b/pkg/detectors/shipday/shipday.goindex 1307f354b..883b8cdef 100644--- a/pkg/detectors/shipday/shipday.go+++ b/pkg/detectors/shipday/shipday.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shipday"}) + `\b([a-zA-Z0-9.]{11}[a-zA-Z0-9]{20})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/shodankey/shodankey.go b/pkg/detectors/shodankey/shodankey.goindex 2bc080814..358eeafca 100644--- a/pkg/detectors/shodankey/shodankey.go+++ b/pkg/detectors/shodankey/shodankey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shodan"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/shortcut/shortcut.go b/pkg/detectors/shortcut/shortcut.goindex c6a33c999..b420c81de 100644--- a/pkg/detectors/shortcut/shortcut.go+++ b/pkg/detectors/shortcut/shortcut.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shortcut"}) + `\b([0-9a-f-]{36})\b`))diff --git a/pkg/detectors/shotstack/shotstack.go b/pkg/detectors/shotstack/shotstack.goindex eec5b141f..2f6e7640b 100644--- a/pkg/detectors/shotstack/shotstack.go+++ b/pkg/detectors/shotstack/shotstack.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shotstack"}) + `\b([a-zA-Z0-9]{40})\b`))@@ -90,7 +90,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/shutterstock/shutterstock.go b/pkg/detectors/shutterstock/shutterstock.goindex 8fef0e81b..3597fc006 100644--- a/pkg/detectors/shutterstock/shutterstock.go+++ b/pkg/detectors/shutterstock/shutterstock.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shutterstock"}) + `\b([0-9a-zA-Z]{32})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shutterstock"}) + `\b([0-9a-zA-Z]{16})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/shutterstockoauth/shutterstockoauth.go b/pkg/detectors/shutterstockoauth/shutterstockoauth.goindex f2c80a674..4850036be 100644--- a/pkg/detectors/shutterstockoauth/shutterstockoauth.go+++ b/pkg/detectors/shutterstockoauth/shutterstockoauth.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"shutterstock"}) + `\b(v2/[0-9A-Za-z]{388})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/signable/signable.go b/pkg/detectors/signable/signable.goindex 84dd33e14..fdd909084 100644--- a/pkg/detectors/signable/signable.go+++ b/pkg/detectors/signable/signable.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"signable"}) + `\b([a-zA-Z-0-9]{32})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/signalwire/signalwire.go b/pkg/detectors/signalwire/signalwire.goindex 023bfe4e2..6a2e2a7dd 100644--- a/pkg/detectors/signalwire/signalwire.go+++ b/pkg/detectors/signalwire/signalwire.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"signalwire"}) + `\b([0-9A-Za-z]{50})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"signalwire"}) + `\b([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`)urlPat = regexp.MustCompile(`\b([0-9a-z-]{3,64}\.signalwire\.com)\b`)@@ -79,7 +79,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/signaturit/signaturit.go b/pkg/detectors/signaturit/signaturit.goindex d3d929fba..b00ccb362 100644--- a/pkg/detectors/signaturit/signaturit.go+++ b/pkg/detectors/signaturit/signaturit.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"signaturit"}) + `\b([0-9A-Za-z]{86})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/signupgenius/signupgenius.go b/pkg/detectors/signupgenius/signupgenius.goindex 9c9dc47df..b24f69c06 100644--- a/pkg/detectors/signupgenius/signupgenius.go+++ b/pkg/detectors/signupgenius/signupgenius.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"signupgenius"}) + `\b([0-9A-Za-z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt.goindex cbc5fd37f..6e9188e34 100644--- a/pkg/detectors/sigopt/sigopt.go+++ b/pkg/detectors/sigopt/sigopt.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sigopt"}) + `\b([A-Z0-9]{48})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/simplesat/simplesat.go b/pkg/detectors/simplesat/simplesat.goindex 1b15cf6b0..9c86b82dd 100644--- a/pkg/detectors/simplesat/simplesat.go+++ b/pkg/detectors/simplesat/simplesat.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"simplesat"}) + `\b([a-z0-9]{40})`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/simplynoted/simplynoted.go b/pkg/detectors/simplynoted/simplynoted.goindex 80f6c3afe..e85b07d0d 100644--- a/pkg/detectors/simplynoted/simplynoted.go+++ b/pkg/detectors/simplynoted/simplynoted.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"simplynoted"}) + `\b([a-zA-Z0-9\S]{340,360})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/simvoly/simvoly.go b/pkg/detectors/simvoly/simvoly.goindex 944b78649..5fa997fb8 100644--- a/pkg/detectors/simvoly/simvoly.go+++ b/pkg/detectors/simvoly/simvoly.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"simvoly"}) + `\b([a-z0-9]{33})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sinchmessage/sinchmessage.go b/pkg/detectors/sinchmessage/sinchmessage.goindex 84810750d..31de4b5c2 100644--- a/pkg/detectors/sinchmessage/sinchmessage.go+++ b/pkg/detectors/sinchmessage/sinchmessage.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sinch"}) + `\b([a-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sinch"}) + `\b([a-z0-9]{32})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sirv/sirv.go b/pkg/detectors/sirv/sirv.goindex c4e985581..aa5c0cbb7 100644--- a/pkg/detectors/sirv/sirv.go+++ b/pkg/detectors/sirv/sirv.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sirv"}) + `\b([a-zA-Z0-9\S]{88})`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sirv"}) + `\b([a-zA-Z0-9]{26})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/siteleaf/siteleaf.go b/pkg/detectors/siteleaf/siteleaf.goindex c9351598d..e33227ca9 100644--- a/pkg/detectors/siteleaf/siteleaf.go+++ b/pkg/detectors/siteleaf/siteleaf.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"siteleaf"}) + `\b([0-9Aa-z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"siteleaf"}) + `\b([0-9Aa-z]{32})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/skrappio/skrappio.go b/pkg/detectors/skrappio/skrappio.goindex 050b879ee..bad489d57 100644--- a/pkg/detectors/skrappio/skrappio.go+++ b/pkg/detectors/skrappio/skrappio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"skrapp"}) + `\b([a-z0-9A-Z]{42})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/skybiometry/skybiometry.go b/pkg/detectors/skybiometry/skybiometry.goindex 8a0a26906..e2727b7a1 100644--- a/pkg/detectors/skybiometry/skybiometry.go+++ b/pkg/detectors/skybiometry/skybiometry.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"skybiometry"}) + `\b([0-9a-z]{25,26})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"skybiometry"}) + `\b([0-9a-z]{25,26})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/slackwebhook/slackwebhook.go b/pkg/detectors/slackwebhook/slackwebhook.goindex 7cde5fed2..1969d6827 100644--- a/pkg/detectors/slackwebhook/slackwebhook.go+++ b/pkg/detectors/slackwebhook/slackwebhook.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`(https:\/\/hooks\.slack\.com\/services\/[A-Za-z0-9+\/]{44,46})`))diff --git a/pkg/detectors/smartsheets/smartsheets.go b/pkg/detectors/smartsheets/smartsheets.goindex 7e720612f..ac82df31e 100644--- a/pkg/detectors/smartsheets/smartsheets.go+++ b/pkg/detectors/smartsheets/smartsheets.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"smartsheets"}) + `\b([a-zA-Z0-9]{37})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/smartystreets/smartystreets.go b/pkg/detectors/smartystreets/smartystreets.goindex aeecb265b..2d3ba927c 100644--- a/pkg/detectors/smartystreets/smartystreets.go+++ b/pkg/detectors/smartystreets/smartystreets.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"smartystreets"}) + `\b([a-zA-Z0-9]{20})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"smartystreets"}) + `\b([a-z0-9-]{36})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/smooch/smooch.go b/pkg/detectors/smooch/smooch.goindex b7487e8c2..ee82042ba 100644--- a/pkg/detectors/smooch/smooch.go+++ b/pkg/detectors/smooch/smooch.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"smooch"}) + `\b(act_[0-9a-z]{24})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"smooch"}) + `\b([0-9a-zA-Z_-]{86})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/snipcart/snipcart.go b/pkg/detectors/snipcart/snipcart.goindex dc3cd8a2c..be18c9652 100644--- a/pkg/detectors/snipcart/snipcart.go+++ b/pkg/detectors/snipcart/snipcart.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"snipcart"}) + `\b([0-9A-Za-z_]{75})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/snykkey/snykkey.go b/pkg/detectors/snykkey/snykkey.goindex b59acc608..b52cc4954 100644--- a/pkg/detectors/snykkey/snykkey.go+++ b/pkg/detectors/snykkey/snykkey.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/sonarcloud/sonarcloud.go b/pkg/detectors/sonarcloud/sonarcloud.goindex 61f3964af..91a5c7560 100644--- a/pkg/detectors/sonarcloud/sonarcloud.go+++ b/pkg/detectors/sonarcloud/sonarcloud.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sonarcloud"}) + `\b([0-9a-z]{40})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = true}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sparkpost/sparkpost.go b/pkg/detectors/sparkpost/sparkpost.goindex 3d0011cd2..39832668b 100644--- a/pkg/detectors/sparkpost/sparkpost.go+++ b/pkg/detectors/sparkpost/sparkpost.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b([a-zA-Z0-9]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.goindex 93bbe27ba..42f2e0a68 100644--- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go+++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"splunk"}) + `\b([a-z0-9A-Z]{22})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/spoonacular/spoonacular.go b/pkg/detectors/spoonacular/spoonacular.goindex b3f154ee5..abd33fb9a 100644--- a/pkg/detectors/spoonacular/spoonacular.go+++ b/pkg/detectors/spoonacular/spoonacular.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"spoonacular"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sportradar/sportradar.go b/pkg/detectors/sportradar/sportradar.goindex 007acc743..9d4440ca2 100644--- a/pkg/detectors/sportradar/sportradar.go+++ b/pkg/detectors/sportradar/sportradar.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sportradar"}) + `\b([a-zA-Z0-9]{24})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sportsmonk/sportsmonk.go b/pkg/detectors/sportsmonk/sportsmonk.goindex c3e5e5a59..ddb921535 100644--- a/pkg/detectors/sportsmonk/sportsmonk.go+++ b/pkg/detectors/sportsmonk/sportsmonk.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sportsmonk"}) + `\b([0-9a-zA-Z]{60})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/spotifykey/spotifykey.go b/pkg/detectors/spotifykey/spotifykey.goindex 9b29d8e26..fa386efcd 100644--- a/pkg/detectors/spotifykey/spotifykey.go+++ b/pkg/detectors/spotifykey/spotifykey.go@@ -17,11 +17,11 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"key", "secret"}) + `\b([A-Za-z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"id"}) + `\b([A-Za-z0-9]{32})\b`))diff --git a/pkg/detectors/square/square.go b/pkg/detectors/square/square.goindex d35d887c6..09a6d4acc 100644--- a/pkg/detectors/square/square.go+++ b/pkg/detectors/square/square.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/squareapp/squareapp.go b/pkg/detectors/squareapp/squareapp.goindex 90b5a79ee..d7e6aa5cb 100644--- a/pkg/detectors/squareapp/squareapp.go+++ b/pkg/detectors/squareapp/squareapp.go@@ -16,7 +16,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/squarespace/squarespace.go b/pkg/detectors/squarespace/squarespace.goindex 6e2923e41..6525f13de 100644--- a/pkg/detectors/squarespace/squarespace.go+++ b/pkg/detectors/squarespace/squarespace.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"squarespace"}) + `\b([0-9Aa-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/squareup/squareup.go b/pkg/detectors/squareup/squareup.goindex b946d64d8..e131f2340 100644--- a/pkg/detectors/squareup/squareup.go+++ b/pkg/detectors/squareup/squareup.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(sq0idp-[0-9A-Za-z]{22})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sslmate/sslmate.go b/pkg/detectors/sslmate/sslmate.goindex b82befad9..b965df804 100644--- a/pkg/detectors/sslmate/sslmate.go+++ b/pkg/detectors/sslmate/sslmate.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sslmate"}) + `\b([a-zA-Z0-9]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/statuscake/statuscake.go b/pkg/detectors/statuscake/statuscake.goindex fb54c25ca..065025123 100644--- a/pkg/detectors/statuscake/statuscake.go+++ b/pkg/detectors/statuscake/statuscake.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"statuscake"}) + `\b([a-zA-Z0-9]{20})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/statuspage/statuspage.go b/pkg/detectors/statuspage/statuspage.goindex dadb4c427..f72fe3dbe 100644--- a/pkg/detectors/statuspage/statuspage.go+++ b/pkg/detectors/statuspage/statuspage.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"statuspage"}) + `\b([0-9a-z-]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/statuspal/statuspal.go b/pkg/detectors/statuspal/statuspal.goindex 32d2bbc35..fc98cb527 100644--- a/pkg/detectors/statuspal/statuspal.go+++ b/pkg/detectors/statuspal/statuspal.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"statuspal"}) + `\b([0-9a-zA-Z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/stitchdata/stitchdata.go b/pkg/detectors/stitchdata/stitchdata.goindex 86c220496..edb342fd0 100644--- a/pkg/detectors/stitchdata/stitchdata.go+++ b/pkg/detectors/stitchdata/stitchdata.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"stitchdata"}) + `\b([0-9a-z_]{35})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/stockdata/stockdata.go b/pkg/detectors/stockdata/stockdata.goindex 96245eff9..43345efd0 100644--- a/pkg/detectors/stockdata/stockdata.go+++ b/pkg/detectors/stockdata/stockdata.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"stockdata"}) + `\b([0-9A-Za-z]{40})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/storecove/storecove.go b/pkg/detectors/storecove/storecove.goindex bf489a1aa..15edb2d58 100644--- a/pkg/detectors/storecove/storecove.go+++ b/pkg/detectors/storecove/storecove.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"storecove"}) + `\b([a-zA-Z0-9_-]{43})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/stormglass/stormglass.go b/pkg/detectors/stormglass/stormglass.goindex 87fedc252..fb990e5e5 100644--- a/pkg/detectors/stormglass/stormglass.go+++ b/pkg/detectors/stormglass/stormglass.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"stormglass"}) + `\b([0-9Aa-z-]{73})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/storyblok/storyblok.go b/pkg/detectors/storyblok/storyblok.goindex b8917590d..5d2682b3b 100644--- a/pkg/detectors/storyblok/storyblok.go+++ b/pkg/detectors/storyblok/storyblok.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"storyblok"}) + `\b([0-9A-Za-z]{22}t{2})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/storychief/storychief.go b/pkg/detectors/storychief/storychief.goindex 0d75ac609..d85a9348c 100644--- a/pkg/detectors/storychief/storychief.go+++ b/pkg/detectors/storychief/storychief.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"storychief"}) + `\b([a-zA-Z0-9_\-.]{940,1000})`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/strava/strava.go b/pkg/detectors/strava/strava.goindex 5c4f6e016..62a26159e 100644--- a/pkg/detectors/strava/strava.go+++ b/pkg/detectors/strava/strava.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"strava"}) + `\b([0-9]{5})\b`)secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"strava"}) + `\b([0-9a-z]{40})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"strava"}) + `\b([0-9a-z]{40})\b`)@@ -76,7 +76,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resId, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/streak/streak.go b/pkg/detectors/streak/streak.goindex bfebbc8c9..c3adcbf97 100644--- a/pkg/detectors/streak/streak.go+++ b/pkg/detectors/streak/streak.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"streak"}) + `\b([0-9Aa-f]{32})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/stripe/stripe.go b/pkg/detectors/stripe/stripe.goindex c1353ecf5..ed747ea5f 100644--- a/pkg/detectors/stripe/stripe.go+++ b/pkg/detectors/stripe/stripe.go@@ -13,7 +13,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/stytch/stytch.go b/pkg/detectors/stytch/stytch.goindex e8ae4426b..86ff88d5e 100644--- a/pkg/detectors/stytch/stytch.go+++ b/pkg/detectors/stytch/stytch.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"stytch"}) + `\b([a-zA-Z0-9-_]{47}=)`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"stytch"}) + `\b([a-z0-9-]{49})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sugester/sugester.go b/pkg/detectors/sugester/sugester.goindex b4f4c4b1a..cce6be9ee 100644--- a/pkg/detectors/sugester/sugester.go+++ b/pkg/detectors/sugester/sugester.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sugester"}) + `\b([a-zA-Z0-9]{32})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sugester"}) + `\b([a-zA-Z0-9_.!+$#^*%]{3,32})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/sumologickey/sumologickey.go b/pkg/detectors/sumologickey/sumologickey.goindex 9c6fb75d8..50b4ebbaf 100644--- a/pkg/detectors/sumologickey/sumologickey.go+++ b/pkg/detectors/sumologickey/sumologickey.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sumo"}) + `\b([A-Za-z0-9]{14})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sumo"}) + `\b([A-Za-z0-9]{64})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/supernotesapi/supernotesapi.go b/pkg/detectors/supernotesapi/supernotesapi.goindex cea3aa876..20ca55f2b 100644--- a/pkg/detectors/supernotesapi/supernotesapi.go+++ b/pkg/detectors/supernotesapi/supernotesapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"supernotes"}) + `([ \r\n]{0,1}[0-9A-Za-z\-_]{43}[ \r\n]{1})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/surveyanyplace/surveyanyplace.go b/pkg/detectors/surveyanyplace/surveyanyplace.goindex cc39681ff..f74e8690d 100644--- a/pkg/detectors/surveyanyplace/surveyanyplace.go+++ b/pkg/detectors/surveyanyplace/surveyanyplace.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"survey"}) + `\b([a-z0-9A-Z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"survey"}) + `\b([a-z0-9A-Z-]{36})\b`))@@ -74,7 +74,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/surveybot/surveybot.go b/pkg/detectors/surveybot/surveybot.goindex 0fc75e1b7..9aa928909 100644--- a/pkg/detectors/surveybot/surveybot.go+++ b/pkg/detectors/surveybot/surveybot.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"surveybot"}) + `\b([A-Za-z0-9-]{80})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/surveysparrow/surveysparrow.go b/pkg/detectors/surveysparrow/surveysparrow.goindex 926aa3c71..698e71e50 100644--- a/pkg/detectors/surveysparrow/surveysparrow.go+++ b/pkg/detectors/surveysparrow/surveysparrow.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"surveysparrow"}) + `\b([a-zA-Z0-9-_]{88})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/survicate/survicate.go b/pkg/detectors/survicate/survicate.goindex 07dfd4a73..8ef4884aa 100644--- a/pkg/detectors/survicate/survicate.go+++ b/pkg/detectors/survicate/survicate.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"survicate"}) + `\b([a-z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/swell/swell.go b/pkg/detectors/swell/swell.goindex 3a330223f..2682cc099 100644--- a/pkg/detectors/swell/swell.go+++ b/pkg/detectors/swell/swell.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"swell"}) + `\b([a-zA-Z0-9]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"swell"}) + `\b([a-zA-Z0-9]{6,24})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/swiftype/swiftype.go b/pkg/detectors/swiftype/swiftype.goindex 83ac2f57f..3a36c420b 100644--- a/pkg/detectors/swiftype/swiftype.go+++ b/pkg/detectors/swiftype/swiftype.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"swiftype"}) + `\b([a-zA-z-0-9]{6}\_[a-zA-z-0-9]{6}\-[a-zA-z-0-9]{6})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tallyfy/tallyfy.go b/pkg/detectors/tallyfy/tallyfy.goindex 29c327533..533b70d13 100644--- a/pkg/detectors/tallyfy/tallyfy.go+++ b/pkg/detectors/tallyfy/tallyfy.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tallyfy"}) + `\b([0-9A-Za-z]{36}\.[0-9A-Za-z]{264}\.[0-9A-Za-z\-\_]{683})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tatumio/tatumio.go b/pkg/detectors/tatumio/tatumio.goindex 1bbdfb60d..8063e94cc 100644--- a/pkg/detectors/tatumio/tatumio.go+++ b/pkg/detectors/tatumio/tatumio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tatum"}) + `\b([0-9a-z-]{36})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/taxjar/taxjar.go b/pkg/detectors/taxjar/taxjar.goindex f794a0c47..385b706b0 100644--- a/pkg/detectors/taxjar/taxjar.go+++ b/pkg/detectors/taxjar/taxjar.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"taxjar"}) + `\b([a-z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/teamgate/teamgate.go b/pkg/detectors/teamgate/teamgate.goindex cb4056098..c76304d63 100644--- a/pkg/detectors/teamgate/teamgate.go+++ b/pkg/detectors/teamgate/teamgate.go@@ -13,12 +13,12 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.tokenPat = regexp.MustCompile(detectors.PrefixRegex([]string{"teamgate"}) + `\b([a-z0-9]{40})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"teamgate"}) + `\b([a-zA-Z0-9]{80})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/teamworkcrm/teamworkcrm.go b/pkg/detectors/teamworkcrm/teamworkcrm.goindex 498c48f0c..88eeee9dd 100644--- a/pkg/detectors/teamworkcrm/teamworkcrm.go+++ b/pkg/detectors/teamworkcrm/teamworkcrm.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"teamwork", "teamworkcrm"}) + `\b(tkn\.v1_[0-9A-Za-z]{71}=[ \r\n]{1})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/teamworkdesk/teamworkdesk.go b/pkg/detectors/teamworkdesk/teamworkdesk.goindex 6bd39fc16..3421d27f4 100644--- a/pkg/detectors/teamworkdesk/teamworkdesk.go+++ b/pkg/detectors/teamworkdesk/teamworkdesk.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"teamwork", "teamworkdesk"}) + `\b(tkn\.v1_[0-9A-Za-z]{71}=[ \r\n]{1})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/teamworkspaces/teamworkspaces.go b/pkg/detectors/teamworkspaces/teamworkspaces.goindex a338e42ba..253705e7d 100644--- a/pkg/detectors/teamworkspaces/teamworkspaces.go+++ b/pkg/detectors/teamworkspaces/teamworkspaces.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"teamwork", "teamworkspaces"}) + `\b(tkn\.v1_[0-9A-Za-z]{71}=[ \r\n]{1})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.goindex ada996899..c2812f86e 100644--- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go+++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"technicalanalysisapi"}) + `\b([A-Z0-9]{48})\b`))@@ -61,7 +61,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/telegrambottoken/telegrambottoken.go b/pkg/detectors/telegrambottoken/telegrambottoken.goindex bec15cb16..7e560baec 100644--- a/pkg/detectors/telegrambottoken/telegrambottoken.go+++ b/pkg/detectors/telegrambottoken/telegrambottoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/teletype/teletype.go b/pkg/detectors/teletype/teletype.goindex 826ad7131..d3199dd01 100644--- a/pkg/detectors/teletype/teletype.go+++ b/pkg/detectors/teletype/teletype.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"teletype"}) + `\b([0-9a-zA-Z-]{64})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = true}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/telnyx/telnyx.go b/pkg/detectors/telnyx/telnyx.goindex e0d2683ef..7da32ae99 100644--- a/pkg/detectors/telnyx/telnyx.go+++ b/pkg/detectors/telnyx/telnyx.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"telnyx"}) + `\b(KEY[0-9A-Za-z_-]{55})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.goindex d6b700192..5f211b1f4 100644--- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go+++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/testingbot/testingbot.go b/pkg/detectors/testingbot/testingbot.goindex bd42ace01..cc85568aa 100644--- a/pkg/detectors/testingbot/testingbot.go+++ b/pkg/detectors/testingbot/testingbot.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"testingbot"}) + `\b([0-9a-z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"testingbot"}) + `\b([0-9a-z]{32})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/text2data/text2data.go b/pkg/detectors/text2data/text2data.goindex 4f1877b52..2fed92bfb 100644--- a/pkg/detectors/text2data/text2data.go+++ b/pkg/detectors/text2data/text2data.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"text2data"}) + `\b([0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})\b`))@@ -72,7 +72,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/textmagic/textmagic.go b/pkg/detectors/textmagic/textmagic.goindex a862844f1..c5aef540e 100644--- a/pkg/detectors/textmagic/textmagic.go+++ b/pkg/detectors/textmagic/textmagic.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"textmagic"}) + `\b([0-9A-Za-z]{30})\b`)userPat = regexp.MustCompile(detectors.PrefixRegex([]string{"textmagic"}) + `\b([0-9A-Za-z]{1,25})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/theoddsapi/theoddsapi.go b/pkg/detectors/theoddsapi/theoddsapi.goindex 81b79d653..482f422c0 100644--- a/pkg/detectors/theoddsapi/theoddsapi.go+++ b/pkg/detectors/theoddsapi/theoddsapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"theoddsapi", "the-odds-api"}) + `\b([0-9a-f]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/thinkific/thinkific.go b/pkg/detectors/thinkific/thinkific.goindex 62911bcd1..d46834c43 100644--- a/pkg/detectors/thinkific/thinkific.go+++ b/pkg/detectors/thinkific/thinkific.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"thinkific"}) + `\b([0-9a-f]{32})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"thinkific"}) + `\b([0-9A-Za-z]{4,40})\b`))diff --git a/pkg/detectors/thousandeyes/thousandeyes.go b/pkg/detectors/thousandeyes/thousandeyes.goindex 9a7ece7c5..9ad83f464 100644--- a/pkg/detectors/thousandeyes/thousandeyes.go+++ b/pkg/detectors/thousandeyes/thousandeyes.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"thousandeyes"}) + `\b([a-zA-Z0-9]{32})\b`)email = regexp.MustCompile(detectors.PrefixRegex([]string{"thousandeyes"}) + `\b([a-zA-Z0-9]{3,20}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,5})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(tokenPatMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ticketmaster/ticketmaster.go b/pkg/detectors/ticketmaster/ticketmaster.goindex c51541a7d..3d1dee97f 100644--- a/pkg/detectors/ticketmaster/ticketmaster.go+++ b/pkg/detectors/ticketmaster/ticketmaster.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"ticketmaster"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tiingo/tiingo.go b/pkg/detectors/tiingo/tiingo.goindex 317854d85..579118d31 100644--- a/pkg/detectors/tiingo/tiingo.go+++ b/pkg/detectors/tiingo/tiingo.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tiingo"}) + `\b([0-9a-z]{40})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/timecamp/timecamp.go b/pkg/detectors/timecamp/timecamp.goindex c54800e6e..5211f89c3 100644--- a/pkg/detectors/timecamp/timecamp.go+++ b/pkg/detectors/timecamp/timecamp.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"timecamp"}) + `\b([0-9a-z]{26})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/timezoneapi/timezoneapi.go b/pkg/detectors/timezoneapi/timezoneapi.goindex 095902e8f..06d3d3b87 100644--- a/pkg/detectors/timezoneapi/timezoneapi.go+++ b/pkg/detectors/timezoneapi/timezoneapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"timezoneapi"}) + `\b([a-zA-Z0-9]{20})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tly/tly.go b/pkg/detectors/tly/tly.goindex 323c463c8..d600b769d 100644--- a/pkg/detectors/tly/tly.go+++ b/pkg/detectors/tly/tly.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tly"}) + `\b([0-9A-Za-z]{60})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tmetric/tmetric.go b/pkg/detectors/tmetric/tmetric.goindex a658d6d09..a29bb5d41 100644--- a/pkg/detectors/tmetric/tmetric.go+++ b/pkg/detectors/tmetric/tmetric.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tmetric"}) + `\b([0-9A-Z]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/todoist/todoist.go b/pkg/detectors/todoist/todoist.goindex 0545155ad..e7815bd79 100644--- a/pkg/detectors/todoist/todoist.go+++ b/pkg/detectors/todoist/todoist.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"todoist"}) + `\b([0-9a-z]{40})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/toggltrack/toggltrack.go b/pkg/detectors/toggltrack/toggltrack.goindex c099a4264..7d1d8c912 100644--- a/pkg/detectors/toggltrack/toggltrack.go+++ b/pkg/detectors/toggltrack/toggltrack.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"toggl"}) + `\b([0-9Aa-z]{32})\b`))@@ -63,7 +63,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tomorrowio/tomorrowio.go b/pkg/detectors/tomorrowio/tomorrowio.goindex f4e949d72..12a6508f7 100644--- a/pkg/detectors/tomorrowio/tomorrowio.go+++ b/pkg/detectors/tomorrowio/tomorrowio.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tomorrow"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tomtom/tomtom.go b/pkg/detectors/tomtom/tomtom.goindex e02077b46..cd138ab18 100644--- a/pkg/detectors/tomtom/tomtom.go+++ b/pkg/detectors/tomtom/tomtom.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tomtom"}) + `\b([0-9Aa-zA-Z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/tradier/tradier.go b/pkg/detectors/tradier/tradier.goindex 3940602a7..72ee44bae 100644--- a/pkg/detectors/tradier/tradier.go+++ b/pkg/detectors/tradier/tradier.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tradier"}) + `\b([a-zA-Z0-9]{28})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/travelpayouts/travelpayouts.go b/pkg/detectors/travelpayouts/travelpayouts.goindex 9a42a338f..fddad483d 100644--- a/pkg/detectors/travelpayouts/travelpayouts.go+++ b/pkg/detectors/travelpayouts/travelpayouts.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"travelpayouts"}) + `\b([a-z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/travisci/travisci.go b/pkg/detectors/travisci/travisci.goindex 03290a5f9..89cb6d816 100644--- a/pkg/detectors/travisci/travisci.go+++ b/pkg/detectors/travisci/travisci.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/trelloapikey/trelloapikey.go b/pkg/detectors/trelloapikey/trelloapikey.goindex 7e8813e3a..11ba326ab 100644--- a/pkg/detectors/trelloapikey/trelloapikey.go+++ b/pkg/detectors/trelloapikey/trelloapikey.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/tru/tru.go b/pkg/detectors/tru/tru.goindex 961a125f4..c09c7aebf 100644--- a/pkg/detectors/tru/tru.go+++ b/pkg/detectors/tru/tru.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tru"}) + `\b([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})\b`)secrePat = regexp.MustCompile(detectors.PrefixRegex([]string{"tru"}) + `\b([0-9a-zA-Z.-_]{26})\b`))@@ -71,7 +71,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/twelvedata/twelvedata.go b/pkg/detectors/twelvedata/twelvedata.goindex 5b19120cc..c163d6f1d 100644--- a/pkg/detectors/twelvedata/twelvedata.go+++ b/pkg/detectors/twelvedata/twelvedata.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"twelvedata"}) + `\b([a-z0-9]{32})\b`))diff --git a/pkg/detectors/twilio/twilio.go b/pkg/detectors/twilio/twilio.goindex da7b8b2ff..c8f3c53f9 100644--- a/pkg/detectors/twilio/twilio.go+++ b/pkg/detectors/twilio/twilio.go@@ -14,7 +14,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/twitter/twitter.go b/pkg/detectors/twitter/twitter.goindex bb89665d0..158cc7a7a 100644--- a/pkg/detectors/twitter/twitter.go+++ b/pkg/detectors/twitter/twitter.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"twitter"}) + `\b([A-Z]{22}%[a-zA-Z-0-9]{23}%[a-zA-Z-0-9]{6}%[a-zA-Z-0-9]{3}%[a-zA-Z-0-9]{9}%[a-zA-Z-0-9]{52})\b`))diff --git a/pkg/detectors/tyntec/tyntec.go b/pkg/detectors/tyntec/tyntec.goindex 629c62fa5..1369f47df 100644--- a/pkg/detectors/tyntec/tyntec.go+++ b/pkg/detectors/tyntec/tyntec.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"tyntec"}) + `\b([a-zA-Z0-9]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/typeform/typeform.go b/pkg/detectors/typeform/typeform.goindex 8ba03d705..cb765dbbd 100644--- a/pkg/detectors/typeform/typeform.go+++ b/pkg/detectors/typeform/typeform.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"typeform"}) + `\b([0-9A-Za-z]{44})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/typetalk/typetalk.go b/pkg/detectors/typetalk/typetalk.goindex d6983b20b..8b41a1f6e 100644--- a/pkg/detectors/typetalk/typetalk.go+++ b/pkg/detectors/typetalk/typetalk.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"typetalk"}) + `\b([0-9a-zA-Z]{64})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"typetalk"}) + `\b([0-9a-zA-Z]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/ubidots/ubidots.go b/pkg/detectors/ubidots/ubidots.goindex 0e4f1a9cf..63c5c5f2c 100644--- a/pkg/detectors/ubidots/ubidots.go+++ b/pkg/detectors/ubidots/ubidots.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`\b(BBFF-[0-9a-zA-Z]{30})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/unifyid/unifyid.go b/pkg/detectors/unifyid/unifyid.goindex 9025c545c..bbf8d69d4 100644--- a/pkg/detectors/unifyid/unifyid.go+++ b/pkg/detectors/unifyid/unifyid.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"unify"}) + `\b([0-9A-Za-z_=-]{44})`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) || (res.StatusCode == 400 && strings.Contains(body, "invalid token")) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/unplugg/unplugg.go b/pkg/detectors/unplugg/unplugg.goindex ca6cb0625..f3d96422b 100644--- a/pkg/detectors/unplugg/unplugg.go+++ b/pkg/detectors/unplugg/unplugg.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"unplu"}) + `\b([a-z0-9]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/unsplash/unsplash.go b/pkg/detectors/unsplash/unsplash.goindex 089f6ae10..aac97b7ab 100644--- a/pkg/detectors/unsplash/unsplash.go+++ b/pkg/detectors/unsplash/unsplash.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"unsplash"}) + `\b([0-9A-Za-z_]{43})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/upcdatabase/upcdatabase.go b/pkg/detectors/upcdatabase/upcdatabase.goindex b34191b81..5bea46f83 100644--- a/pkg/detectors/upcdatabase/upcdatabase.go+++ b/pkg/detectors/upcdatabase/upcdatabase.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"upcdatabase"}) + `\b([A-Z0-9]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/uplead/uplead.go b/pkg/detectors/uplead/uplead.goindex 3cdf8d027..efa28466b 100644--- a/pkg/detectors/uplead/uplead.go+++ b/pkg/detectors/uplead/uplead.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"uplead"}) + `\b([a-z0-9-]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/uploadcare/uploadcare.go b/pkg/detectors/uploadcare/uploadcare.goindex 983e181dd..7768985da 100644--- a/pkg/detectors/uploadcare/uploadcare.go+++ b/pkg/detectors/uploadcare/uploadcare.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"uploadcare"}) + `\b([a-z0-9]{20})\b`)publicKeyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"uploadcare"}) + `\b([a-z0-9]{20})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/uptimerobot/uptimerobot.go b/pkg/detectors/uptimerobot/uptimerobot.goindex e41a56100..050500e66 100644--- a/pkg/detectors/uptimerobot/uptimerobot.go+++ b/pkg/detectors/uptimerobot/uptimerobot.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"uptimerobot"}) + `\b([a-zA-Z0-9]{9}-[a-zA-Z0-9]{24})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/upwave/upwave.go b/pkg/detectors/upwave/upwave.goindex a5448f403..91f41009e 100644--- a/pkg/detectors/upwave/upwave.go+++ b/pkg/detectors/upwave/upwave.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"upwave"}) + `\b([0-9a-z]{32})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/uri/uri.go b/pkg/detectors/uri/uri.goindex 600990d99..18e8ab1ed 100644--- a/pkg/detectors/uri/uri.go+++ b/pkg/detectors/uri/uri.go@@ -19,7 +19,7 @@ type Scanner struct {allowKnownTestSites bool}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/urlscan/urlscan.go b/pkg/detectors/urlscan/urlscan.goindex 79971d726..b415d5f1f 100644--- a/pkg/detectors/urlscan/urlscan.go+++ b/pkg/detectors/urlscan/urlscan.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"urlscan"}) + `\b([a-z0-9-]{36})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/user/user.go b/pkg/detectors/user/user.goindex 08579d766..d376eb863 100644--- a/pkg/detectors/user/user.go+++ b/pkg/detectors/user/user.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"user"}) + `\b([a-zA-Z0-9-._+=]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/userflow/userflow.go b/pkg/detectors/userflow/userflow.goindex d35f6cf68..0cc6d145f 100644--- a/pkg/detectors/userflow/userflow.go+++ b/pkg/detectors/userflow/userflow.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"userflow"}) + `\b([0-9a-z_]{29})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/userstack/userstack.go b/pkg/detectors/userstack/userstack.goindex a157e672a..461359645 100644--- a/pkg/detectors/userstack/userstack.go+++ b/pkg/detectors/userstack/userstack.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"userstack"}) + `\b([a-z0-9]{32})\b`))@@ -64,7 +64,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = true} else {s1.Verified = false- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/vatlayer/vatlayer.go b/pkg/detectors/vatlayer/vatlayer.goindex df1c2078a..e0772ec43 100644--- a/pkg/detectors/vatlayer/vatlayer.go+++ b/pkg/detectors/vatlayer/vatlayer.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vatlayer"}) + `\b([a-z0-9]{32})\b`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/vercel/vercel.go b/pkg/detectors/vercel/vercel.goindex 2b8afb1a0..a603467ae 100644--- a/pkg/detectors/vercel/vercel.go+++ b/pkg/detectors/vercel/vercel.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vercel"}) + `\b([a-zA-Z0-9]{24})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/verifier/verifier.go b/pkg/detectors/verifier/verifier.goindex db5e60a94..aa081e7e2 100644--- a/pkg/detectors/verifier/verifier.go+++ b/pkg/detectors/verifier/verifier.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"verifier"}) + `\b([a-z0-9]{96})\b`)emailPat = regexp.MustCompile(detectors.PrefixRegex([]string{"verifier"}) + `\b([a-zA-Z-0-9-]{5,16}\@[a-zA-Z-0-9]{4,16}\.[a-zA-Z-0-9]{3,6})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/verimail/verimail.go b/pkg/detectors/verimail/verimail.goindex 89025009d..10c194115 100644--- a/pkg/detectors/verimail/verimail.go+++ b/pkg/detectors/verimail/verimail.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"verimail"}) + `\b([A-Z0-9]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/veriphone/veriphone.go b/pkg/detectors/veriphone/veriphone.goindex 5036dd7ca..8cce7f4f4 100644--- a/pkg/detectors/veriphone/veriphone.go+++ b/pkg/detectors/veriphone/veriphone.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"veriphone"}) + `\b([0-9A-Z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/versioneye/versioneye.go b/pkg/detectors/versioneye/versioneye.goindex bada2d0db..0eaa9de4f 100644--- a/pkg/detectors/versioneye/versioneye.go+++ b/pkg/detectors/versioneye/versioneye.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"versioneye"}) + `\b([a-zA-Z0-9-]{40})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/viewneo/viewneo.go b/pkg/detectors/viewneo/viewneo.goindex 9e2a0746d..d30594238 100644--- a/pkg/detectors/viewneo/viewneo.go+++ b/pkg/detectors/viewneo/viewneo.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"viewneo"}) + `\b([a-z0-9A-Z]{120,300}.[a-z0-9A-Z]{150,300}.[a-z0-9A-Z-_]{600,800})`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/virustotal/virustotal.go b/pkg/detectors/virustotal/virustotal.goindex 96218e637..bf4665d19 100644--- a/pkg/detectors/virustotal/virustotal.go+++ b/pkg/detectors/virustotal/virustotal.go@@ -16,13 +16,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"virustotal"}) + `\b([a-f0-9]{64})\b`))@@ -73,7 +73,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/visualcrossing/visualcrossing.go b/pkg/detectors/visualcrossing/visualcrossing.goindex 07f87ec0c..9aa6ba04f 100644--- a/pkg/detectors/visualcrossing/visualcrossing.go+++ b/pkg/detectors/visualcrossing/visualcrossing.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"visualcrossing"}) + `\b([0-9A-Z]{25})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/voicegain/voicegain.go b/pkg/detectors/voicegain/voicegain.goindex 5639d8c44..3daa3f898 100644--- a/pkg/detectors/voicegain/voicegain.go+++ b/pkg/detectors/voicegain/voicegain.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"voicegain"}) + `\b(ey[0-9a-zA-Z_-]{34}.ey[0-9a-zA-Z_-]{108}.[0-9a-zA-Z_-]{43})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/voodoosms/voodoosms.go b/pkg/detectors/voodoosms/voodoosms.goindex d43bea12d..4cfd2486d 100644--- a/pkg/detectors/voodoosms/voodoosms.go+++ b/pkg/detectors/voodoosms/voodoosms.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"voodoosms"}) + `\b([0-9a-zA-Z]{46})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/vouchery/vouchery.go b/pkg/detectors/vouchery/vouchery.goindex c7a933b85..828867390 100644--- a/pkg/detectors/vouchery/vouchery.go+++ b/pkg/detectors/vouchery/vouchery.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vouchery"}) + `\b([a-z0-9-]{36})\b`)subPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vouchery"}) + `\b([a-zA-Z0-9-\S]{2,20})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/vpnapi/vpnapi.go b/pkg/detectors/vpnapi/vpnapi.goindex 917595fbb..1aab24778 100644--- a/pkg/detectors/vpnapi/vpnapi.go+++ b/pkg/detectors/vpnapi/vpnapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vpnapi"}) + `\b([a-z0-9A-Z]{32})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/vultrapikey/vultrapikey.go b/pkg/detectors/vultrapikey/vultrapikey.goindex a0bece152..45195a539 100644--- a/pkg/detectors/vultrapikey/vultrapikey.go+++ b/pkg/detectors/vultrapikey/vultrapikey.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vultr"}) + ` \b([A-Z0-9]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/vyte/vyte.go b/pkg/detectors/vyte/vyte.goindex 7f3cceb01..18cd4b818 100644--- a/pkg/detectors/vyte/vyte.go+++ b/pkg/detectors/vyte/vyte.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"vyte"}) + `\b([0-9a-z]{50})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/walkscore/walkscore.go b/pkg/detectors/walkscore/walkscore.goindex 86f4fdb56..e84089224 100644--- a/pkg/detectors/walkscore/walkscore.go+++ b/pkg/detectors/walkscore/walkscore.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"walkscore"}) + `\b([0-9a-z]{32})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) && strings.Contains(body, `distance`) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/weatherbit/weatherbit.go b/pkg/detectors/weatherbit/weatherbit.goindex f30b073e1..9e6d04c9f 100644--- a/pkg/detectors/weatherbit/weatherbit.go+++ b/pkg/detectors/weatherbit/weatherbit.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"weatherbit"}) + `\b([0-9a-z]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/weatherstack/weatherstack.go b/pkg/detectors/weatherstack/weatherstack.goindex 1c3a0d77e..41e4efe88 100644--- a/pkg/detectors/weatherstack/weatherstack.go+++ b/pkg/detectors/weatherstack/weatherstack.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"weatherstack"}) + `\b([0-9a-z]{32})\b`))@@ -66,7 +66,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif (res.StatusCode >= 200 && res.StatusCode < 300) && validResponse {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/webex/webex.go b/pkg/detectors/webex/webex.goindex c985044fc..c9bd79249 100644--- a/pkg/detectors/webex/webex.go+++ b/pkg/detectors/webex/webex.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/webflow/webflow.go b/pkg/detectors/webflow/webflow.goindex 07df14845..9dbbc15c3 100644--- a/pkg/detectors/webflow/webflow.go+++ b/pkg/detectors/webflow/webflow.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webflow"}) + `\b([a-zA0-9]{64})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/webscraper/webscraper.go b/pkg/detectors/webscraper/webscraper.goindex 466557409..692e10cde 100644--- a/pkg/detectors/webscraper/webscraper.go+++ b/pkg/detectors/webscraper/webscraper.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webscraper"}) + `\b([a-zA-Z0-9]{60})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/webscraping/webscraping.go b/pkg/detectors/webscraping/webscraping.goindex f15fca6ae..8bb147262 100644--- a/pkg/detectors/webscraping/webscraping.go+++ b/pkg/detectors/webscraping/webscraping.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"webscraping"}) + `\b([0-9A-Za-z]{32})\b`))diff --git a/pkg/detectors/wepay/wepay.go b/pkg/detectors/wepay/wepay.goindex 53a063350..7d18aedc4 100644--- a/pkg/detectors/wepay/wepay.go+++ b/pkg/detectors/wepay/wepay.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.appIDPat = regexp.MustCompile(`\b(\d{6})\b`)keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"wepay"}) + `\b([a-zA-Z0-9_?]{62})\b`)@@ -74,7 +74,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/whoxy/whoxy.go b/pkg/detectors/whoxy/whoxy.goindex c4e2511c4..394c7f73d 100644--- a/pkg/detectors/whoxy/whoxy.go+++ b/pkg/detectors/whoxy/whoxy.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"whoxy"}) + `\b([0-9a-z]{33})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 && strings.Contains(body, `"status": 1`) {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/wistia/wistia.go b/pkg/detectors/wistia/wistia.goindex 0909ed941..173b5fdf8 100644--- a/pkg/detectors/wistia/wistia.go+++ b/pkg/detectors/wistia/wistia.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"wistia"}) + `\b([0-9a-z]{64})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/wit/wit.go b/pkg/detectors/wit/wit.goindex 02e37585d..a5bcd10e7 100644--- a/pkg/detectors/wit/wit.go+++ b/pkg/detectors/wit/wit.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"wit"}) + `\b([A-Z0-9]{32})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/worksnaps/worksnaps.go b/pkg/detectors/worksnaps/worksnaps.goindex 0df209b37..1365fdea3 100644--- a/pkg/detectors/worksnaps/worksnaps.go+++ b/pkg/detectors/worksnaps/worksnaps.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"worksnaps"}) + `\b([0-9A-Za-z]{40})\b`))@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/workstack/workstack.go b/pkg/detectors/workstack/workstack.goindex b2cb64a9b..5219439a8 100644--- a/pkg/detectors/workstack/workstack.go+++ b/pkg/detectors/workstack/workstack.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"workstack"}) + `\b([0-9Aa-zA-Z]{60})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/worldcoinindex/worldcoinindex.go b/pkg/detectors/worldcoinindex/worldcoinindex.goindex cf1807b42..cf8fc9729 100644--- a/pkg/detectors/worldcoinindex/worldcoinindex.go+++ b/pkg/detectors/worldcoinindex/worldcoinindex.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"worldcoinindex"}) + `\b([a-zA-Z0-9]{35})\b`))@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results1.Verified = false}} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/worldweather/worldweather.go b/pkg/detectors/worldweather/worldweather.goindex c5d43e362..2fd06db23 100644--- a/pkg/detectors/worldweather/worldweather.go+++ b/pkg/detectors/worldweather/worldweather.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"worldweather"}) + `\b([0-9a-z]{31})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/wrike/wrike.go b/pkg/detectors/wrike/wrike.goindex e2b30a70c..1e4812bca 100644--- a/pkg/detectors/wrike/wrike.go+++ b/pkg/detectors/wrike/wrike.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"wrike"}) + `\b(ey[a-zA-Z0-9-._]{333})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/yandex/yandex.go b/pkg/detectors/yandex/yandex.goindex 95f227cc8..15d21179a 100644--- a/pkg/detectors/yandex/yandex.go+++ b/pkg/detectors/yandex/yandex.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"yandex"}) + `\b([a-z0-9A-Z.]{83})\b`))@@ -57,7 +57,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/yelp/yelp.go b/pkg/detectors/yelp/yelp.goindex 270172ff9..ddd8474b3 100644--- a/pkg/detectors/yelp/yelp.go+++ b/pkg/detectors/yelp/yelp.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"yelp"}) + `\b([a-zA-Z0-9_\\=\.\-]{128})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/youneedabudget/youneedabudget.go b/pkg/detectors/youneedabudget/youneedabudget.goindex aab7a95f4..6daa6aa7d 100644--- a/pkg/detectors/youneedabudget/youneedabudget.go+++ b/pkg/detectors/youneedabudget/youneedabudget.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"youneedabudget"}) + `\b([0-9a-f]{64})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/yousign/yousign.go b/pkg/detectors/yousign/yousign.goindex e9021daec..67df84e97 100644--- a/pkg/detectors/yousign/yousign.go+++ b/pkg/detectors/yousign/yousign.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"yousign"}) + `\b([0-9a-z]{32})\b`))@@ -60,7 +60,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/youtubeapikey/youtubeapikey.go b/pkg/detectors/youtubeapikey/youtubeapikey.goindex 471b21854..4fc9b7c1e 100644--- a/pkg/detectors/youtubeapikey/youtubeapikey.go+++ b/pkg/detectors/youtubeapikey/youtubeapikey.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"youtube"}) + `\b([a-zA-Z-0-9_]{39})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"youtube"}) + `\b([a-zA-Z-0-9]{24})\b`))@@ -65,7 +65,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zapierwebhook/zapierwebhook.go b/pkg/detectors/zapierwebhook/zapierwebhook.goindex 717507277..61cb98878 100644--- a/pkg/detectors/zapierwebhook/zapierwebhook.go+++ b/pkg/detectors/zapierwebhook/zapierwebhook.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(`(https:\/\/hooks\.zapier\.com\/hooks\/catch\/[A-Za-z0-9\/]{16})`))diff --git a/pkg/detectors/zendeskapi/zendeskapi.go b/pkg/detectors/zendeskapi/zendeskapi.goindex e4ddd2f30..411b0fb97 100644--- a/pkg/detectors/zendeskapi/zendeskapi.go+++ b/pkg/detectors/zendeskapi/zendeskapi.go@@ -15,7 +15,7 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (diff --git a/pkg/detectors/zenkitapi/zenkitapi.go b/pkg/detectors/zenkitapi/zenkitapi.goindex f5cd4a0a5..58d869c69 100644--- a/pkg/detectors/zenkitapi/zenkitapi.go+++ b/pkg/detectors/zenkitapi/zenkitapi.go@@ -13,13 +13,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zenkit"}) + `\b([0-9a-z]{8}\-[0-9A-Za-z]{32})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zenscrape/zenscrape.go b/pkg/detectors/zenscrape/zenscrape.goindex 6987eadc6..816054e99 100644--- a/pkg/detectors/zenscrape/zenscrape.go+++ b/pkg/detectors/zenscrape/zenscrape.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zenscrape"}) + `\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b`))diff --git a/pkg/detectors/zenserp/zenserp.go b/pkg/detectors/zenserp/zenserp.goindex dc2184103..3d9fe45f3 100644--- a/pkg/detectors/zenserp/zenserp.go+++ b/pkg/detectors/zenserp/zenserp.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClientTimeOut(5)- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zenserp"}) + `\b([0-9a-z-]{36})\b`))diff --git a/pkg/detectors/zeplin/zeplin.go b/pkg/detectors/zeplin/zeplin.goindex 21f0272dc..2b22785c2 100644--- a/pkg/detectors/zeplin/zeplin.go+++ b/pkg/detectors/zeplin/zeplin.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zeplin"}) + `\b([a-zA-Z0-9-.]{350,400})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zerobounce/zerobounce.go b/pkg/detectors/zerobounce/zerobounce.goindex 42685eb1d..b4b8eec48 100644--- a/pkg/detectors/zerobounce/zerobounce.go+++ b/pkg/detectors/zerobounce/zerobounce.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zerobounce"}) + `\b([a-z0-9]{32})\b`))diff --git a/pkg/detectors/zipapi/zipapi.go b/pkg/detectors/zipapi/zipapi.goindex d34c52c5c..629284a48 100644--- a/pkg/detectors/zipapi/zipapi.go+++ b/pkg/detectors/zipapi/zipapi.go@@ -15,13 +15,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zipapi"}) + `\b([0-9a-z]{32})\b`)emailPat = regexp.MustCompile(`\b([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]+)\b`)pwordPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zipapi"}) + `\b([a-zA-Z0-9!=@#$%^]{7,})`)@@ -77,7 +77,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zipbooks/zipbooks.go b/pkg/detectors/zipbooks/zipbooks.goindex 03b258935..6d5ba7a3a 100644--- a/pkg/detectors/zipbooks/zipbooks.go+++ b/pkg/detectors/zipbooks/zipbooks.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.emailPat = regexp.MustCompile(`\b([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-z]+)\b`)pwordPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zipbooks", "password"}) + `\b([a-zA-Z0-9!=@#$%^]{8,})`))@@ -67,7 +67,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zipcodeapi/zipcodeapi.go b/pkg/detectors/zipcodeapi/zipcodeapi.goindex 675bd4a9e..924b35287 100644--- a/pkg/detectors/zipcodeapi/zipcodeapi.go+++ b/pkg/detectors/zipcodeapi/zipcodeapi.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zipcodeapi"}) + `\b([a-zA-Z0-9]{64})\b`))@@ -58,7 +58,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zonkafeedback/zonkafeedback.go b/pkg/detectors/zonkafeedback/zonkafeedback.goindex 2c3bb607f..e2f0877e8 100644--- a/pkg/detectors/zonkafeedback/zonkafeedback.go+++ b/pkg/detectors/zonkafeedback/zonkafeedback.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zonka"}) + `\b([A-Za-z0-9]{36})\b`))@@ -59,7 +59,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {continue}diff --git a/pkg/detectors/zulipchat/zulipchat.go b/pkg/detectors/zulipchat/zulipchat.goindex e1096b076..08ad43853 100644--- a/pkg/detectors/zulipchat/zulipchat.go+++ b/pkg/detectors/zulipchat/zulipchat.go@@ -14,13 +14,13 @@ import (type Scanner struct{}-// Ensure the Scanner satisfies the interface at compile time+// Ensure the Scanner satisfies the interface at compile time.var _ detectors.Detector = (*Scanner)(nil)var (client = common.SaneHttpClient()- //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zulipchat"}) + `\b([0-9a-zA-Z]{32})\b`)idPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zulipchat"}) + `\b([a-z0-9]{4,25}@[a-zA-Z0-9]{2,12}.[a-zA-Z0-9]{2,6})\b`)domainPat = regexp.MustCompile(detectors.PrefixRegex([]string{"zulipchat", "domain"}) + `\b([0-9a-z]{2,20})\b`)@@ -79,7 +79,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (resultif res.StatusCode >= 200 && res.StatusCode < 300 {s1.Verified = true} else {- //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.if detectors.IsKnownFalsePositive(resIdMatch, detectors.DefaultFalsePositives, true) {continue}