New NIK C2 Malware Hijacks OpenAI API Keys for Attacks
The framework uses infected Windows machines to run illicit AI prompts and perform surveillance.
Updated on Oct. 29, 2026 in Cybersecurity

Live Poll
Do you trust that your software and API credentials are secure from unauthorized use?
Security researchers have identified a new malware framework called NIK C2, which hijacks OpenAI API keys from infected systems to conduct unauthorized AI queries. The malware is currently active in the wild and includes capabilities for surveillance, credential theft, and screen-locking.
Why it matters
By leveraging stolen API keys to execute AI prompts, attackers obscure their own identity while offloading costs and potential usage violations onto unsuspecting victims. This approach marks a shift toward using legitimate AI infrastructure as a proxy for malicious activity.
The Go-based NIK C2 implant supports over 52 distinct commands for system surveillance and credential exfiltration. Researchers have observed at least three iterative versions of the framework in the wild.
The players
Cisco Talos
A global threat intelligence and security research organization that monitors emerging malware and network vulnerabilities.
OpenAI
An AI research and deployment company that provides the large language model APIs exploited by the NIK C2 framework.
The details
The NIK C2 framework operates by scanning for the OPENAI_API_KEY environment variable on compromised Windows systems. Once identified, the malware routes AI prompts directly to OpenAI servers using the victim's credentials, ensuring the attacker remains anonymous while the victim incurs the usage costs. The framework also features a screen-locking module that demands payments in Bitcoin or Tether, a tactic chosen for its speed relative to traditional file-encrypting ransomware.
Timeline
October 29, 2026: Cisco Talos published research on the NIK C2 framework.
The Tech Race
The abuse of OpenAI API keys represents a new front in the illicit use of cloud-based AI infrastructure. This development follows a pattern where attackers pivot to exploit high-value SaaS credentials to scale operations beyond traditional botnet capabilities.
Systems administrators should audit development environments for exposed API keys and monitor for unauthorized OpenAI usage logs. Users on Windows systems should verify that environment variables containing sensitive tokens are not accessible to unauthorized processes.
The takeaway
The rise of AI-hijacking malware highlights the critical need for stricter API key management and usage monitoring in developer environments. Security teams should prioritize limiting the permissions of environment-stored keys to mitigate potential unauthorized costs and data exfiltration.
Further reading
For broader trends in enterprise-grade threat detection, visit Cybersecurity.
Source note: This article includes information reported by Infosecurity Magazine.
Live Poll
Do you trust that your software and API credentials are secure from unauthorized use?






