Security Market Segment LS
Friday, 26 March 2021 00:01

Cloudflare offers protection against malicious JavaScripts


Web acceleration and security provider Cloudflare's new Page Shield feature aims to protect sites and their users from malicious code introduced through third-party dependencies.

According to the company, the problem goes back as far as 2015 when the Magecart group stole payment credentials from online stores by adding its code to third-party dependencies.

When a customer loaded a web page that used the now-fraudulent routine, the code executed in their browser, collecting the information they entered and forwarding it to the criminals behind the scheme.

Well-known companies caught by such skullduggery inclide Ticketmaster and Newegg.

British Airways was hit by a similar attack on one of its own self-hosted JavaScript files, resulting in GDPR fines and the largest class-action privacy suit in UK history.

Cloudflare thinks it has a solution to this and related problems such as the display of fraudulent advertisements (sometimes linked to phishing sites) and unauthorised cryptomining.

The first weapon in Page Shield's arsenal is Script Monitor.

Script Monitor records a site’s JavaScript dependencies over time, and generates an alert when a new JavaScript dependency appears, prompting the site owner to check the legitimacy of the change.

This feature is in beta, and when compete will be made available to Cloudflare's business and enterprise customers at no extra charge.

It works by adding an additional Content-Security-Policy-Report-Only header to pages as they pass through Cloudflare's edge, so when JavaScript files attempt to execute on the page, the browser will send a report back to Cloudflare.

When a report is received, Cloudflare automatically compares the JavaScript file with the historic dependencies and check if the file is new. If it is, an alert is raised.

Additional Page Shield features are underway or being planned.

Code change detection (under development) will periodically fetch an application’s JavaScript dependencies and analyse their behaviour. Any new behaviour causes an alert to be raised.

Down the track, intelligent analysis of JavaScript files will allow Cloudflare to highlight apparently malicious dependencies.

Subscribe to ITWIRE UPDATE Newsletter here


The much awaited iTWire Shop is now open to our readers.

Visit the iTWire Shop, a leading destination for stylish accessories, gear & gadgets, lifestyle products and everyday portable office essentials, drones, zoom lenses for smartphones, software and online training.

PLUS Big Brands include: Apple, Lenovo, LG, Samsung, Sennheiser and many more.

Products available for any country.

We hope you enjoy and find value in the much anticipated iTWire Shop.



iTWire TV offers a unique value to the Tech Sector by providing a range of video interviews, news, views and reviews, and also provides the opportunity for vendors to promote your company and your marketing messages.

We work with you to develop the message and conduct the interview or product review in a safe and collaborative way. Unlike other Tech YouTube channels, we create a story around your message and post that on the homepage of ITWire, linking to your message.

In addition, your interview post message can be displayed in up to 7 different post displays on our the site to drive traffic and readers to your video content and downloads. This can be a significant Lead Generation opportunity for your business.

We also provide 3 videos in one recording/sitting if you require so that you have a series of videos to promote to your customers. Your sales team can add your emails to sales collateral and to the footer of their sales and marketing emails.

See the latest in Tech News, Views, Interviews, Reviews, Product Promos and Events. Plus funny videos from our readers and customers.


Stephen Withers

Stephen Withers is one of Australia¹s most experienced IT journalists, having begun his career in the days of 8-bit 'microcomputers'. He covers the gamut from gadgets to enterprise systems. In previous lives he has been an academic, a systems programmer, an IT support manager, and an online services manager. Stephen holds an honours degree in Management Sciences and a PhD in Industrial and Business Studies.

Share News tips for the iTWire Journalists? Your tip will be anonymous




Guest Opinion

Guest Interviews

Guest Reviews

Guest Research

Guest Research & Case Studies

Channel News