Appearance
SEC449 / MD-PIP-HTTP-INDEX
SEC449 flags AI-native markdown when a pip install example uses an insecure package index override such as --index-url http://..., --index-url=http://..., --extra-index-url http://..., --extra-index-url=http://..., or -i http://....
Why It Matters
An http:// package index removes transport integrity from Python package resolution. In shared AI-native instructions, that turns an insecure supply-chain bypass into copy-pastable setup guidance.
Trigger Shape
The rule triggers only when all of these are true:
- the file is an AI-native markdown instruction surface
- a parsed markdown region contains
pip install,pip3 install, orpython -m pip install - the same region also contains one of:
--index-url http://--index-url=http://--extra-index-url http://--extra-index-url=http://-i http://
Clean Cases
These stay clean:
pip installexamples that usehttps://package indexespip installexamples without explicit index override- unrelated commands that mention
http://outside a matching pip install form
Example Trigger
bash
pip install --index-url http://pypi.example.test/simple demoSafer Example
bash
pip install --index-url https://pypi.example.test/simple demoHow To Fix
Replace the insecure http:// package index with a normal TLS-verified https:// source.