Trojan Infects Browser Extensions After Disabling Integrity Checks

Security researchers have discovered a new Trojan program dubbed Razy that installs itself as a browser extension or infects existing browser extensions after disabling integrity checks.

According to researchers from Kaspersky Lab, Razy is distributed via malicious advertisements on websites or through free file-hosting services where it poses as legitimate applications people might search for.

The Trojan’s main goal appears to be cryptocurrency theft. It monitors for cryptocurrency wallet addresses displayed on websites and replaces them with an address controlled by its creators. It spoofs images of QR codes that link to cryptocurrency wallets and modifies the websites of cryptocurrency exchanges. Finally, it injects fake links into search engine results on Google and Yandex.

Razy appears to be aimed primarily at Russian users, but its infection of Google Chrome, Mozilla Firefox and Yandex Browser is actually its most dangerous feature because it can be replicated by other malware authors.

The Trojan uses a slightly different approach for each browser. For Firefox, it copies a malicious extension called Firefox Protection, then edits several user profile configuration files to enable it inside the browser without user confirmation.

For Yandex Browser, it disables extension integrity checking by modifying and renaming one of the program’s dll files. It then disables browser updates, which includes updates for extensions, by editing several registry keys and proceeds to install itself as an extension called Yandex Protect. If such an extension already exists, it replaces that extension with a copy of itself.

The infection method for Chrome is similar because Yandex Browser is based on the Chromium open source project, just like Google Chrome. However, the modified files and registry keys have different names.

It also seems that in the case of Google Chrome the Trojan modifies existing extensions rather than attempting to install itself as one. This is most likely done because the browser has protections against extensions that are not installed through the Chrome Web Store.

“We have encountered cases where different Chrome extensions were infected,” the Kaspersky Lab researchers said in a blog post. “One extension in particular is worth mentioning: Chrome Media Router is a component of the service with the same name in browsers based on Chromium. It is present on all devices where the Chrome browser is installed, although it is not shown in the list of installed extensions.”

In addition to cryptocurrency theft, Razy injects videos and rogue advertisements into different websites, as well as errors or warnings that lead to phishing sites. It even spoofs the donation requests displayed on and displays fake offers for tokens on Telegram’s website.

Malvertisement Distributes Shlayer Trojan to Mac Users

Up to 5 million Mac users have been the target of a recent malvertising attack that injected fake Flash Player warnings into websites to distribute a Trojan program called Shlayer.

Using fake Flash Player updates to trick Mac users into installing malware is not a new technique, but the more interesting aspect is how this particular attack group, dubbed VeryMal, bypassed the defenses of advertising networks to get their malicious advertisement to users.

VeryMal’s JavaScript code served to networks looked harmless, but it leveraged the HTML5 Canvas API to extract additional code hidden inside a non-suspicious image. This technique of hiding secrets, or in this case code, inside images is called steganography.

“VeryMal has run multiple campaigns in waves utilizing the veryield-malyst domain as their redirector since August of last year—this recent one being the most notable due to the steganography that was leveraged for client-side obfuscation,” researchers from Confiant said in a blog post.

“As malvertising detection continues to mature, sophisticated attackers are starting to learn that obvious methods of obfuscation are no longer getting the job done,” the researchers said. “The output of common JavaScript obfuscators is a very particular type of gibberish that can easily be recognized by the naked eye. Techniques like steganography are useful for smuggling payloads without relying on hex encoded strings or bulky lookup tables.”

Lucian Constantin

Featured eBook
7 Must-Read eBooks for Security Professionals

7 Must-Read eBooks for Security Professionals

From AppSec to SecOps, Security Boulevard eBooks deliver in-depth insights into hot topics that matter to the Cybersecurity and DevSecOps professionals. Our staff of writers are the best in the business, with decades of practical and award-winning experience and credentials. We are excited to share our 2019 favorites. Take a look and download some of ... Read More
Security Boulevard

Lucian Constantin

Lucian has been covering computer security and the hacker culture for almost a decade, his work appearing in many technology publications including PCWorld, Computerworld, Network World, CIO, CSO, Forbes and The Inquirer. He has a bachelor's degree in political science, but has been passionate about computers and cybersecurity from an early age. Before he chose a career in journalism, Lucian worked as a system and network administrator. He enjoys attending security conferences and delving into interesting research papers. You can reach him at [email protected] or @lconstantin on Twitter. For encrypted email, his PGP key's fingerprint is: 7A66 4901 5CDA 844E 8C6D 04D5 2BB4 6332 FC52 6D42

lucian-constantin has 298 posts and counting.See all posts by lucian-constantin