MAL-2026-18697

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/testtestkjkldfnjdfn/MAL-2026-18697.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18697
Published
2026-10-26T00:00:00Z
Modified
2026-11-13T04:30:06Z
Summary
Malicious code in testtestkjkldfnjdfn (npm)
Details

testtestkjkldfnjdfn ships nebula.js, byte-identical to the nebulajs-api payload, and a preinstall.cjs that is a single opaque Function(...) call decoding XOR-encrypted code at install time. It is a new name for the nebulajs-api (MAL-2026-17220) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing.


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (ec6afa0eff8e9d3d80074bf35ec4404145f902258d76759fcbe394555fd5e8eb)

package.json declares preinstall: node preinstall.cjs, which runs automatically on npm install. preinstall.cjs is a single ~311 KB line consisting of a Function(...) constructor over a heavily obfuscated program: a seeded PRNG/XOR string decoder (fJyK0L) operating on a packed alphabet string (jVDbNW), a numeric opcode table (wKc07cB), and a control-flow-flattened dispatcher. All strings, destinations, filesystem paths, and command invocations are reconstructed only at execution time, so the actual behavior is not visible in source. The package's shipped main is an unrelated thin AI-client stub, making the preinstall loader the substantive payload of the package. The combination of a lifecycle-hook Function() loader over a 311 KB opaque, control-flow-flattened blob has no benign explanation — ordinary native-build and license-check tooling ships readable source — and gives whoever published the package arbitrary code execution on every installer's machine at install time.

Database specific
{
    "iocs":  {
        "domains":  [],
        "files":  [
            {
                "digests":  {
                    "sha256":  "d6b33324fdba4969820bb00f159ffb090e156760fffce1bc941bf83999690cf6"
                },
                "paths":  [
                    "nebula.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "d8f5c42c479040aa2d9b5a148634797d4b9605875ea1ba2425591cabd564e340"
                },
                "paths":  [
                    "preinstall.cjs"
                ]
            }
        ],
        "ips":  [],
        "urls":  []
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022750",
            "import_time":  "2026-11-13T04:13:29.357836304Z",
            "modified_time":  "2026-11-13T03:40:29Z",
            "sha256":  "ec6afa0eff8e9d3d80074bf35ec4404145f902258d76759fcbe394555fd5e8eb",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / testtestkjkldfnjdfn

Package

Name
testtestkjkldfnjdfn
View open source insights on deps.dev
Purl
pkg:npm/testtestkjkldfnjdfn

Affected ranges

Affected versions

1.*
1.0.0

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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "preinstall.cjs",
            "sha256":  "d8f5c42c479040aa2d9b5a148634797d4b9605875ea1ba2425591cabd564e340",
            "tlsh":  "ae64bdec91f7d28493f453a1fdcce299e481281e0a470fb9e1c82649f199b89c3e5776"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "testtestkjkldfnjdfn-1.0.0.tgz",
            "hashes":  {
                "sha1":  "337da050f51215a8588b5312ffd6d4ebea1c381c",
                "sha512_sri":  "sha512-KCjTbJBEIOXmkYOE7Zm9jJWUQtOJpDglsSnvys1V3RaJBbWJaaR4AMj6Ck8kANb7Qfe6XgFdntQ74P+nWHY1Gg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/testtestkjkldfnjdfn/MAL-2026-18697.json"