SafeDep
Install GitHub App
SafeDep
Install GitHub App

Summary

Not malware. Analytics package with session recording features. Suspicious behaviors are likely due to legitimate functionality.

Verification Record

No verification record available.

Details

The package posthog-js is a site analytics package, which inherently involves collecting user data and session recording. The presence of base64 encoding, dynamic script injection, and potential data exfiltration are concerning but can be explained by the legitimate use case of session recording and plugin injection for customization. YARA rule matches of type base64_shell_base64 on source map files are ignored. While the LLM-based analysis highlights potential vulnerabilities like data redaction bypass and cross-origin image loading issues, these are not strong indicators of malicious intent, but rather potential security flaws in the implementation of legitimate functionality. Therefore, based on the provided evidence, it is not possible to definitively classify this package as malware.

posthog-js@1.290.0Clean
Unverified
Analysed at: 11/13/25, 11:01 AM
Source: https://registry.npmjs.org/posthog-js/-/posthog-js-1.290.0.tgz
SHA256: 92a92dd7a3cf671d9ab29c1d7ef059161616e9b02ddc971971b10cb4b74cd95f
Confidence: Medium