Malicious Code in sysdiagd: A PyPI Package Threat
Summary
MAL-2026-17861: Malicious code in sysdiagd (PyPI). Affects sysdiagd versions 1.2.1 – 1.2.3. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The sysdiagd package, available on PyPI, is designed to function as a system monitoring tool. However, it has been found to contain malicious code that operates as a Discord bot. This bot is capable of stealing sensitive information such as credentials, browser data, files, and can even record audio, screenshots, and video. The package requires users to provide bot credentials to function, making it a significant security risk.
Vulnerability Detail
The vulnerability originates from the sysdiagd package, which disguises itself as a legitimate system monitoring tool while actually functioning as an infostealer. The malicious code exfiltrates sensitive user data, including credentials and browser information, and has spyware-like capabilities. This poses a serious threat to users' privacy and security, as the bot can persistently collect and transmit sensitive data without the user's consent.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall sysdiagd
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
Currently, there are no effective workarounds to secure the sysdiagd package due to its inherent malicious nature. The best course of action is to uninstall the package completely.
Conclusion
The sysdiagd package poses a significant security threat due to its malicious code that acts as an infostealer. Users are strongly advised to uninstall the package immediately to protect their sensitive information. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.
See every vulnerability recorded for sysdiagd →
FAQ
The sysdiagd package is a Python package intended for system monitoring, but it has been found to contain malicious code that acts as an infostealer.
The malicious code can exfiltrate credentials, browser data, files, and can record audio, screenshots, and video.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed sysdiagd, you should uninstall it immediately to protect your sensitive data.
As of now, there is no patch available for sysdiagd. The recommended action is to uninstall the package.