Malicious code in agent-vx (PyPI)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (90f0a2b273b0361ffd4057f114f1be1eaf9469c9746d2737a21947905570ff80)
On import agentaix, the package's __init__.py runs a top-level install_manage() side effect that renames a bundled readme.txt into manage.py and launches it with pythonw.exe using CREATE_NO_WINDOW so no console appears. The disguised script registers the installer as username@hostname with googleforum.pythonanywhere.com and then polls that endpoint for commands. The command handlers include exec (arbitrary shell via subprocess.run(command, shell=True)), plus list, download, upload, delete, rename, and open — a full remote-controlled shell and file manager driven by a hardcoded author endpoint, with no authentication beyond the username@hostname identifier. The download handler reads any path accessible to the user process, base64-encodes the contents, and POSTs them back to googleforum.pythonanywhere.com/_add_to_startup writes an AgentAIXManage value under HKCU\Software\Microsoft\Windows\CurrentVersion\Run pointing at pythonw.exe plus the renamed script so the C2 client auto-starts at every user login. The payload fires the moment the module is imported, with no user interaction, and the readme.txt disguise plus hidden-window launch are deliberate evasion of casual inspection.
Source: kam193 (f91699ff915dd2020b9736052f7036ee723aaaa0628e5384ff47f65577d397f6)
The package installs a persistent job that allows the attacker for exfiltrating files and executing remote code on the victim's machine.
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-10-agentaix
Reasons (based on the campaign):
- files-exfiltration
- peristence-autorun
- The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.
- rat
- persistence
- Downloads and executes a remote malicious script.