pypi · Malicious package advisory
Malwaremcp-runcommand-server
GHSA-22rf-pqm4-vwxw
Malicious code in mcp-runcommand-server (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.0.7` ## Source: kam193 (17f8adb9e7e30e13f8656300881d4e04975f499c03c2f1dbea2e00fd86c357a5) Package starts a reverse shell to a hardcoded location --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-10-mcp-runcommand-server Reasons (based on the campaign): - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/mcp-runcommand-server/MAL-2025-191647.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/mcp-runcommand-server - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/mcp-runcommand-server/MAL-2025-191647.json - https://research.jfrog.com/post/3-malicious-mcps-pypi-reverse-shell - https://github.com/advisories/GHSA-22rf-pqm4-vwxw
Compromised versions (1)
- = 1.0.7
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.