Malicious code in pflag14570 (npm)
Description
Source: amazon-inspector (2b7164c1405ab2587c562b3b9eb8cdad8258aab8f25b829da64c83d7185eab6c)
index.js is an IIFE that executes at module load, reads document.cookie, fetches a list of authenticated application paths (/profile, /admin, /api/me, /settings, and similar), extracts a flag-shaped substring from the responses, and POSTs the aggregated JSON to the hardcoded collector webhook.site/
---