{"id":"MAL-2026-16130","title":"Malicious code in aitextkit-py (PyPI)","summary":"Malicious code in aitextkit-py (PyPI)","severity":"critical","exploited":true,"vendor":"aitextkit-py","product":"aitextkit-py","ecosystem":"pip","affected":["aitextkit-py"],"published":"2026-09-11","updated":"2026-09-14","sourceUpdated":"2026-09-14T17:45:05.676400283Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16130","references":[{"url":"https://www.linkedin.com/company/ssbeatech/"},{"url":"https://bad-packages.kam193.eu/pypi/package/aitextkit-py"},{"url":"https://pypi.org/project/aitextkit-py/0.1.0/"},{"url":"https://pypi.org/project/aitextkit-py/0.1.1/"}],"tags":["osv","pip","malware"],"ingestedAt":"2026-09-12T03:13:01.742Z","slug":"MAL-2026-16130","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (47e96f519e8acba48a6f7760b37a9ad70b94bfbf79fb5eac4fc682849b2837e3)\nThe package presents itself as a small text-cleaning utility library, but both shipped implementation modules (text.py and system.py) consist of a single-line pyobfuscator.com loader of the form `_ = lambda __: __import__('zlib').decompress(__import__('base64').b64decode(__[::-1]));exec((_)(b'...'))`, which reverses, base64-decodes, zlib-decompresses, and exec()s an opaque blob at module import. __init__.py imports from.text, so `import aitextkit` runs the decoded bytes on the installer's Python interpreter. __init__.py also re-exports an undocumented `setup` symbol whose body lives inside the obfuscated blob and which is not mentioned in the README, tests, or public API documentation - a common stager entry-point shape. system.py, which backs the documented `get_os_version()` helper, uses the identical loader and its tests reference `platform`, `release`, and `arch` fields, so the decoded code at minimum performs host enumeration inside code that is not inspectable from source. The declared text-utility purpose has no legitimate need to ship its entire implementation as an exec-decoded blob; the loader shape matches that used by PyPI credential-stealer families.\n\n## Source: kam193 (73303124008a821f9096bc4899d8df4302abc2e0f86822660422f855a1bc65cb)\nThe package hides code downloading script, which then downloads and executes a heavily obfuscated final stage. The remote stages are hosted on a domain presenting a suspicious-looking corporate website. The downloaded code establishes persistence e.g. as \"anymeetly-cameradriver\" systemd service. The discovered artifacts suggest strongly it acts as an infostealer and RAT.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-09-aitextkit-py\n\n\nReasons (based on the campaign):\n\n\n - obfuscation\n\n\n - Downloads and executes a remote malicious script.\n\n\n - persistence\n\n\n - infostealer\n\n\n - exfiltration-browser-data\n\n\n - rat\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n## Affected packages\n\n- `aitextkit-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":[]}