Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Brazilian Trojan Conceals Malicious Code in PNG Image

Security researchers at Kaspersky Lab have discovered a new piece of malware that uses a PNG (Portable Network Graphics) image to hide malicious code.

Security researchers at Kaspersky Lab have discovered a new piece of malware that uses a PNG (Portable Network Graphics) image to hide malicious code.

The malware is distributed by email in a clean PDF, which includes a link to a .zip file that contains the malicious image, along with other files. This type of attack is not new, but is similar to previously observed attacks where cybercriminals distribute .exe or .zip files that contain a .pdf extension in the filename.

While the attack technique is not new, the delivery method is, revealing that bad actors are doing their best to find new ways to ensure their malicious code goes undetected by anti-virus products. 

Last year, information-stealing malware Stegoloader, which caused havoc among North American healthcare organizations, was also observed using a PNG image file to hide its main module. The image file was downloaded using a hardcoded URL in the initial payload and was automatically decompressed and decrypted to execute the malware and infect the compromised computer.

In this new scenario, Kaspersky’s Thiago Marques explains that attackers have moved beyond simple phishing attacks and attempted to hide the malicious payload in encrypted files that have a known file format, to avoid raising user suspicion. 

Kaspersky researchers discovered that the PDF file was generated from HTML content and even managed to find the URL of the tool used. They also observed that the malicious link in the file prompts users to download a JAR file, which downloads a ZIP file containing other files.

While analyzing the content of the .zip file, the researchers noticed that three of the files didn’t have an extension, but included a PNG file header, which shows the file type that will be used in order to open it. The file was a solid color image of only 63 x 48 pixels, but had a large file size of 1.33 MB.

The researchers identified the function that loads the PNG files to the memory and discovered that it is also responsible for decrypting and executing the extracted binary the RunPE technique. Also known as VBInject or VBCrypt, it ensures that the malicious code is executed in the context of another process, in this case iexplore.exe, while also making it difficult to detect the nefarious operation.

Advertisement. Scroll to continue reading.

Further analysis revealed that the PNG image was only 179 bytes, and that the remaining content in the file was the encrypted malicious code.

The malicious payload hosted in the PNG image cannot be executed without its launcher, meaning that it cannot be used as the main infector, Marques says. With the malware usually delivered to the victim’s mailbox, it has to be installed by a different module, but the technique is efficient at hiding malicious code inside images to avoid automated detection and to make analysis more difficult.

Kaspersky Lab researchers also note that five different files were associated with this attack, namely Trojan.Win32.KillAv.ovo, HEUR:Trojan.Win32.Generic, Trojan-Downloader.Win32.Banload.cxmj, Trojan-Downloader.Win32.Agent.hgpf, and HEUR:Trojan-Downloader.Java.Generic.

The appearance of this threat also reveals that Brazilian attacks are constantly evolving and that they are becoming more complex and efficient, the researcher notes. Just as Proofpoint revealed in a recent report, attackers are viewing people as the best exploit, and users should take extra care when opening emails or attachments received from unknown sources.

In a December 2015 SecurityWeek column, Bill Sweeney, US financial services evangelist of BAE Systems Applied Intelligence, explained that social engineering techniques have become more personalized, technologically advanced and ultimately successful. He also presented a series of effective counter-measures that enterprises can employ to improve their security.

Related: Lossy Image Compression Can Hide Malicious Code in PDF Files: Researcher

Related: Cybercriminals Use SVG Files to Distribute Ransomware

Written By

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Gain valuable insights from industry professionals who will help guide you through the intricacies of industrial cybersecurity.

Register

Join us for an in depth exploration of the critical nature of software and vendor supply chain security issues with a focus on understanding how attacks against identity infrastructure come with major cascading effects.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

The NSA and FBI warn that a Chinese state-sponsored APT called BlackTech is hacking into network edge devices and using firmware implants to silently...

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Cybercrime

No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.

Cybercrime

The recent ransomware attack targeting Rackspace was conducted by a cybercrime group named Play using a new exploitation method, the cloud company revealed this...

Malware & Threats

Apple’s cat-and-mouse struggles with zero-day exploits on its flagship iOS platform is showing no signs of slowing down.