Skip to content

Commit

Permalink
added support of Docker registry credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
sourav977 committed Dec 4, 2023
1 parent 99c04c4 commit 70eff4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/fanal/secret/builtin-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ var (
CategoryLinkedIn = types.SecretRuleCategory("LinkedIn")
CategoryTwitch = types.SecretRuleCategory("Twitch")
CategoryTypeform = types.SecretRuleCategory("Typeform")
CategoryDocker = types.SecretRuleCategory("Docker")
)

// Reusable regex patterns
Expand Down Expand Up @@ -792,4 +793,13 @@ var builtinRules = []Rule{
SecretGroupName: "secret",
Keywords: []string{"typeform"},
},
{
ID: "dockerconfig-secret",
Category: CategoryDocker,
Title: "Dockerconfig secret exposed",
Severity: "HIGH",
Regex: MustCompile(`(?i)(\.(dockerconfigjson|dockercfg):\s*\|*\s*(ey|ew)+)`),
SecretGroupName: "secret",
Keywords: []string{"dockerconfig"},
},
}

0 comments on commit 70eff4c

Please sign in to comment.