richtext-editor-ui@1.0.0
Malicious code in richtext-editor-ui (npm)
Analysis
The postinstall hook (postinstall.js) is a staged remote-code-execution dropper. It ships a base64-encoded URL that decodes to hxxps://www[.]jsonkeeper[.]com/b/7EBZP, fetches whatever content is hosted at that URL via axios at install time, spawns a detached background node process with its stdin piped, and writes the fetched remote payload into that child process's stdin for immediate execution. The child runs detached and unref'd so it persists after npm install completes. The package name "richtext-editor-ui" is misleading — the shipped code references 'theta', not an editor UI. No repository URL is declared, the publisher is a new account with a single version, and the package has no meaningful functionality beyond this install-time remote code loader.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 07:54 PM
- analyzed
- Jun 12, 2026, 07:55 PM
Related advisories
- rapidsearch@1.1.0
- qbo-ui-services@45.0.0
- theta-kit@1.0.0
- prm-bundles@45.0.0
- poxios-chain@1.3.5
- polymarket-gamma-api@1.4.9
- polymarket-gamma-apis@1.4.0
- polygon-bitquery-apis@2.2.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.