VYPR

pypi · Malicious package advisory

Malware

osint-tool

GHSA-chj4-vw86-qqq2

Malicious code in osint-tool (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1`

## Source: kam193 (10a834a37294b0f3aaf52345444f8c5c2a15dde780c8342446c53ecc05d623c0)
*osint* packages promise to be OSINT tool, however, when providing the username to search for, the package attempts to exfiltrate Discord tokens from the user.

The original package suggests being a library for Discord exfiltration, what is suspicious on its own, but in addition, the entry point located in main.py exfiltrate local Discord tokens to a hardcoded webhook.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2024-09-discord-token-lib


Reasons (based on the campaign):


 - exfiltration-generic


 - action-hidden-in-lib-usage

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/osint-tool/MAL-2024-12320.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/osint-tool
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/osint-tool/MAL-2024-12320.json
- https://github.com/advisories/GHSA-chj4-vw86-qqq2

Compromised versions (1)

  • = 0.1

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.