Skip to content

Rule Reference

SEC453lintai-ai-securitysupply-chainhardeningstablemarkdownwarn

AI markdown: pip http source

AI-native markdown installs Python packages from an insecure direct `http://` source

Public lane
supply-chain
Category
hardening
Provider
lintai-ai-security
Scope
per-file
Surface
markdown
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message only
How to read this lane

Reproducibility, provenance, and dependency hardening review.

How to read this category

Least-privilege, provenance, or operational hygiene signal.

Activation Model

Preset Activation

These presets explain where this rule appears in the product experience.

Lifecycle

Stable Lifecycle Contract

State

stable

Graduation rationale

Checks AI-native markdown for `pip install` examples that fetch a direct package source over `http://`.

Deterministic signal basis

MarkdownSignals exact `pip install` token analysis with direct `http://` source detection inside parsed markdown regions, excluding `--index-url` and `--extra-index-url` forms already covered by SEC449.

Malicious corpus
skill-pip-http-source
Benign corpus
skill-pip-https-source-safe
structured evidence required remediation reviewed
Canonical note

Structural stable rule positioned as a supply-chain hardening control: high-precision and actionable, but not a blanket claim of direct repository compromise.

Nearby Signals

Related Rules

SEC453 / MD-PIP-HTTP-SOURCE

SEC453 flags AI-native markdown when a pip install example fetches a package directly from http://....

Why It Matters

A direct http:// package source removes transport integrity from the package payload itself. In shared AI-native instructions, that turns an insecure supply-chain fetch into copy-pastable setup guidance.

Trigger Shape

The rule triggers only when all of these are true:

  • the file is an AI-native markdown instruction surface
  • a parsed markdown region contains pip install, pip3 install, or python -m pip install
  • the same region also contains a direct http:// package source argument

Clean Cases

These stay clean:

  • pip install examples that fetch the package over https://
  • pip install --index-url http://... and --extra-index-url http://... because those are covered by SEC449
  • unrelated http:// text outside a matching pip install form

Example Trigger

bash
pip install http://packages.example.test/demo.whl

Safer Example

bash
pip install https://packages.example.test/demo.whl

How To Fix

Replace the insecure direct http:// source with a normal TLS-verified https:// source.