Friday, October 9, 2026

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.

JPEG Files
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 “[email protected]” and “[email protected],” 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
Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

CastleStealer Malware Bypasses Chromium ABE and Adds Remote Command Execution Capabilities

CastleStealer, a C# information stealer first publicly identified in...

Cisco Talos Warns AI Agent Swarms Can Compress Cyberattacks From Months to Hours

Cisco Talos warns that coordinated AI agent swarms could...

12 Best Software Supply Chain Security Tools Compared (2026): Features & Pricing

Chainguard leads the eliminate-the-problem lane with hardened zero-CVE images,...

11 Best API Security Tools Compared (2026): Features & Pricing

Salt Security and Traceable anchor dedicated discovery-plus-runtime defense, 42Crunch...

Warden Stealer Malware Targets Claude, Codex, Grok and Cursor to Steal AI Agent Data

Warden Stealer as a rapidly growing malware-as-a-service operation targeting...

Related Articles

Recent News