Malicious code in get-power (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e261e4010770fc43fd02cf8c9add484ea5f8a92a21f60682f2aea73f0ce110f7) get-power impersonates ljharb's get-proto utility (package.json declares author 'Jordan Harband ' and homepage github.com/ljharb/get-power) while mirroring get-proto's file layout as cover. On require(), index.js base64-decodes two bundled files disguised as sourcemaps (parse.ts.map, init.ts.map) into parsetmp.js and config.js, require()s parsetmp.js, then fs.unlink()s all four files to erase traces. The decoded payload fetches an AES-256-CBC encrypted blob from https://www.jsonkeeper.com/b/V6NBX via axios, decrypts it with a hardcoded password/salt, and eval()s the plaintext. Whoever controls that paste has arbitrary code execution on any host that installs and loads the package. ## Source: ghsa-malware (a70fd3999ba803e9c66c173bd4e80825b278778f5f3838ab8b29c792a406ae22) 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-16156
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-16156
get-power
Source reference: /affected/0/package/name
- Affected versions
- 1.0.3
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": "get-power",
"purl": "pkg:npm/get-power",
"ecosystem": "npm"
},
"versions": [
"1.0.3"
],
"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/get-power/MAL-2026-16156.json",
"indicators": {
"evidence_files": [
{
"path": "index.js",
"tlsh": "cf41247d27aa012b40d393d79561484e730d5ab6711ec9826d8c45622edb0ec1eefca8",
"sha256": "30ce083fc334cc449dd01960e48fb616e7091ddb2c660a9b1179b93c4fcd9b05"
},
{
"path": "package.json",
"tlsh": "76411223d669c9f306c05abcba1d54c2a6be41749890ecce8de17a71c1dd472113f78a",
"sha256": "9fec3ed692485e8c2f67ae49cff9ca06f39fdb0e28244f4225310ce6080191af"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "811001a696d3b0cb1676e8522fa3d2d1694ca61c",
"sha512_sri": "sha512-RtXfFpoqZ/NkMMM+xnxcC0HMuKyYRHIWcKUalWAkQtCAv6uSQ0IDeOSWjVyUkeiz1CNERA6SK6FLgtqPh+nxHA=="
},
"filename": "get-power-1.0.3.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #36993 · Revision 1
- Added to Heist Feed
- Publisher date