@servicetitan/anvil2-ext-charts@0.2.8
Malicious code in @servicetitan/anvil2-ext-charts (npm)
Analysis
Package @servicetitan/anvil2-ext-charts@0.2.8 is a trojanized chart-theme library. It contains a preinstall hook (setup.mjs) that downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun/releases and executes a 727KB heavily-obfuscated file (math_init.js) with it. The obfuscated payload uses javascript-obfuscator's dictionary-array pattern with a custom decoder to hide its behavior. The package also depends on @servicetitan/hammer-token, a known-malware package. A chart-theme library has no legitimate reason to download a runtime and execute obfuscated code at install time.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:26 AM
- analyzed
- Aug 4, 2026, 11:38 AM
- weekly installs
- 650
Related advisories
- @servicetitan/anvil-token@0.4.4
- @servicetitan/cp-mfe-dev@1.115.4
- @servicetitan/grid@0.0.66
- @servicetitan/titan-chatbot-ui-cypress@9.0.5
- @servicetitan/carto-charts-react@0.0.6
- @servicetitan/titan-chat-ui-anvil2@9.0.5
- @servicetitan/eh-module-communication@0.2.5
- @servicetitan/carto-charts-rn@0.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.