Malicious code in company-sdk (PyPI)
Description
The company-sdk package version 0.0.1 on PyPI contains malicious code that executes upon import. It harvests sensitive credentials and configuration files from the user's home directory and environment variables, encrypts the collected data, and exfiltrates it to a private GitHub Gist using a hardcoded GitHub Personal Access Token. The exfiltration uses TLS with certificate verification disabled and runs silently even if errors occur.
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 company-sdk PyPI package version 0.0.1 includes embedded malicious code that activates during module import. It scans the installer's home directory for SSH keys, cloud provider credentials, package manager tokens, Docker/Kubernetes configs, environment files, Vault/Terraform tokens, shell history, and environment variables with credential-related names. The harvested data is compressed, encrypted with a key derived from a hardcoded passphrase, HMAC-tagged, base64-encoded, and then uploaded to a private GitHub Gist via the GitHub API using a hardcoded personal access token. TLS certificate verification is disabled during the upload, and the operation is enclosed in a try/except block to suppress errors. This method leverages GitHub Gist as a covert exfiltration channel that likely bypasses egress filtering and conceals payload contents from network inspection.
Potential Impact
Sensitive credentials and configuration files including SSH keys, cloud service credentials, package manager tokens, and environment variables are exfiltrated from the victim's environment to an attacker-controlled GitHub Gist. This compromises the confidentiality of the victim's secrets and can lead to further unauthorized access or compromise of cloud resources, developer environments, and other systems relying on these credentials.
Defensive Guidance
No official patch or remediation is currently documented. Users should immediately uninstall the company-sdk package version 0.0.1 and avoid using this package. Review and revoke any potentially exposed credentials, including GitHub tokens and cloud service keys. Monitor for unauthorized access using the compromised credentials. Since the exfiltration is embedded in the package code and runs on import, avoid installing or importing untrusted or suspicious packages from PyPI. Patch status is not yet confirmed — check the vendor advisory or PyPI security notices for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15827
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6a998f5facd9273b49192d6e
Added to database: 09/03/2026, 15:16:47 UTC
Last enriched: 09/07/2026, 20:09:11 UTC
Last updated: 10/04/2026, 06:33:36 UTC
Views: 25
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.
External Links
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.