Best-effort guard: refuses pip's system-packages override and pip run as root. --break-system-packages on pip, pip3, python -m pip, py -m pip, uv pip; PIP_/UV_BREAK_SYSTEM_PACKAGES set truthy; pip config set or a pip.conf/pip.ini write of it; sudo, doas or pkexec pip install/uninstall. Allows virtualenvs, --user, venv, pipx, uv pip --system, apt, download, --dry-run. Misses: su -c, scripts, aliases, outside variables, CI. A sudo on a venv's own pip is refused. No waiver.
3 stars
0 votes
0 copies
0 views
Added December 5, 2026
ai-agentspythonshellgit
Works with
cli
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Block Pip System Override?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/open-coder-ai-block-pip-system-override)
---
name: block-pip-system-override
description: "Best-effort guard: refuses pip's system-packages override and pip run as root. --break-system-packages on pip, pip3, python -m pip, py -m pip, uv pip; PIP_/UV_BREAK_SYSTEM_PACKAGES set truthy; pip config set or a pip.conf/pip.ini write of it; sudo, doas or pkexec pip install/uninstall. Allows virtualenvs, --user, venv, pipx, uv pip --system, apt, download, --dry-run. Misses: su -c, scripts, aliases, outside variables, CI. A sudo on a venv's own pip is refused. No waiver."
metadata:
chock.artifact: rule
chock.enforcement: advise
chock.coverage_without_chock: advisory
---
# Block Pip System Override
Best-effort guard: refuses pip's system-packages override and pip run as root. --break-system-packages on pip, pip3, python -m pip, py -m pip, uv pip; PIP_/UV_BREAK_SYSTEM_PACKAGES set truthy; pip config set or a pip.conf/pip.ini write of it; sudo, doas or pkexec pip install/uninstall. Allows virtualenvs, --user, venv, pipx, uv pip --system, apt, download, --dry-run. Misses: su -c, scripts, aliases, outside variables, CI. A sudo on a venv's own pip is refused. No waiver.
```
never(pip(install|uninstall) via pip|pip3|python_-m_pip|py_-m_pip|uv_pip): --break-system-packages|PIP_BREAK_SYSTEM_PACKAGES=truthy|UV_BREAK_SYSTEM_PACKAGES=truthy|config_set(break-system-packages)|write(pip.conf|pip.ini: break-system-packages); never: sudo|doas|pkexec pip(install|uninstall)
allow: virtualenv|pip_--user|python_-m_venv|pipx|uv_pip_--system|sudo_apt_python3-pkg|pip_download|pip_--dry-run; on_refusal: venv(python -m venv .venv)|pipx|--user; ask_person # no waiver
```
This skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` can refuse an agent's shell command before it runs. See https://github.com/open-coder-ai/chock