Cyber Security News

Malicious Payload Uncovered in JPEG Image Using Steganography and Base64 Obfuscation

In a sophisticated cybersecurity incident discovered on June 16, 2025, security researchers identified a malicious payload cleverly hidden within a JPEG image using a combination of steganography and modified Base64 encoding techniques.

The malware, embedded after the file’s End Of Image (EOI) marker, represents an evolving threat vector where seemingly innocuous image files serve as carriers for malicious code, bypassing traditional security mechanisms that often fail to inspect image content beyond rendering requirements.

Data is appended (after EOI, End Of Image) (Source – Internet Storm Center)

The compromised image, distributed from the domain hxxps://zynova[.]kesug[.]com/new_image.jpg, appears normal when viewed but contains executable code appended to its structure.

This technique leverages the tolerance of image viewers and web browsers that typically ignore data beyond the image’s formal end marker, allowing threat actors to exploit this technical gap.

The payload delivery mechanism suggests a targeted approach rather than widespread distribution, indicating a potentially sophisticated threat actor with specific objectives.

Security implications of this technique are significant, as images are commonly shared across platforms with minimal security scrutiny.

The ability to hide executable code within seemingly harmless media files creates opportunities for initial access to secured environments, command-and-control communications, or data exfiltration channels that may evade detection by conventional security tools.

Internet Storm Center researchers noted that the malicious payload utilized an unusual obfuscation technique to further evade detection.

Analysis revealed that the standard Base64 alphabet was modified, with the character ‘@’ substituted for ‘A’ throughout the encoding process, creating an immediate challenge for automated detection systems that scan for standard Base64 patterns.

When properly decoded, the payload revealed a .NET DLL file beginning with the telltale “MZ” header characteristic of Windows executable files.

This discovery was made possible through specialized tools including jpegdump.py, which identified trailing data after the image’s structural end, and byte-stats.py, which revealed the statistical anomaly in character distribution that pointed to the Base64 substitution pattern.

Analysis of the Obfuscation Mechanism

The technical analysis of the malware reveals a multi-layered obfuscation approach. Initial examination of the appended data using the jpegdump.py tool showed a string beginning with “TVqQ” – which typically decodes to “MZ” in standard Base64, the magic header identifying Windows executable files.

However, the presence of ‘@’ characters where ‘A’ would normally appear presented an immediate detection challenge.

SHA256 hash instead of the MD5 hash (Source – Internet Storm Center)

A statistical analysis using byte-stats.py confirmed the unusual character distribution, showing that every letter of the alphabet appeared in the payload except for ‘A’, strongly suggesting a deliberate substitution pattern.

The command base64dump.py -e @ A new_image.jpg successfully decoded the payload by replacing each ‘@’ with ‘A’ before standard Base64 decoding, resulting in the extraction of a complete .NET DLL file.

The extracted malware’s SHA256 hash matched previously documented samples, confirming its relationship to a known threat campaign.

This evasion technique demonstrates the ongoing cat-and-mouse game between threat actors and security researchers, where even small modifications to standard encoding schemes can temporarily bypass detection mechanisms.

Automate threat response with ANY.RUN’s TI Feeds—Enrich alerts and block malicious IPs across all endpoints -> Request full access

Tushar Subhra Dutta

Tushar is a senior cybersecurity and breach reporter. He specializes in covering cybersecurity news, trends, and emerging threats, data breaches, and malware attacks. With years of experience, he brings clarity and depth to complex security topics.

Recent Posts

Microsoft Releases Emergency Windows 11 Update Following Patch Tuesday Bugs

Microsoft has pushed out an emergency, out-of-band Windows 11 update after its September Patch Tuesday…

2 minutes ago

Top 10 Best Cloud Detection & Response (CDR) Solutions in 2026

CDR is the runtime, real-time half of cloud security: while CSPM tells you what’s misconfigured,…

6 minutes ago

Top 10 Best SaaS Security Posture Management (SSPM) Tools in 2026

Your SaaS estate M365, Salesforce, Workday, Slack, hundreds of others is a sprawl of misconfigurations,…

12 minutes ago

Top 10 Best Data Security Posture Management (DSPM) Tools in 2026

DSPM finds sensitive data you didn’t know you had, classifies it, maps who can reach…

17 minutes ago

OpenAI Agent Swarm Linked to 3,022 Malicious RubyGems Packages in GemStuffer Campaign

Open-source packages are meant to save developers time. In the GemStuffer campaign, that trust became…

28 minutes ago

Google Chrome 153 Update Fixes 42 Security Flaws, Including 3 Critical Ones

Google has released an important Chrome 153 security update that fixes 42 vulnerabilities across the…

5 hours ago