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 a3cd8f5 commit 59abf92
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions pkg/scanner/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,76 @@ func GetSecretRegexes() []Secret {
[]string{},
"?",
},
{
"Beamer API Token",
"Beamer API Token",
`(?i)(?:beamer)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`(b_[a-z0-9=_\-]{44})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"BitBucket Client ID",
"BitBucket Client ID",
`(?i)(?:bitbucket)(?:[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{},
"?",
},
{
"BitBucket Client Secret",
"BitBucket Client Secret",
`(?i)(?:bitbucket)(?:[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{},
"?",
},
{
"Cloudflare API Key",
"Cloudflare API Key",
`(?i)(?:cloudflare)(?:[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{},
"?",
},
{
"Cloudflare Global API Key",
"Cloudflare Global API Key",
`(?i)(?:cloudflare)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-f0-9]{37})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Cloudflare Origin CA Key",
"Cloudflare Origin CA Key",
`\b(v1\.0-[a-f0-9]{24}-[a-f0-9]{146})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"CodeCov Access Token",
"CodeCov Access Token",
`(?i)(?:codecov)(?:[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{},
"?",
},
{
"CoinBase Access Token",
"CoinBase Access Token",
`(?i)(?:coinbase)(?:[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{},
"?",
},
{
"Facebook Secret Key",
"Facebook Secret Key",
Expand Down

0 comments on commit 59abf92

Please sign in to comment.