Appearance
SEC458 / MD-PIP-CONFIG-HTTP-INDEX
SEC458 flags AI-native markdown when a pip config set, pip3 config set, or python -m pip config set command points global.index-url or global.extra-index-url at http://....
Why It Matters
Changing pip config to an insecure package index makes every later install trust an unencrypted source. In shared AI-native instructions, that turns a persistent supply-chain downgrade into copy-pastable setup guidance.
What Triggers It
- AI-native markdown surface
- the same parsed markdown region contains:
pip config setpip3 config set- or
python -m pip config set
- the same region also contains one of:
global.index-url http://global.extra-index-url http://global.index-url=http://global.extra-index-url=http://
The finding points to http://.
What Does Not Trigger It
https://index configpip install --index-url ...examples, because those are covered bySEC449- unrelated prose that mentions
http://without a matching pip config command
Example
Bad:
bash
pip config set global.index-url http://pypi.example.test/simpleBetter:
bash
pip config set global.index-url https://pypi.example.test/simpleRemediation
Replace the insecure http:// package index config with a normal TLS-verified https:// source.