Malicious code in serpacksven (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (89aa9ce877a176ce5c26aec2bce6e397ad287a6f26f625870cd5d6a5bef60cc9) The tarball contains only package.json and json.txt. The declared main (index.js) is absent, so requiring the package fails — the package is not a functional JS library. json.txt is a heavily obfuscated PowerShell script that hides the console window via GetConsoleWindow + ShowWindow(0) and SetWindowPos to offscreen coordinates (-32000,-32000), performs randomized sleeps and junk-variable noise, concatenates ~150 base64 string fragments into one buffer, base64-decodes and XOR-decrypts it with key 89, then reflectively loads the decoded bytes as a.NET assembly through a runtime-constructed [System.Reflection.Assembly]::Load invocation whose type and method names are rebuilt from char-code arithmetic. The in-memory.NET payload is opaque and attacker-controlled. The package has no lifecycle scripts, so installation alone does not execute json.txt, but any environment that invokes the shipped file via powershell will run the embedded payload. The disguised.txt extension, cover-story main entry, console-hiding, anti-analysis obfuscation, and reflective load of an opaque buffer are the signature of a malware staging artifact rather than legitimate tooling. ## Source: ghsa-malware (83d5c9ee440368733b7e3a6f0d61ab1dd3bd40ae8ef178b67ff5e550bc7b3dca) Any computer that has this package installed or running should be considered fully co
MAL-2026-17625
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-17625
serpacksven
Source reference: /affected/0/package/name
- Affected versions
- 1.0.1
Source reference:
/affected/0/versions1.0.0Source reference:
/affected/0/versions1.0.4Source reference:
/affected/0/versions1.0.2Source 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": "serpacksven",
"purl": "pkg:npm/serpacksven",
"ecosystem": "npm"
},
"versions": [
"1.0.1",
"1.0.0",
"1.0.4",
"1.0.2"
],
"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."
},
{
"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."
},
{
"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/serpacksven/MAL-2026-17625.json",
"indicators": {
"evidence_files": [
{
"path": "client",
"tlsh": "74a2af3c916097feec69e74549a3940a65257cf2c4a42c072f1ace6f54a7ec4ecbc18b",
"sha256": "e9dff49447937f8225a73dc235e067de051240d89523b6846813f7a2cd21a8fa"
},
{
"path": "package.json",
"tlsh": "e8d05e288aa2953305c556330d6a9652a661ee6f10447c0c37df241c87dfab26dfa26c",
"sha256": "cddd7b2571537c199762242e50ef2804639b851ddebd1f47cdd21a7c179fa1c7"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #86368 · Revision 1
- Added to Heist Feed
- Publisher date