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…

MAL-2026-6492: Malicious code in hexo-shoka-swiper (npm)

0
Critical
Published: 06/26/2026 (06/26/2026, 00:28:59 UTC)
Source: GCVE Database
Product: hexo-shoka-swiper

Description

The npm package hexo-shoka-swiper version 0.1.10 contains malicious code embedded in its binding.gyp file. This file uses GYP command-expansion syntax to execute arbitrary shell commands during installation via npm, leading to automatic execution of malicious code on the installer's machine. The package's intended function as a Hexo theme Swiper integration does not justify such behavior, indicating deliberate misuse of the build process to run unauthorized code. Installing this package can result in full system compromise, requiring immediate secret and key rotation and removal of the package, though complete remediation is not guaranteed due to potential persistent compromise.

Affected software

npmghsa
hexo-shoka-swiper
Affected versions
=0.1.10

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: 06/26/2026, 22:29:47 UTC

Technical Analysis

The hexo-shoka-swiper npm package version 0.1.10 includes a binding.gyp file that leverages GYP command-expansion syntax (<!(...)) to execute shell commands during the npm install process. Since npm automatically runs node-gyp rebuild when binding.gyp is present, this causes arbitrary shell code execution on the installer's machine without any declared install scripts. This behavior is malicious because the package's legitimate functionality as a front-end theme integration does not require native build steps or shell execution. The binding.gyp file is effectively used as a lifecycle hook to run arbitrary code, leading to full compromise of any system that installs this package.

Potential Impact

Systems that install hexo-shoka-swiper version 0.1.10 are subject to arbitrary code execution during installation, resulting in full compromise of the affected computer. Attackers may gain complete control, potentially accessing all stored secrets and keys. Removal of the package does not guarantee elimination of all malicious artifacts or backdoors, necessitating secret/key rotation and comprehensive incident response.

Mitigation Recommendations

No official patch or fix is currently available for this malicious package. The recommended mitigation is to immediately remove hexo-shoka-swiper version 0.1.10 from all systems. Additionally, all secrets and keys stored on affected machines should be rotated from a secure, uncompromised environment. Due to the potential for persistent compromise, further forensic analysis and remediation may be required. Avoid installing this package and audit dependencies to prevent inclusion of this malicious version.

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-6492
Osv Schema Version
1.7.4
Aliases
["GHSA-vwrj-pprq-gjvq"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a3ef7b127e9c79719ffb922

Added to database: 06/26/2026, 22:05:37 UTC

Last enriched: 06/26/2026, 22:29:47 UTC

Last updated: 06/26/2026, 22:29:47 UTC

Views: 2

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