MAL-2026-3688 Malicious code in d4rktg (PyPI)
Malicious package
Published
MAL-2026-3688 is a malicious package: d4rktg (PyPI). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-3688/ (Markdown: https://insights.sbomify.com/MAL-2026-3688/index.md)
- Package
- d4rktg
- Registry
- PyPI
What is MAL-2026-3688?
MAL-2026-3688 is a malicious package in d4rktg, published on 13 May 2026.
Official description
The library's sole authorization primitive, CustomFilters.authorize() in d4rk/Utils/_filters.py, OR's the installer-supplied owner_id and sudo_users list with a hardcoded Telegram user ID 7859877609 (lines 48-53). Any developer who installs this package to build a Telegram bot and uses the library's advertised authorize() filter to gate owner/admin commands silently grants Telegram account 7859877609 the same privileges as the bot's declared owner — including whatever privileged actions the bot exposes (admin commands, sudo commands, shell-style handlers common in Telegram bot frameworks). The bypass is not documented, cannot be disabled through configuration, and is reachable through normal use of the library's public API. This is a hidden persistent-access backdoor against the installer's deployed bot, not author self-harm: the harm flows from the installer to an account under the package author's (or a third party's) control.
What should I do about MAL-2026-3688?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.