MAL-2026-20346
Vulnerability from ossf_malicious_packages – Published: 2026-11-23 08:08 – Updated: 2026-11-23 08:19 – Source website| Ecosystem | Package | Versions |
|---|---|---|
| npm |
array-flatten-utils
|
1.0.21.0.51.0.11.0.4
|
The package presents itself as a trivial array utility (flatten/compact/unique) and mimics the name of the well-known array-flatten library, but index.js top-level loads a platform-specific native addon (native_win.node / native_mac.node / native.napi.node) inside a swallowed try/catch at require() time. The native addons read a shipped 6.7MB high-entropy .napi_cache blob, decode it, write it to a cache path (%s.nc%lu.js), and execute it as JavaScript via node "<path>" + CreateProcessA on Windows, and via fork + setsid + execlp with an __IS_DAEMON re-exec flag on Linux/macOS to detach the dropped process. The Windows loader additionally calls SetFileAttributesA to hide the dropped .nc<uid>.js file in TEMP. Execution is gated to CI/build environments by checking a wide list of CI env vars (GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NETLIFY, VERCEL, NOW_GITHUB_DEPLOYMENT, CF_BUILD_ID, SCREWDRIVER) and skipped when analysis tools or debuggers are detected (wireshark, procmon, procexp, x64dbg, ollydbg, fiddler, httpdebug, IsDebuggerPresent, CheckRemoteDebuggerPresent, /proc/self/status TracerPid, /proc/1/cgroup containerd). A pure-JS array helper has no legitimate reason to ship three native addons plus a 6.7MB opaque blob; the trivial JS surface is a cover story over an obfuscated staged loader targeting CI environments where credentials and deploy tokens are concentrated.
No description from this source.
No description from this source.
No description from this source.
| Type | Indicator | Hashes |
|---|---|---|
| Evidence file |
index.js
|
sha256
80eca5a62e5a0f5e51398e6899471b345316a2132ce95683fda92086e044f06atlsh
d901b1c93bf8714c166425f523edc686e4e1d421814e475dca8ea5b51ad4ca0af2ccff |
| Evidence file |
native_win.node
|
sha256
cdefbd4ff465d8a990586513587862d6b66c6cb3fc78d01a7699b5cf3d8e7432tlsh
2f945c94b381fdf6dc494b7418d25309a37af081a71eeb3b6624fe3c0a5ab98dc63544 |
| Evidence file |
package.json
|
sha256
44a69a72391fb6c850319c2d2f56f75fcf3efca85256a07fe11e61082364295ftlsh
85d0a9648a21ac3300c69e251b28428612900d1b4002be58330b642c6ba97bb60ff20d |
| Package archive |
array-flatten-utils-1.0.2.tgz
|
sha1
5d3abf6b436b0d5157d222c27c26ab4e0f06d7ccsha512_sri
sha512-FKgfIbAdF4BJ52uwk+bcycp2aWWxdGOD8Ydt5hmQnhBLRKN1RG6O69rfbEMC68X3tLlyY1QXfI0tmHc91yTX3A== |
- CWE-506 - Embedded Malicious Code
{
"affected": [
{
"database_specific": {
"cwes": [
{
"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"
}
],
"indicators": {
"evidence_files": [
{
"path": "index.js",
"sha256": "80eca5a62e5a0f5e51398e6899471b345316a2132ce95683fda92086e044f06a",
"tlsh": "d901b1c93bf8714c166425f523edc686e4e1d421814e475dca8ea5b51ad4ca0af2ccff"
},
{
"path": "native_win.node",
"sha256": "cdefbd4ff465d8a990586513587862d6b66c6cb3fc78d01a7699b5cf3d8e7432",
"tlsh": "2f945c94b381fdf6dc494b7418d25309a37af081a71eeb3b6624fe3c0a5ab98dc63544"
},
{
"path": "package.json",
"sha256": "44a69a72391fb6c850319c2d2f56f75fcf3efca85256a07fe11e61082364295f",
"tlsh": "85d0a9648a21ac3300c69e251b28428612900d1b4002be58330b642c6ba97bb60ff20d"
}
],
"package_integrity": [
{
"filename": "array-flatten-utils-1.0.2.tgz",
"hashes": {
"sha1": "5d3abf6b436b0d5157d222c27c26ab4e0f06d7cc",
"sha512_sri": "sha512-FKgfIbAdF4BJ52uwk+bcycp2aWWxdGOD8Ydt5hmQnhBLRKN1RG6O69rfbEMC68X3tLlyY1QXfI0tmHc91yTX3A=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "array-flatten-utils"
},
"versions": [
"1.0.2",
"1.0.5",
"1.0.1",
"1.0.4"
]
}
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-023045",
"import_time": "2026-11-23T08:17:31.350768839Z",
"modified_time": "2026-11-23T08:08:04Z",
"sha256": "1223f15f9524856b6d7d92998310a6413cfc005c935ef5fcd1c639af2db44240",
"source": "amazon-inspector",
"versions": [
"1.0.2"
]
},
{
"id": "IN-MAL-2026-023046",
"import_time": "2026-11-23T08:17:31.400355651Z",
"modified_time": "2026-11-23T08:08:12Z",
"sha256": "48d3d3c9a8ee948f45acdef2355140fb44bd2fe21ab48d0da8b972d0e93e7dfc",
"source": "amazon-inspector",
"versions": [
"1.0.5"
]
},
{
"id": "IN-MAL-2026-023050",
"import_time": "2026-11-23T08:17:31.503960824Z",
"modified_time": "2026-11-23T08:08:39Z",
"sha256": "6cd3524a12dae90b2d80296cd69b5971e84fc267d12909cbe88229c4ba5898d7",
"source": "amazon-inspector",
"versions": [
"1.0.1"
]
},
{
"id": "IN-MAL-2026-023049",
"import_time": "2026-11-23T08:17:31.476564471Z",
"modified_time": "2026-11-23T08:08:33Z",
"sha256": "cdb346e8abad3e2b94a726c46bf340d1468ae52a77d1ce919388d7691ec0bceb",
"source": "amazon-inspector",
"versions": [
"1.0.4"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (48d3d3c9a8ee948f45acdef2355140fb44bd2fe21ab48d0da8b972d0e93e7dfc)\nThe package presents itself as a trivial array utility (flatten/compact/unique) and mimics the name of the well-known `array-flatten` library, but index.js top-level loads a platform-specific native addon (`native_win.node` / `native_mac.node` / `native.napi.node`) inside a swallowed try/catch at require() time. The native addons read a shipped 6.7MB high-entropy `.napi_cache` blob, decode it, write it to a cache path (`%s.nc%lu.js`), and execute it as JavaScript via `node \"\u003cpath\u003e\"` + CreateProcessA on Windows, and via fork + setsid + execlp with an `__IS_DAEMON` re-exec flag on Linux/macOS to detach the dropped process. The Windows loader additionally calls SetFileAttributesA to hide the dropped `.nc\u003cuid\u003e.js` file in TEMP. Execution is gated to CI/build environments by checking a wide list of CI env vars (GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NETLIFY, VERCEL, NOW_GITHUB_DEPLOYMENT, CF_BUILD_ID, SCREWDRIVER) and skipped when analysis tools or debuggers are detected (wireshark, procmon, procexp, x64dbg, ollydbg, fiddler, httpdebug, IsDebuggerPresent, CheckRemoteDebuggerPresent, /proc/self/status TracerPid, /proc/1/cgroup containerd). A pure-JS array helper has no legitimate reason to ship three native addons plus a 6.7MB opaque blob; the trivial JS surface is a cover story over an obfuscated staged loader targeting CI environments where credentials and deploy tokens are concentrated.\n",
"id": "MAL-2026-20346",
"modified": "2026-11-23T08:19:04Z",
"published": "2026-11-23T08:08:04Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/array-flatten-utils/v/1.0.2"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/array-flatten-utils/v/1.0.5"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/array-flatten-utils/v/1.0.1"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/array-flatten-utils/v/1.0.4"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in array-flatten-utils (npm)"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
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.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.