cvelo
P2 · HighMalware

Malicious code in tesec (PyPI)

  • GHSA-6f8m-mxh2-hq2c

Summary

This record flags the tesec package on PyPI as malicious rather than as a conventional vulnerability, with no CVSS score and no CISA known-exploited listing. It belongs to a campaign of paired packages, where one package contains a malicious payload in a native extension module and the other loads it. The malicious packages drop .pth files so that the code runs persistently whenever Python starts. The campaign is categorized as clearly malicious with intent such as infostealing, and it is tagged for malware, native extensions, .pth abuse and persistence. Engineers should treat any installation of tesec as a compromise to investigate and remove, and check for dropped .pth files.

AI summary · verify against the vendor advisory

Description

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. --- 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 --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/443144107efee2e95d145ce3d295fe997882d210/osv/malicious/pypi/tesec/MAL-2026-21151.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • tesecPyPI

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.