Aalexbit-codemod

python-s8392-bind-all-interfaces-mining

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

miningmetricspythonsecuritypython:S8392
Public
0 executions

Run locally

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

Development

bash

Ready to contribute?

Build your own codemod and share it with the community.