Appearance
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 installexamples without--index http://- unrelated prose that mentions
http://outside a matchingcargo installform
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.