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, data in files.items(): leaf = PurePosixPath(name).name.lower() need(not (leaf == '.env' or (leaf.startswith('.env.') and leaf not in ('.env.example', '.env.sample')) or leaf in ('id_rsa', 'id_ed25519', 'credentials.json') or leaf.endswith(('.p12', '.pfx'))), f'Potential credential file excluded from distribution: {name}') for label, pattern in patterns:
