Cyber Security News

New PixelCode Attack Smuggles Malware via Image Pixel Encoding

A novel malware delivery technique dubbed “PixelCode” has been demonstrated, showing how malicious executables can be encoded directly into video frames.

The approach allows threat actors to host these videos on legitimate platforms such as YouTube, helping the malware evade traditional detection mechanisms.

The PixelCode technique transforms binary executable files into visual pixel data, effectively disguising malware as harmless multimedia content.

By converting each byte of an executable into structured color matrices, attackers can embed entire payloads within image or video files without exposing their raw binary form.​

PixelCode encodes digital files into visual data recoverable by a decoder (source: S3N4T0R)

According to S3N4T0R, the attack chain begins with a malicious C++ payload designed for command-and-control communication.

After compilation, the executable is processed through a Python-based encoder that converts the binary into a PixelCode MP4 video file.

This encoded video is then uploaded to YouTube, allowing attackers to leverage a trusted platform’s infrastructure for payload hosting.​

Multi-Stage Delivery Process

The delivery mechanism employs a sophisticated multi-stage approach. A custom C++ loader contains an embedded YouTube URL pointing to the PixelCode video.

Loader retrieves a PixelCode video to re-establish BEAR-C2 control (source: S3N4T0R)

Because C++ lacks native multimedia decoding libraries, researchers embedded a Base64-encoded Python stager directly within the loader.​

When executed on a target system, the loader downloads the PixelCode video from YouTube and deploys the embedded Python stager.

This stager processes the video frame by frame, extracting pixel data and reconstructing the original malicious executable in memory before execution.​

The technique poses significant detection challenges for traditional security solutions. By disguising malware as legitimate video content hosted on trusted platforms, attackers can bypass conventional file-based scanning and network filtering mechanisms.

Uploading the Pixel Code Video to YouTube (Source: S3N4T0R)

Security filters designed to inspect executable files may not scrutinize multimedia content with the same rigor.​

An offensive security engineer, S3N4T0R, specializing in adversary simulation and defensive evasion, developed the proof-of-concept for research and educational purposes.

The researcher has previously created multiple APT simulation tools, including the BEAR C2 framework and adversary simulations mimicking APT28 and APT29 threat groups.​

Organizations should implement behavioral analysis and memory-based detection capabilities to identify suspicious activities involving payload reconstruction.

Reconstructing and Executing the Original Payload (Source: S3N4T0R)

Network monitoring for unusual video downloads followed by immediate execution patterns may help detect this attack vector.

Additionally, organizations should restrict the delivery of executable content from external video hosting platforms in high-security environments.

The PixelCode technique underscores the evolving sophistication of malware delivery methods and the importance of defense-in-depth strategies that extend beyond traditional signature-based detection.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Abinaya

Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.

Recent Posts

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…

3 hours ago

CISA and NIST Release Technical Checklist for Safeguarding Identity Tokens From Theft and Misuse

The Cybersecurity and Infrastructure Security Agency (CISA) and the National Institute of Standards and Technology…

13 hours ago

CISA Shares 17 Techniques Used by Hackers to Compromise Active Directory Environments

CISA and five international cybersecurity agencies have released detailed guidance describing 17 common techniques hackers…

14 hours ago

Apple Rolls Out Massive Security Update Fixing 273 Vulnerabilities Across Its Devices

Apple has released one of its largest coordinated security rollouts, addressing 273 distinct critical vulnerabilities…

14 hours ago

How to Keep Malware’s Rotating Infrastructure From Becoming a Detection Gap

You can’t detect today's attacks with yesterday’s threat intelligence; that’s how you could briefly formulate…

14 hours ago

Microsoft Bans Its AI Models From Launching Cyberattacks or Escalating Their Own Access

Microsoft has published a draft Humanist AI Code of Conduct that would prohibit its in-house…

14 hours ago