Polymarket Trap npm Self-Upgrade: node.exe Overwrites node_modules Post-Install
Detects the Polymarket Trap technique where a Node.js process executes 'npm pack' during a post-install phase and subsequently overwrites core module files (e.g., index.js) within the node_modules directory. This behavior is used to evade static analysis and conceal malicious code within legitimate dependency files.
YARA-L

