Skip to content

Ruff

902 rules ruff@0.16.8

Complete effective rule inventory.

Docs

Rules

40 rules on this page · 902 total

  • S305

    Use of insecure block cipher mode, replace with a known secure mode such as CBC or CTR

    No autofix
  • S306

    Use of insecure and deprecated function (mktemp)

    No autofix
  • S307

    Use of possibly insecure function; consider using ast.literal_eval

    No autofix
  • S308

    Use of mark_safe may expose cross-site scripting vulnerabilities

    No autofix
  • S310

    Audit URL open for permitted schemes. Allowing use of file: or custom schemes is often unexpected.

    No autofix
  • S311

    Standard pseudo-random generators are not suitable for cryptographic purposes

    No autofix
  • S312

    Telnet is considered insecure. Use SSH or some other encrypted protocol.

    No autofix
  • S313

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S314

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S315

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S316

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S317

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S318

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S319

    Using xml to parse untrusted data is known to be vulnerable to XML attacks; use defusedxml equivalents

    No autofix
  • S321

    FTP-related functions are being called. FTP is considered insecure. Use SSH/SFTP/SCP or some other encrypted protocol.

    No autofix
  • S323

    Python allows using an insecure context via the _create_unverified_context that reverts to the previous behavior that does not validate certificates or perform hostname checks.

    No autofix
  • S324

    Probable use of insecure hash functions in {library}: {string}

    No autofix
  • S401

    telnetlib and related modules are considered insecure. Use SSH or another encrypted protocol.

    No autofix
  • S402

    ftplib and related modules are considered insecure. Use SSH, SFTP, SCP, or another encrypted protocol.

    No autofix
  • S403

    pickle, cPickle, dill, and shelve modules are possibly insecure

    No autofix
  • S404

    subprocess module is possibly insecure

    No autofix
  • S405

    xml.etree methods are vulnerable to XML attacks

    No autofix
  • S406

    xml.sax methods are vulnerable to XML attacks

    No autofix
  • S407

    xml.dom.expatbuilder is vulnerable to XML attacks

    No autofix
  • S408

    xml.dom.minidom is vulnerable to XML attacks

    No autofix
  • S409

    xml.dom.pulldom is vulnerable to XML attacks

    No autofix
  • S411

    XMLRPC is vulnerable to remote XML attacks

    No autofix
  • S412

    httpoxy is a set of vulnerabilities that affect application code running inCGI, or CGI-like environments. The use of CGI for web applications should be avoided

    No autofix
  • S413

    pycrypto library is known to have publicly disclosed buffer overflow vulnerability

    No autofix
  • S415

    An IPMI-related module is being imported. Prefer an encrypted protocol over IPMI.

    No autofix
  • S501

    Probable use of {string} call with verify=False disabling SSL certificate checks

    No autofix
  • S502

    Call made with insecure SSL protocol: {protocol}

    No autofix
  • S503

    Argument default set to insecure SSL protocol: {protocol}

    No autofix
  • S504

    ssl.wrap_socket called without an ssl_version

    No autofix
  • S505

    {cryptographic_key} key sizes below {minimum_key_size} bits are considered breakable

    No autofix
  • S506

    Probable use of unsafe loader {name} with yaml.load. Allows instantiation of arbitrary objects. Consider yaml.safe_load.

    No autofix
  • S507

    Paramiko call with policy set to automatically trust the unknown host key

    No autofix
  • S508

    The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able.

    No autofix
  • S509

    You should not use SNMPv3 without encryption. noAuthNoPriv & authNoPriv is insecure.

    No autofix
  • S601

    Possible shell injection via Paramiko call; check inputs are properly sanitized

    No autofix