API Key Leaks: Validate The API Key
If assistance is needed in identifying the service that generated the token, mazen160/secrets-patterns-db can be consulted. It is the largest open-source database for detecting secrets, API keys, passwords, tokens, and more. This database contains regex patterns for various secrets.
patterns:
- pattern:
name: AWS API Gateway
regex: '[0-9a-z]+.execute-api.[0-9a-z._-]+.amazonaws.com'
confidence: low
- pattern:
name: AWS API Key
regex: AKIA[0-9A-Z]{16}
confidence: highUse streaak/keyhacks or read the documentation of the service to find a quick way to verify the validity of an API key.
Example: Telegram Bot API Token
curl https://api.telegram.org/bot<TOKEN>/getMe
Comments
No comments yet.