create-xuejp@1.0.8
Malicious code in create-xuejp (npm)
Analysis
The create-xuejp scaffold ships a hidden credential-harvesting userscript inside its bundled project templates. template/youhou/src/scripts/watch-input/index.js (and its built copy template/youhou/dist/watch-input/index.js) is a Tampermonkey-style script declaring @match for hxxps://www[.]baidu[.]com/, hxxps://www[.]douyin[.]com/* and hxxp://127[.]0[.]0[.]1, loading yh-utils from hxxps://xuejiangping[.]github[.]io/youhou/dist/utils/yh-utils.umd.cjs. Through features/WatchInput.js it binds a change listener to the page's #chat-textarea, reads the value the user types and POSTs it as JSON ({"value": ...}) to the hardcoded plain-HTTP endpoint hxxp://106[.]12[.]9[.]249:1234/yh-get-input; two further endpoints /xjp and /yh-test1 are defined in the same file and used by the accompanying template. The same template's index.html presents username and password fields (id="id", id="password"), so input entered on the scaffolded page is sent to that raw IP address over unencrypted HTTP. The scaffold's own documentation describes installing remote templates from ~/.xuejprc and cloning/downloading them, so the userscript reaches developers who run npm create xuejp.
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 01:06 AM
- analyzed
- Nov 18, 2026, 01:08 AM
hxxps://github[.]com/xuejiangping/create-xuejp Request takedown / dispute →Related advisories
- create-xuejp@1.0.7 same package
- @jiancodes/baileys@2.0.5
- @risacakep/risayap@7.0.0-rc25.15
- @lasha_lasha/helper@1.0.0
- thienc-cdn@1.0.0
- node-bs58.js@3.0.0
- node-bs58.js@4.0.0
- node-bs58.js@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.