Appearance
SEC448 / MD-PIP-TRUSTED-HOST
SEC448 flags AI-native markdown when a pip install example uses the exact --trusted-host option.
Why It Matters
--trusted-host weakens the normal trust model for Python package retrieval. In shared AI-native instructions, that turns a risky supply-chain workaround into copy-pastable team 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 the exact token
--trusted-host
Clean Cases
These stay clean:
pip installexamples without--trusted-host- examples that use a normal HTTPS index URL
- unrelated commands that mention
--trusted-hostwithoutpip install
Example Trigger
bash
pip install --trusted-host pypi.example.test demoSafer Example
bash
pip install --index-url https://pypi.example.test/simple demoHow To Fix
Remove --trusted-host and use a normal TLS-verified Python package source instead.