@servicetitan/carto-charts-core@0.0.6
Malicious code in @servicetitan/carto-charts-core (npm)
Analysis
The package's preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun and executes a 727KB heavily-obfuscated script, math_init.js, during npm install. The script is obfuscated with a javascript-obfuscator string-array/decoder pattern that hides its behavior from inspection. The package's declared purpose is an ECharts chart-theming library, and its shipped dist/ code is a normal chart library — the obfuscated install-time payload is unrelated to that purpose and runs automatically on every install. The payload's network and data-access behavior is concealed by the obfuscation.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:48 AM
- analyzed
- Aug 4, 2026, 02:22 PM
- weekly installs
- 169
Related advisories
- @servicetitan/anvil-token@0.4.4
- @servicetitan/cp-mfe-dev@1.115.4
- @servicetitan/grid@0.0.66
- @onereach/step-run-snowflake-query@0.1.3
- @workbench-stack/core@3.9.8
- @servicetitan/quick-actions@1.15.5
- @servicetitan/html-sketchapp@4.2.11
- @onereach/si-alert@0.4.13
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.