mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Merge branch 'master' into fix_default_config
This commit is contained in:
commit
b83fe80968
504 files changed
+1079
-3492
No files matched your search
@@ -0,0 +1,3 @@
|
||||
[allowlist]
|
||||
description = "Allowlisted files"
|
||||
files = [ '''server.test.py''','''server.test2.py''']
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
[allowlist]
|
||||
description = "Allowlisted files"
|
||||
files = [ '''bad.docx''']
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[rules.allowlist]
|
||||
description = "if we encounter this commit for this rule, skip it"
|
||||
commits = ["b10b3e2cb320a8c211fda94c4567299d37de7776"]
|
||||
|
||||
|
||||
[allowlist]
|
||||
commits = [
|
||||
"17471a5fda722a9e423f1a0d3f0d267ea009d41c",
|
||||
"996865bb912f3bc45898a370a13aadb315014b55"
|
||||
]
|
||||
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
[[rules]]
|
||||
description = "Block dangerous filetypes"
|
||||
file = '''(.*?)(creds.git|gitfile.txt|gitignore|pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$'''
|
||||
tags = ["key", "extensions"]
|
||||
[rules.allowlist]
|
||||
paths = ['''.docx''']
|
||||
description = "ignore known locations and files"
|
||||
|
||||
#[allowlist]
|
||||
# description = "Allowlisted files"
|
||||
# paths = ['''.zip''']
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[[rules]]
|
||||
description = "Block dangerous filetypes"
|
||||
file = '''(.*?)(pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$'''
|
||||
tags = ["key", "extensions"]
|
||||
[rules.allowlist]
|
||||
paths = ['''.zip''']
|
||||
description = "ignore known locations and files"
|
||||
#
|
||||
#[allowlist]
|
||||
# description = "Allowlisted files"
|
||||
# paths = ['''.zip''']
|
||||
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[allowlist]
|
||||
description = "Allowlisted files"
|
||||
paths = ['''.py''']
|
||||
files = ['''.md$''']
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
@@ -0,0 +1,8 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[rules.allowlist]
|
||||
description = "ignore sample regex md files"
|
||||
files = ['''(.*)?md$''']
|
||||
regexes = ['''ignore$''']
|
||||
@@ -0,0 +1,7 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[rules.allowlist]
|
||||
description = "ignore python files"
|
||||
files = ['''(.*)?py$''']
|
||||
@@ -0,0 +1,7 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[rules.allowlist]
|
||||
description = "ignore aws key"
|
||||
regexes = ['''AKIAIO5FODNN7EXAMPLE.*''']
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
## this is an example of a rule that won't work
|
||||
[[rules]]
|
||||
description = "Python files"
|
||||
fileRegex = "(?i)*.py"
|
||||
@@ -0,0 +1,10 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[allowlist]
|
||||
description = "ignore md files"
|
||||
files = [
|
||||
'''(.*)?md$'''
|
||||
]
|
||||
@@ -0,0 +1,10 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[allowlist]
|
||||
description = "ignore config folders"
|
||||
paths = [
|
||||
'''config(uration)?'''
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[allowlist]
|
||||
description = "allowlist repo"
|
||||
repos = [
|
||||
'''test_repo_1'''
|
||||
]
|
||||
@@ -0,0 +1,10 @@
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''AWS secret: ("?)((A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16})("?)'''
|
||||
tags = ["key", "AWS"]
|
||||
reportGroup = 2
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[Global]
|
||||
file = '''?????????????'''
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[allowlist]
|
||||
description = "ignore md files"
|
||||
files = ['''???????''']
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "4.3"
|
||||
Max = "4.1"
|
||||
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "4.3"
|
||||
Max = "x"
|
||||
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "x"
|
||||
Max = "4.1"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "1.0"
|
||||
Max = "8"
|
||||
Group = "x"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "1.0"
|
||||
Max = "8.5"
|
||||
Group = "-2"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "1.0"
|
||||
Max = "8.5"
|
||||
Group = "2"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "1.0"
|
||||
Max = "8.5"
|
||||
Group = "0"
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''$$$???$$$??$?$?$'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
title = "gitleaks config"
|
||||
|
||||
[[rules]]
|
||||
description = "Asymmetric Private Key"
|
||||
regex = '''-----BEGIN ((EC|PGP|DSA|RSA|OPENSSH) )?PRIVATE KEY( BLOCK)?-----'''
|
||||
tags = ["key", "AsymmetricPrivateKey"]
|
||||
|
||||
[[rules]]
|
||||
description = "Passwords"
|
||||
regex = '''(?i)password=(?i)'''
|
||||
tags = ["key", "Generic"]
|
||||
|
||||
[[rules]]
|
||||
description = "secret secret.com"
|
||||
regex = '''(?i)secret\.com'''
|
||||
tags = ["key", "custom"]
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
[[rules]]
|
||||
description = "entropy"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{40,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "4.5"
|
||||
Max = "4.7"
|
||||
[[rules.Entropies]]
|
||||
Min = "5.5"
|
||||
Max = "6.3"
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
[[rules]]
|
||||
description = "Generic Credential"
|
||||
regex = '''(?i)(api_key|apikey|secret|password|pass|pw|key)(.{0,20})?[0-9a-zA-Z]{16,45}'''
|
||||
tags = ["key", "API", "generic"]
|
||||
Vendored
+148
@@ -0,0 +1,148 @@
|
||||
title = "gitleaks config"
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS MWS key"
|
||||
regex = '''amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'''
|
||||
tags = ["key", "AWS", "MWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "Facebook Secret Key"
|
||||
regex = '''(?i)(facebook|fb)(.{0,20})?(?-i)['\"][0-9a-f]{32}['\"]'''
|
||||
tags = ["key", "Facebook"]
|
||||
|
||||
[[rules]]
|
||||
description = "Facebook Client ID"
|
||||
regex = '''(?i)(facebook|fb)(.{0,20})?['\"][0-9]{13,17}['\"]'''
|
||||
tags = ["key", "Facebook"]
|
||||
|
||||
[[rules]]
|
||||
description = "Twitter Secret Key"
|
||||
regex = '''(?i)twitter(.{0,20})?['\"][0-9a-z]{35,44}['\"]'''
|
||||
tags = ["key", "Twitter"]
|
||||
|
||||
[[rules]]
|
||||
description = "Twitter Client ID"
|
||||
regex = '''(?i)twitter(.{0,20})?['\"][0-9a-z]{18,25}['\"]'''
|
||||
tags = ["client", "Twitter"]
|
||||
|
||||
[[rules]]
|
||||
description = "Github"
|
||||
regex = '''(?i)github(.{0,20})?(?-i)['\"][0-9a-zA-Z]{35,40}['\"]'''
|
||||
tags = ["key", "Github"]
|
||||
|
||||
[[rules]]
|
||||
description = "LinkedIn Client ID"
|
||||
regex = '''(?i)linkedin(.{0,20})?(?-i)['\"][0-9a-z]{12}['\"]'''
|
||||
tags = ["client", "LinkedIn"]
|
||||
|
||||
[[rules]]
|
||||
description = "LinkedIn Secret Key"
|
||||
regex = '''(?i)linkedin(.{0,20})?['\"][0-9a-z]{16}['\"]'''
|
||||
tags = ["secret", "LinkedIn"]
|
||||
|
||||
[[rules]]
|
||||
description = "Slack"
|
||||
regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
|
||||
tags = ["key", "Slack"]
|
||||
|
||||
[[rules]]
|
||||
description = "EC"
|
||||
regex = '''-----BEGIN EC PRIVATE KEY-----'''
|
||||
tags = ["key", "EC"]
|
||||
|
||||
[[rules]]
|
||||
description = "Generic API key"
|
||||
regex = '''(?i)(api_key|apikey)(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
|
||||
tags = ["key", "API", "generic"]
|
||||
|
||||
[[rules]]
|
||||
description = "Generic Secret"
|
||||
regex = '''(?i)secret(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
|
||||
tags = ["key", "Secret", "generic"]
|
||||
|
||||
[[rules]]
|
||||
description = "Google API key"
|
||||
regex = '''AIza[0-9A-Za-z\\-_]{35}'''
|
||||
tags = ["key", "Google"]
|
||||
|
||||
|
||||
[[rules]]
|
||||
description = "Heroku API key"
|
||||
regex = '''(?i)heroku(.{0,20})?['"][0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]'''
|
||||
tags = ["key", "Heroku"]
|
||||
|
||||
[[rules]]
|
||||
description = "MailChimp API key"
|
||||
regex = '''(?i)(mailchimp|mc)(.{0,20})?['"][0-9a-f]{32}-us[0-9]{1,2}['"]'''
|
||||
tags = ["key", "Mailchimp"]
|
||||
|
||||
[[rules]]
|
||||
description = "Mailgun API key"
|
||||
regex = '''(?i)(mailgun|mg)(.{0,20})?['"][0-9a-z]{32}['"]'''
|
||||
tags = ["key", "Mailgun"]
|
||||
|
||||
[[rules]]
|
||||
description = "PayPal Braintree access token"
|
||||
regex = '''access_token\$production\$[0-9a-z]{16}\$[0-9a-f]{32}'''
|
||||
tags = ["key", "Paypal"]
|
||||
|
||||
[[rules]]
|
||||
description = "Picatic API key"
|
||||
regex = '''sk_live_[0-9a-z]{32}'''
|
||||
tags = ["key", "Picatic"]
|
||||
|
||||
[[rules]]
|
||||
description = "Slack Webhook"
|
||||
regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}'''
|
||||
tags = ["key", "slack"]
|
||||
|
||||
[[rules]]
|
||||
description = "Stripe API key"
|
||||
regex = '''(?i)stripe(.{0,20})?['\"][sk|rk]_live_[0-9a-zA-Z]{24}'''
|
||||
tags = ["key", "Stripe"]
|
||||
|
||||
[[rules]]
|
||||
description = "Square access token"
|
||||
regex = '''sq0atp-[0-9A-Za-z\-_]{22}'''
|
||||
tags = ["key", "square"]
|
||||
|
||||
[[rules]]
|
||||
description = "Square OAuth secret"
|
||||
regex = '''sq0csp-[0-9A-Za-z\\-_]{43}'''
|
||||
tags = ["key", "square"]
|
||||
|
||||
[[rules]]
|
||||
description = "Twilio API key"
|
||||
regex = '''(?i)twilio(.{0,20})?['\"][0-9a-f]{32}['\"]'''
|
||||
tags = ["key", "twilio"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[rules.allowlist]
|
||||
description = "ignore common jenkins functions"
|
||||
regexes = [
|
||||
'''allowlistme'''
|
||||
]
|
||||
files = [
|
||||
'''(.*)?Jenkinsfile$'''
|
||||
]
|
||||
|
||||
# Global rules. This instructs gitleaks to ignore all .pem files or if a message with
|
||||
[[rules]]
|
||||
description = "Files with keys and credentials"
|
||||
file = '''(.*?)(pem)'''
|
||||
|
||||
[allowlist]
|
||||
description = "File allowlists"
|
||||
files = [
|
||||
'''(.*?)(jpg|gif)$''',
|
||||
'''(.*?)(doc|pdf|bin)$'''
|
||||
]
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
title = "gitleaks config"
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Secret Key"
|
||||
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]'''
|
||||
tags = ["key", "AWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS MWS key"
|
||||
regex = '''amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'''
|
||||
tags = ["key", "AWS", "MWS"]
|
||||
|
||||
[[rules]]
|
||||
description = "Facebook Secret Key"
|
||||
regex = '''(?i)(facebook|fb)(.{0,20})?(?-i)['\"][0-9a-f]{32}['\"]'''
|
||||
tags = ["key", "Facebook"]
|
||||
|
||||
[[rules]]
|
||||
description = "Facebook Client ID"
|
||||
regex = '''(?i)(facebook|fb)(.{0,20})?['\"][0-9]{13,17}['\"]'''
|
||||
tags = ["key", "Facebook"]
|
||||
|
||||
[[rules]]
|
||||
description = "Twitter Secret Key"
|
||||
regex = '''(?i)twitter(.{0,20})?['\"][0-9a-z]{35,44}['\"]'''
|
||||
tags = ["key", "Twitter"]
|
||||
|
||||
[[rules]]
|
||||
description = "Twitter Client ID"
|
||||
regex = '''(?i)twitter(.{0,20})?['\"][0-9a-z]{18,25}['\"]'''
|
||||
tags = ["client", "Twitter"]
|
||||
|
||||
[[rules]]
|
||||
description = "Github"
|
||||
regex = '''(?i)github(.{0,20})?(?-i)['\"][0-9a-zA-Z]{35,40}['\"]'''
|
||||
tags = ["key", "Github"]
|
||||
|
||||
[[rules]]
|
||||
description = "LinkedIn Client ID"
|
||||
regex = '''(?i)linkedin(.{0,20})?(?-i)['\"][0-9a-z]{12}['\"]'''
|
||||
tags = ["client", "LinkedIn"]
|
||||
|
||||
[[rules]]
|
||||
description = "LinkedIn Secret Key"
|
||||
regex = '''(?i)linkedin(.{0,20})?['\"][0-9a-z]{16}['\"]'''
|
||||
tags = ["secret", "LinkedIn"]
|
||||
|
||||
[[rules]]
|
||||
description = "Slack"
|
||||
regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
|
||||
tags = ["key", "Slack"]
|
||||
|
||||
[[rules]]
|
||||
description = "EC"
|
||||
regex = '''-----BEGIN EC PRIVATE KEY-----'''
|
||||
tags = ["key", "EC"]
|
||||
|
||||
[[rules]]
|
||||
description = "Generic API key"
|
||||
regex = '''(?i)(api_key|apikey)(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
|
||||
tags = ["key", "API", "generic"]
|
||||
|
||||
[[rules]]
|
||||
description = "Generic Secret"
|
||||
regex = '''(?i)secret(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
|
||||
tags = ["key", "Secret", "generic"]
|
||||
|
||||
[[rules]]
|
||||
description = "Google API key"
|
||||
regex = '''AIza[0-9A-Za-z\\-_]{35}'''
|
||||
tags = ["key", "Google"]
|
||||
|
||||
|
||||
[[rules]]
|
||||
description = "Heroku API key"
|
||||
regex = '''(?i)heroku(.{0,20})?['"][0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]'''
|
||||
tags = ["key", "Heroku"]
|
||||
|
||||
[[rules]]
|
||||
description = "MailChimp API key"
|
||||
regex = '''(?i)(mailchimp|mc)(.{0,20})?['"][0-9a-f]{32}-us[0-9]{1,2}['"]'''
|
||||
tags = ["key", "Mailchimp"]
|
||||
|
||||
[[rules]]
|
||||
description = "Mailgun API key"
|
||||
regex = '''(?i)(mailgun|mg)(.{0,20})?['"][0-9a-z]{32}['"]'''
|
||||
tags = ["key", "Mailgun"]
|
||||
|
||||
[[rules]]
|
||||
description = "PayPal Braintree access token"
|
||||
regex = '''access_token\$production\$[0-9a-z]{16}\$[0-9a-f]{32}'''
|
||||
tags = ["key", "Paypal"]
|
||||
|
||||
[[rules]]
|
||||
description = "Picatic API key"
|
||||
regex = '''sk_live_[0-9a-z]{32}'''
|
||||
tags = ["key", "Picatic"]
|
||||
|
||||
[[rules]]
|
||||
description = "Slack Webhook"
|
||||
regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}'''
|
||||
tags = ["key", "slack"]
|
||||
|
||||
[[rules]]
|
||||
description = "Stripe API key"
|
||||
regex = '''(?i)stripe(.{0,20})?['\"][sk|rk]_live_[0-9a-zA-Z]{24}'''
|
||||
tags = ["key", "Stripe"]
|
||||
|
||||
[[rules]]
|
||||
description = "Square access token"
|
||||
regex = '''sq0atp-[0-9A-Za-z\-_]{22}'''
|
||||
tags = ["key", "square"]
|
||||
|
||||
[[rules]]
|
||||
description = "Square OAuth secret"
|
||||
regex = '''sq0csp-[0-9A-Za-z\\-_]{43}'''
|
||||
tags = ["key", "square"]
|
||||
|
||||
[[rules]]
|
||||
description = "Twilio API key"
|
||||
regex = '''(?i)twilio(.{0,20})?['\"][0-9a-f]{32}['\"]'''
|
||||
tags = ["key", "twilio"]
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
tags = ["key", "AWS"]
|
||||
[rules.allowlist]
|
||||
description = "ignore common jenkins functions"
|
||||
regexes = [
|
||||
'''allowlistme'''
|
||||
]
|
||||
files = [
|
||||
'''(.*)?Jenkinsfile$'''
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
description = "Files with keys and credentials"
|
||||
file = '''(.*?)(pem)'''
|
||||
|
||||
# Global allowlist
|
||||
[allowlist]
|
||||
description = "global allowlists"
|
||||
files = [
|
||||
'''(.*?)(jpg|gif)$''',
|
||||
'''(.*?)(doc|pdf|bin)$'''
|
||||
]
|
||||
regexes = [
|
||||
'''(.*?)gitleaks:allow'''
|
||||
]
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
[[rules]]
|
||||
description = "No Zips"
|
||||
file = '''.*\.zip'''
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
[[rules]]
|
||||
description = "flag go"
|
||||
file = '''(.*?)(md)$'''
|
||||
tags = ["key", "extensions"]
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
[[rules]]
|
||||
description = "entropy and regex"
|
||||
regex = '''['|"]([0-9a-zA-Z-._{}$\/\+=]{20,120})['|"]'''
|
||||
tags = ["entropy"]
|
||||
[[rules.Entropies]]
|
||||
Min = "4.5"
|
||||
Max = "4.7"
|
||||
Group = "1"
|
||||
[[rules.Entropies]]
|
||||
Min = "5.5"
|
||||
Max = "6.3"
|
||||
Group = "1"
|
||||
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
|
||||
[[rules]]
|
||||
description = "Generic password"
|
||||
regex = '''(?i)(password|token).{0,20}?\s*[:|=]\s*?(?-i)([0-9a-zA-Z\/+]{4,40})'''
|
||||
file = '''.*\.ya?ml'''
|
||||
tags = ["key", "Yml", "Yaml"]
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
|
||||
[[rules]]
|
||||
description = "AWS Access Key"
|
||||
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
|
||||
path = '''config(guration)?'''
|
||||
tags = ["key", "AWS"]
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
[[rules]]
|
||||
description = "Generic password"
|
||||
regex = '''(?i)(password|token).{0,20}?\s*[:|=]\s*?(?-i)([0-9a-zA-Z\/+]{4,40})'''
|
||||
file = '''.*\.properties'''
|
||||
path = '''config(guration)?'''
|
||||
tags = ["key", "Yml", "Yaml"]
|
||||
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, AWS"
|
||||
},
|
||||
{
|
||||
"line": "aws_access_key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 9,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,36 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 9,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, AWS"
|
||||
},
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 9,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "",
|
||||
"repo": "",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "",
|
||||
"author": "",
|
||||
"email": "",
|
||||
"file": "secrets.py",
|
||||
"date": "0001-01-01T00:00:00Z",
|
||||
"tags": "key, AWS"
|
||||
},
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "AKIAIOSFODNN7EXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "",
|
||||
"repo": "",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "",
|
||||
"author": "",
|
||||
"email": "",
|
||||
"file": "secrets.py",
|
||||
"date": "0001-01-01T00:00:00Z",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
[
|
||||
{
|
||||
"line": "added_aws_access_key_id='AKIAIO5FODNN7DXAMPLE'",
|
||||
"lineNumber": 2,
|
||||
"offender": "AKIAIO5FODNN7DXAMPLE",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "0000000000000000000000000000000000000000",
|
||||
"repo": "basic",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "AWS Access Key",
|
||||
"commitMessage": "",
|
||||
"author": "",
|
||||
"email": "",
|
||||
"file": "secrets.py",
|
||||
"date": "1970-01-01T00:00:00Z",
|
||||
"tags": "key, AWS"
|
||||
}
|
||||
]
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
[
|
||||
{
|
||||
"line": "SQUARE_OAUTH=sq0csp-QZxqK3fHycIxFsjZ7_HoqRN08qY2by3wLXcfJCfsKEg",
|
||||
"lineNumber": 1,
|
||||
"offender": "sq0csp-QZxqK3fHycIxFsjZ7_HoqRN08qY2by3wLXcfJCfsKEg",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "",
|
||||
"repo": "",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Square OAuth secret",
|
||||
"commitMessage": "",
|
||||
"author": "",
|
||||
"email": "",
|
||||
"file": ".",
|
||||
"date": "0001-01-01T00:00:00Z",
|
||||
"tags": "key, square"
|
||||
},
|
||||
{
|
||||
"line": "GOOGLE_MAPS_KEY=AIzaSyDtz3Di0ZrzeU5ET3UFU0p-xP4bx2FkSrg",
|
||||
"lineNumber": 3,
|
||||
"offender": "AIzaSyDtz3Di0ZrzeU5ET3UFU0p-xP4bx2FkSrg",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "",
|
||||
"repo": "",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Google API key",
|
||||
"commitMessage": "",
|
||||
"author": "",
|
||||
"email": "",
|
||||
"file": ".",
|
||||
"date": "0001-01-01T00:00:00Z",
|
||||
"tags": "key, Google"
|
||||
}
|
||||
]
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
[
|
||||
{
|
||||
"line": "aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 13,
|
||||
"offender": "key_1 = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "208ae4669ade2563fcaf9f12922fa2c0a5b37c63",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding another aws secrets\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T21:11:39-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'",
|
||||
"lineNumber": 5,
|
||||
"offender": "secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'",
|
||||
"lineNumber": 6,
|
||||
"offender": "secret = '8b1118b376c313ed420e5133ba91307817ed52c2'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "aws_access_key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 9,
|
||||
"offender": "key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'",
|
||||
"lineNumber": 10,
|
||||
"offender": "secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,70 @@
|
||||
[
|
||||
{
|
||||
"line": "base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'",
|
||||
"lineNumber": 5,
|
||||
"offender": "secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'",
|
||||
"lineNumber": 6,
|
||||
"offender": "secret = '8b1118b376c313ed420e5133ba91307817ed52c2'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "aws_access_key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 9,
|
||||
"offender": "key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'",
|
||||
"lineNumber": 10,
|
||||
"offender": "secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,70 @@
|
||||
[
|
||||
{
|
||||
"line": "base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'",
|
||||
"lineNumber": 5,
|
||||
"offender": "secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'",
|
||||
"lineNumber": 6,
|
||||
"offender": "secret = '8b1118b376c313ed420e5133ba91307817ed52c2'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "aws_access_key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"lineNumber": 9,
|
||||
"offender": "key = 'AKIAIOSFODNN7EXAMPLE'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
},
|
||||
{
|
||||
"line": "aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'",
|
||||
"lineNumber": 10,
|
||||
"offender": "secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'",
|
||||
"offenderEntropy": -1,
|
||||
"commit": "e7c0aff3e8a60b50a85432fdf933f8beff013743",
|
||||
"repo": "with_config",
|
||||
"repoURL": "",
|
||||
"leakURL": "",
|
||||
"rule": "Generic Credential",
|
||||
"commitMessage": "adding yelp secrets file\n",
|
||||
"author": "Zach Rice",
|
||||
"email": "zricer@protonmail.com",
|
||||
"file": "secrets.py",
|
||||
"date": "2021-09-07T20:29:10-05:00",
|
||||
"tags": "key, API, generic"
|
||||
}
|
||||
]
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
This is the basic testdata repo
|
||||
|
||||
This is the first commit
|
||||
+1
@@ -0,0 +1 @@
|
||||
adding another aws secrets
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[remote "origin"]
|
||||
url = git@github.com:zricethezav/basic.git
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
||||
+1
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
Vendored
BIN
Binary file not shown.
+3
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
|
||||
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
|
||||
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
|
||||
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
|
||||
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
|
||||
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
|
||||
@@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067479 -0500 update by push
|
||||
@@ -0,0 +1,2 @@
|
||||
x�ŽA
|
||||
Â0E]çseÒIÒD<ƒKwÓtÆl"iDðôö®><x�ŸÊº.␍:gŠÀè¼Wì8"*:uH�gouê9ZOA…1šWÉ␍¤OȪ$‘Ž9zG�N:iE-õŽ¿Û\*Ü9Íp[’Àù[÷©×W-ä•—ç)•õ6�ÅÐã0À=¢Ùé~±É_²áiZò8—6ï þl°IªÒ6óXMr
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
x]�Ks‚@„söWxãÝ] šªTE#"1eJy\¨}L\“,øëI©gú›žn¦r6œ�ñM"‘Pçì4|K{¾\ØöÊœE?GºDAC¢P]c|¬âГÂQUL‚æ3
|
||||
öW�¥b©*éºÓ‰g2âI(ÉÖBBèç"03ž}ƒ£î&‰^@ÙÛs||çéqì:HqâËNOOÌ�‡í:¦é±u�âпvœé®²cI÷¦ó”Ðüñ›2„ДëŽD@LðLD£3DÆÖY ḺÑG9ó„V¥ìsȲ¼Ü�F•†"£)ÜײóJ‰6¯º]¯¾åÅ…j]ç…Ð�ÐÐô¢à–çi׊Ö:¡œƒÖÉ´½Ý|ãÎÝÝëj·ô}ËçÛ—gÛøæ~ªÿÃk�ª"<”ÙÊÞº£�µ]Ú¾3b/ÍþíüýÞoìÈ|¤¶Ž§
|
||||
@@ -0,0 +1 @@
|
||||
xќЋKjГ0@іЦ)ж-3ъY‚Rr†,»УЊЗ‰А¶Њў,ТУЧgикБѓOЪ¶ХЦеЛиЄА4sRси§L<Ў€°%лu”іF•М,љЈtЭM3ыbЖ)§EШ•АYX“шСN‹Pvґ�тЏЦб§ИnUѕ~ы‰~=zmЯJ]?ҐmЯ@СFВDsЪsqиїbSж№оwxлzАSҐлxВRW5о‹L°
|
||||
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
|
||||
@@ -0,0 +1 @@
|
||||
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
# testdata copied from https://github.com/Yelp/detect-secrets/blob/master/test_data/each_secret.py
|
||||
red_herring = 'DEADBEEF'
|
||||
id = 'YW1pYWx3YXlzZ2VuZXJhdGluZ3BheWxvYWRzd2hlbmltaHVuZ3J5b3JhbWlhbHdheXNodW5ncnk'
|
||||
|
||||
base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'
|
||||
hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'
|
||||
basic_auth = 'http://username:whywouldyouusehttpforpasswords@example.com'
|
||||
|
||||
aws_access_key = 'AKIAIOSFODNN7EXAMPLE'
|
||||
aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
|
||||
|
||||
# another aws secrets
|
||||
aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'
|
||||
@@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
This is the basic testdata repo
|
||||
|
||||
This is the first commit
|
||||
@@ -0,0 +1 @@
|
||||
adding another aws secrets
|
||||
+1
@@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
ignorecase = true
|
||||
precomposeunicode = true
|
||||
[remote "origin"]
|
||||
url = git@github.com:zricethezav/basic.git
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
||||
@@ -0,0 +1 @@
|
||||
Unnamed repository; edit this file 'description' to name the repository.
|
||||
BIN
Binary file not shown.
+3
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
|
||||
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
|
||||
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
|
||||
@@ -0,0 +1,3 @@
|
||||
0000000000000000000000000000000000000000 ae8db4a2306798fcb3a5b9cbe8c486027fc1931f Zach Rice <zricer@protonmail.com> 1631064384 -0500 commit (initial): First commit, README only
|
||||
ae8db4a2306798fcb3a5b9cbe8c486027fc1931f e7c0aff3e8a60b50a85432fdf933f8beff013743 Zach Rice <zricer@protonmail.com> 1631064550 -0500 commit: adding yelp secrets file
|
||||
e7c0aff3e8a60b50a85432fdf933f8beff013743 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067099 -0500 commit: adding another aws secrets
|
||||
@@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 208ae4669ade2563fcaf9f12922fa2c0a5b37c63 Zach Rice <zricer@protonmail.com> 1631067479 -0500 update by push
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
x�ŽA
|
||||
Â0E]çseÒIÒD<ƒKwÓtÆl"iDðôö®><x�ŸÊº.␍:gŠÀè¼Wì8"*:uH�gouê9ZOA…1šWÉ␍¤OȪ$‘Ž9zG�N:iE-õŽ¿Û\*Ü9Íp[’Àù[÷©×W-ä•—ç)•õ6�ÅÐã0À=¢Ùé~±É_²áiZò8—6ï þl°IªÒ6óXMr
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
@@ -0,0 +1,2 @@
|
||||
x]�Ks‚@„söWxãÝ] šªTE#"1eJy\¨}L\“,øëI©gú›žn¦r6œ�ñM"‘Pçì4|K{¾\ØöÊœE?GºDAC¢P]c|¬âГÂQUL‚æ3
|
||||
öW�¥b©*éºÓ‰g2âI(ÉÖBBèç"03ž}ƒ£î&‰^@ÙÛs||çéqì:HqâËNOOÌ�‡í:¦é±u�âпvœé®²cI÷¦ó”Ðüñ›2„ДëŽD@LðLD£3DÆÖY ḺÑG9ó„V¥ìsȲ¼Ü�F•†"£)ÜײóJ‰6¯º]¯¾åÅ…j]ç…Ð�ÐÐô¢à–çi׊Ö:¡œƒÖÉ´½Ý|ãÎÝÝëj·ô}ËçÛ—gÛøæ~ªÿÃk�ª"<”ÙÊÞº£�µ]Ú¾3b/ÍþíüýÞoìÈ|¤¶Ž§
|
||||
+1
@@ -0,0 +1 @@
|
||||
xќЋKjГ0@іЦ)ж-3ъY‚Rr†,»УЊЗ‰А¶Њў,ТУЧgикБѓOЪ¶ХЦеЛиЄА4sRси§L<Ў€°%лu”іF•М,љЈtЭM3ыbЖ)§EШ•АYX“шСN‹Pvґ�тЏЦб§ИnUѕ~ы‰~=zmЯJ]?ҐmЯ@СFВDsЪsqиїbSж№оwxлzАSҐлxВRW5о‹L°
|
||||
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
|
||||
@@ -0,0 +1 @@
|
||||
208ae4669ade2563fcaf9f12922fa2c0a5b37c63
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
[[rules]]
|
||||
description = "Generic Credential"
|
||||
regex = '''(?i)(dbpasswd|dbuser|dbname|dbhost|api_key|apikey|secret|key|api|password|user|guid|hostname|pw|auth)(.{0,20})?['|"]([0-9a-zA-Z-_\/+!{}/=]{4,120})['|"]'''
|
||||
tags = ["key", "API", "generic"]
|
||||
[rules.allowlist]
|
||||
description = "ignore gitleaks config"
|
||||
regexes = ['''gitleaks.toml''']
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
# testdata copied from https://github.com/Yelp/detect-secrets/blob/master/test_data/each_secret.py
|
||||
red_herring = 'DEADBEEF'
|
||||
id = 'YW1pYWx3YXlzZ2VuZXJhdGluZ3BheWxvYWRzd2hlbmltaHVuZ3J5b3JhbWlhbHdheXNodW5ncnk'
|
||||
|
||||
base64_secret = 'c2VjcmV0IG1lc3NhZ2Ugc28geW91J2xsIG5ldmVyIGd1ZXNzIG15IHBhc3N3b3Jk'
|
||||
hex_secret = '8b1118b376c313ed420e5133ba91307817ed52c2'
|
||||
basic_auth = 'http://username:whywouldyouusehttpforpasswords@example.com'
|
||||
|
||||
aws_access_key = 'AKIAIOSFODNN7EXAMPLE'
|
||||
aws_secret_access_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
|
||||
|
||||
# another aws secrets
|
||||
aws_access_key_1 = 'AKIAIOSFODNN7EXAMPLE'
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
SQUARE_OAUTH=sq0csp-QZxqK3fHycIxFsjZ7_HoqRN08qY2by3wLXcfJCfsKEg
|
||||
|
||||
GOOGLE_MAPS_KEY=AIzaSyDtz3Di0ZrzeU5ET3UFU0p-xP4bx2FkSrg
|
||||
Reference in new issue
Block a user