Skip to content
Back to skills

Block Pip System Override

ASecurity

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

Pro shows the line behind each finding and how to fix it

Scanned December 5, 2026

npx -y skills add open-coder-ai/chock-catalog --skill block-pip-system-override --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Block Pip System Override?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Block Pip System Override
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/open-coder-ai-block-pip-system-override/badge)](https://www.skillsdirectory.com/skills/open-coder-ai-block-pip-system-override)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.