{"id":"MAL-2026-16406","title":"Malicious code in crypto-trader-py (PyPI)","summary":"Malicious code in crypto-trader-py (PyPI)","severity":"critical","exploited":true,"vendor":"crypto-trader-py","product":"crypto-trader-py","ecosystem":"pip","affected":["crypto-trader-py"],"published":"2026-09-22","updated":"2026-09-22","sourceUpdated":"2026-09-22T22:30:05.629228613Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16406","references":[{"url":"https://bad-packages.kam193.eu/pypi/package/crypto-trader-py"},{"url":"https://pypi.org/project/crypto-trader-py/1.0.0/"}],"tags":["osv","pip","malware"],"ingestedAt":"2026-09-24T07:16:01.857Z","slug":"MAL-2026-16406","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (33e855a3ce62e35b613e702e710b81900769c241707c80f6a61462df0927529c)\nThe package presents itself as a crypto trading and backtesting toolkit, but ships no library code matching that description — SOURCES.txt lists only LICENSE, README, setup.py, and egg-info metadata, and top_level.txt is empty. setup.py unconditionally invokes _wus_boot() before setup() during `pip install`, which spawns a sibling script `_cryptotr_b2ca69.py` via subprocess.Popen using `pythonw.exe` with Windows creationflags 0x08000000 (CREATE_NO_WINDOW) to hide the console window, guarded by a tempdir lockfile (`13f8811c38.lk`) to avoid re-entry. Stealth markers (hidden-window flag, pythonw preference, silent try/except wrapping, obfuscated identifiers) and the absence of any advertised library content match a dropper cover-story pattern rather than a legitimate build step, and the child process runs on every install with no user interaction.\n\n## Source: kam193 (734dc70863cedc4f248265b79254d8bc4ac9dbbc40337ad7a5bbd45d9314500b)\nDuring installation, the package attempts to silently execute code. In analyzed versions, the payload file was missing.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-09-snap-queue\n\n\nReasons (based on the campaign):\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n## Affected packages\n\n- `crypto-trader-py`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"abyssal","depthScore":70,"depthScoreParts":{"impact":52.3,"likelihood":0,"exploitation":18,"ransomware":0},"changes":[]}