@servicetitan/marketing-integration-widgets@1.0.44
Malicious code in @servicetitan/marketing-integration-widgets (npm)
Analysis
The package @servicetitan/marketing-integration-widgets@1.0.44 is a trojanized version of a legitimate ServiceTitan package. The preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun/releases/download/bun-v1.3.13/ and executes a 727KB heavily-obfuscated payload file (math_init.js) through it. The sibling package @servicetitan/examples@1.2.8, published by the same compromised account on the same day, was confirmed at runtime to fetch remote content and eval-execute it, and to make DNS queries to a sinkholed domain. The obfuscated payload in math_init.js is consistent with a remote-code-execution dropper that reaches out to attacker-controlled infrastructure.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:24 AM
- analyzed
- Aug 4, 2026, 11:33 AM
Related advisories
- @servicetitan/anvil-token@0.4.4
- @servicetitan/cp-mfe-dev@1.115.4
- @servicetitan/grid@0.0.66
- @servicetitan/contentful@0.0.7
- @servicetitan/examples@1.2.9
- @servicetitan/forge@0.5.5
- @servicetitan/micro-frontend@0.0.8
- @servicetitan/titan-chatbot-client@2.1.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.