Victim Pays for Their Own Hack: NIK C2 Finds New Way to Exploit ChatGPT

Depov

Moderator
Staff member
MODERATOR
ULTIMATE
SUPREME
PREMIUM
MEMBER
Joined
Feb 18, 2025
Messages
790
Reaction score
1,510
Researchers have discovered a working NIK C2 platform , which grants attackers broad control over an infected Windows computer and allows them to access OpenAI models directly during an attack. The malware can steal passwords and browser data, record keystrokes, monitor the screen, camera, and microphone, and the operator can transmit the collected data to the AI for analysis without leaving the active session.

NIK C2's main unusual function is hidden in the ai_generate command. Upon receiving an operator request, the malware itself accesses the OpenAI Chat Completions interface from the victim's computer, retrieves the model's response, and sends the result back through the command-and-control server . The attacker can, for example, feed the model a fragment of retrieved information and ask it to parse the contents directly while running on the compromised device.

The developers have anticipated another unpleasant scenario. Typically, the operator provides NIK C2 with their own API key, but if it's missing, the malware searches for the OPENAI_API_KEY environment variable on the victim's computer. If the key is present, the program uses the victim's account. In this case, the key owner pays for the requests, and the OpenAI logs show their credentials. By default, the detected samples select GPT-4, although the operator can specify another available model without updating the malware itself.

AI accounts for only a small portion of NIK C2's arsenal. Researchers counted more than 52 commands. The program retrieves saved passwords, cookies, and autofill data from Chrome, Edge, Brave, Opera, and Firefox, and searches for Discord tokens, Wi-Fi passwords, and the contents of cryptocurrency wallets. A separate module scans files for backup phrases, private keys, and other secrets. A built-in keylogger sends every keystroke to the operator almost immediately after it's entered. The NIK C2 can also intercept and replace clipboard contents, take screenshots, transfer desktop images, record microphone audio, and retrieve camera data.

After taking over a computer, the operator can use it as an entry point deeper into the network. The malware launches a proxy server, establishes tunnels to other systems, operates with remote desktop sessions, and maintains hidden desktop control. To bypass protection, the developers added AMSI intervention, Windows User Account Control bypass, debugger detection, and the execution of malicious code within another process.

NIK C2 communicates with the control infrastructure via multiple methods. The primary channel operates via WebSocket with TLS on port 443, while the backup uses HTTP. Transferred data is additionally encrypted with AES-256-GCM, and the list of control addresses is built in several layers to ensure that the loss of a single server doesn't deprive the operator of access to the infected machine.

NIK C2 is also capable of extorting money, although the discovered module does not encrypt user files. The ransomware blocker creates a full-screen page demanding a Bitcoin or USDT transfer, registers itself as a Windows startup item, and reopens the window approximately five seconds after it closes. The operator can change the amount, wallet address, demand text, and timer.

Next to the blocker, the researchers found preparations for accessing the computer's boot area. NIK C2 determines whether the machine is using UEFI or BIOS, checks the Secure Boot status, and creates a file labeled NIK_BOOTKIT_PREP. However, the samples found did not contain a ready-made bootable malware: the program only writes a 16-byte pre-installed file, which can later be replaced with another file.

Researchers examined at least three versions of NIK C2. All samples were built using Go 1.23.4, released in December 2024, so the current branch of the program was not released until late 2024. The developers gradually added new commands and stealth features, indicating ongoing development of the platform.

During their analysis, specialists also found a functioning NIK C2 server. The name "nik-panel" in its TLS certificate matched strings found within the malware. The functioning infrastructure gave researchers reasonable grounds to believe NIK C2 is a fully-fledged tool for real-world attacks, rather than a demonstration project. However, there is no information yet on specific victims, the number of infected computers, or confirmed attacks using the ransomware module.
 
Top Bottom