SafeDep
Install GitHub App

Summary

Note: This report is updated by a verification record

Multiple YARA matches indicate suspicious behavior: bash persistence attempts and execution of external command during preinstall. Likely malware.

Verification Record

Confirmed malicious package as part of coordinated supply chain attack targeting npm ecosystem

Details

Note: This report is updated by a verification record

The package exhibits multiple suspicious behaviors based on YARA rule matches. Specifically, the bash_persist_persistent rule is triggered in bun_environment.js and setup_bun.js, indicating attempts to access and modify bash startup files for persistence. Additionally, the npm_preinstall_command rule is triggered in package.json, suggesting the execution of an external command during the preinstall phase, which is a common technique used by malicious packages to execute arbitrary code. The combination of these behaviors raises significant concerns about the package's safety.

posthog-node@4.18.1Malicious
Verified
Analysed at: 11/24/25, 4:14 AM
Source: https://registry.npmjs.org/posthog-node/-/posthog-node-4.18.1.tgz
SHA256: 52950150345b2d9a0d902dbafb8a08e7b4b0215776abb3b85b4c5536b15e5fa6
Confidence: High