Skip to content

Rule Reference

SEC448lintai-ai-securitysupply-chainhardeningstablemarkdownwarn

AI markdown: pip trusted-host

AI-native markdown installs Python packages with `--trusted-host`

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 disable host trust checks with `--trusted-host`.

Deterministic signal basis

MarkdownSignals exact `pip install` token analysis with `--trusted-host` detection inside parsed markdown regions.

Malicious corpus
skill-pip-trusted-host
Benign corpus
skill-pip-index-url-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

SEC448 / MD-PIP-TRUSTED-HOST

SEC448 flags AI-native markdown when a pip install example uses the exact --trusted-host option.

Why It Matters

--trusted-host weakens the normal trust model for Python package retrieval. In shared AI-native instructions, that turns a risky supply-chain workaround into copy-pastable team 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 the exact token --trusted-host

Clean Cases

These stay clean:

  • pip install examples without --trusted-host
  • examples that use a normal HTTPS index URL
  • unrelated commands that mention --trusted-host without pip install

Example Trigger

bash
pip install --trusted-host pypi.example.test demo

Safer Example

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

How To Fix

Remove --trusted-host and use a normal TLS-verified Python package source instead.