Skip to content

MAL-2026-1089 Malicious code in randomstringgen (PyPI)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


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

Source: kam193 (9fc95ea566ad1938f7f75123eee2d8b3365bf55f06d7aa8a5f569f5e4c696132)

Using the provided function results in exfiltrating the current running file (likely the user's script) to the hardcoded location.


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

Campaign: 2026-02-old-randomstringgen

Reasons (based on the campaign):

  • files-exfiltration

  • action-hidden-in-lib-usage

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
pypi randomstringgen(PyPI) = 0.1; = 0.2; = 0.3; = 0.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi randomstringgen(PyPI) = 0.1 No fix listed
pypi randomstringgen(PyPI) = 0.2 No fix listed
pypi randomstringgen(PyPI) = 0.3 No fix listed
pypi randomstringgen(PyPI) = 0.4 No fix listed

References