Credential Access
High
- Category
- Privilege Escalation
- Content
### 1. Authentication (AuthN): Who are you? - **Use Standard Protocols**: Use battle-tested standards like OAuth 2.0 or OpenID Connect (OIDC). For simple token-based auth, use JSON Web Tokens (JWT). - **Secure JWTs**: Use a strong, randomly generated secret key (at least 256 bits) loaded from an environment variable. Set a short expiration time for access tokens (e.g., 15 minutes) and use refresh tokens for longer sessions. - **Password Security**: NEVER store passwords in plain text. Use a strong, slow hashing algorithm like Argon2 or bcrypt. ### 2. Authorization (AuthZ): What can you do?
- Confidence
- 70% confidence
- Finding
- Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
