NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Part of a larger attack: 2024-08-byted-22.ax published 9 malicious packages. See the full campaign →
Malicious package

byterec-modelsPyPI

Advisory published Updated

byterec-models is a confirmed malicious PyPI package (MAL-2024-12223) that steals credentials and exfiltrates sensitive data (malicious version 1.5.3). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in byterec-models (PyPI)

MAL-2024-12223
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall byterec-models

What this malware does

Collects basic information about the system, most probably a pentest or bug bounty.

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: 2024-08-byted-22.ax

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

Malicious versions

1 flagged
1.5.3

Indicators of compromise (SHA-256)

b8b17fc5addc5c12be6766c6de68b5457a002b15442324f1f424b8c6a134c562
a743bef3c7e21e3a83027eb77a9868e7b659f295c96c82ac735bc135b353e597
0ca4197c33b21670046b9d8d1214f3e4c9fc71a4908490b90cb1507df36a427a

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for byterec-models (version 1.5.3).

  2. If you installed it — respond

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

Campaign

2024-08-byted-22.ax

References

Credits

  • Kamil Mańkowski (kam193)

Detect & block this

O3 blocks byterec-models-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

byterec-models (PyPI) malicious package — MAL-2024-12223 | O3 Security