@servicetitan/contentful@0.0.7
Malicious code in @servicetitan/contentful (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · 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, then uses it to execute a heavily obfuscated 727KB payload file (math_init.js). The payload is a Bun-compiled bundle containing eval, Function constructor, and child_process calls with an extensive base64-encoded string table. The package depends on @servicetitan/react-hooks. The package name impersonates a legitimate ServiceTitan Contentful integration library.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:26 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/examples@1.2.9
- @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.