use-sync-external-store-shim@2.2.0
Malicious code in use-sync-external-store-shim (npm)
Analysis
The package ships an 846-byte `index.js` that runs automatically at install time via `postinstall: node index.js`, and provides no other functionality despite its name mirroring the widely used `use-sync-external-store` package. The hook prints the host name and working directory to stdout, generates a random UUID, and sends an HTTP POST to hxxps://webhook[.]site/b4ea4473-01d9-4763-9e39-3b02063219d5 with the JSON body {"event":"authorized-poc-test","testId":"<random-uuid>","status":"executed"}, then logs the HTTP status. The callback body carries only a random identifier and a status string; the package does not read environment variables, credential files, npm configuration, wallet data, or file contents. The publisher-declared description is "security testiong only" and the log lines are prefixed "[POC]", consistent with an install-time beacon probe published under a combosquat name to confirm that install hooks execute in target pipelines before a payload is staged.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 10:06 AM
- analyzed
- Nov 25, 2026, 10:07 AM
Related advisories
- use-sync-external-store-shim@0.0.0-stage same package
- @ruaxbonz/tooltreovip@1.0.1
- aia-b-locator-fe@1.0.2
- aia-b-locator-fe@1.0.1
- @callmewanz/bails@1.0.0
- @kingorwot/my-baileys@2.0.0
- @kingorwot/my-baileys@1.0.0
- @agentgates/cli@0.89.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.