Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

security.misconfiguration

Remove debugger imports from production code

Production Python modules should not ship with interactive debugger imports.

#Metadata

Rule ID
py.security.debugger-import
Severity
medium
Confidence
0.86
Languages
python
Presets
security, strict
Stability
stable
Applies to
block
Tags
debugging, hardening, python, rules-catalog, security

#Why it matters

Debugger modules can expose introspection hooks and halt execution paths in deployed environments.

#Remediation

Remove debugger imports from committed runtime modules and gate debugging tools to local-only workflows.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/python/py.security.debugger-import.rule.yaml.