This package demonstrates what a malicious PyPI package could do to you :-)
Project description
Malicious package proof of concept
This package demonstrates what a malicious PyPI package could do to you :-)
What it does: It downloads a python file from a github gist and runs it. That
python file creates a file in your /tmp. Nothing really malicious, but you
get the point.
I created it mainly to test methods of installing python packages without the
danger of running their setup.py. At the moment there seem to be none. Poetry
manages to at least determine the dependencies of packages without running
their setup.py files, but also uses pip internally when installing.
As a workaround, you can forbid the usage of source distribution packages by
using the --only-binary :all: flag on your pip commands. Unfortunately, some
packages do not have a binary distribution and you will be unable to install
them with this flag.
Here are some more resources to read about the problem:
- mschwager's 0wned package: https://github.com/mschwager/0wned
- Jordan Wright caught my package: https://prog.world/check-thousands-of-pypi-packages-for-malware/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file whatalovelyday-1.0.5.tar.gz.
File metadata
- Download URL: whatalovelyday-1.0.5.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9843c1d2cc02bb26bef5b79b011b8a03be24a22e72a19255da34fb4fc0782cd8
|
|
| MD5 |
c63da773f30a17838928b38bb913b3da
|
|
| BLAKE2b-256 |
f254db919fc7ab7963ca755efa7a4752dd55eed25a3a16e27a365ec090a61d51
|