Data Exposure
API Key Exposure Check
Learn how to detect exposed API keys, tokens, or secrets in your HTML code, and how to protect them effectively with secure development best practices.
What this test checks
This test checks whether API keys, tokens, or secrets are publicly exposed in your site's HTML code. API keys grant access to third‑party services (payment, databases, messaging, etc.). Their exposure can lead to abuse, data theft, or fraud.
Our recommendation
Ensure that no API key or secret is present in your source code. Use environment variables to store this information (e.g., .env file in Laravel). Regularly review your configuration files and logs to detect any leaks. Use tools like GitGuardian to monitor your code.
Security tests