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

Added Onfido API token detection to recognize this type of secrets #3463

Merged
merged 1 commit into from
Sep 3, 2024
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
8 changes: 8 additions & 0 deletions generic/secrets/security/detected-onfido-live-api-token.txt
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 generic/secrets/security/detected-onfido-live-api-token.yaml
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
Loading