Hackers Weaponize OpenAI API in NIK C2 Framework for System Control

Executive Summary

On 29 October 2026, Cisco Talos Intelligence identified NIK C2, a Go-based Windows command-and-control framework that combines credential theft, surveillance, remote access, lateral movement, defense evasion, and screen-locking ransomware capabilities within a single implant, which can utilize OpenAI capabilities. The malware integrates the OpenAI Chat Completions API through an ai_generate command, allowing operators to submit prompts and process AI-generated responses directly from a compromised system.

NIK C2 can use an attacker-provided API key or attempt to retrieve an OPENAI_API_KEY environment variable from the victim, potentially shifting API usage and associated activity to a compromised account. Talos identified at least three implant versions and active C2 infrastructure, assessing with moderate confidence that NIK C2 is an operational framework rather than a proof of concept.

Key Takeaways

NIK C2 uses TLS-secured WebSockets over port 443 as its primary C2 channel while maintaining an independent HTTP polling mechanism that checks in approximately every 250 milliseconds. Communications are protected with AES-256-GCM, and the implant can rotate among runtime-provided, embedded, and hardcoded C2 addresses to maintain connectivity.

The implant supports more than 52 commands covering credential and cryptocurrency-wallet theft, real-time keylogging, screen capture, hidden desktop control, proxy tunneling, RDP operations, persistence, and defense evasion. Its collection capabilities target browser data, saved Wi-Fi credentials, Discord tokens, cryptocurrency wallets, wallet extensions, and files potentially containing seed phrases or private keys.

NIK C2’s ai_generate functionality sends operator prompts to the OpenAI Chat Completions API from the compromised host and returns the model response to the C2 infrastructure. If an API key is not supplied by the operator, the malware attempts to retrieve OPENAI_API_KEY from the victim’s environment, allowing a compromised API credential to be used for the requests.

The malware includes a screen-locking ransomware component that presents cryptocurrency payment demands without encrypting victim files, while additional functionality surveys UEFI or BIOS configuration and Secure Boot status for potential bootkit staging. Defense-evasion capabilities include system-process masquerading, anti-debugging checks, AMSI interference, UAC bypass functionality, process hollowing, and watchdog mechanisms designed to maintain execution.

Indicators of Compromise

Cisco Talos Intelligence has provided the following Indicators of Compromise associated with the campaign, which is provided below for RH-ISAC Core Member awareness.

Type

Indicator

Description

IP address

87.120.196[.]120

Active NIK C2 server

Domain

total-sitevv[.]lol

Resolves to the C2 server

TLS certificate CN

nik-panel

Matches strings in the implant

Certificate serial

7d16381a9de823943b5a0987dbd0f26edf22052b

C2 server certificate

JARM

28d28d28d00000000042d42d0000001f361a1bf80ed39a1e352adeb016a07b

C2 server TLS fingerprint

AES seed

d791dd0ff3228ed29a8d7333d4567be829159c5632ea347780992006f91c5295

Hardcoded decoded seed

AES key

4887AFC0A574E9419A9695EF083460F58E4EF9A1C40793523CE112251273BDF9

32-byte traffic key

Build path

/opt/nik_panel/data/build_52b79724a1fc4b8f/main.go

Embedded in implant

Files

mbr_backup.bin, lock_screen.html, lock_start.bat, bootkit.bin, browserdata.zip

Dropped in the temp folder

Registry

SystemLock (Run key)

Lock screen persistence

Endpoints

/api/c2/update, /api/c2/result, /api/c2/screen, /api/c2/file_chunk, /api/c2/rproxy_up, /api/c2/ws

C2 paths

ClamAV

Win.Trojan.GoDiscorder-10060526-0

Detection signature

More Recent Blog Posts

Executive Summary On 29 October 2026, the official Anthropic Claude Code extension was compromised on the Cursor Marketplace and used to install a...

Executive Summary CISA added the critical PHP2Shell vulnerabilities, CVE-2026-109618 and CVE-2026-109619, to its Known Exploited Vulnerabilities (KEV) Catalog following confirmation of in-the-wild exploitation....

Executive Summary A critical flaw dubbed “HTTP2Shell” in Brotli, the C decoder library built into Node.js, could allow attackers to corrupt memory and...