Polymarket Trap npm Self-Upgrade: node.exe Overwriting node_modules Post-Install
Detects malicious npm package behavior where a package uses 'npm pack' and associated script files (e.g., sync-peer.cjs) to download and overwrite its own installed files. This technique is often used in software supply chain attacks to bypass static analysis of the original package tarball by fetching a second, malicious version at runtime.
Microsoft Sentinel (KQL)

