Skip to main content
Menu
Advisories

Malicious code in pf25262 (npm)

GHSA-W55G-75G8-C4WJPublished Updated GitHubMalware

Description

Source: amazon-inspector (95274790fd43042ecd1fc97b2c01dc194e863809626cdaee5c7e6b0a411f8aeb)

index.js contains a browser exfiltration snippet that issues a credentialed fetch to /profile, extracts a DGA{...} token or falls back to capturing document.cookie plus the response length, and redirects the browser to a hardcoded collector URL at webhook.site/c4e39647-bfb8-47ef-b6d4-a112aacc6cd1/ with the captured data appended to the path. The package's entire shipped payload is this authenticated-session-data exfiltration snippet, sending same-origin credentials and cookies to an attacker-controlled webhook.site bin.

---

Credit: OpenSSF (source)

Affected versions

References

GitHub · ossf/malicious-packages

npmjs.com

GitHub Advisory Database