Skip to content

suspicious-telnetlib-import (S401)#

Derived from the flake8-bandit linter.

This rule is unstable and in preview. The --preview flag is required for use.

What it does#

Checks for imports of thetelnetlib module.

Why is this bad?#

Telnet is considered insecure. Instead, use SSH or another encrypted protocol.

Example#

import telnetlib