MAL-2026-21156: Malicious code in apimpact-sync (PyPI)
--- -= Per source details. Do not edit below this line.=-
Source: kam193 (56314f7fa4494de5f447f9b5ec9c54c102830640ad476e17daad63dc85e9e866) 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
What systems are realistically exposed to this package?
Systems that install apimpact-sync are exposed. It is described as an optional dependency of apimpact, so environments using apimpact may be exposed if that optional dependency is selected or otherwise installed.
What does an attacker need to trigger the malicious behavior?
The package uses a URL supplied through environment variables or, if none is supplied, a hardcoded internal address. It then silently downloads and executes a specific executable from that location.
How can I check whether an environment is affected?
Check installed Python packages for apimpact-sync and review whether apimpact installations include it as an optional dependency. Also inspect relevant environment variables and network or process telemetry for downloads followed by execution of an executable.
What can be done if the package cannot be removed immediately?
Prevent the package from reaching the URL supplied through environment variables or the hardcoded internal address, and restrict outbound network access and executable execution for the affected environment. Review the host for downloaded or executed payloads.