Malicious code in dwh-kafka-client (PyPI)
The dwh-kafka-client PyPI package contains malicious code designed to download and execute remote executables using multiple fallback methods, including Cloudflare Workers and DNS TXT record retrieval. It establishes persistence by abusing Python .pth files to run on every Python start. The package also exfiltrates basic system data such as IP address and username. Version 0.0.1 contains disarmed code, with malicious functionality completed in later updates. The package overrides the install command to execute malicious code during installation and attempts to cover its tracks by removing downloaded binaries after execution.
AI Analysis
Technical Summary
The dwh-kafka-client package on PyPI is a malicious package that implements a multi-stage payload delivery mechanism. Initially, it attempts to download an executable from one of several Cloudflare Workers. If this fails, it falls back to reconstructing the executable from DNS TXT records across multiple domains. The downloaded binary is executed and then deleted to cover tracks. Persistence is achieved by abusing Python .pth files, ensuring the malicious code runs on every Python interpreter start. The package also exfiltrates basic system information such as IP address and username. Version 0.0.1 contains incomplete (disarmed) code, with full malicious functionality introduced in subsequent versions. The install command is overridden to execute malicious code during installation.
Potential Impact
The malicious package can execute arbitrary code on the victim's system by downloading and running a remote executable. It can exfiltrate basic system information, maintain persistence through Python .pth file abuse, and cover its tracks by deleting payloads after execution. This poses a risk of unauthorized code execution and potential further compromise of affected systems.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the dwh-kafka-client package, especially version 0.0.1 and later versions that complete the malicious functionality. Since this is a malicious package on PyPI, remediation involves removing the package from affected systems and scanning for persistence mechanisms such as malicious .pth files. Monitor Python environments for unauthorized packages and installation scripts. Patch status is not yet confirmed — check the vendor advisory or PyPI security advisories for current remediation guidance.
Malicious code in dwh-kafka-client (PyPI)
Description
The dwh-kafka-client PyPI package contains malicious code designed to download and execute remote executables using multiple fallback methods, including Cloudflare Workers and DNS TXT record retrieval. It establishes persistence by abusing Python .pth files to run on every Python start. The package also exfiltrates basic system data such as IP address and username. Version 0.0.1 contains disarmed code, with malicious functionality completed in later updates. The package overrides the install command to execute malicious code during installation and attempts to cover its tracks by removing downloaded binaries after execution.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The dwh-kafka-client package on PyPI is a malicious package that implements a multi-stage payload delivery mechanism. Initially, it attempts to download an executable from one of several Cloudflare Workers. If this fails, it falls back to reconstructing the executable from DNS TXT records across multiple domains. The downloaded binary is executed and then deleted to cover tracks. Persistence is achieved by abusing Python .pth files, ensuring the malicious code runs on every Python interpreter start. The package also exfiltrates basic system information such as IP address and username. Version 0.0.1 contains incomplete (disarmed) code, with full malicious functionality introduced in subsequent versions. The install command is overridden to execute malicious code during installation.
Potential Impact
The malicious package can execute arbitrary code on the victim's system by downloading and running a remote executable. It can exfiltrate basic system information, maintain persistence through Python .pth file abuse, and cover its tracks by deleting payloads after execution. This poses a risk of unauthorized code execution and potential further compromise of affected systems.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the dwh-kafka-client package, especially version 0.0.1 and later versions that complete the malicious functionality. Since this is a malicious package on PyPI, remediation involves removing the package from affected systems and scanning for persistence mechanisms such as malicious .pth files. Monitor Python environments for unauthorized packages and installation scripts. Patch status is not yet confirmed — check the vendor advisory or PyPI security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10915
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5e79fb2a4a8d59899d360b
Added to database: 07/20/2026, 19:41:47 UTC
Last enriched: 07/20/2026, 19:52:39 UTC
Last updated: 07/21/2026, 06:50:21 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.