scriptmonitoring.comdocs

Respond to a malicious script

What to do when Script Monitoring flags a malicious script: block it in the browser, check which pages it ran on, confirm the block and remove the source.

All plansUpdated

When Script Monitoring flags a malicious script, block it first and investigate second. A block from the alert stops the flagged scripts on every domain in your team, usually within a minute, in your visitors' browsers, without a deploy on your side or any change to how your traffic is routed. Each step below links to the page that explains it.

The review sheet for n0rthwind.com: 10.0 Critical, its open Payment skimmer alert, where it runs (checkout.northwind.com, loaded through Google Tag Manager, on 1 payment page with 6.4.3 not justified) and its vendor guardrails, with Not now, Allow and Block.The review sheet for n0rthwind.com: 10.0 Critical, its open Payment skimmer alert, where it runs (checkout.northwind.com, loaded through Google Tag Manager, on 1 payment page with 6.4.3 not justified) and its vendor guardrails, with Not now, Allow and Block.

Step 1: block it from the alert#

Open Security > Alerts, click Critical and open the decision. Read what happened and the script URL, then click Block and Block now. How the score and the three actions work: Alerts.

Step 2: check where it ran#

Open the vendor's details from the alert or from Security > Vendors. Where it runs shows its Payment pages, which says whether it ran in scope: Vendors.

Step 3: confirm the block#

On Security > Blocks, the rule says Blocking once it has stopped a request: Blocks.

Step 4: remove the source#

A block stops the script from loading through Script Monitoring. Also remove the cause from your site: the tag, the compromised dependency or the tag manager entry that injects it. Keep the block until you are sure the source is gone, then lift it from Security > Blocks.

Further reading#

On the Script Monitoring blog:

Frequently asked questions#

What if the script has no alert?

Add a block rule yourself on Security > Blocks with Block a script: see Blocks.

Who needs to know?

If the script ran on a payment page, involve whoever owns your PCI DSS incident response. The Malicious script detected notification can alert your team as soon as the rule fires: see Destinations.

Questions? Ask in the chat, or in the dashboard.View as Markdown
Stop attacksRespond to a malicious script