MAL-2026-21153: Malicious code in apimpact (PyPI)
--- -= Per source details. Do not edit below this line.=-
Source: kam193 (c7b49cb42e4bfc229d490bcb77ba054266ed2504ea6fccd24d62ff97ef4ecf47) apimpact-sync, an optional dependency of apimpact, is used to silently download and execute a specific executable. The URL has to either be provided via env variables or available under a hardcoded internal address.
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-12-apimpact
Reasons (based on the campaign):
- targetted-attack
- The malicious code is intentionally included in a dependency of the package
- Downloads and executes a remote executable.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this malicious behavior?
Users who install apimpact and include its optional apimpact-sync dependency are exposed. The malicious functionality is intentionally included in that dependency.
What does the malicious dependency require to download and run the executable?
The executable URL must be supplied through environment variables or be reachable at a hardcoded internal address. When one of those sources provides the URL, apimpact-sync silently downloads and executes the remote executable.
What can be done if the package is already installed?
Remove the optional apimpact-sync dependency and investigate systems where it was installed, because it may have downloaded and executed a remote executable. Review relevant environment variables and access to the hardcoded internal address as potential URL sources.