Malicious code in shanks (PyPI)
- GHSA-547v-q874-636x
Description
The module shanks/shanks.py, when imported, looks up the machine's public IP address and location from a geolocation service and posts the IP address, city, state, postal code, latitude and longitude, with an @everyone mention, to a hard-coded Discord webhook. The package describes itself only as "A small example pkg". Version examined: 0.0.4; sdist SHA-256 dc417305d4b083a60ffda7aa310952306258fc12afc536a0641fc4a79c95bed8. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d7ba0c554f88bb0ec85a8550f687ec09e5fa2007/osv/malicious/pypi/shanks/MAL-2026-19051.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
shanksPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.