Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in magique (PyPI)

0
Critical
Published: 06/06/2026 (06/06/2026, 06:13:57 UTC)
Source: GCVE Database
Product: magique

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b441b436c1f6aeba65c2af68c71655ed5aac95b0eb2ae4c402fc090c475ba887) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: kam193 (f5d3bf9e3bbd5c258d251ade5a15f3383a47a53ddd399d7cd3db2aee5cec45c4) Versions 0.6.8, 0.6.9 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

PyPIghsa
magique
Affected versions
=0.6.8=0.6.9

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: 07/10/2026, 09:35:51 UTC

Technical Analysis

The 'magique' PyPI package versions 0.6.8 and 0.6.9 were compromised to include an obfuscated JavaScript infostealer executed with the Bun runtime at Python startup. This malware collects a wide range of sensitive information such as environment variables, cloud tokens, credentials, and cryptocurrency data. It actively queries online services to gather additional secrets and attempts to maintain persistence and spread by publishing infected packages using stolen credentials. Data exfiltration is likely conducted via GitHub. The malicious code also includes destructive capabilities, threatening to wipe user data if invalid GitHub tokens are detected. The campaign is associated with the Mini Shai Hulud threat actor group and employs sandbox evasion techniques.

Potential Impact

Users of 'magique' versions 0.6.8 and 0.6.9 risk exposure of sensitive information including API keys, credentials for package repositories, cryptocurrency assets, and password manager data. The malware's persistence and propagation mechanisms increase the risk of further infections and supply chain compromise. Data exfiltration through GitHub can lead to widespread credential leakage. The destructive payload may result in data loss if triggered. Overall, this represents a significant compromise of confidentiality, integrity, and availability for affected users.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately discontinue use of 'magique' versions 0.6.8 and 0.6.9. Conduct thorough system and environment scans for the presence of the malicious code and related artifacts. Exercise extreme caution during cleanup due to the destructive potential of the malware. Review and rotate all potentially exposed credentials, API keys, and tokens. Monitor for unauthorized package publishing activity in repositories. Follow updates from the package maintainers or PyPI security teams for any official advisories or fixes. Patch status is not yet confirmed — check the vendor advisory or PyPI security notices for current remediation guidance.

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-5296
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["PyPI"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba4568715ace4357e5b1

Added to database: 07/10/2026, 09:24:21 UTC

Last enriched: 07/10/2026, 09:35:51 UTC

Last updated: 07/31/2026, 09:40:21 UTC

Views: 6

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