Malicious Code Exfiltration in time-server-analyzer Package
Summary
MAL-2025-191903: Malicious code in time-server-analyzer (PyPI). Affected versions are not published. 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 time-server-analyzer package, available on PyPI, is designed for analyzing and checking server time. However, it has been compromised by malicious actors who have embedded code that exfiltrates sensitive information. This vulnerability poses a significant risk to users who rely on this package for legitimate purposes.
Vulnerability Detail
The vulnerability originates from a campaign that includes packages like time-check-server and snapshot-photo, which appear benign but are designed to send sensitive data to a remote server. The malicious code is hidden within a dependency of the package, specifically in the client.py file, which has been altered to exfiltrate cloud credentials instead of just the date. This campaign has been active for at least two years, indicating a persistent threat to users of the affected packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall time-server-analyzer
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
As a temporary workaround, users can avoid using the time-server-analyzer package and look for alternative packages that provide similar functionality without the risk of malicious code. Additionally, users should monitor their cloud credentials and change them if they suspect they have been compromised.
Conclusion
The time-server-analyzer package has been compromised with malicious code that exfiltrates sensitive information. Users should take immediate action to update their packages and monitor for any signs of compromise. Utilizing tools like Vulert can help in identifying vulnerabilities in real-time.
See every vulnerability recorded for time-server-analyzer →
FAQ
The time-server-analyzer package is a Python library used for analyzing and checking server time.
The malicious code sends sensitive information, such as cloud credentials, to a remote server disguised as a legitimate function.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you suspect that your credentials have been compromised, immediately change them and review your security practices.
Yes, users are encouraged to look for alternative packages that do not have a history of malicious activity.