Cybersecurity Research

Booby-trapped photos on WhatsApp: how a Samsung image library flaw was used to attack Android phones

Project Zero · 13 Dec 2025
Key Takeaway Keep Samsung devices fully updated with the latest security patches and tell staff not to tap images from unknown contacts in messaging apps.

Between July 2024 and February 2025, six suspicious image files were uploaded to VirusTotal. After a lead from Meta, they came to the attention of Google's Threat Intelligence Group. Analysis showed they were Digital Negative (DNG) files, despite carrying a jpeg extension, and that they targeted the Quram library, an image parsing component specific to Samsung devices. Samsung fixed the vulnerability in April 2025. Unit 42 has already published a blog describing how the exploits were used and the spyware they delivered, so Project Zero's write-up focuses on the technical workings.

Filenames on several samples suggested the images arrived over WhatsApp. The target was a Samsung system service, com.samsung.ipservice, which provides AI-powered features and periodically scans images and videos in Android's MediaStore. When WhatsApp downloads an image, it is added to the MediaStore, so a received picture can reach the service's image parsing code. Two of the samples were received on the same day, one built for the older jemalloc memory allocator and one for the more hardened scudo allocator used on recent Android versions.

WhatsApp does not normally auto-download images from untrusted contacts. Unless an attacker had a way around that, a target would need to tap the image to download it, making this a one-click attack. The researchers say they have no knowledge or evidence of such a bypass being used.

The files themselves looked odd. Their stated image dimensions were suspiciously small, and they contained thousands of DNG opcodes, which are instructions normally used for tasks like lens correction. The researchers found the service passes files with jpg or jpeg extensions to a Quram decoding method, which is where the malicious file's content gets processed.

Why it matters

This shows that a background system service, not the messaging app itself, can be the real attack surface: any image saved to the phone's media store may be parsed by vendor code the user never sees. The assumption that an image is harmless until opened breaks, and file extensions are no guide, since a DNG was disguised as a jpeg. Organisations with Samsung phones in the fleet need patch status, not just app settings, to be part of their mobile risk decisions.

What to do

  • Confirm Samsung devices have security updates from April 2025 or later, which include the Quram fix.
  • Instruct staff not to tap or download images from unknown contacts in WhatsApp.
  • Check that WhatsApp media auto-download settings are restricted on work devices.

Summarised by CISO AI from Project Zero, written with Claude Sonnet 5.5. We link back to every original so you can read it yourself.