mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
working on filetype filtering
This commit is contained in:
1 parent
87d6c588a6
commit
cb74386ef0
4 files changed
+67
-3
No files matched your search
@@ -22,6 +22,7 @@ title = "gitleaks config"
|
||||
description = "AWS Key"
|
||||
regex = '''AKIA[0-9A-Z]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
severity = "high"
|
||||
|
||||
[[rules]]
|
||||
description = "PKCS8"
|
||||
@@ -63,6 +64,21 @@ description = "Slack"
|
||||
regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
|
||||
tags = ["key", "Slack"]
|
||||
|
||||
[[rules]]
|
||||
description = "Generic Key"
|
||||
regex = '''(?i)key(.{0,6})?(:|=|=>|:=)'''
|
||||
entropies = ["4.1-4.3"]
|
||||
filetypes = [".gee"]
|
||||
entropyROI = "line"
|
||||
tags = ["key"]
|
||||
severity = "medium"
|
||||
|
||||
[[rules]]
|
||||
description = "Any go file"
|
||||
filetypes = [".go"]
|
||||
tags = ["go files"]
|
||||
severity = "low"
|
||||
|
||||
[whitelist]
|
||||
files = [
|
||||
"(.*?)(jpg|gif|doc|pdf|bin)$"
|
||||
|
||||
Reference in new issue
Block a user