MAL-2026-3694 Malicious code in mymaldependency (PyPI)
Malicious package
Published
MAL-2026-3694 is a malicious package: mymaldependency (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-3694/ (Markdown: https://insights.sbomify.com/MAL-2026-3694/index.md)
- Package
- mymaldependency
- Registry
- PyPI
What is MAL-2026-3694?
MAL-2026-3694 is a malicious package in mymaldependency, published on 12 May 2026.
Official description
MyMalDependency_package/init.py executes on every import: it calls os.uname() and os.getcwd(), writes the results to./trans.txt in the installer's working directory, then invokes os.system('scp trans.txt [email protected]:E:\download') to ship the file to a hardcoded remote host. This is a one-way exfiltration of installer machine fingerprint data combined with unconsented shell command execution at import time. setup.py additionally disables TLS certificate verification globally (ssl._create_default_https_context = ssl._create_unverified_context), weakening the installer's trust posture during install. Source comments ('#恶意的依赖项' — Chinese for 'malicious dependency') and a startup print ('start mal dependency') explicitly declare malicious intent. Metadata is placeholder (author '1', UNKNOWN fields, description 'test to create package'). Regardless of whether the hardcoded private-range destination IP is currently reachable, the code pattern constitutes active attack behavior against anyone who imports the package.
What should I do about MAL-2026-3694?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.