Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Do you wish you could just install packages with pip as if you were at some fixed date in the past? If so, the PyPI time machine is for you!
Disclaimer: this is alpha-quality software - for now it is a quick hack, but I'd love to make this more robust/usable with your help!
Installing
To install::
pip install pypi-timemachine
Using
~~~~~
Once installed, you can run a PyPI server with::
pypi-timemachine 2014-02-03
or if you need to specify a precise time (in UTC)::
pypi-timemachine 2014-02-03T12:33:02
This will start up a Flask app, and will print out a line such as::
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
You can then call pip with::
pip install --index-url http://127.0.0.1:5000/ astropy
and this will then install the requested packages and all dependencies,
ignoring any releases after the cutoff date specified above.
Caveats/warnings
If a package is already installed, pip will not try installing it again.
This means that if e.g. you try and run pip as described above, but the
package you are trying to install (or any of its dependencies) is
already installed, no matter how recent the version, it will not be
installed again. Therefore, I recommend using pip with the custom index
URL inside a clean environment (but you can run the pypi-timemachine
command inside your regular environment.)
FAQs
Run a PyPI server from the past
We found that pypi-timemachine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.