# Malicious code reaches 178 popular websites through a third-party tool | Registro Digital

> Optimizely, a web experimentation platform, confirmed that attackers planted malicious code in the scripts its customers load on their sites. Researchers found it on 178 widely visited websites.

- Página: https://registrodigital.com.ec/malicious-code-websites-third-party-tool
- Publicado: 2026-11-17
- Temas: Security

Optimizely, a company that helps websites test changes and personalise the visitor experience, confirmed that attackers planted malicious code in the scripts its customers load from its service. According to The Record, researchers found malicious JavaScript on 178 widely visited websites that use its web experimentation platform.

KrebsOnSecurity notes that the code was built to steal visitor data, and that the incident was made worse because few popular websites enforce strict rules on where third-party content can come from.

## What it means for your site

The affected sites were not attacked directly: the problem arrived through an external script they trusted. Any site that loads third-party code (analytics, chat, advertising, A/B testing) shares that risk.

- List the external scripts on your site and remove the ones you no longer use.
- Set a Content Security Policy (CSP) that limits where code can be loaded from.
- Use Subresource Integrity (SRI) on scripts that do not change.
- On payment and sign-in pages, load only what is essential.

The affected sites were not attacked directly: the problem arrived through an external script they trusted.

If you want to review your site's protection, see the [security options for your hosting](https://registrodigital.com.ec/seguridad-hosting) at Registro Digital.

Source: [The Record](https://therecord.media/optimizely-malicious-code-customer-sites), [KrebsOnSecurity](https://krebsonsecurity.com/2026/11/attackers-used-optimizely-to-a-b-test-malware-on-top-websites/), [BleepingComputer](https://www.bleepingcomputer.com/news/security/optimizely-supply-chain-attack-delivers-malware-to-cnn-fox-news-bbc-salesforce-sites/)

_Versión en Markdown de https://registrodigital.com.ec/malicious-code-websites-third-party-tool. Índice de páginas para IA: https://registrodigital.com.ec/llms.txt_
