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 if any(p.lower() in forbidden_parts for p in path.parts): raise ValueError('Private directory: ' + name) forbidden_names = {'responses.json', 'judgments.json', 'auth.json', 'config.yaml', 'calibration.md', 'state.db'} if path.name.lower() in forbidden_names or path.name.startswith('.env'): raise ValueError('Private filename: ' + name) if path.suffix.lower() not in {'.md', '.json', '.py', ''} and name not in {'.gitignore', '.gitattributes'}: raise ValueError('Non-source file: ' + name)
