Skip to main content
MalwarePublished

hexo-shoka-swiper (npm) · Malicious Code

Affects hexo-shoka-swiperSource GCVE Database

0

Malicious package : remove hexo-shoka-swiper and rotate any secrets on hosts that installed it.

Data as of 26 Jun 2026, 22:29 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6492

What to do

Remove hexo-shoka-swiper from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmhexo-shoka-swiperAffected
  • =0.1.10
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…