Skip to content
Nirmal Dahal

22 Nov 2016 · 1 min read

Facebook SVG Locky ransomware analysis

How a malicious SVG file spreading on Facebook redirected victims to a fake YouTube page that pushed a browser extension tied to Locky ransomware.

By Nirmal Dahal

Obfuscated JavaScript from the malicious SVG beside a Facebook chat that received the file Photo_9166.svg

This Is What Actually Facebook’s SVG Malware Is Doing. We Had Used W3School’s IDE While Analyzing The Malicious SVG File. We Had Also Changed Some Code Of That Malicious SVG’s File For Decryption Purpose, The Values Have Been Decrypted From The SVG File.

How the attack worked

  • After sending the SVG file could have been possibly been auto-loaded or could have required some user interaction.

  • It had been re-directed to mourid.com/php/trust.php, as it was the place for a malicious extension.

W3Schools editor running the deobfuscated SVG script, whose alert reveals the redirect to the malicious http://mourid.com/php/trust.php link

  • After loading the page, it looked like a YouTube page. And a JavaScript alert pops out to install an extension.

  • The extension had been used for spreading the malware, and could also have been the backdoor for the attacker spreading ransomware.

  • The malware analysis has also been done by Payload Security, We can share the link if anyone is interested.

About this analysis

This Analysis Was Done By Me & Samir Bro. While Analyzing This SVG Malware I Got Blocked By Facebook From Using Some Features Of Facebook Like Open Graph Actions etc

Facebook notices showing Nirmal's account restricted from open graph actions and flagged for malicious software after the analysis

Thank You For Reading This Article 🙂

Let's scope it together.

Tell me what you need to protect and by when. I'll reply with whether I can help and how I'd approach it.