MAL-2026-21149: Malicious code in basic-crypt (PyPI)
--- -= Per source details. Do not edit below this line.=-
Source: kam193 (423ba6758120dbd7e6e4c5313c10881f11aff29c3b26f6a263c4302107822347) This campaign consists of package pairs. One of them carries a malicious payload in the native module, which the other one loads. Malcious packages drop PTH files to ensure persistence.
Package first discovered by Island.io
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-11-tesec
Reasons (based on the campaign):
- The malicious code is intentionally included in a dependency of the package
- malware
- native-extension
- abuses-pth
- persistence
Affected Software
Event History
Frequently Asked Questions
How does this package maintain persistence after installation?
The malicious packages drop PTH files, which are used to ensure persistence in the Python environment.
What does the campaign structure imply for investigation?
The campaign uses package pairs: one package contains a malicious native-module payload and the other loads it. Investigation should account for both components rather than assessing a package in isolation.