Registry
Aalexbit-codemod avatar

python-s8392-bind-all-interfaces-mining

Mine python:S8392: Web servers should not bind to all network interfaces; read-only metrics with blocking severity

alexbit-codemod0 executions

  • mining
  • metrics
  • python
  • security
  • python:S8392
Connect a repo
npx codemod python-s8392-bind-all-interfaces-mining

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

bash
pnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s8392-bind-all-interfaces-mining/workflow.yaml --target /path/to/python/project

Development

bash
pnpm --filter ./codemods/python-security-mining/python-s8392-bind-all-interfaces-mining test

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.