Skip to content

Commit

Permalink
add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardottt committed Jul 1, 2024
1 parent 59abf92 commit c39f980
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions pkg/scanner/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,88 @@ func GetSecretRegexes() []Secret {
[]string{},
"?",
},
{
"Confluent Access Token",
"Confluent Access Token",
`(?i)(?:confluent)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-z0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Confluent Secret Key",
"Confluent Secret Key",
`(?i)(?:confluent)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-z0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Databricks API Token",
"Databricks API Token",
`(?i)\b(dapi[a-h0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"DataDog Access Token",
"DataDog Access Token",
`(?i)(?:datadog)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-z0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"DigitalOcean Access Token",
"DigitalOcean Access Token",
`(?i)\b(doo_v1_[a-f0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"DigitalOcean Personal Access Token",
"DigitalOcean Personal Access Token",
`(?i)\b(dop_v1_[a-f0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"DigitalOcean Refresh Token",
"DigitalOcean Refresh Token",
`(?i)\b(dor_v1_[a-f0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Discord API Token",
"Discord API Token",
`(?i)(?:discord)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-f0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Discord Client ID",
"Discord Client ID",
`(?i)(?:discord)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([0-9]{18})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Discord Client Secret",
"Discord Client Secret",
`(?i)(?:discord)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-z0-9=_\-]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Facebook Secret Key",
"Facebook Secret Key",
Expand Down

0 comments on commit c39f980

Please sign in to comment.