Skip to main content

a_package_that_demo_pypi_vulnerability

An educational package that demonstrates a fundamental security concern with the Python packaging ecosystem: any package you pip install can freely access your entire filesystem.

What does it do?

When you call the demonstrate_vulnerability() function, it:

  1. Walks your entire home directory
  2. Lists every file it finds along with its size
  3. Prints a warning explaining what just happened

Nothing is exfiltrated, uploaded, or sent anywhere. All output goes to your terminal. The point is to show you what a malicious package could do silently.

Why does this exist?

When you run pip install some-package, that package's code runs with your full user permissions. There is no sandbox, no permission prompt, and no filesystem restriction. A malicious package could:

  • Read your SSH keys, cloud credentials, and browser cookies
  • Scan your source code and configuration files
  • Send all of this to a remote server — silently, at install time

This package makes that risk tangible by showing you exactly how much of your filesystem is accessible to any installed Python code.

Installation

pip install a_package_that_demo_pypi_vulnerability

Usage

from a_package_that_demo_pypi_vulnerability import demonstrate_vulnerability

demonstrate_vulnerability()

Disclaimer

This package is for educational purposes only. It does not collect, transmit, or store any data. No code runs at install time — the demonstration only executes when you explicitly call the function. Use it to learn about supply-chain security risks and to make informed decisions about the packages you install.

License

MIT

Metadata

Release files for a-package-that-demo-pypi-vulnerability 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a-package-that-demo-pypi-vulnerability 0.1.0
File Size Uploaded Provenance Actions
a_package_that_demo_pypi_vulnerability-0.1.0.tar.gz 2.8 kB Without provenance Details for a_package_that_demo_pypi_vulnerability-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-package-that-demo-pypi-vulnerability 0.1.0
File Interpreter ABI Platform Actions
a_package_that_demo_pypi_vulnerability-0.1.0-py3-none-any.whl Python 3 none any Details for a_package_that_demo_pypi_vulnerability-0.1.0-py3-none-any.whl

Total release size: 6.9 kB

Release files / a_package_that_demo_pypi_vulnerability-0.1.0.tar.gz

Download URL a_package_that_demo_pypi_vulnerability-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ee653b8c0cc3c99a901f745d4e2cea538735434acbb1764e495710c65cffb949
BLAKE2b-256 checksum
How to use checksums
422fad9c848c1836ab5ba4109b9ce8fc9118111bfb9fbd4d6992f89ffdc0503e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / a_package_that_demo_pypi_vulnerability-0.1.0-py3-none-any.whl

Download URL a_package_that_demo_pypi_vulnerability-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cac0262e7ee68eb7fa8a48377f3d243df07aa09c2886f3ec9b027f7cb4520d8e
BLAKE2b-256 checksum
How to use checksums
b51de2b04f71f52d74c0efdf9bff4bb70b263bf8224f624114b5bf00e652cc2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for a-package-that-demo-pypi-vulnerability 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page