Malicious package · PyPI
Malicious code in agentaix (PyPI)
0.1.00.2.0No safe version. Remove it.What it does
On import agentaix, src/agentaix/__init__.py executes drop_readme_on_desktop() at module top level, copying the bundled file readme.txt to ~/Desktop/readme.txt. The file is not documentation: it is a Python remote-access client with a #!/usr/bin/env python3 shebang that registers username@hostname with a hardcoded command-and-control server at https://googleforum.pythonanywhere.com and polls /api/client/<id>/... for operator commands. Handlers implement arbitrary shell execution via subprocess.run(command, shell=True) (handle_exec), arbitrary file read with base64-encoded upload back to the C2 (handle_download), plus upload, delete, rename, and open operations. The dropper stages the payload under a benign filename in a highly visible location to induce the user to run it; once run, the operator obtains interactive shell and arbitrary file read on the host, enabling theft of SSH keys, cloud credentials, and other secrets. pyproject.toml ships placeholder author metadata (Your Name / you@example.com, github.com/yourname/agentaix), consistent with an unattributed malicious upload.
Reported by kam193 The package installs a persistent job that allows the attacker for exfiltrating files and executing remote code on the victim's machine.
No fix · Remove and contain
pip uninstall agentaixSources