RapidAPI Key
ID |
rapidapi_key |
Severity |
low |
Vendor |
RapidAPI |
Family |
API Token |
Description
RapidAPI is the world’s largest API Marketplace. Developers use Rapid API to discover and connect to thousands of APIs. Using RapidAPI, developers can search and test the APIs, subscribe, and connect to the APIs.
Security
Any hardcoded RapidAPI Key is a potential secret reported by this detector.
Accidentally checking-in the keys to source control repositories could compromise your RapidAPI account.
Suspicious activity could be detected by inspecting the usage associated to an API Key in your Dashboard.
Examples
development: pusher_app_id: '425841' pusher_app_key: '2fd9acbd37b06708983b' pusher_app_secret: '7a3dba4ceaab5040da47'
Mitigation / Fix
-
Remove the
Key
from the source code or committed configuration file. -
Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). API Key revocation can be handled by following their Resetting an API Key Documentation.
-
If under a git repository, you may remove unwanted files from the repository history using tools like
git filter-repo
orBFG Repo-Cleaner
. You may follow the procedure listed here for GitHub.
You should consider any sensitive data in commits with secrets as compromised. Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories. |