Skip to content
Heist/ feed
Unrated

Malicious code in nebulaai-sdk (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (dc906b81107141fbd85dcabf89fd2f5112c4e4a134045c90d6a35abb4b67d16e) The package's `preinstall.js` contains a base64+zlib-encoded 257 KB Windows PE executable. On `npm install` on Windows, the script decodes the blob and writes it to `%LOCALAPPDATA%\Microsoft\Conhost\conhost.exe` — a path and filename that impersonates a legitimate Windows console host binary — then spawns it via `child_process.spawn` with `detached: true`, `stdio: 'ignore'`, and `windowsHide: true`, so execution is silent and survives the npm process. The decoded PE contains a section named `.kntrat` and references the external host `65.87.7.132` and the repository `github.com/syskiel/kntrat-e`, indicating remote command-and-control functionality (RAT-shaped naming). The package has no legitimate SDK functionality visible; the preinstall hook exists solely to stage and run the embedded executable. Installing this package on a Windows host results in full arbitrary code execution under the installing user, with a masqueraded persistent binary staged under LOCALAPPDATA and a C2 endpoint reachable at 65.87.7.132.

Announced Source revision 1
Original source ↗

MAL-2026-17228

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17228

nebulaai-sdk

Source reference: /affected/0/package/name

Affected versions
1.0.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "nebulaai-sdk",
      "purl": "pkg:npm/nebulaai-sdk",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/nebulaai-sdk/MAL-2026-17228.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "preinstall.js",
            "tlsh": "24e312267c5990351b18a613f83217257b336259152cd9363b3a08c709fad98cf7bebb",
            "sha256": "8bc90df9b387849338d9c61a8d379cfbb0d70ea576c0e37e1fb07ba164921807"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "cf2ae5e39d71c8bf56d60ed9a2ae29d98e6c6300",
              "sha512_sri": "sha512-OAc2iuXWbZebjdNGXjzg4D4Dhvo6bdXkd19VrGXxNR/c97vcO5YeOo97/UrlYETKlhY/DwsAaTWWmxNIuVbaqA=="
            },
            "filename": "nebulaai-sdk-1.0.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#23574 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement