Prompt file imported from alxayo/sec-check (
.github/prompts/sck.security-scan-python.prompt.md). Copyright stays with the author.
Python Security Scan
Run a Python-focused security scan on this workspace.
Tools to Execute
- Execute bandit with full rules:
bandit -r . -f json - Check for guarddog Python package issues
Patterns to Detect
eval(),exec(),compile()usagesubprocesswithshell=Truepickledeserialization (unsafe loading)- Hardcoded credentials
- Unsafe YAML/XML loading (
yaml.load()withoutLoader) - SQL injection vulnerabilities
- Path traversal risks
Save results to .github/.audit/scan-results.md