# cd /tmp/run-tool-supply-chain-pinning/pkgs/py; { echo '== off: no hash, tampered wheel'; /tmp/w3/venv/bin/python -m pip install --no-index --find-links wheels-evil --no-deps --target off -r nohash.txt | tail -1; echo "planted marker in six.py: $(grep -c PLANTED off/six.py)"; echo '== on: recorded hash'; cat requirements.txt; /tmp/w3/venv/bin/python -m pip install --no-index --find-links wheels-evil --require-hashes --no-deps --target on -r requirements.txt | grep -E 'ERROR|Expected|Got'; echo '== on: untampered wheel'; /tmp/w3/venv/bin/python -m pip install --no-index --find-links wheels --require-hashes --no-deps --target on2 -r requirements.txt | tail -1; echo '== on: requirement without =='; /tmp/w3/venv/bin/python -m pip install --no-index --find-links wheels --require-hashes --no-deps --target on3 -r unpinned.txt | grep ERROR; } # date: 2026-11-29T09:53:37Z # python 3.14.4, mcp 1.30.0, pip 25.1.1, node v22.23.5, npm 10.9.9 == off: no hash, tampered wheel Successfully installed six-1.17.0 planted marker in six.py: 1 == on: recorded hash six==1.17.0 --hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. six==1.17.0 from file:///tmp/run-tool-supply-chain-pinning/pkgs/py/wheels-evil/six-1.17.0-py2.py3-none-any.whl (from -r requirements.txt (line 1)): Expected sha256 4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 Got ce1e07a2a12eb4f83dc71787db98e204026bbffb2e862865184412d40d51f5ba == on: untampered wheel Successfully installed six-1.17.0 == on: requirement without == ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: six from file:///tmp/run-tool-supply-chain-pinning/pkgs/py/wheels/six-1.17.0-py2.py3-none-any.whl (from -r unpinned.txt (line 1)) # exit=1