Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Add Couchbase Detector (#1385)
Zubair Khanf52946b99631
diff --git a/go.mod b/go.modindex ef5e9ee4b..ca725923b 100644--- a/go.mod+++ b/go.mod@@ -14,6 +14,7 @@ require (github.com/bill-rich/go-syslog v0.0.0-20220413021637-49edb52a574cgithub.com/bitfinexcom/bitfinex-api-go v0.0.0-20210608095005-9e0b26f200fbgithub.com/bradleyfalzon/ghinstallation/v2 v2.4.0+ github.com/couchbase/gocb/v2 v2.6.3github.com/crewjam/rfc5424 v0.1.0github.com/denisenkom/go-mssqldb v0.12.3github.com/envoyproxy/protoc-gen-validate v1.0.1@@ -93,6 +94,7 @@ require (github.com/cloudflare/circl v1.3.3 // indirectgithub.com/connesc/cipherio v0.2.1 // indirectgithub.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect+ github.com/couchbase/gocbcore/v10 v10.2.3 // indirectgithub.com/davecgh/go-spew v1.1.1 // indirectgithub.com/dimchansky/utfbom v1.1.1 // indirectgithub.com/docker/cli v23.0.5+incompatible // indirectdiff --git a/go.sum b/go.sumindex 858efd340..ec312961f 100644--- a/go.sum+++ b/go.sum@@ -115,6 +115,13 @@ github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgithub.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=github.com/connesc/cipherio v0.2.1 h1:FGtpTPMbKNNWByNrr9aEBtaJtXjqOzkIXNYJp6OEycw=github.com/connesc/cipherio v0.2.1/go.mod h1:ukY0MWJDFnJEbXMQtOcn2VmTpRfzcTz4OoVrWGGJZcA=+github.com/couchbase/gocb/v2 v2.6.3 h1:5RsMo+RRfK0mVxHLAfpBz3/tHlgXZb1WBNItLk9Ab+c=+github.com/couchbase/gocb/v2 v2.6.3/go.mod h1:yF5F6BHTZ/ZowhEuZbySbXrlI4rHd1TIhm5azOaMbJU=+github.com/couchbase/gocbcore/v10 v10.2.3 h1:PEkRSNSkKjUBXx82Ucr094+anoiCG5GleOOQZOHo6D4=+github.com/couchbase/gocbcore/v10 v10.2.3/go.mod h1:lYQIIk+tzoMcwtwU5GzPbDdqEkwkH3isI2rkSpfL0oM=+github.com/couchbaselabs/gocaves/client v0.0.0-20230307083111-cc3960c624b1/go.mod h1:AVekAZwIY2stsJOMWLAS/0uA/+qdp7pjO8EHnl61QkY=+github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259 h1:2TXy68EGEzIMHOx9UvczR5ApVecwCfQZ0LjkmwMI6g4=+github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259/go.mod h1:AVekAZwIY2stsJOMWLAS/0uA/+qdp7pjO8EHnl61QkY=github.com/containerd/stargz-snapshotter/estargz v0.14.3 h1:OqlDCK3ZVUO6C3B/5FSkDwbkEETK84kQgEeFwDC+62k=github.com/containerd/stargz-snapshotter/estargz v0.14.3/go.mod h1:KY//uOCIkSuNAHhJogcZtrNHdKrA99/FCCRjE3HD36o=github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=@@ -421,6 +428,7 @@ github.com/smartystreets/gunit v1.1.3 h1:32x+htJCu3aMswhPw3teoJ+PnWPONqdNgaGs6Qtgithub.com/smartystreets/gunit v1.1.3/go.mod h1:EH5qMBab2UclzXUcpR8b93eHsIlp9u+pDQIRp5DZNzQ=github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=+github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=@@ -431,6 +439,7 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=+github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502 h1:34icjjmqJ2HPjrSuJYEkdZ+0ItmGQAQ75cRHIiftIyE=diff --git a/pkg/common/patterns.go b/pkg/common/patterns.goindex 7d75130f0..774dbf3f6 100644--- a/pkg/common/patterns.go+++ b/pkg/common/patterns.go@@ -2,6 +2,7 @@ package commonimport ("fmt"+ "regexp""strconv""strings")@@ -15,7 +16,11 @@ const RegexPattern = "0-9a-z"const AlphaNumPattern = "0-9a-zA-Z"const HexPattern = "0-9a-f"-//Custom Regex functions+type RegexState struct {+ compiledRegex *regexp.Regexp+}++// Custom Regex functionsfunc BuildRegex(pattern string, specialChar string, length int) string {return fmt.Sprintf(`\b([%s%s]{%s})\b`, pattern, specialChar, strconv.Itoa(length))}@@ -37,3 +42,30 @@ func RangeValidation(rangeInput string) bool {func ToUpperCase(input string) string {return strings.ToUpper(input)}++func (r RegexState) Matches(data []byte) []string {+ matches := r.compiledRegex.FindAllStringSubmatch(string(data), -1)++ res := make([]string, 0, len(matches))++ // trim off spaces and different quote types ('").+ for i := range matches {+ res = append(res, strings.Trim(matches[i][1], `"' )`))+ }++ return res+}++// UsernameRegexCheck constructs an username usernameRegex pattern from a given pattern of excluded characters.+func UsernameRegexCheck(pattern string) RegexState {+ raw := fmt.Sprintf(`(?im)(?:user|usr)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:%+v]{4,40})\b`, pattern)++ return RegexState{regexp.MustCompile(raw)}+}++// PasswordRegexCheck constructs an username usernameRegex pattern from a given pattern of excluded characters.+func PasswordRegexCheck(pattern string) RegexState {+ raw := fmt.Sprintf(`(?im)(?:pass|password)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:%+v]{4,40})`, pattern)++ return RegexState{regexp.MustCompile(raw)}+}diff --git a/pkg/common/patterns_test.go b/pkg/common/patterns_test.gonew file mode 100644index 000000000..8eaeb6abd--- /dev/null+++ b/pkg/common/patterns_test.go@@ -0,0 +1,59 @@+package common++import (+ "github.com/stretchr/testify/assert"+ "regexp"+ "testing"+)++const (+ usernamePattern = `?()/\+=\s\n`+ passwordPattern = `^<>;.*&|£\n\s`+ usernameRegex = `(?im)(?:user|usr)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:?()/\+=\s\n]{4,40})\b`+ passwordRegex = `(?im)(?:pass|password)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:^<>;.*&|£\n\s]{4,40})`+)++func TestUsernameRegexCheck(t *testing.T) {+ usernameRegexPat := UsernameRegexCheck(usernamePattern)++ expectedRegexPattern := regexp.MustCompile(usernameRegex)++ if usernameRegexPat.compiledRegex.String() != expectedRegexPattern.String() {+ t.Errorf("\n got %v \n want %v", usernameRegexPat.compiledRegex, expectedRegexPattern)+ }++ testString := `username = "johnsmith123"+ username='johnsmith123'+ username:="johnsmith123"+ username = johnsmith123+ username=johnsmith123`++ expectedStr := []string{"johnsmith123", "johnsmith123", "johnsmith123", "johnsmith123", "johnsmith123"}++ usernameRegexMatches := usernameRegexPat.Matches([]byte(testString))++ assert.Exactly(t, usernameRegexMatches, expectedStr)++}++func TestPasswordRegexCheck(t *testing.T) {+ passwordRegexPat := PasswordRegexCheck(passwordPattern)++ expectedRegexPattern := regexp.MustCompile(passwordRegex)+ assert.Equal(t, passwordRegexPat.compiledRegex, expectedRegexPattern)++ testString := `password = "johnsmith123$!"+ password='johnsmith123$!'+ password:="johnsmith123$!"+ password = johnsmith123$!+ password=johnsmith123$!+ PasswordAuthenticator(username, "johnsmith123$!")`++ expectedStr := []string{"johnsmith123$!", "johnsmith123$!", "johnsmith123$!", "johnsmith123$!", "johnsmith123$!",+ "johnsmith123$!"}++ passwordRegexMatches := passwordRegexPat.Matches([]byte(testString))++ assert.Exactly(t, passwordRegexMatches, expectedStr)++}diff --git a/pkg/detectors/couchbase/couchbase.go b/pkg/detectors/couchbase/couchbase.gonew file mode 100644index 000000000..09a1a4379--- /dev/null+++ b/pkg/detectors/couchbase/couchbase.go@@ -0,0 +1,152 @@+package couchbase++import (+ "context"+ "fmt"+ "log"+ "regexp"+ "strings"+ "time"+ "unicode"++ "github.com/couchbase/gocb/v2"+ "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 (++ // Make sure that your group is surrounded in boundary characters such as below to reduce false positives.+ connectionStringPat = regexp.MustCompile(`\bcb\.[a-z0-9]+\.cloud\.couchbase\.com\b`)+ usernamePat = `?()/\+=\s\n`+ passwordPat = `^<>;.*&|£\n\s`+ //passwordPat = regexp.MustCompile(`(?i)(?:pass|pwd)(?:.|[\n\r]){0,15}(\b[^<>;.*&|£\n\s]{8,100}$)`)+ // passwordPat = regexp.MustCompile(`(?im)(?:pass|pwd)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:?()/\+=\s\n]{4,40})\b`)+)++func meetsCouchbasePasswordRequirements(password string) (string, bool) {+ var hasLower, hasUpper, hasNumber, hasSpecialChar bool+ for _, char := range password {+ switch {+ case unicode.IsLower(char):+ hasLower = true+ case unicode.IsUpper(char):+ hasUpper = true+ case unicode.IsNumber(char):+ hasNumber = true+ case unicode.IsPunct(char) || unicode.IsSymbol(char):+ hasSpecialChar = true+ }++ if hasLower && hasUpper && hasNumber && hasSpecialChar {+ return password, true+ }+ }++ return "", false+}++// 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{"couchbase://", "couchbases://"}+}++// FromData will find and optionally verify Couchbase 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)++ connectionStringMatches := connectionStringPat.FindAllStringSubmatch(dataStr, -1)++ // prepend 'couchbases://' to the connection string as the connection+ // string format is couchbases://cb.stuff.cloud.couchbase.com but the+ // cb.stuff.cloud.couchbase.com may be separated from the couchbases:// in codebases.+ for i, connectionStringMatch := range connectionStringMatches {+ connectionStringMatches[i][0] = "couchbases://" + connectionStringMatch[0]+ }++ usernameRegexState := common.UsernameRegexCheck(usernamePat)+ usernameMatches := usernameRegexState.Matches(data)++ passwordRegexState := common.PasswordRegexCheck(passwordPat)+ passwordMatches := passwordRegexState.Matches(data)++ for _, connectionStringMatch := range connectionStringMatches {+ resConnectionStringMatch := strings.TrimSpace(connectionStringMatch[0])++ for _, resUsernameMatch := range usernameMatches {++ for _, resPasswordMatch := range passwordMatches {+ _, metPasswordRequirements := meetsCouchbasePasswordRequirements(resPasswordMatch)++ if !metPasswordRequirements {+ continue+ }++ s1 := detectors.Result{+ DetectorType: detectorspb.DetectorType_Couchbase,+ Raw: []byte(fmt.Sprintf("%s:%s@%s", resUsernameMatch, resPasswordMatch, resConnectionStringMatch)),+ }++ if verify {++ options := gocb.ClusterOptions{+ Authenticator: gocb.PasswordAuthenticator{+ Username: resUsernameMatch,+ Password: resPasswordMatch,+ },+ }++ // Sets a pre-configured profile called "wan-development" to help avoid latency issues+ // when accessing Capella from a different Wide Area Network+ // or Availability Zone (e.g. your laptop).+ if err := options.ApplyProfile(gocb.ClusterConfigProfileWanDevelopment); err != nil {+ log.Fatal("apply profile err", err)+ }++ // Initialize the Connection+ cluster, err := gocb.Connect(resConnectionStringMatch, options)+ if err != nil {+ continue+ }++ // We'll ping the KV nodes in our cluster.+ pings, err := cluster.Ping(&gocb.PingOptions{+ Timeout: time.Second * 5,+ })++ if err != nil {+ continue+ }++ for _, ping := range pings.Services {+ for _, pingEndpoint := range ping {+ if pingEndpoint.State == gocb.PingStateOk {+ s1.Verified = true+ break+ } else {+ // This function will check false positives for common test words, but also it will make sure the key appears 'random' enough to be a real key.+ if detectors.IsKnownFalsePositive(resPasswordMatch, detectors.DefaultFalsePositives, true) {+ continue+ }+ }+ }+ }+ }++ results = append(results, s1)+ }+ }+ }+ return results, nil+}++func (s Scanner) Type() detectorspb.DetectorType {+ return detectorspb.DetectorType_Couchbase+}diff --git a/pkg/detectors/couchbase/couchbase_test.go b/pkg/detectors/couchbase/couchbase_test.gonew file mode 100644index 000000000..ded4df024--- /dev/null+++ b/pkg/detectors/couchbase/couchbase_test.go@@ -0,0 +1,122 @@+//go:build detectors+// +build detectors++package couchbase++import (+ "context"+ "fmt"+ "testing"+ "time"++ "github.com/kylelemons/godebug/pretty"+ "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"++ "github.com/trufflesecurity/trufflehog/v3/pkg/common"+ "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"+)++func TestCouchbase_FromChunk(t *testing.T) {+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)+ defer cancel()+ testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors5")+ if err != nil {+ t.Fatalf("could not get test secrets from GCP: %s", err)+ }+ endpoint := testSecrets.MustGetField("COUCHBASE_ENDPOINT")+ username := testSecrets.MustGetField("COUCHBASE_USERNAME")+ password := testSecrets.MustGetField("COUCHBASE_PASSWORD")+ inactiveSecret := testSecrets.MustGetField("COUCHBASE_INACTIVE_PASSWORD")++ 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("db uri: %s \n username = %s \n password = %s", endpoint, username, password)),+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Couchbase,+ Verified: true,+ },+ },+ wantErr: false,+ },+ {+ name: "found, unverified",+ s: Scanner{},+ args: args{+ ctx: context.Background(),+ data: []byte(fmt.Sprintf("db uri: %s \n username = %s \n password = %s", endpoint, username, inactiveSecret)), // the secret would satisfy the regex but not pass validation+ verify: true,+ },+ want: []detectors.Result{+ {+ DetectorType: detectorspb.DetectorType_Couchbase,+ 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("Couchbase.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("Couchbase.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++ {+ _, err := s.FromData(ctx, false, data)+ if err != nil {+ b.Fatal(err)+ }+ }+ })+ }+}diff --git a/pkg/pb/detectorspb/detectors.pb.go b/pkg/pb/detectorspb/detectors.pb.goindex 03bc22721..def58a93a 100644--- a/pkg/pb/detectorspb/detectors.pb.go+++ b/pkg/pb/detectorspb/detectors.pb.go@@ -991,6 +991,7 @@ const (DetectorType_Aiven DetectorType = 917DetectorType_Prefect DetectorType = 918DetectorType_Docusign DetectorType = 919+ DetectorType_Couchbase DetectorType = 920)// Enum value maps for DetectorType.@@ -1912,6 +1913,7 @@ var (917: "Aiven",918: "Prefect",919: "Docusign",+ 920: "Couchbase",}DetectorType_value = map[string]int32{"Alibaba": 0,@@ -2830,6 +2832,7 @@ var ("Aiven": 917,"Prefect": 918,"Docusign": 919,+ "Couchbase": 920,})@@ -3194,7 +3197,7 @@ var file_detectors_proto_rawDesc = []byte{0x0a, 0x0b, 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a,0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c,0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x41, 0x53, 0x45, 0x36, 0x34, 0x10,- 0x02, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x54, 0x46, 0x31, 0x36, 0x10, 0x03, 0x2a, 0xf9, 0x72, 0x0a,+ 0x02, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x54, 0x46, 0x31, 0x36, 0x10, 0x03, 0x2a, 0x89, 0x73, 0x0a,0x0c, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a,0x07, 0x41, 0x6c, 0x69, 0x62, 0x61, 0x62, 0x61, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x4d,0x51, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x57, 0x53, 0x10, 0x02, 0x12, 0x09, 0x0a,@@ -4114,7 +4117,8 @@ var file_detectors_proto_rawDesc = []byte{0x0b, 0x4e, 0x75, 0x47, 0x65, 0x74, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x10, 0x94, 0x07, 0x12,0x0a, 0x0a, 0x05, 0x41, 0x69, 0x76, 0x65, 0x6e, 0x10, 0x95, 0x07, 0x12, 0x0c, 0x0a, 0x07, 0x50,0x72, 0x65, 0x66, 0x65, 0x63, 0x74, 0x10, 0x96, 0x07, 0x12, 0x0d, 0x0a, 0x08, 0x44, 0x6f, 0x63,- 0x75, 0x73, 0x69, 0x67, 0x6e, 0x10, 0x97, 0x07, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68,+ 0x75, 0x73, 0x69, 0x67, 0x6e, 0x10, 0x97, 0x07, 0x12, 0x0e, 0x0a, 0x09, 0x43, 0x6f, 0x75, 0x63,+ 0x68, 0x62, 0x61, 0x73, 0x65, 0x10, 0x98, 0x07, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68,0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x73, 0x65,0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x68, 0x6f,0x67, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x64, 0x65, 0x74, 0x65,diff --git a/proto/detectors.proto b/proto/detectors.protoindex 175e5bc54..3cf3697d5 100644--- a/proto/detectors.proto+++ b/proto/detectors.proto@@ -928,6 +928,7 @@ enum DetectorType {Aiven = 917;Prefect = 918;Docusign = 919;+ Couchbase = 920;}message Result {