AI recommends, you decide
Scripts the detection rules flag are sent to AI analysis for a verdict, a category and a confidence. The engine never blocks a script on its own.
Critical has to be earned
An alert is Critical only for a confirmed threat that reaches your visitors: AI says malicious with 90% confidence or more, or there is a known malware advisory.
A slow path for trusted vendors
An approved vendor that starts doing something new goes back to review.
Pro and Enterprise
AI analysis, and everything in this post built on it, is on Pro and Enterprise. Block rules and PDF evidence packs are on every plan, including Free.
Why does the Script Monitoring AI never block a script on its own?
Because a wrong block breaks a checkout, and any analysis can be wrong. Our detection engine tells you which scripts look dangerous, how sure it is and why. It does not act on that answer itself. The script analysis page explains how the engine finds a threat. This post covers what keeps its output predictable, how approved vendors go back to review, and where the engine stops. AI analysis, the verdicts, the confidence and the Critical rule built on them, and the AI reachability check are on Pro and Enterprise.
The engine in brief
Detection rules evaluate every new script URL, and the scripts they flag are sent to AI analysis, which returns a verdict, a category and a confidence. The steps and the inputs, from YARA signatures to OSV advisories, are on our script analysis page.
An example: not sure, so not Critical
On our demo store, Northwind, a new script appears on the payment page, promo-banner.js, added through the tag manager. The rules flag it: it reads the card number field and sends requests to a host the page never used before. AI analysis returns malicious, data exfiltration, 82% confidence.
82% is under the 90% bar, so the alert reads "Possibly malicious" and ranks High, not Critical. The evidence sits in its "Why this fired" panel. The team reads it, sees nobody on their side asked for a banner script on the checkout, and decides to block it. Block opens a sheet with the flagged script and the domains it loads on, and Block now stops it on every domain in the team, usually within a minute. The engine ranked and explained. The block was the team's decision.
Why the engine never blocks on its own
An engine that blocks automatically has to be right every time. Ours is built on the assumption that it will not be:
- A wrong block costs a sale. "A script reads the card number field" describes a skimmer. It also describes your payment provider's widget. Block the wrong one and the checkout stops working for every visitor.
- Any analysis can be wrong. Every verdict comes with a confidence. Under 90%, a malicious call reads "Possibly malicious": the engine is telling you it is not sure.
- Blocking is a business decision. Removing a vendor can break a feature someone depends on. The person who owns the page knows that. The engine does not.
So the engine confirms and explains, and a person decides: one decision per vendor, Allow, Remediate… or Block. Keeping a person in the loop costs little, because a block usually takes effect within a minute, with no deploy on your side.
Guardrails: keeping the output predictable
An AI layer that raises false alarms is as useless as a noisy rule. So the engine wraps it in explicit guardrails:
- Critical has to be earned. Critical needs a confirmed threat that reaches your visitors: AI says malicious with 90% confidence or more, or there is a known malware advisory. A malicious call under 90% reads "Possibly malicious" and stays at High at most.
- No verdict, no alert. A flagged script that has no verdict from AI analysis does not alert.
- Rule scores are fixed. Our security research team writes and curates the detection rules, and every rule has a fixed score from 1 to 10, the same for every customer. AI analysis adds judgement on top. It does not rewrite the rules.
- One verdict per script, not one per rule. A script can trip several rules. AI analysis weighs them together and returns a single answer you can act on.
- Every verdict is auditable. The verdict, category, confidence and evidence sit on the alert, in the "Why this fired" panel, so your team can check the reasoning instead of trusting a black box.
- What did not alert stays listed. Alerts > Other findings lists what was found but did not alert, with the reason: AI not a threat, CVE not alert-worthy, allowed by review, or suppressed.
Vulnerable libraries: reachable or not
The same restraint applies to vulnerable libraries. Northwind's checkout loads a slider library with two published advisories, and AI analysis reads the library's code with each advisory. The first is a cross-site scripting flaw in an option that renders HTML, and that code is in the file: it alerts. The second is in the library's server-side rendering helper, which is not in the browser build: it is set aside under Other findings as "CVE not alert-worthy", with "server-side only" as the reason. The team gets one alert to act on, not two upgrades of equal weight.
How advisories are checked and ranked is on the script analysis page, and Malicious vs vulnerable scripts covers which to fix first.
The slow path: approved vendors go back to review
Everything above is the fast path: it answers "is this script dangerous right now?" as soon as a script is seen. The slow path answers a different question: "is this vendor still doing what we approved it for?". It works over days and weeks, on the vendors you already trust.
- Change detection on approved vendors. An approval covers what a vendor did on the day you approved it. It goes back to Needs review, marked Changed since approval, when its scripts start reading card fields on your payment domains, when a vendor that reads card fields sends requests to a host it had not contacted before, or when a new alert fires on its scripts. Each change shows the day it was first seen.
- Decisions with a recorded rationale. Every approval keeps its justification. On Pro and Enterprise, AI drafts that justification from the evidence, and PCI auto-approval approves the vendors it can justify. It never approves a vendor with an open alert, a known exploited (KEV) or supply-chain malware advisory, or a flaw AI analysis found reachable in the browser.
- A durable evidence trail. Every Monday a weekly evidence pack records which scripts and vendors ran on your payment pages, why each one is there and what changed. Packs are kept 18 months, ready to hand to an assessor.
It also helps with the script inventory and change detection that PCI DSS 6.4.3 & 11.6.1 ask for.
See every script on your checkout as real shoppers receive it, and get alerted when new code appears. Free on 1,000 page views a month.
Where Script Monitoring fits, and its limits
Script Monitoring watches, explains and lets you block. Guardrails make it predictable. They do not make it perfect:
- The AI can be wrong. That is why every verdict carries a confidence and its evidence, why a malicious call under 90% reads "Possibly malicious" and cannot make an alert Critical, and why the block stays your decision.
- The first visitors run a script before any alert. The engine works from what real visits report, so a new script has already run for the visitors who loaded it by the time it is analyzed. Monitoring shortens how long a bad script runs. It does not stop the first load.
- A change at the same address may not be seen. A file that loads on every page is not re-read every time it loads, so a change to a script at an address we already know can go unseen for a while.
- We only see what we are shown. The engine covers pages that load the tag and, on Pro and Enterprise, pages the Agentic Web Scanner visits. A page with neither is out of view.
Sources and methodology
The public data sources named in this post: OSV (osv.dev), the open source vulnerability database; the CISA Known Exploited Vulnerabilities catalog (KEV); and YARA, the pattern matching tool for malware research. The plan and product details come from the Script Monitoring documentation. The examples use demo data for a fictional store, Northwind. No customer data is shown.
Ask an AI
Don’t just take our word for it
Why does the Script Monitoring detection engine never block a script on its own, and what guardrails keep its AI analysis predictable?
Frequently asked questions
Does the detection engine block scripts on my site?
No. The engine gives each flagged script a verdict, a category and a confidence, with the evidence. Blocking is always your decision: Allow, Remediate… or Block, one decision per vendor.
Can the AI be wrong?
Yes, like any analyst. That is why every verdict comes with a confidence and the evidence behind it, why Critical needs 90% confidence or more, and why the decision to block stays with you.
When is an alert Critical?
Only for a confirmed threat that reaches your visitors: AI says malicious with 90% confidence or more, or there is a known malware advisory.
What does "Possibly malicious" mean?
AI analysis called the script malicious with less than 90% confidence. It is not confirmed, so the alert stays at High at most. Read the evidence in "Why this fired" and decide.
What happens to a flagged script that gets no verdict?
It does not alert. Without a verdict from AI analysis, the rules' flag alone does not raise an alert.
Where do I see what did not alert?
Under Alerts > Other findings, one row per script, with the reason: AI not a threat, CVE not alert-worthy, allowed by review, or suppressed.
What is the difference between the fast path and the slow path?
The fast path answers "is this script dangerous right now?" as soon as a script is seen: rules flag it and AI analysis returns a verdict. The slow path watches the vendors you approved over days and weeks and sends them back to review when what they do changes.
What happens when a vendor I approved changes?
It goes back to Needs review, marked Changed since approval, when its scripts start reading card fields, when a vendor that reads card fields sends requests to a new host, or when a new alert fires on its scripts. Each change shows the day it was first seen.
Can a malicious script run before I get an alert?
Yes, for the first visitors who load it. The engine works from what real visits report, so monitoring shortens how long a bad script runs rather than stopping its first load.
How fast does a block take effect?
Block now stops the flagged scripts on every domain in the team, usually within a minute, with no deploy on your side. Block rules are on every plan, including Free.
