Skip to main content

Malicious code in cubesat-upstream-driver (PyPI)

0
Medium
Published: 08/09/2026 (08/09/2026, 13:09:20 UTC)
Source: GCVE Database
Product: cubesat-upstream-driver

Description

The PyPI package 'cubesat-upstream-driver' version 1.0.1 is a malicious package that masquerades as an upstream driver interface for cubesat orbital command bus but contains no actual driver or telemetry code. Instead, it defines a function that reads sensitive files and environment variables potentially containing secrets or flags, caching and exposing them via its public API. The package does not exfiltrate data by itself but appears designed to harvest secrets for external retrieval. It is likely used in a pentest or CTF-like scenario with low direct harm but poses a risk of secret leakage if integrated into a project.

Affected software

PyPIghsa
cubesat-upstream-driver
Affected versions
=1.0.1

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

AILast updated: 08/10/2026, 15:58:29 UTC

Technical Analysis

The 'cubesat-upstream-driver' PyPI package (version 1.0.1) is advertised as an upstream driver interface but contains no legitimate driver or telemetry functionality. Its sole module defines a function '_exfil_flag()' that, upon import, reads well-known secret or flag file paths (e.g., '/flag', '/root/flag.txt', and glob patterns like '/**/flag*'), scans environment variables for keys containing sensitive keywords such as 'flag', 'secret', 'ctf', 'key', or 'token', and if none are found, serializes the entire environment. This harvested data is cached in a module-global variable and returned by the public 'handle_command' API, which re-executes the harvesting on each call. The package itself does not perform data exfiltration but is likely intended for use in a controlled pentest or CTF environment. It abuses PyPI as a distribution vector and may be part of a dependency confusion attack or similar.

Potential Impact

If this package is installed and its API is invoked, it can expose sensitive environment variables and secret files from the host environment to any caller of its 'handle_command' function. This could lead to leakage of credentials, tokens, or other secrets present in environment variables or files. However, the package does not autonomously exfiltrate data, so impact depends on how the package is used and whether the harvested data is accessed or transmitted externally.

Mitigation Recommendations

No official patch or fix is available. Users should avoid installing or using the 'cubesat-upstream-driver' package version 1.0.1 from PyPI. Review dependency trees to ensure this package is not included transitively. Remove the package if found in environments where secret confidentiality is critical. Monitor package sources carefully to prevent dependency confusion or supply chain attacks involving malicious PyPI packages.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-13666
Osv Schema Version
1.7.4
Ecosystems
["PyPI"]

Threat ID: 6a79f0dbbf8831d539f618b3

Added to database: 08/10/2026, 15:40:11 UTC

Last enriched: 08/10/2026, 15:58:29 UTC

Last updated: 09/23/2026, 17:46:11 UTC

Views: 26

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses