Malicious code in requests-toolbelt-plus (PyPI)
The requests-toolbelt-plus package on PyPI is a malicious package impersonating the legitimate requests-toolbelt library. During installation, it executes code that checks if the environment is Windows Subsystem for Linux (WSL). If so, it connects to a hardcoded attacker IP, sends system information, and establishes a persistent reverse shell via modifications to the user's .bashrc file. This allows full remote command execution and persistent access on affected developer machines running WSL.
AI Analysis
Technical Summary
The malicious requests-toolbelt-plus PyPI package contains no legitimate functionality and instead executes malicious code during installation. It detects WSL environments by inspecting /proc/version and, if confirmed, opens a TCP connection to a hardcoded IP address on port 4444. It sends a JSON beacon with user and system information, then spawns a background thread to receive and execute arbitrary shell commands remotely, returning output to the attacker. Additionally, it appends a Python one-liner to the user's ~/.bashrc to re-establish a reverse shell on every new login shell, providing persistent interactive shell access. This WSL-specific gating is designed to evade detection on non-targeted systems and focus on Windows Subsystem for Linux developer hosts.
Potential Impact
Successful installation or import of this package on a WSL environment results in full remote command execution on the victim machine and persistent backdoor access via a reverse shell triggered on every new login shell. This compromises confidentiality, integrity, and availability of the affected system. The attacker gains persistent interactive shell access with the privileges of the installing user.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing requests-toolbelt-plus and verify package authenticity before installation. Remove any installed instances of requests-toolbelt-plus and inspect and clean the ~/.bashrc file to remove the malicious reverse shell code. Monitor for suspicious network connections to the hardcoded IP 185.184.192.205 on port 4444. Use trusted package sources and verify package signatures when possible.
Malicious code in requests-toolbelt-plus (PyPI)
Description
The requests-toolbelt-plus package on PyPI is a malicious package impersonating the legitimate requests-toolbelt library. During installation, it executes code that checks if the environment is Windows Subsystem for Linux (WSL). If so, it connects to a hardcoded attacker IP, sends system information, and establishes a persistent reverse shell via modifications to the user's .bashrc file. This allows full remote command execution and persistent access on affected developer machines running WSL.
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 malicious requests-toolbelt-plus PyPI package contains no legitimate functionality and instead executes malicious code during installation. It detects WSL environments by inspecting /proc/version and, if confirmed, opens a TCP connection to a hardcoded IP address on port 4444. It sends a JSON beacon with user and system information, then spawns a background thread to receive and execute arbitrary shell commands remotely, returning output to the attacker. Additionally, it appends a Python one-liner to the user's ~/.bashrc to re-establish a reverse shell on every new login shell, providing persistent interactive shell access. This WSL-specific gating is designed to evade detection on non-targeted systems and focus on Windows Subsystem for Linux developer hosts.
Potential Impact
Successful installation or import of this package on a WSL environment results in full remote command execution on the victim machine and persistent backdoor access via a reverse shell triggered on every new login shell. This compromises confidentiality, integrity, and availability of the affected system. The attacker gains persistent interactive shell access with the privileges of the installing user.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing requests-toolbelt-plus and verify package authenticity before installation. Remove any installed instances of requests-toolbelt-plus and inspect and clean the ~/.bashrc file to remove the malicious reverse shell code. Monitor for suspicious network connections to the hardcoded IP 185.184.192.205 on port 4444. Use trusted package sources and verify package signatures when possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5519
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c3668715ace431586ed
Added to database: 07/09/2026, 09:39:02 UTC
Last enriched: 07/09/2026, 09:51:34 UTC
Last updated: 07/29/2026, 08:36:50 UTC
Views: 8
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.