-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Onfido API token detection to recognize this type of secrets (#…
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# ruleid: detected-onfido-live-api-token | ||
api_live.abc123ABC-_.abc123ABC-_abc123ABC-_abc123ABC- | ||
|
||
# ruleid: detected-onfido-live-api-token | ||
api_live_ca.abc123ABC-_.abc123ABC-_abc123ABC-_abc123ABC- | ||
|
||
# ruleid: detected-onfido-live-api-token | ||
api_live_us.abc123ABC-_.abc123ABC-_abc123ABC-_abc123ABC- |
20 changes: 20 additions & 0 deletions
20
generic/secrets/security/detected-onfido-live-api-token.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
rules: | ||
- id: detected-onfido-live-api-token | ||
pattern-regex: (?:api_live(?:_[a-zA-Z]{2})?\.[a-zA-Z0-9-_]{11}\.[-_a-zA-Z0-9]{32}) | ||
languages: [regex] | ||
message: Onfido live API Token detected | ||
severity: ERROR | ||
metadata: | ||
cwe: | ||
- 'CWE-798: Use of Hard-coded Credentials' | ||
category: security | ||
technology: | ||
- secrets | ||
- onfido | ||
confidence: HIGH | ||
references: | ||
- https://documentation.onfido.com/api/latest/#api-tokens | ||
subcategory: | ||
- audit | ||
likelihood: HIGH | ||
impact: HIGH |