Skip to content

Image: storage.ghost.io · rights & removal

Executive Summary

A new AI-integrated command-and-control (C2) framework named "NIK C2" has been observed in the wild, which uses a Windows implant to facilitate data exfiltration and command execution through an integrated AI model. This framework allows actors to dump credentials, stream keystrokes for sensitive data collection, and instruct an AI for analysis within a single session. The NIK C2 implant is a Go-based remote access tool featuring a dual-channel C2 architecture over TLS WebSockets and HTTP polling. It integrates the OpenAI API directly via a command handler, routing user prompts to the model while managing API key resolution, potentially using the victim's credentials for inference, which shifts billing liability to the victim.
The implant possesses extensive capabilities, including credential dumping, screen capture, keylogging, lateral movement via proxies, and the deployment of desktop screen-locking ransomware demanding cryptocurrency payment. The framework collapses traditional offline processing delays by executing collection and exploitation in a continuous session. The C2 protocol relies on symmetric encryption derived from a hardcoded seed for all communication channels.
The observed implant samples indicate a development trajectory spanning at least three versions compiled with Go 1.23.4, suggesting an actively evolving threat. The framework communicates via specific endpoints including `/api/c2/update`, `/api/c2/result`, and a WebSocket channel.

Facts Only

* A new AI-integrated command-and-control (C2) framework called "NIK C2" was observed in the wild.
* NIK C2 contains a Windows implant that can dump credentials, stream keystrokes, and instruct an integrated AI model to analyze harvested data.
* The framework abuses the OpenAI Chat Completions API for programmatic conversations.
* The NIK C2 implant can deploy desktop screen-locking ransomware demanding Bitcoin or USDT.
* The implant is a Go-based, 64-bit Windows remote access tool using a dual-channel C2 architecture (TLS WebSockets and HTTP fallback polling).
* The implant routes traffic over TLS secured WebSockets on port 443 and an HTTP fallback loop every 250 milliseconds, using AES-256-GCM encryption derived from a hardcoded seed.
* The implant embeds a fully integrated OpenAI API client via the `aigenerate` command to route prompts to the OpenAI Chat Completions API.
* API key resolution falls back to reading the victim's `OPENAIAPIKEY` environment variable, potentially incurring charges against the victim's account.
* The implant features capabilities for credential dumping, RDP session hijacking, process hollowing, and a C2-driven screen lock ransomware module.
* The implant utilizes command surface modules for Stealer (credential/Wi-Fi theft), Surveillance (keylogging, screen capture), Remote Control (HVNC, proxying), Persistence (autostart/masquerade), Evasion (AMSI patch), and Destructive (boot ransomware).
* Keystrokes are streamed via a keylogger module over WebSocket or HTTP fallback.
* The implant’s C2 protocol uses a primary WebSocket channel for command and a secondary HTTP polling loop for state updates.
* The implants deploy screen-locking ransomware by writing an HTML lock screen, generating a batch script with a self-healing loop, and establishing registry persistence.
* The implant surveys boot firmware (UEFI vs. BIOS) and Secure Boot status via system commands to stage a bootkit payload.
* IOCs are available in the linked GitHub repository.

Full Take

The emergence of NIK C2 signifies a movement from discrete malware deployment toward intrinsically intelligent, autonomous operational assets. The core pattern here is the fusion of remote access functionality with large language model capabilities, effectively transforming a compromised endpoint from a mere data source into an active inference engine. This collapses the traditional delay between collection, processing, and exfiltration—a historical defense buffer—thereby eliminating a key window for detection. The architecture prioritizes continuous, synchronous operation over discrete phases, which is fundamentally an evasion tactic against signature-based or time-based detection methods.
The integration of the OpenAI API into the implant's core workflow introduces a unique layer of abstraction. Instead of requiring an operator to manually feed data to an external LLM and process the results, the implant handles the prompt formulation, context embedding (via system commands), API key management (potentially using victim credentials), response parsing, and exfiltration seamlessly within the session. This modularity allows operators to leverage state-of-the-art reasoning capabilities directly on the compromised host without requiring extensive external infrastructure management for inference.
The threat's layered functionality—from passive surveillance and credential harvesting to active destructive actions like bootkit preparation and ransomware deployment—demonstrates a focus on achieving full control and maximizing immediate impact. This sophistication indicates that adversaries are leveraging AI not just for post-exploitation analysis but as an integrated tool for dynamic, context-aware malicious action. The implication is that detection must shift from observing suspicious file changes or network beaconing to monitoring the semantic flow of system calls and application API interactions, seeking anomalous patterns in AI prompt structures and resource utilization within a single session.
Bridge Questions: How does the dependency on victim API keys fundamentally alter the risk assessment for individuals who may use cloud services on their endpoints? What detection strategies can be developed to monitor the internal orchestration of system processes that utilize external LLM APIs without relying on external network monitoring? If AI integration erases offline processing delays, what new metrics or behavioral baselines are necessary to establish "continuous behavioral vigilance" as a standard for defense?

From the original · Talos Intelligence Group

- Cisco Talos observed a new AI-integrated command-and-control (C2) framework in the wild called “NIK C2.” - NIK C2 contains a Windows implant, using which, an actor can dump credentials, stream the victim's keystrokes to collect the targeted victim’s sensitive data, and instruct an integrated AI model to analyze the harvested data, all within the compromised session. - In this framework, the…
Read the full story at blog.talosintelligence.com

Sentinel unavailable

The automated check of the source article's wording did not complete, so no result is shown.

This looks only at the wording of the original source article, not at this page's AI-written sections. A small local AI model made this estimate. It has not been checked against known human and machine texts, so treat it as provisional. It cannot show who wrote an article.

NIK C2: The new AI | Huntaegis