Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in telerape (PyPI)

The telerape package on PyPI contained malicious code that placed a reverse shell in a PTH file, enabling arbitrary command execution on victim machines. The package was identified and cataloged as part of the 2026-07-telerape malicious campaign by the OpenSSF.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
All users who installed affected versions of telerape from PyPI
Ecosystems
Attack vectors
Threat actor
Affected entities
  • telerapePyPI package containing malicious code

The telerape package published on PyPI contained embedded malicious code designed to establish a reverse shell on infected systems. The reverse shell was placed in a PTH file, a Python mechanism that allows code execution during interpreter initialization.\n\nThe malicious payload was identified in multiple versions of the package. In the analyzed versions, the reverse shell targeted localhost, though the capability to execute arbitrary commands on the victim's machine represents a critical compromise vector.\n\nThe package was identified and attributed to the 2026-07-telerape malicious campaign by security researchers and credited to the OpenSSF's malicious-packages project. The incident demonstrates the abuse of Python's PTH file mechanism as a persistence and code execution technique.

Indicators of compromise

Packages
  • telerape

Remediation

  • Immediately uninstall telerape from all systems where it was installed
  • Audit systems for signs of reverse shell activity or unauthorized command execution
  • Review system logs for suspicious network connections or process execution
  • Consider the system compromised and perform a full security assessment
  • Use pip to check installation history: pip show telerape or review pip logs
  • Monitor for indicators of compromise related to the reverse shell payload

Sources

  1. GitHub Advisory GHSA-2x4m-3m75-45jg · GitHub Advisory Database

Cite this entry

"Malicious code in telerape (PyPI)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 1, 2026; last updated August 1, 2026. https://supplychainattack.org/incident/malicious-code-in-telerape-pypi-1ugapt

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedhigh

    Malicious code in asdk-plugin-alphagen (PyPI)

    Malicious code was published in the asdk-plugin-alphagen package on PyPI (version 9999.0.0). The package exfiltrates basic host information (IP, username) during installation and communicates with a domain associated with malicious activity.

    PyPICompromised package
  2. resolvedhigh

    Malicious code in asdk-plugin-ai-platform (PyPI)

    The PyPI package asdk-plugin-ai-platform contained malicious code that exfiltrates basic host information (IP, username) upon installation or module import. The package overrides the install command in setup.py to execute the malicious payload during installation.

    PyPICompromised package
  3. resolvedhigh

    Malicious code in asdk-plugin-legacy (PyPI)

    Malicious code was discovered in the asdk-plugin-legacy package on PyPI. The package exfiltrates basic host information (IP, username) upon installation or import, with no legitimate functionality.

    PyPICompromised package
  4. resolvedcritical

    Malicious code in reguestsc (PyPI)

    A malicious package named reguestsc was published to PyPI as a typosquat of a legitimate library. The package contained injected code that downloads and executes a remote executable (identified as salatstealer infostealer malware) upon import.

    PyPITyposquattingCompromised package