Skip to content

Rule Reference

SEC451lintai-ai-securitystablemarkdownwarn

AI markdown: cargo http git install

AI-native markdown installs Rust packages from an insecure `http://` git 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 `cargo install` examples that fetch a crate directly from an `http://` git source.

Deterministic signal basis

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

Malicious corpus
skill-cargo-http-git-install
Benign corpus
skill-cargo-https-git-install-safe
structured evidence required remediation reviewed
Canonical note

Structural stable rule intended as a high-precision check with deterministic evidence.

Nearby Signals

Related Rules

SEC451 / MD-CARGO-HTTP-GIT-INSTALL

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

Why It Matters

cargo install --git http://... removes normal TLS protection from crate source retrieval. In shared AI-native instructions, this 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 --git http:// or --git=http://

The finding points to http://.

Clean Cases

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

Trigger Example

bash
cargo install --git http://git.example.test/demo.git

Safer Example

bash
cargo install --git https://git.example.test/demo.git

Remediation

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