Advisory

MAL-2024-12270

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in fake-usreagant (PyPI)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: kam193 (ef713dc551a4b2eb9b0c94b270f4c214aa90e688076e15bb263b3bb5f3b8484b)
Package imitates the legitimate fake-useragent, however it has a few suspicious additions: fake.py L149 calls a function from 'urllib2' module, which contains a code attempting to JSON-deserialize encoded code. This is a pickle executing os.system(id), which of course isn't executed by json.loads, but would be by pickle. Also: action is suspicious, not really malicious, but the package is a clear typosquatting attempt.

---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: 2024-10-old-fake-usreagant

Reasons (based on the campaign):

  • action-hidden-in-lib-usage
  • clones-real-package
  • typosquatting
  • dependency-confusion

Severity

Not rated by the source.

Dates

Published
2024-10-08 10:29 UTC
Modified
2025-12-12 20:37 UTC

Affected packages and fixes

fake-usreagant

PyPI · All systems

Affected

  • Versions: 0.0.3

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences