← Back to feed

RH-ISAC Analysis Details NIK C2 ai_generate Command and OPENAI_API_KEY Harvesting on Victim Hosts

Date: 2026-11-08
Tags: malware, llmjacking

Executive Summary

RH-ISAC published a threat intel analysis on 2026-11-02 detailing NIK C2, a Go based Windows command and control framework that integrates the OpenAI Chat Completions API through an ai_generate command so operators can issue prompts from an infected host. The analysis states the implant can use an attacker supplied API key or attempt to read the OPENAI_API_KEY environment variable from the victim, which shifts API consumption and billing onto a compromised account. Defenders should monitor for unexpected outbound calls to the OpenAI API from Windows endpoints, alert on processes reading OPENAI_API_KEY, and rotate any exposed AI API keys found in host environments.

Campaign Summary

FieldDetail
Campaign / MalwareNIK C2
AttributionUnknown, operational framework assessed by Cisco Talos and analyzed by RH-ISAC (confidence: low)
TargetWindows systems operated by organizations with exposed AI API credentials or attacker supplied keys
VectorCommand and control implant with OpenAI Chat Completions API integration; key sourcing via operator supply or victim environment variable
Statusactive
First Observed2026-10-29

Detailed Findings

RH-ISAC published a cyber threat intel analyst write up on 2026-11-02 covering NIK C2, a Go based Windows command and control framework originally identified by Cisco Talos on 2026-10-29. According to RH-ISAC, the implant combines credential theft, surveillance, remote access, lateral movement, defense evasion, and screen locking ransomware capabilities in a single binary. RH-ISAC reported that NIK C2 integrates the OpenAI Chat Completions API through an ai_generate command, allowing operators to submit prompts from a compromised system and process the model responses through their C2 infrastructure. RH-ISAC stated that if no API key is supplied by the operator, the malware attempts to retrieve the OPENAI_API_KEY environment variable from the victim host, which would let a compromised credential be used for the requests and shift API usage and associated activity to the victim account. RH-ISAC noted Talos identified at least three implant versions and active C2 infrastructure, and assessed with moderate confidence that NIK C2 is an operational framework rather than a proof of concept. RH-ISAC did not publish new network IOCs in the analyzed excerpt, so defenders should rely on behavioral detection for the AI API abuse path.

MITRE ATT&CK Mapping

TechniqueIDContext
Unsecured Credentials: Credentials In FilesT1552.001The implant attempts to read the OPENAI_API_KEY environment variable from the victim host when no operator supplied key is available.
Application Layer Protocol: Web ProtocolsT1071.001Operators submit prompts and receive responses through the OpenAI Chat Completions API as a C2 communication channel.

IOCs

Domains

_No IOCs published in the RH-ISAC analysis excerpt. The underlying Cisco Talos report describes active C2 infrastructure but no concrete indicators were available in the reviewed text._

Full URL Paths

_No IOCs published in the RH-ISAC analysis excerpt. The underlying Cisco Talos report describes active C2 infrastructure but no concrete indicators were available in the reviewed text._

Splunk Format

_No IOCs available for Splunk query_

Affected Platforms

Windows

Detection Recommendations

Alert on Windows processes making unusual direct outbound HTTPS connections to the OpenAI API from hosts that do not normally run AI clients, and correlate with command line arguments containing ai_generate. Monitor for process access or reads of the OPENAI_API_KEY environment variable outside sanctioned AI tooling. Inventory and rotate AI provider API keys on any host with suspected NIK C2 activity, and watch for unexpected spikes in OpenAI API usage or billing that would indicate key theft. Because RH-ISAC published no new network indicators, prioritize behavioral detections over static signatures.

References