python-s8392-bind-all-interfaces-mining
Read-only mining codemod for python:S8392: Web servers should not bind to all network interfaces.
Emits python_security_finding metric rows with blocking severity. Source files are never modified.
Rule
- ID:
python:S8392 - Severity: blocking
- Remediation: Bind web servers to 127.0.0.1 unless external access is required
Usage
bashpnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s8392-bind-all-interfaces-mining/workflow.yaml --target /path/to/python/project
Development
bashpnpm --filter ./codemods/python-security-mining/python-s8392-bind-all-interfaces-mining test