Skip to content

Commit

Permalink
stop to check file extensions that high likelihood of false positives (
Browse files Browse the repository at this point in the history
…#158)

* stop to check file extensions that high likelihood of false positives

* ignore config.json
  • Loading branch information
tomoyamachi authored Oct 6, 2021
1 parent a80c45b commit 6b27dc5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkg/assessor/credential/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ func (a CredentialAssessor) RequiredFiles() []string {
return []string{
"credentials.json",
"credential.json",
"config.json",
// TODO: Only check .docker/config.json
// "config.json",
"credentials",
"credential",
"password.txt",
Expand All @@ -79,14 +80,18 @@ func (a CredentialAssessor) RequiredFiles() []string {
}

func (a CredentialAssessor) RequiredExtensions() []string {
// reference: https://github.com/eth0izzle/shhgit/blob/master/config.yaml
return []string{
".key",
// reference: https://github.com/eth0izzle/shhgit/blob/master/config.yaml
// TODO: potential sensitive data but they have many false-positives.
// Dockle need to analyze each file.
//".pem",
//".key",
//".p12",
//".pkcs12",
//".pfx",
//".asc",

".secret",
".p12",
".pkcs12",
".pfx",
".asc",
".ovpn",
".private_key",
".cscfg",
Expand Down

0 comments on commit 6b27dc5

Please sign in to comment.