Auditor de Seguridad .env, Detección de Fugas de Claves y Vulnerabilidades
Auditor de Seguridad .env, Detección de Fugas de Claves y Vulnerabilidades
Esta herramienta funciona 100% del lado del cliente en su navegador. Su código, tokens, claves API y datos confidenciales nunca se envían a servidores externos, garantizando privacidad absoluta.
Fórmula y Método de Cálculo
Audit = Entropy Checks + Regex Validation + Syntax Parsing
The auditor calculates the Shannon entropy of variables like `JWT_SECRET` to ensure they are cryptographically random, while simultaneously checking for unquoted spaces or invalid variable names.
Mejores Prácticas y Consejos
- Enforce High Entropy for Secrets: A JWT secret like 'mysecretpassword' is trivially easy to brute force. The auditor ensures your keys possess high mathematical entropy (usually requiring at least 32 random alphanumeric characters).
- Validate Database URIs: The tool ensures your connection strings (like PostgreSQL or MongoDB URIs) follow the correct protocol structure and do not contain obvious dummy credentials like `admin:admin`.
- Never Hardcode API Keys in Code: The entire purpose of a `.env` file is to keep secrets out of your source code repository. Ensure every external service (Stripe, AWS, SendGrid) uses an audited environment variable.