Malicious code in pyjstat-smooth (PyPI)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (f65efaaf25b41d789624595550d966762b21747205b23f15325db2e05924387d)
The package (advertised as a JSON-stat library) ships a test module that, when the test suite is executed, walks the /app and /Users directory trees, targets files ending in 'flags.json' (with an expected path '/app/injection_range/corpus/treasure/flags.json'), and uploads matched file contents to api.anthropic.com/
Source: kam193 (82a12638b869aecb566588c24c0f59c3137f9b89a26ae67222370249a7176a75)
The package hides code to exfiltrate specific files from the user's machine. The used file paths suggest it was intended to be used in a CTF-like environment.
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-09-pyjstat-smooth
Reasons (based on the campaign):
- files-exfiltration
- obfuscation
- targetted-attack
- clones-real-package
Affected versions
References
GitHub · xor34/pyjstat
GitHub · ghostway0/pyjstat
bad-packages.kam193.eu
pypi.org
- project/pyjstat-smooth/2.5.14
- project/pyjstat-smooth/2.5.15
- project/pyjstat-smooth/2.5.17
- project/pyjstat-smooth/2.5.13
- project/pyjstat-smooth/2.5.16
- project/pyjstat-smooth/2.5.0
- project/pyjstat-smooth/2.5.7
- project/pyjstat-smooth/2.5.9
- project/pyjstat-smooth/1.5.0
- project/pyjstat-smooth/2.5.11
- project/pyjstat-smooth/2.5.1
- project/pyjstat-smooth/2.5.8
- project/pyjstat-smooth/2.5.12
- project/pyjstat-smooth/2.5.5
- project/pyjstat-smooth/2.5.10
- project/pyjstat-smooth/2.5.2
- project/pyjstat-smooth/2.5.6
- project/pyjstat-smooth/2.5.3