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 c39f980 commit fa04af3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/scanner/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,15 @@ func GetSecretRegexes() []Secret {
[]string{},
"?",
},
{
"DropBox API Token",
"DropBox API Token",
`(?i)(?:dropbox)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}` +
`(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}` +
`([a-z0-9]{15})(?:['|\"|\n|\r|\s|\x60|;]|$)`,
[]string{},
"?",
},
{
"Facebook Secret Key",
"Facebook Secret Key",
Expand All @@ -339,6 +348,15 @@ func GetSecretRegexes() []Secret {
[]string{"facebook.com", "facebook.svg"},
"?",
},
{
"Fastly API Token",
"Fastly API Token",
`(?i)(?:fastly)(?:[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.com", "facebook.svg"},
"?",
},
{
"Cloudinary Basic Auth",
"Cloudinary Basic Auth",
Expand Down

0 comments on commit fa04af3

Please sign in to comment.