Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add token and vendor exclusion rule #544

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions config/exclusions/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ exclusions:
name: Exclude test source code
patterns:
- '.*_test(s)?.*'

- id: Exclusions.ExternalModules
name: Exclude external modules
patterns:
- '(?i).*vendor(s)?/.*'
10 changes: 10 additions & 0 deletions rules/sources/account_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ sources:
- "(?i)(.*(?<!(db|database|jira|sql|postgres|mongo|aws)[^\\s/(;)#|,=!>]{0,3})user[^\\s/(;)#|,=!>]{0,3}name)|(.*(account|customer|doctor|patient|teacher|student|person|organi[zs]ation|company)[^\\s/(;)#|,=!>]{0,3}name)"
tags:
law: GDPR

- id: Data.Sensitive.AccountData.Token
name: Token
category: Account Data
isSensitive: False
sensitivity: medium
patterns:
- "((?i)(auth|session|access|bearer|jwt|recaptcha|user|useraccess)[^\\s/(;)#|,=!>]{0,3}token[s]?)"
tags:
law: GDPR
1 change: 1 addition & 0 deletions rules/sources/online_identifiers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ sources:
- "(?i)idfa|idfv|aaid|advertising[^\\s/(;)#|,=!>]{0,5}id|gps[^\\s/(;)#|,=!>]{0,5}adid"
tags:
law: GDPR

Loading