mal-2026-3200
Vulnerability from ossf_malicious_packages
Four pirate-themed npm packages (blackbeards-navigator, beusy, sirens-lament, gunpowder-ghost) were published by the npm account beusy with heavily inflated version numbers (209.0.0–210.0.0), a hallmark of dependency confusion attacks. Each package contains identical malicious lifecycle scripts (preinstall, install, and postinstall) that run on npm install, searching the entire filesystem (up to 8 directory levels deep) for HackTheBox CTF flags matching the pattern HTB{. If no flags are found, the scripts collect environment variables and /proc/1/environ as a fallback. The collected data is base64-encoded and exfiltrated via an HTTPS GET request to an attacker-controlled ngrok tunnel (https://7f83-194-51-113-30.ngrok-free.app), with the package name and hostname included as query parameters. The packages have no legitimate functionality; index.js exports an empty object.
This package (sirens-lament) identifies itself as pkg=sirens-lament in the exfil request. All three lifecycle hooks run the same payload, ensuring execution regardless of npm lifecycle ordering.
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (0bbd4aa6c17a69a37f660a2e68d207c7c934863bbe4008cd42ce11fc4942119a)
The package sirens-lament was found to contain malicious code.
Source: ghsa-malware (2ffd9830870bac2afdf00af5d5c56e2701885e2e66f2a09814d4e4087e696fad)
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.
Source: ossf-package-analysis (505243e234dcc2c15fba33a376390255cb450db37d0257633a91ac048910d85b)
The OpenSSF Package Analysis project identified 'sirens-lament' @ 217.0.0 (npm) as malicious.
It is considered malicious because:
-
The package communicates with a domain associated with malicious activity.
-
The package executes one or more commands associated with malicious behavior.
- 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": "sirens-lament"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"217.0.0",
"211.0.0",
"213.0.0",
"212.0.0",
"214.0.0",
"219.0.0",
"220.0.0",
"225.0.0",
"209.0.0",
"210.0.0"
]
}
],
"aliases": [
"GHSA-j844-qq6j-rj39"
],
"credits": [
{
"contact": [
"actran@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
},
{
"contact": [
"https://github.com/ossf/package-analysis",
"https://openssf.slack.com/channels/package_analysis"
],
"name": "OpenSSF: Package Analysis",
"type": "FINDER"
},
{
"contact": [
"https://safedep.io"
],
"name": "SafeDep",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"import_time": "2026-04-30T14:17:25.92672695Z",
"modified_time": "2026-04-30T14:15:44Z",
"sha256": "505243e234dcc2c15fba33a376390255cb450db37d0257633a91ac048910d85b",
"source": "ossf-package-analysis",
"versions": [
"217.0.0"
]
},
{
"import_time": "2026-04-30T14:17:24.538537099Z",
"modified_time": "2026-04-30T13:36:19Z",
"sha256": "81d7267ca38199726a888b3da9f97fb4734357f0634f0a7d9644538549c6f1d3",
"source": "ossf-package-analysis",
"versions": [
"211.0.0"
]
},
{
"import_time": "2026-04-30T14:17:25.001049269Z",
"modified_time": "2026-04-30T13:41:10Z",
"sha256": "9242ba02db88633c8a2a19d39b4a4191f5f667cfade6c8e67743f08ab5cfb15d",
"source": "ossf-package-analysis",
"versions": [
"213.0.0"
]
},
{
"import_time": "2026-04-30T14:17:24.64569439Z",
"modified_time": "2026-04-30T13:36:32Z",
"sha256": "92e8d4bd28b0a946f3bdfe824a78d9e57a7d02018bbe39f1dfc1e4b5775ef7c5",
"source": "ossf-package-analysis",
"versions": [
"212.0.0"
]
},
{
"import_time": "2026-04-30T14:17:25.662463817Z",
"modified_time": "2026-04-30T14:00:53Z",
"sha256": "9dbeb052333914a9daec66c2ddcac905ccf9d86e1932bf173c5d1275b4f946e6",
"source": "ossf-package-analysis",
"versions": [
"214.0.0"
]
},
{
"import_time": "2026-04-30T15:17:01.000378085Z",
"modified_time": "2026-04-30T14:36:04Z",
"sha256": "80fc28b3298ed9f8cc4136eb5ba4fa820a62378d3cc34d8dd797b35776f12f95",
"source": "ossf-package-analysis",
"versions": [
"219.0.0"
]
},
{
"import_time": "2026-04-30T15:17:01.137971069Z",
"modified_time": "2026-04-30T14:40:52Z",
"sha256": "9615ba51cb10acf715a4e178e65d3641bf70e0238ce2e81e48703fab9431cf1f",
"source": "ossf-package-analysis",
"versions": [
"220.0.0"
]
},
{
"import_time": "2026-04-30T15:17:01.077446244Z",
"modified_time": "2026-04-30T14:40:50Z",
"sha256": "a05a91d9627585aeb842fe14a19760dc9be77aada5cd139ec0d30ca1b5dab44d",
"source": "ossf-package-analysis",
"versions": [
"225.0.0"
]
},
{
"import_time": "2026-04-30T22:23:10.640345424Z",
"modified_time": "2026-04-30T21:59:18Z",
"sha256": "0bbd4aa6c17a69a37f660a2e68d207c7c934863bbe4008cd42ce11fc4942119a",
"source": "amazon-inspector",
"versions": [
"217.0.0",
"211.0.0",
"213.0.0",
"212.0.0",
"214.0.0",
"219.0.0",
"220.0.0",
"225.0.0"
]
},
{
"id": "GHSA-j844-qq6j-rj39",
"import_time": "2026-05-01T08:55:09.035217379Z",
"modified_time": "2026-05-01T08:13:07Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "2ffd9830870bac2afdf00af5d5c56e2701885e2e66f2a09814d4e4087e696fad",
"source": "ghsa-malware"
}
]
},
"details": "Four pirate-themed npm packages (`blackbeards-navigator`, `beusy`, `sirens-lament`, `gunpowder-ghost`) were published by the npm account `beusy` with heavily inflated version numbers (209.0.0\u2013210.0.0), a hallmark of dependency confusion attacks. Each package contains identical malicious lifecycle scripts (`preinstall`, `install`, and `postinstall`) that run on npm install, searching the entire filesystem (up to 8 directory levels deep) for HackTheBox CTF flags matching the pattern `HTB{`. If no flags are found, the scripts collect environment variables and `/proc/1/environ` as a fallback. The collected data is base64-encoded and exfiltrated via an HTTPS GET request to an attacker-controlled ngrok tunnel (`https://7f83-194-51-113-30.ngrok-free.app`), with the package name and hostname included as query parameters. The packages have no legitimate functionality; `index.js` exports an empty object.\n\nThis package (`sirens-lament`) identifies itself as `pkg=sirens-lament` in the exfil request. All three lifecycle hooks run the same payload, ensuring execution regardless of npm lifecycle ordering.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0bbd4aa6c17a69a37f660a2e68d207c7c934863bbe4008cd42ce11fc4942119a)\nThe package sirens-lament was found to contain malicious code.\n\n## Source: ghsa-malware (2ffd9830870bac2afdf00af5d5c56e2701885e2e66f2a09814d4e4087e696fad)\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\n## Source: ossf-package-analysis (505243e234dcc2c15fba33a376390255cb450db37d0257633a91ac048910d85b)\nThe OpenSSF Package Analysis project identified \u0027sirens-lament\u0027 @ 217.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n",
"id": "MAL-2026-3200",
"modified": "2026-05-01T08:57:03Z",
"published": "2026-04-30T12:00:00Z",
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-j844-qq6j-rj39"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in sirens-lament (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.