Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ MAL-2026-5337 — solana-web3

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in solana-web3 (PyPI)

Source: amazon-inspector

On import, solana-web3/__init__.py executes a credential-stealer payload. After a sandbox-evasion gate (checks for 12-hex Docker hostname, /.dockerenv, and presence of strace to skip analysis environments), _collect() reads installer-side secrets: ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.aws/credentials, Solana keypairs at ~/.config/solana/id.json and ~/.solana/id.json,.env files in the current and parent directories as well as /app/.env and /root/.env, and bulk-scrapes os.environ for any variable name containing KEY/SECRET/MNEMONIC/PRIVATE/TOKEN/PASSWORD/AWS/NPM/GITHUB/SOLANA. The harvested data is POSTed to https://api.telegram.org/bot<redacted>/sendMessage using a hardcoded bot token and chat_id 8346336575. _persist() then writes @reboot sleep 90 && python3 <__file__> into /tmp/.psync and merges it into the user's crontab so the stealer re-runs on every reboot, even after the package is uninstalled. The package name impersonates the well-known @solana/web3.js Solana SDK and advertises itself as a 'Community-maintained Solana Python SDK', but ships no SDK functionality — only the stealer. METADATA lists UNKNOWN homepage/license and a generic 'Solana Dev Community' author.

Source: kam193

During import, the package exfiltrates sensitive data (credentials, SSH keys, cryptowallet's data). It also establishes persistence via a cronjob.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-06-spl-token-py

Reasons (based on the campaign):

  • crypto-related
  • typosquatting
  • exfiltration-ssh-keys
  • exfiltration-credentials
  • exfiltration-crypto
  • exfiltration-env-variables
  • persistence
  • uses-telegram-bot
  • The package contains code to detect if it is running in a sandbox environment.

Affected software

MAL-2026-5337 is recorded against 1 package.

  • solana-web3

Timeline and source

Published on 8 June 2026 and last revised on 14 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

bad-packages.kam193.eu (Web)
pypi.org (Package)
research.jfrog.com (Web)

Other advisories for this package

solana-web3 has other advisories on record. If you are patching this one, these are worth checking on the same host:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-06-08
Updated 2026-08-20
Modified 2026-06-14
Fix URL N/A

Affected Packages

Software From version Fixed in
solana-web3 — —

Similar Threats

Free Vulnerability Check

Is your site affected by MAL-2026-5337?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-5337 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesMalicious packagesMalicious packages 2026
✓