Credential Access
- Category
- Privilege Escalation
- Confidence
- 70% confidence
- Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
- Content
python lifetime = token.get('expires_in') access = token.get('access_token') if type(lifetime) is not int or not 0 < lifetime <= 86400 or not isinstance(access,str) or not 1 <= len(access) <= 16384 or '\r' in access or '\n' in access: raise ValueError('invalid token expiry or access credential') expires_at = now + lifetime # Fresh identity check, not a callback scope claim or an unverified JWT. try:
