Skip to content

Rule Reference

SEC453lintai-ai-securitystablemarkdownwarn

AI markdown: pip http source

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

Provider
lintai-ai-security
Surface
markdown
Scope
per_file
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message_only

Activation Model

Preset Membership

This rule is part of the builtin activation graph through these preset memberships.

Lifecycle

Stable Lifecycle Contract

State

stable_gated

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 intended as a high-precision check with deterministic evidence.

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.