Numerous Websites Serve Up Dangerous Malware to Unwary Visitors

On Tuesday, cybersecurity researchers reported that a significant number of websites utilizing the Optimizely platform for web personalization fell victim to a sophisticated malware attack. This incident compromised the security of unsuspecting visitors by injecting harmful code that specifically targeted cryptocurrency wallets, siphoned sensitive payment card information, captured cookies, and even took screenshots. Furthermore, the attack was capable of deploying exploit kits aimed at infecting Apple’s iPhones and iPads.

The security firm ReportURI revealed that 178 websites were affected, including major brands such as CNN, Zoom, the BBC, and Salesforce. Researchers noted that attackers manipulated JavaScript code that had been authorized by Optimizely and embedded it within the customer websites. This malicious code was designed to facilitate multiple payloads, which, once executed, replaced users’ cryptocurrency wallet addresses with those of the attackers. Additional functionalities included the theft of payment card details, cookies, screenshots, and the distribution of iOS exploit kits, specifically designed to compromise devices running Apple’s mobile operating system.

The attack leveraged legitimate aspects of the Optimizely infrastructure, showcasing a concerning method of delivery. JavaScript “snippets” that contain both Optimizely’s proprietary code and customer-provided code execute on all pages served by clients. Attackers managed to insert their own code into these snippets, which were then served from Optimizely’s content delivery network (CDN), validated by a legitimate certificate. This underscores a critical breakdown in security protocols, indicating how legitimate resources can be exploited to distribute harmful software.

Scott Helme, a researcher from ReportURI, clarified that this incident should not be classified as a CDN cache poisoning attack, which typically involves exploiting HTTP responses to cache malicious content. Instead, this attack utilized Optimizely’s valid infrastructure and domains, affecting not only customer-generated JavaScript but also elements from Optimizely’s core services, such as those linked to www.optimizely.com and login.optimizely.com.

The method of access for attackers remains unclear, with speculations suggesting either a compromised Optimizely system or possibly the use of compromised credentials with access to multiple customer projects. This ambiguity lies with Optimizely to elucidate, and representatives from the company were unavailable for comment regarding this incident.

The malicious scripts were identified as track.js, with all four components activating simultaneously. The impact varied across devices and users depending on their platform and activity on the final page where the malicious code was executed. This incident serves as a stark reminder of the vulnerabilities present in widely-used platforms and the potential for exploiting them to achieve widespread malicious outcomes.

In examining this incident through the lens of the MITRE ATT&CK framework, potential tactics and techniques that could have been employed by the adversaries include initial access, as attackers gained unauthorized entry through manipulation of JavaScript. Other possible tactics include command and control mechanisms aimed at maintaining persistence on compromised systems and privilege escalation techniques to further exploit affected devices. As cyber threats continue to evolve, this incident emphasizes the critical importance of uniformly robust security practices across the digital landscape to protect against increasingly sophisticated attacks.

Source