Appearance
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 installexamples without--git http://- unrelated prose that mentions
http://outside a matchingcargo installform
Trigger Example
bash
cargo install --git http://git.example.test/demo.gitSafer Example
bash
cargo install --git https://git.example.test/demo.gitRemediation
Replace the insecure http:// git source with a normal TLS-verified https:// source.