Malicious code in timeweave (PyPI)
Description
The PyPI package 'timeweave' masquerades as a timezone utility but contains malicious code that downloads and executes arbitrary Windows executables from a remote server controlled by an attacker. This execution path is triggered during normal library use on Windows systems unless specific environment variables disable the auto-update feature. The downloaded payload is a heavily obfuscated infostealer. The malicious behavior is disguised by misleading naming and a manifest-driven update mechanism that fetches both the manifest and checksum from the same untrusted source, offering no real integrity protection.
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 'timeweave' package (versions 1.0.0 through 1.9.0 inclusive) includes a malicious update mechanism that fetches a manifest and associated resources from a remote server (https://timezone.api.globaltimedata.com/latest/db.json). On Windows, it downloads executables to a temporary directory and runs them via WinExec with attacker-controlled arguments. This occurs transparently during normal API calls such as detect_timezone() or convert_timezone(), which spawn a daemon thread to perform the update. The manifest checksum is ineffective as it is supplied by the same server. The malicious executable is a heavily obfuscated infostealer. The campaign was first identified by Amazon Inspector and is linked to a known malicious campaign named 2026-09-timeweave.
Potential Impact
Any Windows host that imports and uses the timeweave package and does not disable the auto-update feature is at risk of arbitrary code execution controlled by the attacker operating the remote server. This can lead to compromise of sensitive information via the infostealer payload. The attack vector is embedded in normal library usage, making it stealthy and potentially widespread among users of the package.
Defensive Guidance
No official patch or fix is currently documented. Users should immediately avoid using the timeweave package versions 1.0.0 through 1.9.0. To prevent exploitation, set environment variables TIMEWEAVE_NO_AUTO_UPDATE, TIMEWEAVE_OFFLINE, or TIMEWEAVE_NO_NETWORK to disable the auto-update feature if use is unavoidable. Monitor for package updates or vendor advisories for official remediation. Consider removing the package entirely from environments, especially Windows hosts.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15910
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6a9ad4dcacd9273b49b66a88
Added to database: 09/04/2026, 14:25:32 UTC
Last enriched: 09/07/2026, 18:24:33 UTC
Last updated: 10/04/2026, 05:17:40 UTC
Views: 29
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.