Skip to main content

SKY-D430 · Security in code

Obsolete TLS protocol configured

Skylos reports Python TLS contexts that explicitly select TLS 1.0, TLS 1.1 or an older SSL protocol. The minimum-version check is separate from certificate verification.

Languages
Python
Quality gate
counted toward the gate limits (full and diff scans)
Finding type
review
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

Old TLS and SSL versions lack protections expected by current clients and servers. A compatibility setting can enable an obsolete version on deployments that still support it.

What Skylos flags

transport.py · PythonReported on line 4
import ssl context = ssl.create_default_context()context.minimum_version = ssl.TLSVersion.TLSv1_1

What Skylos leaves alone

transport.py · Python
import ssl context = ssl.create_default_context()context.minimum_version = ssl.TLSVersion.TLSv1_2

Why Skylos leaves it alone

The minimum protocol is TLS 1.2, so this setting excludes earlier versions.

How Skylos decides

  1. Resolves stdlib ssl and pyOpenSSL context APIs and matches explicit obsolete protocol constants, including supported defaults used by the API.
  2. Reports a recognized context's obsolete minimum version. Reads of a version constant outside TLS configuration are quiet.

How to fix it

Use the provider's current client or server context and require TLS 1.2 or newer. Keep certificate and hostname verification enabled.

When it can be wrong

  • A system TLS policy can block the obsolete version even though the application requests it. Remove the stale setting and check supported deployments.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • Mark the reviewed line with a rule-scoped Skylos ignore for SKY-D430. Record the evidence that justifies the exception.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.