Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
update detectors
Dustin Deckerb0e0c26137d3
diff --git a/pkg/detectors/agora/agora.go b/pkg/detectors/agora/agora.goindex 2ce16f0d0..aefe154ba 100644--- a/pkg/detectors/agora/agora.go+++ b/pkg/detectors/agora/agora.go@@ -2,13 +2,10 @@ package agoraimport ("context"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey.go b/pkg/detectors/algoliaadminkey/algoliaadminkey.goindex 92ecaffb3..b5410afb1 100644--- a/pkg/detectors/algoliaadminkey/algoliaadminkey.go+++ b/pkg/detectors/algoliaadminkey/algoliaadminkey.go@@ -2,13 +2,10 @@ package algoliaadminkeyimport ("context"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/cliengo/cliengo.go b/pkg/detectors/cliengo/cliengo.gonew file mode 100644index 000000000..b5b9bb874--- /dev/null+++ b/pkg/detectors/cliengo/cliengo.go@@ -0,0 +1,72 @@+package cliengo++import (+ "context"+ "net/http"+ "regexp"+ "strings"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++type Scanner struct{}++// Ensure the Scanner satisfies the interface at compile time+var _ detectors.Detector = (*Scanner)(nil)++var (+ client = common.SaneHttpClient()++ //Make sure that your group is surrounded in boundry 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`)+)++// Keywords are used for efficiently pre-filtering chunks.+// Use identifiers in the secret preferably, or the provider name.+func (s Scanner) Keywords() []string {+ return []string{"cliengo"}+}++// FromData will find and optionally verify Cliengo secrets in a given set of bytes.+func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {+ dataStr := string(data)++ matches := keyPat.FindAllStringSubmatch(dataStr, -1)++ for _, match := range matches {+ if len(match) != 2 {+ continue+ }+ resMatch := strings.TrimSpace(match[1])++ s1 := detectors.Result{+ DetectorType: detectorspb.DetectorType_Cliengo,+ Raw: []byte(resMatch),+ }++ if verify {+ req, err := http.NewRequestWithContext(ctx, "GET", "https://api.cliengo.com/1.0/account?api_key="+resMatch, nil)+ if err != nil {+ continue+ }+ res, err := client.Do(req)+ if err == nil {+ defer res.Body.Close()+ if res.StatusCode >= 200 && res.StatusCode < 300 {+ s1.Verified = true+ } else {+ //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {+ continue+ }+ }+ }+ }++ results = append(results, s1)+ }++ return detectors.CleanResults(results), nil+}diff --git a/pkg/detectors/cliengo/cliengo_test.go b/pkg/detectors/cliengo/cliengo_test.gonew file mode 100644index 000000000..49b1d35bb--- /dev/null+++ b/pkg/detectors/cliengo/cliengo_test.go@@ -0,0 +1,113 @@+package cliengo++import (+ "context"+ "fmt"+ "testing"+ "time"++ "github.com/kylelemons/godebug/pretty"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++func TestCliengo_FromChunk(t *testing.T) {+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)+ defer cancel()+ testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2")+ if err != nil {+ t.Fatalf("could not get test secrets from GCP: %s", err)+ }+ secret := testSecrets.MustGetField("CLIENGO")+ inactiveSecret := testSecrets.MustGetField("CLIENGO_INACTIVE")++ type args struct {+ ctx context.Context+ data []byte+ verify bool+ }+ tests := []struct {+ name string+ s Scanner+ args args+ want []detectors.Result+ wantErr bool+ }{+ {+ name: "found, verified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a cliengo secret %s within", secret)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Cliengo,+ Verified: true,+ },+ },+ wantErr: false,+ },+ {+ name: "found, unverified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a cliengo secret %s within but not valid", inactiveSecret)), // the secret would satisfy the regex but not pass validation+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Cliengo,+ Verified: false,+ },+ },+ wantErr: false,+ },+ {+ name: "not found",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte("You cannot find the secret within"),+ verify: true,+ },+ want: nil,+ wantErr: false,+ },+ }+ for _, tt := range tests {+ t.Run(tt.name, func(t *testing.T) {+ s := Scanner{}+ got, err := s.FromData(tt.args.ctx, tt.args.verify, tt.args.data)+ if (err != nil) != tt.wantErr {+ t.Errorf("Cliengo.FromData() error = %v, wantErr %v", err, tt.wantErr)+ return+ }+ for i := range got {+ if len(got[i].Raw) == 0 {+ t.Fatalf("no raw secret present: \n %+v", got[i])+ }+ got[i].Raw = nil+ }+ if diff := pretty.Compare(got, tt.want); diff != "" {+ t.Errorf("Cliengo.FromData() %s diff: (-got +want)\n%s", tt.name, diff)+ }+ })+ }+}++func BenchmarkFromData(benchmark *testing.B) {+ ctx := context.Background()+ s := Scanner{}+ for name, data := range detectors.MustGetBenchmarkData() {+ benchmark.Run(name, func(b *testing.B) {+ for n := 0; n < b.N; n++ {+ s.FromData(ctx, false, data)+ }+ })+ }+}diff --git a/pkg/detectors/datagov/datagov.go b/pkg/detectors/datagov/datagov.goindex ac0094bb8..9ff91eccb 100644--- a/pkg/detectors/datagov/datagov.go+++ b/pkg/detectors/datagov/datagov.go@@ -3,13 +3,10 @@ package datagovimport ("context""fmt"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.goindex 59e7cacc1..31e44bf76 100644--- a/pkg/detectors/gengo/gengo.go+++ b/pkg/detectors/gengo/gengo.go@@ -8,14 +8,11 @@ import ("encoding/json""fmt""io/ioutil"- "strconv"- "time"-- // "log"+ "net/http""regexp"+ "strconv""strings"-- "net/http"+ "time""github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"diff --git a/pkg/detectors/gocanvas/gocanvas.go b/pkg/detectors/gocanvas/gocanvas.gonew file mode 100644index 000000000..88a98a7d7--- /dev/null+++ b/pkg/detectors/gocanvas/gocanvas.go@@ -0,0 +1,101 @@+package gocanvas++import (+ "context"+ "encoding/xml"+ "fmt"+ "io/ioutil"+ "net/http"+ "net/url"+ "regexp"+ "strings"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++type Scanner struct{}++// Ensure the Scanner satisfies the interface at compile time+var _ detectors.Detector = (*Scanner)(nil)++var (+ client = common.SaneHttpClient()++ //Make sure that your group is surrounded in boundry 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`)+)++// Keywords are used for efficiently pre-filtering chunks.+// Use identifiers in the secret preferably, or the provider name.+func (s Scanner) Keywords() []string {+ return []string{"gocanvas"}+}++// FromData will find and optionally verify GoCanvas secrets in a given set of bytes.+func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {+ dataStr := string(data)++ matches := keyPat.FindAllStringSubmatch(dataStr, -1)+ emailMatches := emailPat.FindAllStringSubmatch(dataStr, -1)++ for _, emailMatch := range emailMatches {+ if len(emailMatch) != 2 {+ continue+ }+ resEmailMatch := strings.TrimSpace(emailMatch[1])++ for _, match := range matches {+ if len(match) != 2 {+ continue+ }+ resMatch := strings.TrimSpace(match[1])++ s1 := detectors.Result{+ DetectorType: detectorspb.DetectorType_GoCanvas,+ Raw: []byte(resMatch),+ }++ if verify {++ payload := url.Values{}+ payload.Add("username", resEmailMatch)++ req, _ := http.NewRequest("GET", "https://www.gocanvas.com/apiv2/forms.xml", strings.NewReader(payload.Encode()))+ req.Header.Add("Content-Type", "application/x-www-form-urlencoded")+ req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", resMatch))+ res, err := client.Do(req)+ if err == nil {+ defer res.Body.Close()+ body, errBody := ioutil.ReadAll(res.Body)++ if errBody == nil {+ response := Response{}+ xml.Unmarshal(body, &response)++ if 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+ if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {+ continue+ }+ }+ }+ }+ }++ results = append(results, s1)+ }+ }++ return detectors.CleanResults(results), nil+}++type Response struct {+ Error []struct {+ ErrorCode int `xml:"ErrorCode"`+ } `xml:"Error"`+}diff --git a/pkg/detectors/gocanvas/gocanvas_test.go b/pkg/detectors/gocanvas/gocanvas_test.gonew file mode 100644index 000000000..22b331a3a--- /dev/null+++ b/pkg/detectors/gocanvas/gocanvas_test.go@@ -0,0 +1,114 @@+package gocanvas++import (+ "context"+ "fmt"+ "testing"+ "time"++ "github.com/kylelemons/godebug/pretty"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++func TestGoCanvas_FromChunk(t *testing.T) {+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)+ defer cancel()+ testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2")+ if err != nil {+ t.Fatalf("could not get test secrets from GCP: %s", err)+ }+ username := testSecrets.MustGetField("GOCANVAS_USERNAME")+ secret := testSecrets.MustGetField("GOCANVAS")+ inactiveSecret := testSecrets.MustGetField("GOCANVAS_INACTIVE")++ type args struct {+ ctx context.Context+ data []byte+ verify bool+ }+ tests := []struct {+ name string+ s Scanner+ args args+ want []detectors.Result+ wantErr bool+ }{+ {+ name: "found, verified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a gocanvas username %s with gocanvas secret %s within", username, secret)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_GoCanvas,+ Verified: true,+ },+ },+ wantErr: false,+ },+ {+ name: "found, unverified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a gocanvas username %s with gocanvas secret %s within but not valid", username, inactiveSecret)), // the secret would satisfy the regex but not pass validation+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_GoCanvas,+ Verified: false,+ },+ },+ wantErr: false,+ },+ {+ name: "not found",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte("You cannot find the secret within"),+ verify: true,+ },+ want: nil,+ wantErr: false,+ },+ }+ for _, tt := range tests {+ t.Run(tt.name, func(t *testing.T) {+ s := Scanner{}+ got, err := s.FromData(tt.args.ctx, tt.args.verify, tt.args.data)+ if (err != nil) != tt.wantErr {+ t.Errorf("GoCanvas.FromData() error = %v, wantErr %v", err, tt.wantErr)+ return+ }+ for i := range got {+ if len(got[i].Raw) == 0 {+ t.Fatalf("no raw secret present: \n %+v", got[i])+ }+ got[i].Raw = nil+ }+ if diff := pretty.Compare(got, tt.want); diff != "" {+ t.Errorf("GoCanvas.FromData() %s diff: (-got +want)\n%s", tt.name, diff)+ }+ })+ }+}++func BenchmarkFromData(benchmark *testing.B) {+ ctx := context.Background()+ s := Scanner{}+ for name, data := range detectors.MustGetBenchmarkData() {+ benchmark.Run(name, func(b *testing.B) {+ for n := 0; n < b.N; n++ {+ s.FromData(ctx, false, data)+ }+ })+ }+}diff --git a/pkg/detectors/gocardless/gocardless.go b/pkg/detectors/gocardless/gocardless.goindex a5ac6768b..14333a77e 100644--- a/pkg/detectors/gocardless/gocardless.go+++ b/pkg/detectors/gocardless/gocardless.go@@ -3,13 +3,10 @@ package gocardlessimport ("context""fmt"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/goodday/goodday.go b/pkg/detectors/goodday/goodday.goindex f48c0149b..bb65677e4 100644--- a/pkg/detectors/goodday/goodday.go+++ b/pkg/detectors/goodday/goodday.go@@ -2,13 +2,10 @@ package gooddayimport ("context"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/goodday/goodday/goodday.go b/pkg/detectors/goodday/goodday/goodday.gonew file mode 100644index 000000000..bb65677e4--- /dev/null+++ b/pkg/detectors/goodday/goodday/goodday.go@@ -0,0 +1,70 @@+package goodday++import (+ "context"+ "net/http"+ "regexp"+ "strings"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++type Scanner struct{}++// Ensure the Scanner satisfies the interface at compile time+var _ detectors.Detector = (*Scanner)(nil)++var (+ client = common.SaneHttpClient()++ //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"goodday"}) + `\b([a-z0-9]{32})\b`)+)++// Keywords are used for efficiently pre-filtering chunks.+// Use identifiers in the secret preferably, or the provider name.+func (s Scanner) Keywords() []string {+ return []string{"goodday"}+}++// FromData will find and optionally verify GoodDay secrets in a given set of bytes.+func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {+ dataStr := string(data)++ matches := keyPat.FindAllStringSubmatch(dataStr, -1)++ for _, match := range matches {+ if len(match) != 2 {+ continue+ }+ resMatch := strings.TrimSpace(match[1])++ s1 := detectors.Result{+ DetectorType: detectorspb.DetectorType_GoodDay,+ Raw: []byte(resMatch),+ }++ if verify {+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.goodday.work/2.0/users", nil)+ req.Header.Add("gd-api-token", resMatch)+ res, err := client.Do(req)+ if err == nil {+ defer res.Body.Close()+ if res.StatusCode >= 200 && res.StatusCode < 300 {+ s1.Verified = true+ } else {+ //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {+ continue+ }+ }+ }+ }++ results = append(results, s1)+ }++ return detectors.CleanResults(results), nil+}diff --git a/pkg/detectors/goodday/goodday/goodday_test.go b/pkg/detectors/goodday/goodday/goodday_test.gonew file mode 100644index 000000000..e0178909c--- /dev/null+++ b/pkg/detectors/goodday/goodday/goodday_test.go@@ -0,0 +1,113 @@+package goodday++import (+ "context"+ "fmt"+ "testing"+ "time"++ "github.com/kylelemons/godebug/pretty"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++func TestGoodDay_FromChunk(t *testing.T) {+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)+ defer cancel()+ testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2")+ if err != nil {+ t.Fatalf("could not get test secrets from GCP: %s", err)+ }+ secret := testSecrets.MustGetField("GOODDAY")+ inactiveSecret := testSecrets.MustGetField("GOODDAY_INACTIVE")++ type args struct {+ ctx context.Context+ data []byte+ verify bool+ }+ tests := []struct {+ name string+ s Scanner+ args args+ want []detectors.Result+ wantErr bool+ }{+ {+ name: "found, verified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a goodday secret %s within", secret)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_GoodDay,+ Verified: true,+ },+ },+ wantErr: false,+ },+ {+ name: "found, unverified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a goodday secret %s within but not valid", inactiveSecret)), // the secret would satisfy the regex but not pass validation+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_GoodDay,+ Verified: false,+ },+ },+ wantErr: false,+ },+ {+ name: "not found",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte("You cannot find the secret within"),+ verify: true,+ },+ want: nil,+ wantErr: false,+ },+ }+ for _, tt := range tests {+ t.Run(tt.name, func(t *testing.T) {+ s := Scanner{}+ got, err := s.FromData(tt.args.ctx, tt.args.verify, tt.args.data)+ if (err != nil) != tt.wantErr {+ t.Errorf("GoodDay.FromData() error = %v, wantErr %v", err, tt.wantErr)+ return+ }+ for i := range got {+ if len(got[i].Raw) == 0 {+ t.Fatalf("no raw secret present: \n %+v", got[i])+ }+ got[i].Raw = nil+ }+ if diff := pretty.Compare(got, tt.want); diff != "" {+ t.Errorf("GoodDay.FromData() %s diff: (-got +want)\n%s", tt.name, diff)+ }+ })+ }+}++func BenchmarkFromData(benchmark *testing.B) {+ ctx := context.Background()+ s := Scanner{}+ for name, data := range detectors.MustGetBenchmarkData() {+ benchmark.Run(name, func(b *testing.B) {+ for n := 0; n < b.N; n++ {+ s.FromData(ctx, false, data)+ }+ })+ }+}diff --git a/pkg/detectors/moonclerk/moonclerk.go b/pkg/detectors/moonclerk/moonclerk.goindex 43586d788..752a1a707 100644--- a/pkg/detectors/moonclerk/moonclerk.go+++ b/pkg/detectors/moonclerk/moonclerk.go@@ -2,13 +2,10 @@ package moonclerkimport ("context"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/paymongo/paymongo.go b/pkg/detectors/paymongo/paymongo.goindex 6d95ec852..157295d44 100644--- a/pkg/detectors/paymongo/paymongo.go+++ b/pkg/detectors/paymongo/paymongo.go@@ -2,13 +2,10 @@ package paymongoimport ("context"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/polygon/polygon.go b/pkg/detectors/polygon/polygon.goindex b7f8963e0..7c9e574a3 100644--- a/pkg/detectors/polygon/polygon.go+++ b/pkg/detectors/polygon/polygon.go@@ -2,13 +2,10 @@ package polygonimport ("context"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/protocolsio/protocolsio.go b/pkg/detectors/protocolsio/protocolsio.goindex c7e140b84..a6bcaedcf 100644--- a/pkg/detectors/protocolsio/protocolsio.go+++ b/pkg/detectors/protocolsio/protocolsio.go@@ -3,13 +3,10 @@ package protocolsioimport ("context""fmt"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt.goindex 70432c8ab..4ed14f0e0 100644--- a/pkg/detectors/sigopt/sigopt.go+++ b/pkg/detectors/sigopt/sigopt.go@@ -4,13 +4,10 @@ import ("context"b64 "encoding/base64""fmt"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/detectors/sigopt/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt/sigopt.gonew file mode 100644index 000000000..4ed14f0e0--- /dev/null+++ b/pkg/detectors/sigopt/sigopt/sigopt.go@@ -0,0 +1,75 @@+package sigopt++import (+ "context"+ b64 "encoding/base64"+ "fmt"+ "net/http"+ "regexp"+ "strings"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++type Scanner struct{}++// Ensure the Scanner satisfies the interface at compile time+var _ detectors.Detector = (*Scanner)(nil)++var (+ client = common.SaneHttpClient()++ //Make sure that your group is surrounded in boundry characters such as below to reduce false positives+ keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"sigopt"}) + `\b([A-Z0-9]{48})\b`)+)++// Keywords are used for efficiently pre-filtering chunks.+// Use identifiers in the secret preferably, or the provider name.+func (s Scanner) Keywords() []string {+ return []string{"sigopt"}+}++// FromData will find and optionally verify Sigopt secrets in a given set of bytes.+func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {+ dataStr := string(data)++ matches := keyPat.FindAllStringSubmatch(dataStr, -1)++ for _, match := range matches {+ if len(match) != 2 {+ continue+ }+ resMatch := strings.TrimSpace(match[1])++ s1 := detectors.Result{+ DetectorType: detectorspb.DetectorType_Sigopt,+ Raw: []byte(resMatch),+ }++ if verify {+ data := fmt.Sprintf("%s:", resMatch)+ sEnc := b64.StdEncoding.EncodeToString([]byte(data))+ req, _ := http.NewRequestWithContext(ctx, "GET", "https://api.sigopt.com/v1/experiments", nil)+ req.Header.Add("Content-Type", "application/json")+ req.Header.Add("Authorization", fmt.Sprintf("Basic %s", sEnc))+ res, err := client.Do(req)+ if err == nil {+ defer res.Body.Close()+ if res.StatusCode >= 200 && res.StatusCode < 300 {+ s1.Verified = true+ } else {+ //This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key+ if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {+ continue+ }+ }+ }+ }++ results = append(results, s1)+ }++ return detectors.CleanResults(results), nil+}diff --git a/pkg/detectors/sigopt/sigopt/sigopt_test.go b/pkg/detectors/sigopt/sigopt/sigopt_test.gonew file mode 100644index 000000000..992498bb2--- /dev/null+++ b/pkg/detectors/sigopt/sigopt/sigopt_test.go@@ -0,0 +1,113 @@+package sigopt++import (+ "context"+ "fmt"+ "testing"+ "time"++ "github.com/kylelemons/godebug/pretty"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++func TestSigopt_FromChunk(t *testing.T) {+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)+ defer cancel()+ testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2")+ if err != nil {+ t.Fatalf("could not get test secrets from GCP: %s", err)+ }+ secret := testSecrets.MustGetField("SIGOPT")+ inactiveSecret := testSecrets.MustGetField("SIGOPT_INACTIVE")++ type args struct {+ ctx context.Context+ data []byte+ verify bool+ }+ tests := []struct {+ name string+ s Scanner+ args args+ want []detectors.Result+ wantErr bool+ }{+ {+ name: "found, verified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a sigopt secret %s within", secret)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Sigopt,+ Verified: true,+ },+ },+ wantErr: false,+ },+ {+ name: "found, unverified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("You can find a sigopt secret %s within but not valid", inactiveSecret)), // the secret would satisfy the regex but not pass validation+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Sigopt,+ Verified: false,+ },+ },+ wantErr: false,+ },+ {+ name: "not found",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte("You cannot find the secret within"),+ verify: true,+ },+ want: nil,+ wantErr: false,+ },+ }+ for _, tt := range tests {+ t.Run(tt.name, func(t *testing.T) {+ s := Scanner{}+ got, err := s.FromData(tt.args.ctx, tt.args.verify, tt.args.data)+ if (err != nil) != tt.wantErr {+ t.Errorf("Sigopt.FromData() error = %v, wantErr %v", err, tt.wantErr)+ return+ }+ for i := range got {+ if len(got[i].Raw) == 0 {+ t.Fatalf("no raw secret present: \n %+v", got[i])+ }+ got[i].Raw = nil+ }+ if diff := pretty.Compare(got, tt.want); diff != "" {+ t.Errorf("Sigopt.FromData() %s diff: (-got +want)\n%s", tt.name, diff)+ }+ })+ }+}++func BenchmarkFromData(benchmark *testing.B) {+ ctx := context.Background()+ s := Scanner{}+ for name, data := range detectors.MustGetBenchmarkData() {+ benchmark.Run(name, func(b *testing.B) {+ for n := 0; n < b.N; n++ {+ s.FromData(ctx, false, data)+ }+ })+ }+}diff --git a/pkg/detectors/tiingo/tiingo.go b/pkg/detectors/tiingo/tiingo.goindex 41b83e650..4a4cd5735 100644--- a/pkg/detectors/tiingo/tiingo.go+++ b/pkg/detectors/tiingo/tiingo.go@@ -3,13 +3,10 @@ package tiingoimport ("context""fmt"-- // "log"+ "net/http""regexp""strings"- "net/http"-"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"diff --git a/pkg/engine/defaults.go b/pkg/engine/defaults.goindex 171d4dff0..0b7161052 100644--- a/pkg/engine/defaults.go+++ b/pkg/engine/defaults.go@@ -25,14 +25,18 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ambee""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/amplitudeapikey""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/anypoint"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apacta""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/api2cart""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apideck""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apiflash""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apifonica""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apify"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apimatic"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apiscience""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apollo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/appcues""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/appfollow"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/appsynergy""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/apptivo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/artsy""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/asanaoauth"@@ -43,6 +47,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/autodesk""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/autoklose""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/autopilot"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/avazapersonalaccesstoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/aviationstack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/aws""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/axonaut"@@ -53,6 +58,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/baremetrics""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/baseapiio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/beamer"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/beebole""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/besttime""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/billomat""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/bitbar"@@ -65,24 +71,34 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/blitapp""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/blogger""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/bombbomb"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/boostnote"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/borgbase""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/brandfetch""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/browshot"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/buddyns""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/bugherd""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/bugsnag""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/buildkite""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/bulbul""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/buttercms"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/caflou""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/calendarific""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/calendlyapikey""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/calorieninja""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/campayn""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cannyio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/capsulecrm"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/captaindata""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/carboninterface"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cashboard"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/caspio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/censys""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/centralstationcrm""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/chatbot"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/checio"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/checklyhq""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/checkout"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/checkvist""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cicero""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/circleci""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clarifai"@@ -90,15 +106,19 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clickhelp""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clicksendsms""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clickuppersonaltoken"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cliengo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clinchpad""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clockify""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clockworksms""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/closecrm"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloudelements""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloudflareapitoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloudflarecakey"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloudimage""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloudmersive""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloudplan""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloverly"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cloze""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/clustdoc""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/codacy""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/coinapi"@@ -113,6 +133,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/convertkit""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/copper""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/countrylayer"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/courier""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/coveralls""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/crowdin""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/cryptocompare"@@ -132,25 +153,32 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/deepai""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/deepgram""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/delighted"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/deputy""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/detectlanguage""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dfuse"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/diffbot""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/digitaloceantoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/discordbottoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/discordwebhook"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ditto""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dnscheck""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/documo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/doppler""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dotmailer""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dovico"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dronahq""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/droneci""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dropbox""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dwolla""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dynalist""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/dyspatch"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/eagleeyenetworks""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/easyinsight""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/edamam""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/edenai"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/eightxeight""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/elasticemail"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/enablex""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/enigma""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ethplorer""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/etsyapikey"@@ -160,6 +188,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/facebookoauth""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/faceplusplus""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fakejson"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fastforex""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fastlypersonaltoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/feedier""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fetchrss"@@ -167,6 +196,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fileio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/finage""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/financialmodelingprep"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/findl""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/finnhub""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fixerio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/flatio"@@ -176,13 +206,20 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/float""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/flowflu""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/flutterwave"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fmfw"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/formbucket"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/formio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/foursquare""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/frameio"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/freshbooks"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/freshdesk""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/front""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fulcrum""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fullstory"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fusebill""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/fxmarket""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gcp"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/geckoboard""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gengo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/geoapify""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/geocode"@@ -191,6 +228,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/geoipifi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/getgeoapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/getgist"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/getsandbox""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/github""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/github_old""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/githubapp"@@ -198,12 +236,15 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gitlabv2""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gitter""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/glassnode"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gocanvas""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gocardless"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/goodday""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/graphcms""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/graphhopper""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/groovehq""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/guardianapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/gyazo"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/happi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/happyscribe""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/harvest""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/hellosign"@@ -229,6 +270,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/integromat""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/intercom""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/intrinio"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/invoiceocean""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ipapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ipgeolocation""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ipify"@@ -240,28 +282,34 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/jotform""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/jumpcloud""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/juro"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kanban""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/karmacrm""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/keenio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kickbox""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kontent""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kraken"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kucoin""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/kylas""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/languagelayer""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/lastfm""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/launchdarkly""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/leadfeeder"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/lendflow""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/lessannoyingcrm""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/lexigram""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/linearapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/linenotify""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/linkpreview""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/liveagent"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/livestorm""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/locationiq""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/loginradius""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/lokalisetoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/loyverse"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/luno""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/m3o""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/macaddress"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/madkudu""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/magnetic""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mailboxlayer""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mailchimp"@@ -272,6 +320,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mailmodo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mailsac""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mandrill"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/manifest""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mapbox""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mapquest""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/marketstack"@@ -280,14 +329,22 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/maxmindlicense""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/meaningcloud""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mediastack"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/meistertask""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mesibo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/messagebird""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/metrilo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/microsoftteamswebhook"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mindmeister"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mite"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mixmax""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mixpanel"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moderation""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/monday"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moonclerck""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/moosend"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/mrticktock""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/myfreshworks"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/myintervals""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nasdaqdatalink""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nethunt""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/netlify"@@ -302,10 +359,12 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nitro""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/noticeable""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/notion"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nozbeteams""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/numverify""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nutritionix""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nylas""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/nytimes"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/oanda""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/okta""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/omnisend""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/onedesk"@@ -321,19 +380,24 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/owlbot""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pagerdutyapikey""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pandadoc"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pandascore""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/paralleldots""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/partnerstack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/passbase""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pastebin"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/paymoapp""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/paymongo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/paypaloauth""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/paystack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pdflayer""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pdfshift"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/peopledatalabs""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pepipost"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pipedream""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pipedrive""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pivotaltracker""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/pixabay"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/planviewleankit""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/planyo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/plivo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/poloniex"@@ -374,6 +438,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/rocketreach""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/roninapp""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/route4me"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/rownd""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/rubygems""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/runrunit""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/salesblink"@@ -386,13 +451,16 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scrapeowl""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scraperapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scraperbox"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scrapersite""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scrapestack"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scrapfly""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scrapingant""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/scrapingbee""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/screenshotapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/screenshotlayer""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/securitytrails""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/segmentapikey"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/selectpdf""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/semaphore""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sendgrid""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sendinbluev2"@@ -401,17 +469,22 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/serphouse""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/serpstack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sheety"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sherpadesk""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shipday""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shodankey""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shortcut"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shotstack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shutterstock""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/shutterstockoauth""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signalwire""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signaturit""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/signupgenius"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sigopt""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/simplesat"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/simplynoted""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/simvoly""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sinchmessage"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sirv""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/siteleaf""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/skrappio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/skybiometry"@@ -443,21 +516,29 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/stripe""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/stytch""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/sumologickey"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/supernotesapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/surveyanyplace""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/surveybot""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/surveysparrow""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/survicate""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/swell"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/swiftype"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tallyfy""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tatumio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/taxjar""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/teamgate"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/teamworkcrm"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/teamworkdesk"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/teamworkspaces""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/technicalanalysisapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/telegrambottoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/telnyx""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/terraformcloudpersonaltoken""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/text2data""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/textmagic"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/theoddsapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/thinkific"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/thousandeyes""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/ticketmaster""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tiingo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/timezoneapi"@@ -466,6 +547,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tomorrowio""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tomtom""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/tradier"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/travelpayouts""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/travisci""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/trelloapikey""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/twelvedata"@@ -478,6 +560,8 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/unsplash""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/upcdatabase""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/uplead"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/uploadcare"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/upwave""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/uri""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/urlscan""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/userstack"@@ -486,6 +570,8 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/verifier""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/verimail""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/veriphone"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/versioneye"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/viewneo""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/virustotal""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/visualcrossing""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/voicegain"@@ -498,8 +584,10 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/weatherstack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/webex""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/webflow"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/webscraper""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/webscraping""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/whoxy"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/worksnaps""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/workstack""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/worldcoinindex""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/worldweather"@@ -509,6 +597,7 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/detectors/yousign""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/youtubeapikey""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/zendeskapi"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/zenkitapi""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/zenscrape""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/zenserp""github.com/trufflesecurity/trufflehog/v3/pkg/detectors/zeplin"@@ -1052,5 +1141,94 @@ func DefaultDetectors() []detectors.Detector {whoxy.Scanner{},smooch.Scanner{},apifonica.Scanner{},+ fusebill.Scanner{},+ goodday.Scanner{},+ getsandbox.Scanner{},+ freshdesk.Scanner{},+ teamworkdesk.Scanner{},+ tallyfy.Scanner{},+ apimatic.Scanner{},+ moonclerck.Scanner{},+ boostnote.Scanner{},+ freshbooks.Scanner{},+ cashboard.Scanner{},+ thousandeyes.Scanner{},+ zenkitapi.Scanner{},+ sherpadesk.Scanner{},+ shotstack.Scanner{},+ scrapersite.Scanner{},+ luno.Scanner{},+ apacta.Scanner{},+ fmfw.Scanner{},+ courier.Scanner{},+ checkvist.Scanner{},+ invoiceocean.Scanner{},+ travelpayouts.Scanner{},+ mixmax.Scanner{},+ cloze.Scanner{},+ supernotesapi.Scanner{},+ fastforex.Scanner{},+ sirv.Scanner{},+ teamworkcrm.Scanner{},+ geckoboard.Scanner{},+ appsynergy.Scanner{},+ findl.Scanner{},+ simplynoted.Scanner{},+ pandascore.Scanner{},+ gocanvas.Scanner{},+ formio.Scanner{},+ livestorm.Scanner{},+ manifest.Scanner{},+ formbucket.Scanner{},+ apiscience.Scanner{},+ dronahq.Scanner{},+ webscraper.Scanner{},+ versioneye.Scanner{},+ rownd.Scanner{},+ diffbot.Scanner{},+ nozbeteams.Scanner{},+ pipedream.Scanner{},+ paymoapp.Scanner{},+ peopledatalabs.Scanner{},+ mite.Scanner{},+ mindmeister.Scanner{},+ deputy.Scanner{},+ eagleeyenetworks.Scanner{},+ sigopt.Scanner{},+ lendflow.Scanner{},+ meistertask.Scanner{},+ mrticktock.Scanner{},+ beebole.Scanner{},+ theoddsapi.Scanner{},+ oanda.Scanner{},+ scrapfly.Scanner{},+ kanban.Scanner{},+ upwave.Scanner{},+ ditto.Scanner{},+ buddyns.Scanner{},+ checio.Scanner{},+ happi.Scanner{},+ kucoin.Scanner{},+ eightxeight.Scanner{},+ avazapersonalaccesstoken.Scanner{},+ selectpdf.Scanner{},+ madkudu.Scanner{},+ borgbase.Scanner{},+ cliengo.Scanner{},+ swiftype.Scanner{},+ viewneo.Scanner{},+ planviewleankit.Scanner{},+ cloudimage.Scanner{},+ worksnaps.Scanner{},+ caspio.Scanner{},+ caflou.Scanner{},+ enablex.Scanner{},+ checklyhq.Scanner{},+ teamworkspaces.Scanner{},+ cloudelements.Scanner{},+ captaindata.Scanner{},+ uploadcare.Scanner{},+ moderation.Scanner{},+ myintervals.Scanner{},}}diff --git a/pkg/engine/engine.go b/pkg/engine/engine.goindex 19e1e2ab2..edcf8256a 100644--- a/pkg/engine/engine.go+++ b/pkg/engine/engine.go@@ -4,8 +4,6 @@ import ("bytes""context""crypto/sha256"- "github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb"- "github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb""runtime""strings""sync"@@ -16,6 +14,8 @@ import ("github.com/trufflesecurity/trufflehog/v3/pkg/decoders""github.com/trufflesecurity/trufflehog/v3/pkg/detectors"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb""github.com/trufflesecurity/trufflehog/v3/pkg/sources")diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.goindex 552c3e28b..d0d9ce606 100644--- a/pkg/sources/git/git.go+++ b/pkg/sources/git/git.go@@ -323,7 +323,7 @@ func (s *Git) ScanCommits(repo *git.Repository, scanOptions *ScanOptions, chunks// Make a slice of all the timestamp keys so it can be sorted.keys := make([]int64, len(commits))i := 0- for key, _ := range commits {+ for key := range commits {keys[i] = keyi++}diff --git a/proto/detectors.proto b/proto/detectors.protoindex 416a97e6a..9610c079d 100644--- a/proto/detectors.proto+++ b/proto/detectors.proto@@ -750,6 +750,9 @@ enum DetectorType {FlagsmithEnvironmentKey = 746;FlagsmithToken = 747;Mux = 748;+ Column = 749;+ Sendbird = 750;+ SendbirdOrganizationAPI = 751;}message Result {diff --git a/proto/secrets.proto b/proto/secrets.protodeleted file mode 100644index 288d1307f..000000000--- a/proto/secrets.proto+++ /dev/null@@ -1,778 +0,0 @@-syntax = "proto3";--package secret;--option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb";--enum DetectorType {- Alibaba = 0;- AMQP = 1;- AWS = 2;- Azure = 3;- Circle = 4;- Coinbase = 5;- GCP = 6;- Generic = 7;- Github = 8;- Gitlab = 9;- JDBC = 10;- RazorPay = 11;- SendGrid = 12;- Slack = 13;- Square = 14;- PrivateKey = 15;- Stripe = 16;- URI = 17;- Dropbox = 18;- Heroku = 19;- Mailchimp = 20;- Okta = 21;- OneLogin = 22;- PivotalTracker = 23;- SquareApp = 25;- Twilio = 26;- Test = 27;- TravisCI = 29;- SlackWebhook = 30;- PaypalOauth = 31;- PagerDutyApiKey = 32;- Firebase = 33;- Mailgun = 34;- HubSpot = 35;- GitHubApp = 36;- CircleCI = 37;- WpEngine = 38;- DatadogToken = 39;- FacebookOAuth = 40;- AsanaPersonalAccessToken = 41;- AmplitudeApiKey = 42;- BitLyAccessToken = 43;- CalendlyApiKey = 44;- ZapierWebhook = 45;- YoutubeApiKey = 46;- SalesforceOauth2 = 47;- TwitterApiSecret = 48;- NpmToken = 49;- NewRelicPersonalApiKey = 50;- AirtableApiKey = 51;- AkamaiToken = 52;- AmazonMWS = 53;- KubeConfig = 54;- Auth0oauth = 55;- Bitfinex = 56;- Clarifai = 57;- CloudflareGlobalApiKey = 58;- CloudflareCaKey = 59;- Confluent = 60;- ContentfulDelivery = 61; // Didn't do- DatabricksToken = 62;- DigitalOceanSpaces = 63; // Didn't do- DigitalOceanToken = 64;- DiscordBotToken = 65;- DiscordWebhook = 66;- EtsyApiKey = 67;- FastlyPersonalToken = 68;- GoogleOauth2 = 69;- ReCAPTCHA = 70; // Didn't do- GoogleApiKey = 71; // Didn't do- Hunter = 72;- IbmCloudUserKey = 73;- Netlify = 74;- Vonage = 75;- EquinixOauth = 76;- Paystack = 77;- PlaidToken = 78;- PlaidKey = 79;- Plivo = 80;- Postmark = 81;- PubNubPublishKey = 82;- PubNubSubscriptionKey = 83;- PusherChannelKey = 84;- ScalewayKey = 85;- SendinBlueV2 = 86;- SentryToken = 87;- ShodanKey = 88;- SnykKey = 89;- SpotifyKey = 90;- TelegramBotToken = 91;- TencentCloudKey = 92;- TerraformCloudPersonalToken = 93;- TrelloApiKey = 94;- ZendeskApi = 95;- MaxMindLicense = 96;- AirtableMetadataApiKey = 97;- AsanaOauth = 98;- RapidApi = 99;- CloudflareApiToken = 100;- Webex = 101;- FirebaseCloudMessaging = 102;- ContentfulPersonalAccessToken = 103;- MapBox = 104;- MailJetBasicAuth = 105;- MailJetSMS = 106;- HubSpotApiKey = 107;- HubSpotOauth = 108;- SslMate = 109;- Auth0ManagementApiToken = 110;- MessageBird = 111;- ElasticEmail = 112;- FigmaPersonalAccessToken = 113;- MicrosoftTeamsWebhook = 114;- GitHubOld = 115;- VultrApiKey = 116;- Pepipost = 117;- Postman = 118;- CloudsightKey = 119;- JiraToken = 120;- NexmoApiKey = 121;- SegmentApiKey = 122;- SumoLogicKey = 123;- PushBulletApiKey = 124;- AirbrakeProjectKey = 125;- AirbrakeUserKey = 126;- PendoIntegrationKey = 127;- SplunkOberservabilityToken = 128;- LokaliseToken = 129;- Calendarific = 130;- Jumpcloud = 131;- IpStack = 133;- Notion = 134;- DroneCI = 135;- AdobeIO = 136;- TwelveData = 137;- D7Network = 138;- ScrapingBee = 139;- KeenIO = 140;- Wakatime = 141;- Buildkite = 142;- Verimail = 143;- Zerobounce = 144;- Mailboxlayer = 145;- Fastspring = 146;- Paddle = 147;- Sellfy = 148;- FixerIO = 149;- ButterCMS = 150;- Taxjar = 151;- Avalara = 152;- Helpscout = 153;- ElasticPath = 154;- Zeplin = 155;- Intercom = 156;- Mailmodo = 157;- CannyIo = 158;- Pipedrive = 159;- Vercel = 160;- PosthogApp = 161;- SinchMessage = 162;- Ayrshare = 163;- HelpCrunch = 164;- LiveAgent = 165;- Beamer = 166;- WeChatAppKey = 167;- LineMessaging = 168;- UberServerToken = 169;- AlgoliaAdminKey = 170;- FullContact = 171;- Mandrill = 172;- Flutterwave = 173;- MattermostPersonalToken = 174;- Cloudant = 175;- LineNotify = 176;- LinearAPI = 177;- Ubidots = 178;- Anypoint = 179;- Dwolla = 180;- ArtifactoryAccessToken = 181;- Surge = 182;- Sparkpost = 183;- GoCardless = 184;- Codacy = 185;- Kraken = 186;- Checkout = 187;- Kairos = 188;- ClockworkSMS = 189;- Atlassian = 190;- LaunchDarkly = 191;- Coveralls = 192;- Linode = 193;- WePay = 194;- PlanetScale = 195;- Doppler = 196;- Agora = 197;- Samsara = 198;- FrameIO = 199;- RubyGems = 200;- OpenAI = 201;- SurveySparrow = 202;- Simvoly = 203;- Survicate = 204;- Omnisend = 205;- Groovehq = 206;- Newsapi = 207;- Chatbot = 208;- ClickSendsms = 209;- Getgist = 210;- CustomerIO = 211;- ApiDeck = 212;- Nftport = 213;- Copper = 214;- Close = 215;- Myfreshworks = 216;- Salesflare = 217;- Webflow = 218;- Duda = 219;- Yext = 220;- ContentStack = 221;- Storyblok = 222;- GraphCMS = 223;- Checkmarket = 224;- Convertkit = 225;- CustomerGuru = 226;- Kaleyra = 227;- Mailerlite = 228;- Qualaroo = 229;- SatismeterProjectkey = 230;- SatismeterWritekey = 231;- Simplesat = 232;- SurveyAnyplace = 233;- SurveyBot = 234;- Webengage = 235;- ZonkaFeedback = 236;- Delighted = 237;- Feedier = 238;- Abbysale = 239;- Magnetic = 240;- Nytimes = 241;- Polygon = 242;- Powrbot = 243;- ProspectIO = 244;- Skrappio = 245;- Monday = 246;- Smartsheets = 247;- Wrike = 248;- Float = 249;- Imagekit = 250;- Integromat = 251;- Salesblink = 252;- Bored = 253;- Campayn = 254;- Clinchpad = 255;- CompanyHub = 256;- Debounce = 257;- Dyspatch = 258;- Guardianapi = 259;- Harvest = 260;- Moosend = 261;- OpenWeather = 262;- Siteleaf = 263;- Squarespace = 264;- FlowFlu = 265;- Nimble = 266;- LessAnnoyingCRM = 267;- Nethunt = 268;- Apptivo = 269;- CapsuleCRM = 270;- Insightly = 271;- Kylas = 272;- OnepageCRM = 273;- User = 274;- ProspectCRM = 275;- ReallySimpleSystems = 276;- Airship = 277;- Artsy = 278;- Yandex = 279;- Clockify = 280;- Dnscheck = 281;- EasyInsight = 282;- Ethplorer = 283;- Everhour = 284;- Fulcrum = 285;- GeoIpifi = 286;- Jotform = 287;- Refiner = 288;- Timezoneapi = 289;- TogglTrack = 290;- Vpnapi = 291;- Workstack = 292;- Apollo = 293;- Eversign = 294;- Juro = 295;- KarmaCRM = 296;- Metrilo = 297;- Pandadoc = 298;- RevampCRM = 299;- Salescookie = 300;- Alconost = 301;- Blogger = 302;- Accuweather = 303;- Opengraphr = 304;- Rawg = 305;- Riotgames = 306;- RoninApp = 307;- Stormglass = 308;- Tomtom = 309;- Twitch = 310;- Documo = 311;- Cloudways = 312;- Veevavault = 313;- KiteConnect = 314;- ShopeeOpenPlatform = 315;- TeamViewer = 316;- Bulbul = 317;- CentralStationCRM = 318;- Teamgate = 319;- Axonaut = 320;- Tyntec = 321;- Appcues = 322;- Autoklose = 323;- Cloudplan = 324;- Dotmailer = 325;- GetEmail = 326;- GetEmails = 327;- Kontent = 328;- Leadfeeder = 329;- Raven = 330;- RocketReach = 331;- Uplead = 332;- Brandfetch = 333;- Clearbit = 334;- Crowdin = 335;- Mapquest = 336;- Noticeable = 337;- Onbuka = 338;- Todoist = 339;- Storychief = 340;- LinkedIn = 341;- YouSign = 342;- Docker = 343;- Telesign = 344;- Spoonacular = 345;- Aerisweather = 346;- Alphavantage = 347;- Imgur = 348;- Imagga = 349;- SMSApi = 350;- Distribusion = 351;- Blablabus = 352;- WordsApi = 353;- Currencylayer = 354;- Html2Pdf = 355;- IPGeolocation = 356;- Owlbot = 357;- Cloudmersive = 358;- Dynalist = 359;- ExchangeRateAPI = 360;- HolidayAPI = 361;- Ipapi = 362;- Marketstack = 363;- Nutritionix = 364;- Swell = 365;- ClickupPersonalToken = 366;- Nitro = 367;- Rev = 368;- RunRunIt = 369;- Typeform = 370;- Mixpanel = 371;- Tradier = 372;- Verifier = 373;- Vouchery = 374;- Alegra = 375;- Audd = 376;- Baremetrics = 377;- Coinlib = 378;- ExchangeRatesAPI = 379;- CurrencyScoop = 380;- FXMarket = 381;- CurrencyCloud = 382;- GetGeoAPI = 383;- Abstract = 384;- Billomat = 385;- Dovico = 386;- Bitbar = 387;- Bugsnag = 388;- AssemblyAI = 389;- AdafruitIO = 390;- Apify = 391;- CoinGecko = 392;- CryptoCompare = 393;- Fullstory = 394;- HelloSign = 395;- Loyverse = 396;- NetCore = 397;- SauceLabs = 398;- AlienVault = 399;- Apiflash = 401;- Coinlayer = 402;- CurrentsAPI = 403;- DataGov = 404;- Enigma = 405;- FinancialModelingPrep = 406;- Geocodio = 407;- HereAPI = 408;- Macaddress = 409;- OOPSpam = 410;- ProtocolsIO = 411;- ScraperAPI = 412;- SecurityTrails = 413;- TomorrowIO = 414;- WorldCoinIndex = 415;- FacePlusPlus = 416;- Voicegain = 417;- Deepgram = 418;- VisualCrossing = 419;- Finnhub = 420;- Tiingo = 421;- RingCentral = 422;- Finage = 423;- Edamam = 424;- HypeAuditor = 425;- Gengo = 426;- Front = 427;- Fleetbase = 428;- Bubble = 429;- Bannerbear = 430;- Adzuna = 431;- BitcoinAverage = 432;- CommerceJS = 433;- DetectLanguage = 434;- FakeJSON = 435;- Graphhopper = 436;- Lexigram = 437;- LinkPreview = 438;- Numverify = 439;- ProxyCrawl = 440;- ZipCodeAPI = 441;- Cometchat = 442;- Keygen = 443;- Mixcloud = 444;- TatumIO = 445;- Tmetric = 446;- Lastfm = 447;- Browshot = 448;- JSONbin = 449;- LocationIQ = 450;- ScreenshotAPI = 451;- WeatherStack = 452;- Amadeus = 453;- FourSquare = 454;- Flickr = 455;- ClickHelp = 456;- Ambee = 457;- Api2Cart = 458;- Hypertrack = 459;- KakaoTalk = 460;- RiteKit = 461;- Shutterstock = 462;- Text2Data = 463;- YouNeedABudget = 464;- Cricket = 465;- Filestack = 466;- Gyazo = 467;- Mavenlink = 468;- Sheety = 469;- Sportsmonk = 470;- Stockdata = 471;- Unsplash = 472;- Allsports = 473;- CalorieNinja = 474;- WalkScore = 475;- Strava = 476;- Cicero = 477;- IPQuality = 478;- ParallelDots = 479;- Roaring = 480;- Mailsac = 481;- Whoxy = 482;- WorldWeather = 483;- ApiFonica = 484;- Aylien = 485;- Geocode = 486;- IconFinder = 487;- Ipify = 488;- LanguageLayer = 489;- Lob = 490;- OnWaterIO = 491;- Pastebin = 492;- PdfLayer = 493;- Pixabay = 494;- ReadMe = 495;- VatLayer = 496;- VirusTotal = 497;- AirVisual = 498;- Currencyfreaks = 499;- Duffel = 500;- FlatIO = 501;- M3o = 502;- Mesibo = 503;- Openuv = 504;- Snipcart = 505;- Besttime = 506;- Happyscribe = 507;- Humanity = 508;- Impala = 509;- Loginradius = 510;- AutoPilot = 511;- Bitmex = 512;- ClustDoc = 513;- Messari = 514;- PdfShift = 515;- Poloniex = 516;- RestpackHtmlToPdfAPI = 517;- RestpackScreenshotAPI = 518;- ShutterstockOAuth = 519;- SkyBiometry = 520;- AbuseIPDB = 521;- AletheiaApi = 522;- BlitApp = 523;- Censys = 524;- Cloverly = 525;- CountryLayer = 526;- FileIO = 527;- FlightApi = 528;- Geoapify = 529;- IPinfoDB = 530;- MediaStack = 531;- NasdaqDataLink = 532;- OpenCageData = 533;- Paymongo = 534;- PositionStack = 535;- Rebrandly = 536;- ScreenshotLayer = 537;- Stytch = 538;- Unplugg = 539;- UPCDatabase = 540;- UserStack = 541;- Geocodify = 542;- Newscatcher = 543;- Nicereply = 544;- Partnerstack = 545;- Route4me = 546;- Scrapeowl = 547;- ScrapingDog = 548;- Streak = 549;- Veriphone = 550;- Webscraping = 551;- Zenscrape = 552;- Zenserp = 553;- CoinApi = 554;- Gitter = 555;- Host = 556;- Iexcloud = 557;- Restpack = 558;- ScraperBox = 559;- ScrapingAnt = 560;- SerpStack = 561;- SmartyStreets = 562;- TicketMaster = 563;- AviationStack = 564;- BombBomb = 565;- Commodities = 566;- Dfuse = 567;- EdenAI = 568;- Glassnode = 569;- Guru = 570;- Hive = 571;- Hiveage = 572;- Kickbox = 573;- Passbase = 574;- PostageApp = 575;- PureStake = 576;- Qubole = 577;- CarbonInterface = 578;- Intrinio = 579;- QuickMetrics = 580;- ScrapeStack = 581;- TechnicalAnalysisApi = 582;- Urlscan = 583;- BaseApiIO = 584;- DailyCO = 585;- TLy = 586;- Shortcut = 587;- Appfollow = 588;- Thinkific = 589;- Feedly = 590;- Stitchdata = 591;- Fetchrss = 592;- Signupgenius = 593;- Signaturit = 594;- Optimizely = 595;- OcrSpace = 596;- WeatherBit = 597;- BuddyNS = 598;- ZipAPI = 599;- ZipBooks = 600;- Onedesk = 601;- Bugherd = 602;- Blazemeter = 603;- Autodesk = 604;- Tru = 605;- UnifyID = 606;- Trimble = 607;- Smooch = 608;- Semaphore = 609;- Telnyx = 610;- Signalwire = 611;- Textmagic = 612;- Serphouse = 613;- Planyo = 614;- Simplybook = 615;- Vyte = 616;- Nylas = 617;- Squareup = 618;- Dandelion = 619;- DataFire = 620;- DeepAI = 621;- MeaningCloud = 622;- NeutrinoApi = 623;- Storecove = 624;- Shipday = 625;- Sentiment = 626;- StreamChatMessaging = 627;- TeamworkCRM = 628;- TeamworkDesk = 629;- TeamworkSpaces = 630;- TheOddsApi = 631;- Apacta = 632;- GetSandbox = 633;- Happi = 634;- Oanda = 635;- FastForex = 636;- APIMatic = 637;- VersionEye = 638;- EagleEyeNetworks = 639;- ThousandEyes = 640;- SelectPDF = 641;- Flightstats = 642;- ChecIO = 643;- Manifest = 644;- ApiScience = 645;- AppSynergy = 646;- Caflou = 647;- Caspio = 648;- ChecklyHQ = 649;- CloudElements = 650;- DronaHQ = 651;- Enablex = 652;- Fmfw = 653;- GoodDay = 654;- Luno = 655;- Meistertask = 656;- Mindmeister = 657;- PeopleDataLabs = 658;- ScraperSite = 659;- Scrapfly = 660;- SimplyNoted = 661;- TravelPayouts = 662;- WebScraper = 663;- Convier = 664;- Courier = 665;- Ditto = 666;- Findl = 667;- Lendflow = 668;- Moderation = 669;- Opendatasoft = 670;- Podio = 671;- Rockset = 672;- Rownd = 673;- Shotstack = 674;- Swiftype = 675;- Twitter = 676;- Honey = 677;- Freshdesk = 678;- Upwave = 679;- Fountain = 680;- Freshbooks = 681;- Mite = 682;- Deputy = 683;- Beebole = 684;- Cashboard = 685;- Kanban = 686;- Worksnaps = 687;- MyIntervals = 688;- InvoiceOcean = 689;- Sherpadesk = 690;- Mrticktock = 691;- Chatfule = 692;- Aeroworkflow = 693;- Emailoctopus = 694;- Fusebill = 695;- Geckoboard = 696;- Gosquared = 697;- Moonclerk = 698;- Paymoapp = 699;- Mixmax = 700;- Processst = 701;- Repairshopr = 702;- Goshippo = 703;- Sigopt = 704;- Sugester = 705;- Viewneo = 706;- BoostNote = 707;- CaptainData = 708;- Checkvist = 709;- Cliengo = 710;- Cloze = 711;- FormIO = 712;- FormBucket = 713;- GoCanvas = 714;- MadKudu = 715;- NozbeTeams = 716;- Papyrs = 717;- SuperNotesAPI = 718;- Tallyfy = 719;- ZenkitAPI = 720;- CloudImage = 721;- UploadCare = 722;- Borgbase = 723;- Pipedream = 724;- Sirv = 725;- Diffbot = 726;- EightxEight = 727;- Sendoso = 728;- Printfection = 729;- Authorize = 730;- PandaScore = 731;- Paymo = 732;- AvazaPersonalAccessToken = 733;- PlanviewLeanKit = 734;- Livestorm = 735;- KuCoin = 736;- MetaAPI = 737;- NiceHash = 738;- CexIO = 739;- Klipfolio = 740;- Dynatrace = 741;- MollieAPIKey = 742;- MollieAccessToken = 743;- BasisTheory = 744;- Nordigen = 745;- FlagsmithEnvironmentKey = 746;- FlagsmithToken = 747;- Mux = 748;-}--message Secret {- int64 source_id = 2;- string redacted = 3;- bool verified = 4;- string hash = 5;- map<string, string> extra_data = 6;- StructuredData structured_data = 7;-}--message StructuredData {- repeated TlsPrivateKey tls_private_key = 1;- repeated GitHubSSHKey github_ssh_key = 2;-}--message TlsPrivateKey {- string certificate_fingerprint = 1;- string verification_url = 2;- int64 expiration_timestamp = 3;-}--message GitHubSSHKey {- string user = 1;- string public_key_fingerprint = 2;-}