Sri Lanka CERT, the national cyber security agency, has urged organisations that use Optimize Web Experimentation and other third-party JavaScript services to strengthen the security of their websites and web applications immediately, following a global software supply chain attack that affected 178 organisations.
Sri Lanka CERT said the incident was identified on 16 November. It involved the injection of malicious JavaScript into legitimate website scripts, which could allow unauthorised activity in a visitor’s browser and the theft of information.
The agency asked organisations to find out which of their websites and applications rely on Optimize Web Experimentation or other externally hosted JavaScript services. They should then contact Optimize to establish whether their accounts or projects were affected, it said.
Sri Lanka CERT also advised organisations to inspect their JavaScript files, project configurations and historical changes for unauthorised modifications, and to review security logs for suspicious network connections and unusual browser activity.
It singled out websites that handle online payments, financial transactions and user logins, saying their operators should pay particular attention to possible exposure. Where exposure is confirmed, organisations should investigate suspicious login activity and reset credentials or invalidate user sessions, the agency said.
The agency recommended restrictive Content Security Policy (CSP) controls and regular monitoring of third-party scripts for unexpected changes. It asked organisations to keep relevant security logs and suspicious files for further investigation and to report suspected incidents immediately. The full alert is published on the Sri Lanka CERT website under the reference CERT-NCSOC-0234.
Background
A software supply chain attack targets a trusted third-party service instead of the final website. Many sites load scripts from outside providers for analytics, advertising, testing of page layouts or payment features. If an attacker alters one of those scripts, the change can reach every site that loads it, often without the site owner noticing.
A Content Security Policy is a browser setting that lets a website owner list the sources from which scripts may be loaded. It limits the damage if a script is tampered with. Sri Lanka CERT, which works on national cyber security incidents, regularly issues alerts of this kind to government bodies and private companies.
What it means
Most of the guidance is aimed at the people who run websites, such as banks, online retailers, airlines and government portals. The agency’s focus on payment, transaction and login pages shows where it sees the greatest risk for ordinary users.
Internet users cannot check a site’s scripts themselves. Sri Lanka CERT’s advice to reset credentials and end sessions where exposure is confirmed means that customers of an affected service may be asked to change their passwords. Users who receive such a request from a service they use should follow the instructions given on the service’s official website.