MAL-2026-20675
Vulnerability from ossf_malicious_packages – Published: 2026-11-27 00:16 – Updated: 2026-11-27 00:16 – Source website| Ecosystem | Package | Versions |
|---|---|---|
| npm |
tavern-ai-sdk
|
1.0.0
|
Package is advertised as a persona-JSON loader exposing getPersona/listPersonas/personaIds over 8 persona cards, but the published tarball additionally ships four large single-line hex-identifier obfuscated JS bundles (cache-warm.mjs ~296KB, build-cache.mjs ~203KB, cache-sweep.mjs ~300KB, workspaces.js ~288KB) and multi-platform native N-API binaries at native/{linux,darwin,win32}/{arm64,x64}/cache-probe.node. The main entry personas.mjs statically imports cache-warm.mjs, so the obfuscated code runs on require('tavern-ai-sdk'). The bundles reference createRequire, child_process, spawn, exec, and aws-prefixed strings — a code-execution and cloud-credential surface wholly unrelated to loading persona JSON. The cache-probe.node binaries are built from the open-source VMAware library (symbol../VMAware/src/vmaware.hpp, VMDetect::GetCallback) and probe for QEMU, VirtualBox, VMware, Hyper-V, KVM, Docker, WSL, Azure, GCE, AWS Nitro, Qihoo360 sandbox, ThreatExpert, Hybrid Analysis, BlueStacks and similar via SMBIOS/CPUID/dmidecode/ioreg/sysctl. The bundle headers self-label as "build cache manifest. Restore from package-lock if corrupted," and the file names (cache-warm, cache-sweep, build-cache, workspaces, cache-probe) are chosen to look like routine build infrastructure, but none of these artifacts implement or are needed by the advertised persona-loader API. The combination — obfuscated import-time-reachable code with child_process/exec and cloud-SDK fingerprints, gated behind native anti-analysis VM/sandbox detection, under a cover-story name — is the canonical shape of a staged credential-stealer that withholds its payload inside analysis environments.
| Type | Indicator | Hashes |
|---|---|---|
| Evidence file |
personas.mjs
|
sha256
fa686c14401ab4c8540b4e0b845294a681b7b2393f45d3249eca6234a0424ee0tlsh
981100ea7daa3324b138a3d1512ff4103362921bb604c5f8c87c02501385099831799c |
| Evidence file |
cache-sweep.mjs
|
sha256
be106321f04d3a2501489e52e44db1dab7dfb7bcada550bc77a2e71e16a0f554tlsh
b354b60537c82721f25a7eeb640f49e0ee351448bc89fcc6ba1c36a94797162dacdb71 |
| Evidence file |
native/darwin/arm64/cache-probe.node
|
sha256
bac9bf3120b13dacdd5ea35fbb0e7045fb66de9853aaf71c076e28b5b8fabd6etlsh
e4f33a26d35cb713cb84b27909990715a30bfa605c70e3f3b865cd4e9da43174fa8ba2 |
| Evidence file |
package.json
|
sha256
6ac42223c960cc346517444c12c0399ffb09e0693105d290d6128c00634ad058tlsh
4f112733c9c6ac2626fde72539348212f2005b5f31601c0b707f624c5fb60a7515af55 |
| Package archive |
tavern-ai-sdk-1.0.0.tgz
|
sha1
0c12fcaf6f3fa0813e8f36fb644a630a8d79ea6csha512_sri
sha512-sJ//+TsVC54HbTpxPGPYh9avM76jC1NVN/s3HB4URiWJ9s8IEpVz4VwHVf0sIvN53l3UgizPn0yor4p7mmKYow== |
- CWE-506 - Embedded Malicious Code
| URL | Tags |
|---|---|
| https://www.npmjs.com/package/tavern-ai-sdk/v/1.0.0 | PACKAGE |
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"evidence_files": [
{
"path": "personas.mjs",
"sha256": "fa686c14401ab4c8540b4e0b845294a681b7b2393f45d3249eca6234a0424ee0",
"tlsh": "981100ea7daa3324b138a3d1512ff4103362921bb604c5f8c87c02501385099831799c"
},
{
"path": "cache-sweep.mjs",
"sha256": "be106321f04d3a2501489e52e44db1dab7dfb7bcada550bc77a2e71e16a0f554",
"tlsh": "b354b60537c82721f25a7eeb640f49e0ee351448bc89fcc6ba1c36a94797162dacdb71"
},
{
"path": "native/darwin/arm64/cache-probe.node",
"sha256": "bac9bf3120b13dacdd5ea35fbb0e7045fb66de9853aaf71c076e28b5b8fabd6e",
"tlsh": "e4f33a26d35cb713cb84b27909990715a30bfa605c70e3f3b865cd4e9da43174fa8ba2"
},
{
"path": "package.json",
"sha256": "6ac42223c960cc346517444c12c0399ffb09e0693105d290d6128c00634ad058",
"tlsh": "4f112733c9c6ac2626fde72539348212f2005b5f31601c0b707f624c5fb60a7515af55"
}
],
"package_integrity": [
{
"filename": "tavern-ai-sdk-1.0.0.tgz",
"hashes": {
"sha1": "0c12fcaf6f3fa0813e8f36fb644a630a8d79ea6c",
"sha512_sri": "sha512-sJ//+TsVC54HbTpxPGPYh9avM76jC1NVN/s3HB4URiWJ9s8IEpVz4VwHVf0sIvN53l3UgizPn0yor4p7mmKYow=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "tavern-ai-sdk"
},
"versions": [
"1.0.0"
]
}
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-023135",
"import_time": "2026-11-27T00:30:27.913022609Z",
"modified_time": "2026-11-27T00:16:53Z",
"sha256": "d9bd39419e14e3d9a7746b88d0724cf25261deca2acb64a7daa2ba5f5c504868",
"source": "amazon-inspector",
"versions": [
"1.0.0"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d9bd39419e14e3d9a7746b88d0724cf25261deca2acb64a7daa2ba5f5c504868)\nPackage is advertised as a persona-JSON loader exposing getPersona/listPersonas/personaIds over 8 persona cards, but the published tarball additionally ships four large single-line hex-identifier obfuscated JS bundles (cache-warm.mjs ~296KB, build-cache.mjs ~203KB, cache-sweep.mjs ~300KB, workspaces.js ~288KB) and multi-platform native N-API binaries at native/{linux,darwin,win32}/{arm64,x64}/cache-probe.node. The main entry personas.mjs statically imports cache-warm.mjs, so the obfuscated code runs on require(\u0027tavern-ai-sdk\u0027). The bundles reference createRequire, child_process, spawn, exec, and aws-prefixed strings \u2014 a code-execution and cloud-credential surface wholly unrelated to loading persona JSON. The cache-probe.node binaries are built from the open-source VMAware library (symbol../VMAware/src/vmaware.hpp, VMDetect::GetCallback) and probe for QEMU, VirtualBox, VMware, Hyper-V, KVM, Docker, WSL, Azure, GCE, AWS Nitro, Qihoo360 sandbox, ThreatExpert, Hybrid Analysis, BlueStacks and similar via SMBIOS/CPUID/dmidecode/ioreg/sysctl. The bundle headers self-label as \"build cache manifest. Restore from package-lock if corrupted,\" and the file names (cache-warm, cache-sweep, build-cache, workspaces, cache-probe) are chosen to look like routine build infrastructure, but none of these artifacts implement or are needed by the advertised persona-loader API. The combination \u2014 obfuscated import-time-reachable code with child_process/exec and cloud-SDK fingerprints, gated behind native anti-analysis VM/sandbox detection, under a cover-story name \u2014 is the canonical shape of a staged credential-stealer that withholds its payload inside analysis environments.\n",
"id": "MAL-2026-20675",
"modified": "2026-11-27T00:16:53Z",
"published": "2026-11-27T00:16:53Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/tavern-ai-sdk/v/1.0.0"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in tavern-ai-sdk (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. The method is described in a publication.
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.