Skip to content

Rule Reference

SEC452lintai-ai-securitysupply-chainhardeningstablemarkdownwarn

AI markdown: cargo http index

AI-native markdown installs Rust packages from an insecure `http://` 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 `cargo install` examples that resolve crates through an `http://` index.

Deterministic signal basis

MarkdownSignals exact `cargo install` token analysis with `--index http://` detection inside parsed markdown regions.

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

SEC452 / MD-CARGO-HTTP-INDEX

SEC452 flags AI-native markdown when a cargo install example uses --index http://... or --index=http://....

Why It Matters

cargo install --index http://... removes normal TLS protection from crate index resolution. In shared AI-native instructions, that turns an insecure supply-chain pattern into copy-pastable setup guidance.

Trigger Shape

The rule triggers only when all of these are true:

  • a parsed markdown region contains cargo install
  • the same region also contains either --index http:// or --index=http://

The finding points to http://.

Clean Cases

  • cargo install --index https://...
  • cargo install examples without --index http://
  • unrelated prose that mentions http:// outside a matching cargo install form

Trigger Example

bash
cargo install ripgrep --index http://index.example.test/

Safer Example

bash
cargo install ripgrep --index https://index.example.test/

Remediation

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