Malicious code in magique-ai (PyPI)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (4241e99d1053712e6909db44c939421695dff66556055a93058f9a55f8694929) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: kam193 (6806267ad399a4b51411f5176e26470cccb7803dff5f0f6f1e3dca6e6c82170c) Versions 0.4.4, 0.4.5 were compromised. Compromised packages start an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution. It seems to be related to the recent Mini Shai Hulud campaign. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-06-compr-woodpecker Reasons (based on the campaign): - compromised-package - exfiltration-env-variables - exfiltration-cloud-tokens - exfiltration-credentials - abuses-pth - obfuscation - infostealer - The package contains code to detect if it is running in a sandbox environment. - exfiltration-crypto - files-exfiltration - destructive-actions
AI Analysis
Technical Summary
The 'magique-ai' PyPI package versions 0.4.4 and 0.4.5 were compromised to include an obfuscated JavaScript infostealer executed with the Bun runtime during Python startup. This malware collects a wide range of sensitive information including environment variables, cloud tokens, credentials, cryptocurrency assets, and password manager data. It actively queries online services to gather additional secrets and attempts to maintain persistence and propagate by publishing infected packages using stolen credentials. Data exfiltration is likely performed via GitHub. The malicious code also contains destructive capabilities that threaten data wiping if invalid GitHub tokens are detected. The campaign is associated with the Mini Shai Hulud threat group and exhibits advanced evasion techniques such as sandbox detection.
Potential Impact
Sensitive information including API keys, credentials for package repositories, cryptocurrency assets, and password manager data can be stolen. The malware can spread further by publishing infected packages using stolen credentials, increasing the risk of supply chain compromise. There is also a risk of data destruction if invalid GitHub tokens are detected, potentially causing data loss. This compromises confidentiality, integrity, and availability of affected systems and data.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall versions 0.4.4 and 0.4.5 of the 'magique-ai' package and avoid using these versions. Exercise caution during cleanup due to the destructive capabilities of the malware. Monitor for any unauthorized package publishing activity using your credentials. Check vendor or PyPI advisories for updates or official guidance. Since this is not a cloud service, remediation depends on user action.
Malicious code in magique-ai (PyPI)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (4241e99d1053712e6909db44c939421695dff66556055a93058f9a55f8694929) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: kam193 (6806267ad399a4b51411f5176e26470cccb7803dff5f0f6f1e3dca6e6c82170c) Versions 0.4.4, 0.4.5 were compromised. Compromised packages start an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution. It seems to be related to the recent Mini Shai Hulud campaign. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-06-compr-woodpecker Reasons (based on the campaign): - compromised-package - exfiltration-env-variables - exfiltration-cloud-tokens - exfiltration-credentials - abuses-pth - obfuscation - infostealer - The package contains code to detect if it is running in a sandbox environment. - exfiltration-crypto - files-exfiltration - destructive-actions
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 'magique-ai' PyPI package versions 0.4.4 and 0.4.5 were compromised to include an obfuscated JavaScript infostealer executed with the Bun runtime during Python startup. This malware collects a wide range of sensitive information including environment variables, cloud tokens, credentials, cryptocurrency assets, and password manager data. It actively queries online services to gather additional secrets and attempts to maintain persistence and propagate by publishing infected packages using stolen credentials. Data exfiltration is likely performed via GitHub. The malicious code also contains destructive capabilities that threaten data wiping if invalid GitHub tokens are detected. The campaign is associated with the Mini Shai Hulud threat group and exhibits advanced evasion techniques such as sandbox detection.
Potential Impact
Sensitive information including API keys, credentials for package repositories, cryptocurrency assets, and password manager data can be stolen. The malware can spread further by publishing infected packages using stolen credentials, increasing the risk of supply chain compromise. There is also a risk of data destruction if invalid GitHub tokens are detected, potentially causing data loss. This compromises confidentiality, integrity, and availability of affected systems and data.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall versions 0.4.4 and 0.4.5 of the 'magique-ai' package and avoid using these versions. Exercise caution during cleanup due to the destructive capabilities of the malware. Monitor for any unauthorized package publishing activity using your credentials. Check vendor or PyPI advisories for updates or official guidance. Since this is not a cloud service, remediation depends on user action.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5294
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba5668715ace4357eec0
Added to database: 07/10/2026, 09:24:38 UTC
Last enriched: 07/10/2026, 09:43:03 UTC
Last updated: 07/22/2026, 03:38:58 UTC
Views: 9
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.