Cyber Security News

North Korea Hiding Malware Within JPEG Files to Attack Windows Systems Bypassing Detections

Security researchers at Genians Security Center have uncovered a sophisticated new variant of the RoKRAT malware, attributed to the North Korean-linked APT37 threat group, which employs steganography to conceal malicious payloads within seemingly innocuous JPEG image files.

This technique allows the malware to evade traditional antivirus detections by embedding encrypted shellcode in image data, which is then decoded and executed in memory.

Attack Scenario

Distributed primarily through malicious shortcut (.LNK) files hidden in ZIP archives, such as one masquerading as “National Intelligence and Counterintelligence Manuscript.zip,” the attack chain begins with oversized LNK files often exceeding 50MB due to embedded decoy documents and encoded components like shellcode (ttf01.dat), PowerShell scripts (ttf02.dat), and batch files (ttf03.bat).

Code Execution Flow

APT37’s Evolving RoKRAT Variant

Upon execution, the batch script invokes PowerShell to perform an XOR decryption using a single-byte key (0x33), revealing a 32-bit shellcode block that injects further payloads into legitimate Windows processes.

This two-stage encrypted shellcode injection method hinders reverse engineering, as the initial XOR operation at offset 0x590 uses a key like 0xAE, transforming the data into an executable that references PDB paths such as “D:\Work\Util\InjectShellcode\Release\InjectShellcode.pdb.”

Shellcode Comparison View

The malware then allocates virtual memory in processes like mspaint.exe or notepad.exe from the SysWOW64 directory, writing decrypted data blocks (e.g., 892,928 bytes) and applying additional XOR routines with keys like 0xD6 to unveil the core RoKRAT module.

This fileless approach ensures minimal disk footprints, complicating forensic analysis, while the malware’s timestamp (e.g., 2025-04-21 00:39:59 UTC) and unique strings like “–wwjaughalvncjwiajs–” confirm its ties to APT37’s arsenal.

Cloud-Based C2 Channels

In a notable evolution, APT37 integrates steganography by hiding RoKRAT loaders in JPEG files, such as “Father.jpg” downloaded from Dropbox, where malicious DLLs like mpr.dll or credui.dll side-load via legitimate executables (e.g., ShellRunas.exe or AccessEnum.exe) embedded in HWP documents.

Distributed Malicious File

The JPEG resource, named “MYIMAGEFILE,” starts with a valid Exif header but conceals shellcode at offset 0x4201 after an XOR with key 0xAA, followed by a secondary XOR using 0x29 to extract the RoKRAT payload. This enables seamless in-memory execution, bypassing endpoint protections.

Functionally, RoKRAT collects system information, documents, and screenshots, exfiltrating them via abused cloud APIs like api.pcloud.com, cloud-api.yandex.net, and api.dropboxapi.com, using revoked access tokens such as “hFkFeKn8jJIAAAAAAAAAAZr14zutJmQzoOx-g5k9SV9vy7phb9QiNCIEO7SAp1Ch.”

C2 accounts, linked to emails like “nusli.vakil@yandex.com” and “leon24609@gmail.com,” reveal patterns of Russian email services and potential LinkedIn ties, echoing prior APT37 operations.

Variants from July 2025, like one disguised as “Academy Operation for Successful Resettlement of North Korean Defectors in South Korea.lnk,” shift to notepad.exe injection and reference PDB paths under “D:\Work\Weapon,” indicating ongoing tool refinement.

According to the report, To counter these threats, efficient Endpoint Detection and Response (EDR) solutions are critical, offering real-time monitoring of abnormal behaviors such as process injections, script executions, and outbound cloud connections.

EDR visualization aids in mapping attack flows, from LNK execution to C2 exfiltration, enabling rapid isolation and threat classification under MITRE ATT&CK frameworks.

As RoKRAT persists in evading signature-based defenses through fileless tactics and steganography, organizations must prioritize EDR for proactive hunting, emphasizing the rising sophistication of state-sponsored North Korean cyber operations targeting Windows ecosystems in South Korea and beyond.

Indicators of Compromise (IoC)

TypeValue
MD5a2ee8d2aa9f79551eb5dd8f9610ad557
MD5ae7e18a62abb7f93b657276dcae985b9
MD5d5fe744b9623a0cc7f0ef6464c5530da
MD5f6d72abf9ca654a20bbaf23ea1c10a55
MD5fd9099005f133f95a5b699ab30a2f79b
MD55ed95cde6c29432a4f7dc48602f82734
MD516a8aaaf2e3125668e6bfb1705a065f9
MD564d729d0290e2c8ceaa6e38fa68e80e9
MD5443a00feeb3beaea02b2fbcd4302a3c9
MD5e13c3a38ca58fb0fa9da753e857dd3d5
MD5e4813c34fe2327de1a94c51e630213d1

The Ultimate SOC-as-a-Service Pricing Guide for 2025- Download for Free

Aman Mishra

Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago