@servicetitan/cp-react-hooks
CustomerPortal react hooks
This report shows the evidence for @servicetitan/cp-react-hooks@1.115.4. 7 of 7 known versions are blocked or flagged. The newest version, 1.115.7, is blocked. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThe lifecycle payload is materially unrelated to the advertised package and establishes remote code execution at install time. Obfuscation and credential-token logic reinforce malicious intent.
Decision evidence
public snapshot- package.json preinstall runs setup.mjs
- setup.mjs downloads Bun from github.com and executes math_init.js
- math_init.js is 727KB obfuscated executable payload
- math_init.js fetches data and evals decoded response
- math_init.js contains GitHub-token handling (ghtoken, ghs_old, ghs_jwt)
- Published dist/src are ordinary React hook exports
- No benign purpose connects this package to Bun bootstrap or token logic
Source & flagged code
5 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/cp-react-hooks@1.115.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing @servicetitan/cp-react-hooks@1.115.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.