@servicetitan/eh-module-communication@0.2.5
Malicious code in @servicetitan/eh-module-communication (npm)
Analysis
@servicetitan/eh-module-communication@0.2.5 is a trojanized clone of a legitimate ServiceTitan internal package. The preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun, extracts it, and executes a 727KB heavily-obfuscated payload file (math_init.js) through Bun. The obfuscated payload uses javascript-obfuscator-style encoding with a large constant array and base64-like string decoding. The package also depends on @servicetitan/log-service, a known malware package. The publisher account was compromised and used to trojanize this legitimate-scoped package.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:26 AM
- analyzed
- Aug 4, 2026, 11:35 AM
Related advisories
- @servicetitan/anvil-token@0.4.4
- @servicetitan/cp-mfe-dev@1.115.4
- @servicetitan/grid@0.0.66
- @servicetitan/carto-charts-rn@0.0.6
- @servicetitan/anvil-react@0.11.7
- @servicetitan/marketing-integration-widgets@1.0.44
- @servicetitan/contentful@0.0.7
- @servicetitan/examples@1.2.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.