NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

graphexPyPI

Advisory published Updated

graphex is a confirmed malicious PyPI package (MAL-2025-6517) that steals credentials and exfiltrates sensitive data (malicious versions 3.5.7, 3.5.8, 3.5.9…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in graphex (PyPI)

MAL-2025-6517
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall graphex

What this malware does

The package is part of the "graphalgo" campaign and not included in other related campaigns (e.g. 2026-10-netweavex, 2025-07-graphdict). Collected based on the ReversingLabs blogpost.

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

Campaign: 2026-02-graphalgo

Reasons (based on the campaign):

  • clones-real-package

  • Downloads and executes a remote malicious script.

Malicious versions

4 flagged
3.5.73.5.83.5.93.5.10

Indicators of compromise (SHA-256)

cf31fa402feb6b6a4acb19ea13b4ffd3b561746fd3294769c8c2e9afdac8a7ed
9582bb298d836ae28dae9ec135b4411978c83ab71cf2cf55f58b24bbaa6a3136

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for graphex (4 malicious versions).

  2. If you installed it — respond

    graphex is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If graphex was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. graphex on PyPI has been identified as a malicious package (versions 3.5.7, 3.5.8, 3.5.9, 3.5.10 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

RLMA-2025-036082026-02-graphalgo

References

Credits

  • Kamil Mańkowski (kam193) · analyst
  • ReversingLabs · finder

Detect & block this

O3 blocks graphex-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

graphex (PyPI) malicious package — MAL-2025-6517 | O3 Security