Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.pyc
*.swp
*~
__pycache__/
5 changes: 2 additions & 3 deletions patterns/gitleaks/8.27.0/98-general.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
regexes = [
# Vars for the values
'''(?:\A|[^\w\-])Authorization:[\t\x20]*(?:\w+[\t\x20]+)?\$\{?[A-Z][A-Z0-9_]{2,16}''',
'''(?:\A|[^\w\-])Authorization:[\t\x20]*(?:\w+[\t\x20]+)?[^\s\"\'<]*(?:MTIzNDU2Nzg5M|EyMzQ1Njc4OT|xMjM0NTY3ODkw)[^\s\"\'<]*''',
# Indicating that the line is part of an example
'''(?:example|description)''',
]
Expand Down Expand Up @@ -803,9 +804,7 @@

[rules.allowlist]
stopwords = [
'...',
'***',
'xxxxx',
# pragma: include "common_stopwords"
# The google analytics API key
'AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM',
# Keys embeded into chrome binaries
Expand Down
2 changes: 1 addition & 1 deletion scripts/compile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def parse_args():
def compile_gitleaks(args):
patterns_dir = args.patterns_dir
include_dir = patterns_dir / "include"
pattern_file_paths = [p for p in sorted(patterns_dir.iterdir()) if p.is_file()]
pattern_file_paths = [p for p in sorted(patterns_dir.glob("*.toml")) if p.is_file()]

stages = [
new_apply_includes(include_dir),
Expand Down
96 changes: 95 additions & 1 deletion target/patterns/gitleaks/8.18.2
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ paths = [
regexTarget = 'line'
regexes = [
'''(?:\A|[^\w\-])Authorization:[\t\x20]*(?:\w+[\t\x20]+)?\$\{?[A-Z][A-Z0-9_]{2,16}''',
'''(?:\A|[^\w\-])Authorization:[\t\x20]*(?:\w+[\t\x20]+)?[^\s\"\'<]*(?:MTIzNDU2Nzg5M|EyMzQ1Njc4OT|xMjM0NTY3ODkw)[^\s\"\'<]*''',
'''(?:example|description)''',
]
[[rules]]
Expand Down Expand Up @@ -907,9 +908,102 @@ keywords = [
]
[rules.allowlist]
stopwords = [
'...',
'***',
'...',
'/etc/',
'/run/',
'/var/',
'1234',
'_key',
'abc123',
'abcd',
'admin',
'ansible',
'auth',
'base',
'bearer',
'bool',
'bucket',
'candlepin',
'categories',
'cert',
'change',
'client',
'conf',
'cont',
'cred',
'curl',
'data',
'default',
'demo',
'dissem',
'django',
'enter',
'entry',
'environ',
'everyone',
'example',
'fake',
'gitops',
'hash',
'header',
'here',
'insert',
'invalid',
'java',
'json',
'keylime',
'local',
'login',
'manager',
'name',
'notreal',
'oauth-basic',
'opens',
'passp',
'passw',
'pass123',
'path',
'pbench',
'place',
'placeholder',
'postgres',
'principal',
'prisma',
'private',
'profile',
'provide',
'quickstart',
'rabbitmq',
'redacted',
'redhat',
'registry',
'replace',
'required',
'resource',
'role',
'sample',
'schema',
'secret',
'serv',
'service',
'session',
'slack',
'snip',
'some',
'spec',
'string',
'telemetry',
'test',
'theblurstoftimes',
'todo',
'token',
'update',
'user',
'uuid',
'value',
'xxxxx',
'your',
'AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM',
'AIzaSyA2KlwBX3mkFo30om9LUFYQhpqLoa_BNhE',
'AIzaSyBqJZh-7pA44blAaAkH6490hUFOwX0KCYM',
Expand Down
96 changes: 95 additions & 1 deletion target/patterns/gitleaks/8.27.0
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ paths = [
regexTarget = 'line'
regexes = [
'''(?:\A|[^\w\-])Authorization:[\t\x20]*(?:\w+[\t\x20]+)?\$\{?[A-Z][A-Z0-9_]{2,16}''',
'''(?:\A|[^\w\-])Authorization:[\t\x20]*(?:\w+[\t\x20]+)?[^\s\"\'<]*(?:MTIzNDU2Nzg5M|EyMzQ1Njc4OT|xMjM0NTY3ODkw)[^\s\"\'<]*''',
'''(?:example|description)''',
]
[[rules]]
Expand Down Expand Up @@ -907,9 +908,102 @@ keywords = [
]
[rules.allowlist]
stopwords = [
'...',
'***',
'...',
'/etc/',
'/run/',
'/var/',
'1234',
'_key',
'abc123',
'abcd',
'admin',
'ansible',
'auth',
'base',
'bearer',
'bool',
'bucket',
'candlepin',
'categories',
'cert',
'change',
'client',
'conf',
'cont',
'cred',
'curl',
'data',
'default',
'demo',
'dissem',
'django',
'enter',
'entry',
'environ',
'everyone',
'example',
'fake',
'gitops',
'hash',
'header',
'here',
'insert',
'invalid',
'java',
'json',
'keylime',
'local',
'login',
'manager',
'name',
'notreal',
'oauth-basic',
'opens',
'passp',
'passw',
'pass123',
'path',
'pbench',
'place',
'placeholder',
'postgres',
'principal',
'prisma',
'private',
'profile',
'provide',
'quickstart',
'rabbitmq',
'redacted',
'redhat',
'registry',
'replace',
'required',
'resource',
'role',
'sample',
'schema',
'secret',
'serv',
'service',
'session',
'slack',
'snip',
'some',
'spec',
'string',
'telemetry',
'test',
'theblurstoftimes',
'todo',
'token',
'update',
'user',
'uuid',
'value',
'xxxxx',
'your',
'AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM',
'AIzaSyA2KlwBX3mkFo30om9LUFYQhpqLoa_BNhE',
'AIzaSyBqJZh-7pA44blAaAkH6490hUFOwX0KCYM',
Expand Down
Loading