Malicious code in pf23727 (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f83e32460196d036eca65e46845ea4717a9d5e64a5c2360d657d1ae6c92dfe96) index.js is the package main and runs as an IIFE on require()/import. It reads document.cookie, slices document.body.innerHTML, and issues fetch('/profile', {credentials: 'include'}) to capture an authenticated response, then transmits the concatenated data via navigator.sendBeacon/fetch to a hardcoded collector at https://webhook.site/c4e39647-bfb8-47ef-b6d4-a112aacc6cd1. The destination is an unrelated third-party request-inspection service used as an exfiltration sink; the package has no declared legitimate purpose consistent with reading cookies or authenticated profile content. Behavior is a session-cookie and credentialed-response exfiltration payload rather than a functional library. ## Source: ghsa-malware (7b5508b450ed2def5348f6955f1ffd3cd20cda6e300d127d779e6d0c8606302d) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
MAL-2026-16338
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-16338
pf23727
Source reference: /affected/0/package/name
- Affected versions
- 1.0.0
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pf23727",
"purl": "pkg:npm/pf23727",
"ecosystem": "npm"
},
"versions": [
"1.0.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pf23727/MAL-2026-16338.json",
"indicators": {
"evidence_files": [
{
"path": "index.js",
"tlsh": "fae02be2b2ba10090711a1cd7067d495f5768041f883d698e2195f208a01066a9474da",
"sha256": "aa21df7aec3b68355d8379fe1307a1bcca75a9f1f700b1cefe474b6c3ea1a094"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "443afd982961b3cf296840612ae62e080477dbaa",
"sha512_sri": "sha512-izkEZD+PH1THiEsywg9OzIFibsgmz9GDBLuZEdMmOjqbBg7FpDMjMETFodP4QOYaIJw3oH6sljVanVQTAUfhrQ=="
},
"filename": "pf23727-1.0.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #59088 · Revision 1
- Added to Heist Feed
- Publisher date