Skip to content

Rule Reference

SEC449lintai-ai-securitysupply-chainhardeningstablemarkdownwarn

AI markdown: pip http index

AI-native markdown installs Python packages from an insecure `http://` package index

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 point package index resolution at `http://` sources.

Deterministic signal basis

MarkdownSignals exact `pip install` token analysis with `--index-url http://` or `--extra-index-url http://` detection inside parsed markdown regions.

Malicious corpus
skill-pip-http-index
Benign corpus
skill-pip-https-index-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

SEC449 / MD-PIP-HTTP-INDEX

SEC449 flags AI-native markdown when a pip install example uses an insecure package index override such as --index-url http://..., --index-url=http://..., --extra-index-url http://..., --extra-index-url=http://..., or -i http://....

Why It Matters

An http:// package index removes transport integrity from Python package resolution. In shared AI-native instructions, that turns an insecure supply-chain bypass 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 one of:
    • --index-url http://
    • --index-url=http://
    • --extra-index-url http://
    • --extra-index-url=http://
    • -i http://

Clean Cases

These stay clean:

  • pip install examples that use https:// package indexes
  • pip install examples without explicit index override
  • unrelated commands that mention http:// outside a matching pip install form

Example Trigger

bash
pip install --index-url http://pypi.example.test/simple demo

Safer Example

bash
pip install --index-url https://pypi.example.test/simple demo

How To Fix

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