Credential Access
- Category
- Privilege Escalation
- Confidence
- 60% confidence
- Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
- Content
python for name in parts: _, ext = os.path.splitext(name) tokens = set(name.replace("-", "_").replace(".", "_").split("_")) if (name in _ACTIVE or tokens & _ACTIVE or name.startswith(".env") or name.startswith(("id_rsa", "id_ed25519", "id_ecdsa")) or any(word in name for word in ("credential", "secret", "password")) or ext in {".pem", ".key", ".p12", ".pfx", ".crt", ".cer"}
