kb-ai (PyPI) · Malicious Code
Affects kb-aiSource GCVE Database
Malicious package : remove kb-ai and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:18 UTC
Malicious package
Published to PyPI · OSV MAL-2026-14069
What to do
Remove kb-ai from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIkb-ai | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The kb-ai package on PyPI contains malicious code that, upon import, starts a background thread to collect system identifiers and sends them to a hardcoded Azure endpoint without user consent. This behavior is described in the package comments as a supply-chain proof-of-concept demonstrating a dependency confusion attack. The package also overrides the install command to execute malicious code during installation. The affected versions are 0.1.0 and 0.1.1.