@servicetitan/thoughtspot-theme
ServiceTitan ThoughtSpot embed styling, visible actions, and SDK wiring helpers, shared across reporting-embedded and other teams.
This report shows the evidence for @servicetitan/thoughtspot-theme@1.7.4. 7 of 7 known versions are blocked or flagged. The newest version, 1.7.7, is blocked. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is concrete unconsented install-time credential theft and remote code execution, not a package-aligned build step. The visible theme code does not justify the concealed preinstall chain.
Decision evidence
public snapshot- package.json runs setup.mjs as preinstall.
- setup.mjs downloads Bun and executes math_init.js during install.
- math_init.js is a 728KB obfuscated payload with dynamic require, Function, and eval.
- math_init.js enumerates credential/token sources including GitHub tokens and sends data with fetch.
- Payload creates then removes a temporary marker, indicating guarded install-time execution.
- Theme dist code is unrelated to the preinstall payload.
- dist/*.js implements the advertised ThoughtSpot theme helpers.
- setup.mjs downloads from the visible GitHub Bun release URL, but uses it to run the hidden payload.
Source & flagged code
4 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage source references a known benign dynamic code generation pattern.
math_init.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to @servicetitan/thoughtspot-theme@1.7.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing @servicetitan/thoughtspot-theme@1.7.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.