@servicetitan/examples@1.2.9
Malicious code in @servicetitan/examples (npm)
T1059.007 · JavaScriptT1195.002 · Compromise Software Supply ChainT1027 · Obfuscated Files or InformationT1105 · Ingress Tool Transfer
Analysis
The package's preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun/releases and uses it to execute a heavily obfuscated 727KB payload (math_init.js) at install time. The payload is obfuscated with javascript-obfuscator (thousands of _0x-prefixed identifiers, eval, child_process references) to hide its behaviour. The package also depends on 17 sibling @servicetitan/* packages that are known malware. The dist/bundle/ directory contains legitimate ServiceTitan UI component examples as cover content.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:22 AM
- analyzed
- Aug 4, 2026, 11:31 AM
Related advisories
- @servicetitan/examples@1.2.8 same package
- @servicetitan/anvil-token@0.4.4
- @servicetitan/cp-mfe-dev@1.115.4
- @servicetitan/grid@0.0.66
- @servicetitan/forge@0.5.5
- @servicetitan/micro-frontend@0.0.8
- @servicetitan/titan-chatbot-client@2.1.7
- @servicetitan/titan-chatbot-ui-anvil2@9.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.