Skip to main content
The pypi canary adds Snare as an extra-index-url in pip’s global config. Every pip install or uv sync queries Snare as an additional package index.

What gets planted

~/.config/pip/pip.conf

Trigger conditions

  • Any pip install <package> on this machine
  • Any uv sync or uv pip install
  • Python agents that install packages during execution

Side effects

This canary fires on every pip install, not just malicious ones. Package names are visible in the request path. Use snare teardown --type pypi to remove it if pip installs become noisy.
The extra-index-url is queried in parallel with PyPI. Install performance is minimally affected (one additional HTTP request per install).

When to use

Best for environments where you’re monitoring agent behavior that includes package installation — a common pattern in agentic coding workflows.