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

fastgramPyPI

Advisory published Updated

fastgram is a confirmed malicious PyPI package (MAL-2025-191724) that steals credentials and exfiltrates sensitive data (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in fastgram (PyPI)

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

What this malware does

Clone of Telethon package that exfiltrates credentials. See client/telegrambaseclient.py L608-626 (exfiltration function) and client/auth.py L163 (usage).

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

Campaign: 2025-04-fastgram

Reasons (based on the campaign):

  • clones-real-package

  • action-hidden-in-lib-usage

  • exfiltration-generic

Malicious versions

1 flagged
1.0.0

Indicators of compromise (SHA-256)

02bb29c9a5fde0b97aee82db7bed5ddc340092a8b5ebdba1a5dcf4c83e74001f
bbc47050a01cdb07bbf87c6a6f47028545200c85d553a4952b686a705a6d7d3c
3841e1d28a332584c8d90360cb9c7c6c3a7a0229b9e1618c43158408598dd365

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for fastgram (version 1.0.0).

  2. If you installed it — respond

    fastgram 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 fastgram 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. fastgram on PyPI has been identified as a malicious package (version 1.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2025-04-fastgram

References

Credits

  • Kamil Mańkowski (kam193)

Detect & block this

O3 blocks fastgram-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

fastgram (PyPI) malicious package — MAL-2025-191724 | O3 Security