Malicious Code Exfiltration in ethrpc-keys Package

ethrpc-keys Updated 20 Feb 2026

Summary

19/02/2026
CRITICAL
No i
Critical
Not published

MAL-2026-949: Malicious code in ethrpc-keys (PyPI). Affects ethrpc-keys versions 0.4.1 – 0.5.7. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ethrpc-keys is a Python package available on PyPI that is intended to provide functionality similar to the legitimate eth-keys package. However, this package has been identified as a malicious clone that contains code designed to silently exfiltrate users' private keys. This vulnerability poses a significant risk to users who may unknowingly install the compromised package, as it can lead to unauthorized access to sensitive information.

Vulnerability Detail

The vulnerability originates from a malicious modification in the ethrpc-keys package, which is a clone of the legitimate eth-keys package. The malicious code is designed to exfiltrate the user's private key without their knowledge. This type of vulnerability falls under the category of infostealers, where the intent is to capture sensitive information for malicious purposes. The campaign associated with this vulnerability includes multiple packages that similarly clone legitimate packages, all of which contain hidden actions that lead to the exfiltration of private keys.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall ethrpc-keys

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using the ethrpc-keys package and instead utilize the legitimate eth-keys package. Additionally, users should monitor their systems for any unauthorized access or unusual activity that may indicate their private keys have been compromised.

Conclusion

The ethrpc-keys package has been identified as a malicious clone of the legitimate eth-keys package, designed to exfiltrate private keys from users. It is crucial for users to uninstall this package and switch to the legitimate alternative to protect their sensitive information. Regular monitoring and awareness of package integrity are essential to avoid such vulnerabilities.

See every vulnerability recorded for ethrpc-keys →

Share this vulnerability

FAQ

ethrpc-keys is a Python package that was intended to provide similar functionality to the legitimate eth-keys package but has been found to contain malicious code.

The malicious code in ethrpc-keys is designed to silently exfiltrate the user's private key to a remote server without their knowledge.

If you have installed ethrpc-keys, you should uninstall it immediately and install the legitimate eth-keys package instead.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Using compromised packages can lead to unauthorized access to sensitive information, such as private keys, which can result in financial loss and security breaches.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall ethrpc-keys

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback