MAL-2026-10417: Malicious code in minigptcore (npm)
The minigptcore npm package version 4.0.8 contains malicious code that executes during installation. Its preinstall script runs a Windows command to invoke mshta.exe, which fetches and executes an unverified HTA script from an external HTTP domain. This behavior allows remote code execution with the privileges of the user running npm install. The package metadata is minimal and generic, indicating a likely throwaway malicious upload.
AI Analysis
Technical Summary
The minigptcore package version 4.0.8 includes a preinstall script (preinstall.js) that executes a Windows command to run mshta.exe, fetching an HTA script from a hardcoded external URL over unencrypted HTTP. The fetched script is unpinned and unverified, unrelated to the package's intended functionality, and executes with the user's privileges during npm install. The package.json contains placeholder metadata consistent with a malicious dropper rather than a legitimate package. This constitutes a remote code execution threat via supply chain compromise in the npm ecosystem.
Potential Impact
Successful installation of this package version results in arbitrary code execution on the affected Windows system with the privileges of the installing user. This can lead to system compromise, data theft, or further malware deployment. The malicious payload is delivered via an untrusted external source over HTTP, increasing the risk of interception or modification.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing minigptcore version 4.0.8. Verify package authenticity before installation and prefer packages from trusted sources. Monitor npm repositories for updates or removals of this package. Since this is a malicious package upload, removal from the npm registry by maintainers or npm security teams is expected. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
MAL-2026-10417: Malicious code in minigptcore (npm)
Description
The minigptcore npm package version 4.0.8 contains malicious code that executes during installation. Its preinstall script runs a Windows command to invoke mshta.exe, which fetches and executes an unverified HTA script from an external HTTP domain. This behavior allows remote code execution with the privileges of the user running npm install. The package metadata is minimal and generic, indicating a likely throwaway malicious upload.
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 minigptcore package version 4.0.8 includes a preinstall script (preinstall.js) that executes a Windows command to run mshta.exe, fetching an HTA script from a hardcoded external URL over unencrypted HTTP. The fetched script is unpinned and unverified, unrelated to the package's intended functionality, and executes with the user's privileges during npm install. The package.json contains placeholder metadata consistent with a malicious dropper rather than a legitimate package. This constitutes a remote code execution threat via supply chain compromise in the npm ecosystem.
Potential Impact
Successful installation of this package version results in arbitrary code execution on the affected Windows system with the privileges of the installing user. This can lead to system compromise, data theft, or further malware deployment. The malicious payload is delivered via an untrusted external source over HTTP, increasing the risk of interception or modification.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing minigptcore version 4.0.8. Verify package authenticity before installation and prefer packages from trusted sources. Monitor npm repositories for updates or removals of this package. Since this is a malicious package upload, removal from the npm registry by maintainers or npm security teams is expected. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10417
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ad9c68715ace438f3ce9
Added to database: 07/13/2026, 09:19:24 UTC
Last enriched: 07/13/2026, 09:27:06 UTC
Last updated: 07/13/2026, 14:21:10 UTC
Views: 3
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.