Skip to content

Commit

Permalink
Upd: required_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jul 23, 2023
1 parent 7c74751 commit 235ccce
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions credsweeper/rules/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
filter_type:
- CreditCardNumberCheck
min_line_len: 16
required_regex: ([a-zA-Z0-9_/+-]{15,})
doc_available: false

- name: API
Expand Down Expand Up @@ -586,7 +587,7 @@
- (^|[^.0-9A-Za-z_/+-])(?P<value>[a-zA-Z0-9]{18}([a-zA-Z0-9]{14})?)([^0-9A-Za-z.$_/+-]|$)
filter_type: WeirdBase64Token
min_line_len: 18
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

- name: Bitbucket Client Secret
severity: info
Expand All @@ -595,7 +596,7 @@
- (^|[^.0-9A-Za-z_/+-])(?P<value>([a-zA-Z0-9_-]{32}){1,2})([^0-9A-Za-z.$_/+-]|$)
filter_type: WeirdBase64Token
min_line_len: 32
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

- name: Jira / Confluence PAT token
severity: high
Expand All @@ -616,7 +617,7 @@
- (^|[^.0-9A-Za-z_/+-])(?P<value>[a-zA-Z0-9]{24})([^=0-9A-Za-z.$_/+-]|$)
filter_type: WeirdBase64Token
min_line_len: 24
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

- name: Atlassian PAT token
severity: high
Expand Down Expand Up @@ -747,7 +748,7 @@
- (^|[^.0-9A-Za-z_/+-])(?P<value>[a-z0-9]{15})([^=0-9A-Za-z_/+-]|$)
filter_type: WeirdBase36Token
min_line_len: 15
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

- name: Gitlab Incoming Email Token
severity: info
Expand All @@ -756,7 +757,7 @@
- (^|[^.0-9A-Za-z_/+-])(?P<value>[a-z0-9]{24,25})([^=0-9A-Za-z_/+-]|$)
filter_type: WeirdBase36Token
min_line_len: 24
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

- name: Gitlab Feed Token
severity: info
Expand All @@ -765,7 +766,7 @@
- (^|[^.0-9A-Za-z_/+-])(?P<value>[a-zA-Z0-9_-]{20})([^=0-9A-Za-z_/+-]|$)
filter_type: WeirdBase64Token
min_line_len: 20
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

- name: Jira 2FA
severity: info
Expand All @@ -779,4 +780,4 @@
- ValueBase32DataCheck
- ValueTokenBase32Check
min_line_len: 16
required_regex: ([a-zA-Z0-9_/+-]{10})
required_regex: ([a-zA-Z0-9_/+-]{15,})

0 comments on commit 235ccce

Please sign in to comment.