Malicious PyPI package (GHSA-g97f-vppp-p428)
A malicious PyPI package is installed in a project you scanned.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
GHSA-g97f-vppp-p428 lists malicious PyPI versions. Unreviewed: RotateIt published this automatically from that GitHub advisory, and no person has checked it. RotateIt flags it only when an affected version is pinned in a lockfile or installed in a project it scanned.
- Exposure starts
- Not known yet (GitHub advisory GHSA-g97f-vppp-p428 does not say when the package was first installable)
- Exposure ends
- Not known yet
- Confidence
- low
- Scope
- every credential on a machine where an affected version was installed
What to do, in this order
- Remove the affected version and reinstall dependencies from a lockfile that does not pin it
GitHub advisory GHSA-g97f-vppp-p428 lists these versions as malicious.
- From a clean machine, rotate every credential the affected machine could read
Advisory inference: install-time code runs with the user's access, so any credential on that machine may have been read.
anything else stored there
Notes
- Advisory inference: a malicious package runs with the access of whoever installed it, so every credential that machine could read is treated as exposed.
- Popularity when published: 626 downloads in the week before, per package as listed (pypistats.org). The automatic lane publishes only packages with at most 50000 weekly downloads; above that a person reviews it.
Sources
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.