Skip to content

Rule Reference

SEC452lintai-ai-securitystablemarkdownwarn

AI markdown: cargo http index

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

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

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.