Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in speed-hashes (PyPI)

Multiple malicious variants of the speed-hashes package were published to PyPI, containing obfuscated code that executes during installation. The malware downloads and executes remote binaries, exfiltrates cryptocurrency wallet data and other sensitive information, and achieves remote code execution on the installer's host.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any user who installed the malicious speed-hashes package from PyPI
Ecosystems
Attack vectors
Threat actor
Affected entities
  • speed-hashesMalicious package on PyPI with multiple variants

The speed-hashes package on PyPI was compromised with malicious code distributed under multiple source identifiers. The first variant (amazon-inspector) defines a custom NativeInstall command in setup.py that executes during pip install. It decodes a base64-encoded payload and executes it via exec(compile(...)), disguising the malicious code under names mimicking legitimate native-extension setup routines.

The decoded payload downloads an opaque binary from github.com/totti2188/8gp1Q7iZD3h4VW/releases/download/v1.3A/something to /tmp/something, makes it executable (chmod 0755), and spawns it as a detached process. The publisher metadata falsely references github.com/nickolasburr/fast-hashes, which does not match the actual download source, indicating account takeover or impersonation.

A second variant (kam193) similarly imitates the name of a popular library and uses obfuscated code to download and execute a malicious executable during installation. This variant exfiltrates cryptocurrency wallet data and likely other sensitive information from the infected system.

Both variants achieve remote code execution on the installer's host through the automatic execution of attacker-controlled code during the pip install lifecycle. The campaign is tracked as 2026-08-flasq and demonstrates clear malicious intent through data exfiltration and infostealer functionality.

Indicators of compromise

Packages
  • speed-hashes
Domains
  • github.com/totti2188/8gp1Q7iZD3h4VW

Remediation

  • Immediately uninstall the speed-hashes package if installed: pip uninstall speed-hashes
  • Audit systems where speed-hashes was installed for signs of compromise, including cryptocurrency wallet access and data exfiltration
  • Review pip install logs to identify when the package was installed and on which systems
  • Check for the presence of /tmp/something or similar suspicious binaries on affected systems
  • Monitor for outbound connections to github.com/totti2188/ and other attacker infrastructure
  • Regenerate cryptocurrency wallet credentials and private keys on affected systems
  • Use a package manager that verifies package signatures and checksums when available
  • Consider using pip audit or similar tools to detect known malicious packages

Sources

  1. GitHub Advisory GHSA-86h3-9rp7-fxxc · GitHub Advisory Database

Cite this entry

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

Suggest a correction

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

  1. containedcritical

    Malicious code in @years19/n8n-nodes-utils-helper-d (npm)

    The npm package @years19/n8n-nodes-utils-helper-d contained malicious code that downloads and executes a Python DDoS/offensive-tooling dropper on installation. The package impersonates a legitimate n8n community node but performs unauthorized system reconnaissance and beacons host identity to an attacker-controlled endpoint.

    npmPyPICompromised packageTyposquatting
  2. containedcritical

    Malicious code in fastapii (PyPI)

    The fastapii package on PyPI is a typosquatting attack imitating the popular FastAPI library. During installation, it executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    2026 08 FlasqPyPITyposquattingCompromised package
  3. containedcritical

    Malicious code in flasq (PyPI)

    A malicious package named flasq was published on PyPI, imitating a popular library. During installation, it executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    PyPITyposquattingCompromised package
  4. containedcritical

    Malicious code in idnna (PyPI)

    A malicious package named idnna was published to PyPI, imitating a legitimate library. During installation, the package executes obfuscated code that downloads and runs a malicious executable, exfiltrating cryptocurrency wallet data and potentially other sensitive information.

    PyPITyposquattingCompromised package