Malicious code in dde-common (PyPI)
The PyPI package dde-common is a malicious package that installs a persistent backdoor via a .pth file causing code execution on every Python interpreter start. It collects basic host metadata and uses covert DNS TXT record queries to dynamically reconstruct a remote command and control (C2) server address. The package attempts to download and execute a remote binary payload, using fallback methods including Cloudflare Workers and DNS-based data exfiltration. Versions 0.0.1, 8.5.3, and 8.5.4 are affected. This package provides no legitimate functionality and is designed for persistence and covert communication rather than telemetry.
AI Analysis
Technical Summary
The dde-common PyPI package masquerades as a utility library but contains malicious code that installs a telemetry.pth file into site-packages. This .pth file causes the _telemetry_init module to run on every Python interpreter start, spawning a background thread that collects host identifiers (hostname, OS, Python version, PID, cpu_count) and sends a 'session_start' event. The package uses DNS TXT record queries to 8.8.8.8 and 1.1.1.1 to dynamically reconstruct a base64-encoded C2 server endpoint, avoiding static URLs. If the initial download of a malicious executable from Cloudflare Workers fails, the package falls back to reconstructing the executable from multiple DNS TXT records across several domains, then executes and deletes the binary. The package overrides setup.py install commands to execute malicious code during installation, ensuring persistence and covert communication. Versions 0.0.1 contain disarmed code, with full malicious functionality in later versions 8.5.3 and 8.5.4.
Potential Impact
This malicious package enables persistent, interpreter-wide execution of unauthorized code on affected hosts. It collects and exfiltrates host metadata and downloads and executes remote binaries, potentially leading to full system compromise. The use of DNS TXT records for covert C2 rendezvous and fallback download methods complicates detection and mitigation. The package abuses Python packaging mechanisms to maintain persistence and evade simple detection. There is no indication of known exploits in the wild yet, but the capability for remote code execution and covert communication represents a high risk.
Mitigation Recommendations
No official patch or remediation is available since this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to remove the dde-common package from all environments and ensure no telemetry.pth or _telemetry_init modules remain in site-packages. Avoid installing packages from untrusted sources or with suspicious telemetry behavior. Monitor Python environments for unexpected .pth files and network DNS queries to unusual domains. Since this is not a cloud service, remediation is the responsibility of the user environment. Patch status is not applicable; check vendor or PyPI advisories for updates or takedown notices.
Malicious code in dde-common (PyPI)
Description
The PyPI package dde-common is a malicious package that installs a persistent backdoor via a .pth file causing code execution on every Python interpreter start. It collects basic host metadata and uses covert DNS TXT record queries to dynamically reconstruct a remote command and control (C2) server address. The package attempts to download and execute a remote binary payload, using fallback methods including Cloudflare Workers and DNS-based data exfiltration. Versions 0.0.1, 8.5.3, and 8.5.4 are affected. This package provides no legitimate functionality and is designed for persistence and covert communication rather than telemetry.
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 dde-common PyPI package masquerades as a utility library but contains malicious code that installs a telemetry.pth file into site-packages. This .pth file causes the _telemetry_init module to run on every Python interpreter start, spawning a background thread that collects host identifiers (hostname, OS, Python version, PID, cpu_count) and sends a 'session_start' event. The package uses DNS TXT record queries to 8.8.8.8 and 1.1.1.1 to dynamically reconstruct a base64-encoded C2 server endpoint, avoiding static URLs. If the initial download of a malicious executable from Cloudflare Workers fails, the package falls back to reconstructing the executable from multiple DNS TXT records across several domains, then executes and deletes the binary. The package overrides setup.py install commands to execute malicious code during installation, ensuring persistence and covert communication. Versions 0.0.1 contain disarmed code, with full malicious functionality in later versions 8.5.3 and 8.5.4.
Potential Impact
This malicious package enables persistent, interpreter-wide execution of unauthorized code on affected hosts. It collects and exfiltrates host metadata and downloads and executes remote binaries, potentially leading to full system compromise. The use of DNS TXT records for covert C2 rendezvous and fallback download methods complicates detection and mitigation. The package abuses Python packaging mechanisms to maintain persistence and evade simple detection. There is no indication of known exploits in the wild yet, but the capability for remote code execution and covert communication represents a high risk.
Mitigation Recommendations
No official patch or remediation is available since this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to remove the dde-common package from all environments and ensure no telemetry.pth or _telemetry_init modules remain in site-packages. Avoid installing packages from untrusted sources or with suspicious telemetry behavior. Monitor Python environments for unexpected .pth files and network DNS queries to unusual domains. Since this is not a cloud service, remediation is the responsibility of the user environment. Patch status is not applicable; check vendor or PyPI advisories for updates or takedown notices.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10757
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5e79fb2a4a8d59899d3613
Added to database: 07/20/2026, 19:41:47 UTC
Last enriched: 07/20/2026, 19:52:49 UTC
Last updated: 07/29/2026, 20:10:47 UTC
Views: 13
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.