Threat reportSupply ChainTL-2026-3049
NEBULA: Seven Fake AI SDK Packages on npm Install a Windows RAT (Modified KNTRAT) That Needs No DLL
CloudSEK reports a single actor tracked as NEBULA published seven fake 'NebulaAI' SDK packages to npm from four burner accounts. An obfuscated preinstall.cjs dropper writes a modified open-source KNTRAT Windows RAT to %LOCALAPPDATA%\Microsoft\Conhost\conhost.exe. The RAT provides HVNC, camera/microphone monitoring via Kernel Streaming, Winlogon Shell persistence and direct NT/win32k syscalls with an empty IAT.
Key facts
Detection coverage
As of 2026-10-08, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3049 across Splunk SPL, Microsoft KQL and Sigma, covering 23 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: NEBULA — conhost.exe Running Outside System32 (KNTRAT Masquerade)
Detects any process named conhost.exe started from outside C:\Windows\System32 and C:\Windows\SysWOW64. The modified KNTRAT RAT masquerades as the Windows Console Host from the user-profile Microsoft\Conhost folder; the legitimate binary only runs from the system directories.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1036.005, T1564.003, T1140
- Data sources: sysmon, microsoft_defender_for_endpoint
- Severity: high
- Confidence: high
Splunk SPL
index=windows sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 Image="*\\conhost.exe" NOT Image="C:\\Windows\\System32\\*" NOT Image="C:\\Windows\\SysWOW64\\*"
| eval user_profile_drop=if(like(Image,"%Microsoft%Conhost%conhost.exe"),"yes","no")
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as command_lines values(ParentImage) as parent_images values(Hashes) as hashes by host, User, Image, user_profile_drop
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ 'conhost.exe'
| where not(FolderPath startswith @'c:\windows\system32\' or FolderPath startswith @'c:\windows\syswow64\')
| extend ProfileDrop = FolderPath contains @'\Microsoft\Conhost\'
| project Timestamp, DeviceName, AccountName, FolderPath, ProcessCommandLine, SHA256, InitiatingProcessFileName, InitiatingProcessCommandLine, ProfileDrop
| order by Timestamp descSigma
title: Console Host conhost.exe Executed Outside System Directories
id: e5b83d70-92c1-4a6f-8e14-7d0b4c1a9f28
status: experimental
description: Detects conhost.exe running from a path other than System32 or SysWOW64, consistent with the modified KNTRAT RAT masquerading as the Windows Console Host from the user profile Microsoft\Conhost folder.
references:
- https://www.cloudsek.com/blog/nebula-fake-ai-sdk-npm-packages-windows-rat
author: Threadlinqs Team
date: 2026/10/08
tags:
- attack.defense-evasion
- attack.t1036.005
- attack.t1564.003
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\conhost.exe'
filter_system:
Image|startswith:
- 'C:\Windows\System32\'
- 'C:\Windows\SysWOW64\'
condition: selection and not filter_system
falsepositives:
- Windows servicing or WinSxS staging copies on unusual builds (rare)
level: highKnown false positives:
- Windows servicing staging copies under WinSxS on some builds
- Lab or red-team masquerading exercises
Tuning notes: Exclude C:\Windows\WinSxS\* if servicing staging triggers it. Pivot on user_profile_drop=yes for the exact NEBULA path. Correlate with the hidden-window launch and sha256 of the binary; no PE hash was published, so hash the sample from the first hit and add it to blocklists.
- NEBULA — node.exe Drops conhost.exe into Microsoft\Conhost / Known Dropper Hash · unlock with TL Creds
- NEBULA — Winlogon Shell Persistence and Camera/Microphone Consent Artifacts for Conhost · unlock with TL Creds
- NEBULA — Non-System conhost.exe Making Network Connections · unlock with TL Creds
- NEBULA — node.exe Spawns Detached Binary from Microsoft\Conhost Folder · unlock with TL Creds
- NEBULA — Camera/Microphone Consent Entry Created for Microsoft\Conhost conhost.exe · unlock with TL Creds
- NEBULA — Proxy/HTTP Traffic with kntrat/ User-Agent or nebulaai.dev Host · unlock with TL Creds
- NEBULA — npm Install of Fake NebulaAI Packages / [indicator] Execution · unlock with TL Creds
- NEBULA — Connections or DNS Lookups to KNTRAT C2 ([indicator] / [indicator]) · unlock with TL Creds
Indicators of compromise
As of 2026-10-08, Threadlinqs Intelligence tracks 23 indicators of compromise for TL-2026-3049.
Sample indicators (3 of 23)
- IP address:
65.87.7[.]132 - Domain:
api[.]nebulaai[.]dev - File hash:
9d00e9dc6f5a57695d0782c0633ed94075d753b03974508596c27862b5717ec6
Defanged, TLP:CLEAR. Full set of 23 indicators: unlock with TL Creds.
Technical analysis
CloudSEK Global Threat Intelligence (published 2026-10-08) attributes a campaign to a single actor tracked as NEBULA. The actor published seven fake AI SDK packages to npm under a 'NebulaAI' lure, using four sequentially named burner accounts (nebulallms, nebulallms2, nebulallms3, nebulallms4). The packages' entry point (nebula.js) is a legitimate-looking client pointed at api.nebulaai.dev. The malicious logic lives in a 'preinstall' lifecycle hook that runs preinstall.cjs, an obfuscated single-line script (about 187 KB in api-nebula) that executes automatically on npm install.
On Windows, the dropper delivers a Windows PE payload either as an inline base64+zlib-encoded blob (about 257 KB, per OpenSSF/OSV advisories for nebula-llm, nebula-sdk and nebulaai-sdk) or by fetching it at install time. The PE is written to %LOCALAPPDATA%\Microsoft\Conhost\conhost.exe, masquerading as the Windows Console Host, and launched detached with stdio ignored and windowsHide set, then unref'd so it survives the end of the npm process. nebulajs-api uses a different obfuscation (a custom PRNG-based decoder that reconstructs and runs a hidden payload) with the same install-time execution pattern.
The payload is a customized variant of KNTRAT, an open-source RAT. The decoded PE contains a section named '.kntrat' and references github.com/syskiel/kntrat-e (per OSV MAL-2026-17227); CloudSEK states the repository was private during the campaign and was renamed from kntrat-e to kntrat on 2026-10-06. Reported capabilities: hidden-desktop remote control (HVNC), camera and microphone monitoring via Kernel Streaming, persistence through the Winlogon Shell value, and direct NT and win32k system calls that leave the Import Address Table empty (hence 'needs no DLL'). C2 indicators: IP 65.87.7.132, domain api.nebulaai.dev and user-agent kntrat/0xB15B00B6. The sample suppressed beaconing during a 12-minute sandbox detonation.
Timeline: nebula-sdk, nebulajs-api, nebula-llm and nebulaai-sdk were published and flagged around 2026-09-28 (advisories MAL-2026-17219/17220/17227/17228, reported by Amazon Inspector and others); api-nebula 1.0.0 was categorized as MAL-2026-17531 on 2026-10-05 after days unflagged. At CloudSEK's publication api-nebula and llm-nebula were still downloadable. Only four of the seven package names are corroborated by OSV records; the CloudSEK page names api-nebula and llm-nebula, and the remaining package names, victim counts and download numbers are not stated in available sources. No file hashes of the dropped PE were published in the sources reviewed. No CVEs are involved.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Masquerading: Match Legitimate Resource Name or Location; T1140 Deobfuscate/Decode Files or Information; T1497 Virtualization/Sandbox Evasion; T1564.003 Hide Artifacts: Hidden Window
Execution
T1059.007 Command and Scripting Interpreter: JavaScript; T1106 Native API
Command and Control
T1071.001 Application Layer Protocol: Web Protocols; T1219 Remote Access Tools
Collection
T1123 Audio Capture; T1125 Video Capture
Initial Access
T1195.002 Supply Chain Compromise: Compromise Software Supply Chain
Persistence
T1547.004 Boot or Logon Autostart Execution: Winlogon Helper DLL
Resource Development
Remediation
Immediate actions
- Block installs of api-nebula, llm-nebula, nebula-llm, nebula-sdk, nebulaai-sdk and nebulajs-api in registry proxies and CI
- Block and alert on traffic to 65.87.7.132 and api.nebulaai.dev, and on the user-agent kntrat/0xB15B00B6
- Hunt for %LOCALAPPDATA%\Microsoft\Conhost\conhost.exe and any conhost.exe outside System32
- Review npm install logs and lockfiles for preinstall.cjs execution from these packages
- Treat any Windows host that installed these packages as compromised; rotate secrets and credentials from a trusted system
Workarounds
- Remove the affected package versions and verify persistence (Winlogon Shell) is removed; consider a full reinstall or forensic analysis
Longer-term hardening
- Enforce npm install --ignore-scripts by default and allowlist packages that need lifecycle scripts
- Use a package firewall or proxy with malware-feed (OSV/OpenSSF malicious-packages) checks and a minimum package-age policy
- Alert on Winlogon Shell registry changes and on unsigned binaries launched from user-profile Conhost folders
- Detect processes with empty import tables that issue direct syscalls and create hidden desktops
Affected and fixed versions
- npm — api-nebula
Vulnerable versions: 1.0.0 - npm — nebula-llm
Vulnerable versions: 1.0.0 - npm — nebula-sdk
Vulnerable versions: 1.0.0; 1.0.1 - npm — nebulaai-sdk
Vulnerable versions: 1.0.0 - npm — nebulajs-api
Vulnerable versions: 1.0.0 - npm — llm-nebula
- Microsoft — Windows (hosts running npm install)
Timeline
- CloudSEK dates deployment of the NEBULA campaign to late September 2026, using four sequential burner npm accounts (nebulallms through nebulallms4).
- nebula-sdk, nebulajs-api, nebula-llm and nebulaai-sdk are published to npm (OSV/OffSeq publish timestamps 2026-09-28) and flagged as malicious (MAL-2026-17219, -17220, -17227, -17228); nebula-llm and nebulaai-sdk reported by Amazon Inspector.
- api-nebula 1.0.0 is categorized as malicious (MAL-2026-17531, Amazon Inspector) after being active and unflagged for days.
- The KNTRAT source repository, private during the campaign, is renamed from kntrat-e to kntrat.
- CloudSEK reports the RAT suppressed beaconing throughout a 12-minute sandbox detonation.
- CloudSEK publishes its analysis; api-nebula and llm-nebula are still downloadable from npm at the time of publication.
Sources cited
- OSV MAL-2026-17531: Malicious code in api-nebula (npm) api.osv.dev · Advisory · 2026-10-05
- OSV MAL-2026-17227: Malicious code in nebula-llm (npm) osv.dev · Advisory · 2026-09-28
- OffSeq Threat Radar: Malicious code in nebulaai-sdk (MAL-2026-17228) radar.offseq.com · Advisory · 2026-09-28
- OffSeq Threat Radar: Malicious code in nebula-sdk (MAL-2026-17219 / GHSA-fm5g-6rr8-p9vq) radar.offseq.com · Advisory · 2026-09-28
- OffSeq Threat Radar: Malicious code in nebulajs-api (MAL-2026-17220 / GHSA-2gr6-gxvx-3594) radar.offseq.com · Advisory · 2026-09-28
- CloudSEK full report (PDF) cdn.cloudsek.com · Research · 2026-10-08
- OpenSSF malicious-packages: api-nebula MAL-2026-17531 GitHub · Code repository · 2026-10-05
- OpenSSF malicious-packages: nebula-llm MAL-2026-17227 GitHub · Code repository · 2026-09-28
- NEBULA - Seven Fake AI SDK Packages on npm Install a Windows RAT That Needs No DLL (CloudSEK) cloudsek.com · Blog · 2026-10-08
Previous and next in supply chain
- Evolution of Web3 in Cloud Supply Chain Attacks: Blockchain Smart-Contract C2 (EtherHiding, TxDataHiding, NullReceiver) in DPRK-Linked npm/Go/Packagist/Rust Campaigns Previous report
- Midnight Mimosa: Low-cost MediaTek Android phones ship with firmware-level ad-fraud and residential proxy malware Next report
Further reading
Drafted by the Threadlinqs research pipeline from 9 sources; published ; last updated —.