mal-2026-4988
Vulnerability from ossf_malicious_packages
Part of a dependency confusion attack campaign targeting the @cloudplatform-single-spa and @mlspace npm scopes. The attacker (npm user mr.4nd3r50n) published 139 scoped packages at the inflated version 99.99.99, which resolves ahead of any private registry version via npm's default version resolution, silently hijacking installs of internal packages.
On installation, the postinstall hook executes scripts/postinstall.js. The script waits 3 seconds (sandbox evasion), then downloads an OS-specific second-stage JavaScript payload from https://oob.moika.tech/payload/{mac|win|linux}.js, writes it to a temporary file (._cloudplatform-single-spa_init.js in the system temp directory), and spawns it as a detached Node.js process that continues running after npm exits. The payload exfiltrates the full process.env (environment variables including secrets, tokens, and credentials), along with hostname, username, platform, architecture, and working directory, to the C2 endpoint https://oob.moika.tech/report. If the second-stage download fails, a fallback beacon containing the same system details is sent to the same endpoint.
-= Per source details. Do not edit below this line.=-
Source: ghsa-malware (430d87f7c797647bd1287676134270942f7d2afe2ee5e6a5123c41bc6ffa2796)
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.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
]
},
"package": {
"ecosystem": "npm",
"name": "@cloudplatform-single-spa/svp-s3-storage"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
]
}
],
"aliases": [
"GHSA-228p-vq38-23gh"
],
"credits": [
{
"contact": [
"https://safedep.io"
],
"name": "SafeDep",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "GHSA-228p-vq38-23gh",
"import_time": "2026-05-29T23:43:53.233878391Z",
"modified_time": "2026-05-29T22:54:17Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "430d87f7c797647bd1287676134270942f7d2afe2ee5e6a5123c41bc6ffa2796",
"source": "ghsa-malware"
}
]
},
"details": "Part of a dependency confusion attack campaign targeting the `@cloudplatform-single-spa` and `@mlspace` npm scopes. The attacker (npm user **mr.4nd3r50n**) published 139 scoped packages at the inflated version `99.99.99`, which resolves ahead of any private registry version via npm\u0027s default version resolution, silently hijacking installs of internal packages.\n\nOn installation, the `postinstall` hook executes `scripts/postinstall.js`. The script waits 3 seconds (sandbox evasion), then downloads an OS-specific second-stage JavaScript payload from `https://oob.moika.tech/payload/{mac|win|linux}.js`, writes it to a temporary file (`._cloudplatform-single-spa_init.js` in the system temp directory), and spawns it as a detached Node.js process that continues running after npm exits. The payload exfiltrates the full `process.env` (environment variables including secrets, tokens, and credentials), along with hostname, username, platform, architecture, and working directory, to the C2 endpoint `https://oob.moika.tech/report`. If the second-stage download fails, a fallback beacon containing the same system details is sent to the same endpoint.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (430d87f7c797647bd1287676134270942f7d2afe2ee5e6a5123c41bc6ffa2796)\nAny 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.\n",
"id": "MAL-2026-4988",
"modified": "2026-05-29T23:44:59Z",
"published": "2026-05-28T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://safedep.io/oob-moika-tech-dependency-confusion-campaign/"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-228p-vq38-23gh"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in @cloudplatform-single-spa/svp-s3-storage (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.