This article focuses on the Jscrambler use case for AI Data Governance and explains how Jscrambler enables you to control what embedded AI agents and AI-powered scripts can access on your website, and to catch it when their behavior changes.
Welcome back to the Jscrambler 101 series! Jscrambler 101 is a series of articles about the Jscrambler Client-Side Security Platform, its main use cases, innovative features, and tips on maximizing its benefits.
AI is turning up on more and more websites: support chatbots, shopping assistants, search widgets, and personalization tools. Most of them arrive as third-party scripts, and they need context from the page to work. That context can include whatever the user has typed into a form, what’s on their account page, and what’s stored in cookies or browser storage. In this article, we’ll cover why that’s a governance problem and how to use Jscrambler to see what your embedded AI agents can read, limit them to what they need, and catch it when they start behaving abnormally.
The Dangers of Uncontrolled AI Scripts
An embedded AI agent runs as a third-party script, with the same access to the page as your own code. So a chat widget that only needs to know which product a shopper is viewing can also read their name, address, and account details, and pass them to an external model as part of the prompt’s context.
Once that data reaches an external model, you can’t pull it back. AI vendors also update their scripts often, so an agent you reviewed at launch may be reading more today. Your AI policy, vendor contracts, and the API’s permissions describe what should happen, but none of them control what the script does once it’s running on the page.
Governing AI Scripts with Jscrambler
The Jscrambler Client-Side Security Platform shows you which AI agents and scripts run on your site and what data they touch, and lets you limit that in the browser while the page is running. Let’s see how it works.
Script Discovery & Access Mapping
First, find out which AI-powered scripts and embedded agents are actually running on your site. With AI-Powered Script Discovery & Access Mapping, Jscrambler inventories the first- and third-party scripts on your pages, including embedded AI agents and chatbots, and monitors what each one does. You’ll find the inventory in the Vendor Services dashboard, with scripts grouped by vendor.
This dashboard will also alert you when a new vendor script appears, so you can catch the AI widget the marketing team added without a vendor review.

An example of the Vendor Services dashboard showing third-party vendors and their scripts.
It’s worth comparing this list with your inventory of approved AI tools. If an AI vendor shows up here but not on your approved list, that’s a gap in your AI governance program.
You can click into any AI vendor to see what its script does: the data it accesses or transfers, the pages it runs on, and its risk profile. Real-Time Vendor Risk Assessments build that profile from the vendor’s activity in live sessions, so it updates as the script’s behavior changes.

An example of a vendor detail view showing data accessed, pages, and risk insights.
Sensitive Data Access Mapping
If you’d rather start from the data than the vendor, use the Sensitive Data dashboard. It shows the types of sensitive data collected in the browser across your pages, and the scripts that can access or transfer each one.

An example of the Sensitive Data dashboard showing sensitive data types and the scripts accessing them.
By clicking into an AI vendor, you’ll see the exact fields its script reads (such as name, email address, or account number) and the pages where this happens. In other words, what could end up in a prompt or be used to train an external model. You can also define custom sensitive data categories for fields specific to your business, such as member IDs or order numbers.

An example of the sensitive data fields a third-party script reads.
Proactive AI Agent & Script Control
Once you know what each AI script can read, you can decide what it can read and where it can send data. We recommend least privilege. For example, a support chatbot might need the order number on the page but not the customer’s address or payment details. Jscrambler applies this through proactive runtime controls, which restrict specific script actions, such as reading a field or sending data, without disabling the whole script.
Let’s suppose you want to stop a chat widget from reading personal data on your account pages. To create the control:
- Navigate to the Sensitive Data dashboard and select the data type to protect (personal data).
- Create a new control, or edit an existing one.
- Select the vendor from the dropdown menu. Alternatively, block all access by default and define the scripts allowed as exceptions.
- Review the control rules and preview the impact, based on how often the vendor has accessed this data in the past.
- Save the control.

An example of a data access control with its impact preview.
After that, Jscrambler blocks the chat widget’s access to personal data, and the widget keeps answering customers’ questions that do not require reading or analyzing personal data. As those attempts are blocked, you’ll see blocking coverage for that data type go up on the dashboard.
It helps to plan controls page by page. For example, you might let a shopping assistant read product details on product pages, but block it from reading anything on checkout and account pages. Start with the data you never want to end up in a prompt, and build from there.
Going beyond data access. You can also set rules for where data can go and how scripts can change the page:
- Data transfer rules: allow an AI script to read data but send it only to approved endpoints, such as your AI vendor’s API, and block suspicious or out-of-region destinations.
- Form Fencing: block scripts from reading specific form fields or manipulating forms.
- Cookie and browser storage controls: limit what scripts can read and write.
- Iframe controls: block problematic iframe manipulation without blocking the whole script.

An example of the rule types available on the Controls page.
Behavioral Drift Detection & Response
AI vendors ship updates constantly, usually without telling you. A chatbot you reviewed at launch might start pulling more page context into its prompts after a model or feature update.
The change doesn’t always come from the vendor, either. In the recent Optimizely supply chain attack, malicious code reached visitors through a script that 178 organizations had already approved. An AI script can be turned against you the same way.
Through Continuous Behavioral Analysis, Jscrambler builds a baseline of each vendor’s expected behavior and flags anomalous activity against it as a risk insight. You’ll find every insight across your vendors, scripts, and data types in the Risk Insights dashboard.

An example of the Risk Insights dashboard showing abnormal script and data activity that Jscrambler surfaces
Say your chat widget starts reading payment data on four pages where it never did before, and you haven’t set a control for it yet. Jscrambler flags that as an anomaly.

An example of investigating a risk insight flagging new access to personal data.
Responding to risk insights. When Jscrambler flags a change, you choose what happens next:
- Investigate: follow the event through the investigation flows in the Jscrambler console, or forward it to your SIEM so your security team sees it alongside their other alerts.
- Allow: if the new access is legitimate, allow it from the insight.
- Block: select “Block All Access” to create a control automatically, so the vendor can’t access that data again. Only that action is blocked, and the script keeps working.

An example of responding to a risk insight by allowing access or blocking it.
Browser Telemetry Workflows and Audit-Ready Compliance Telemetry
Browser Telemetry Workflows turn raw browser events into structured telemetry and investigation flows that you can forward to your SIEM, such as Splunk or Microsoft Sentinel. Alerts can also go to email, Slack, or Jira, and webhooks let you stream telemetry into the rest of your security or privacy stack.
When an auditor, regulator, or your AI governance team asks what your AI agents accessed during live sessions, Audit-Ready Compliance Telemetry lets you export script inventories, permission maps, and activity trails as reports.
AI Governance and Regulatory Compliance
Regulation is catching up with AI adoption. The EU AI Act and standards like ISO/IEC 42001 push organizations to document and oversee how their AI systems behave, and privacy laws like GDPR and CCPA/CPRA still apply to any personal data an AI script collects. On a website, that data moves through browser scripts, where your server-side controls can’t see it.
Here’s how Jscrambler helps with that:
- An up-to-date map of which AI agents and scripts access which data, and on which pages, based on what actually runs on your site.
- Least-privilege rules that enforce data minimization where the data is created.
- Reports from Audit-Ready Compliance Telemetry showing what each AI script accessed and what was blocked, which you can use as technical records for audits, AI risk assessments, and DPIAs.
Working with your AI governance program. Jscrambler doesn’t replace your AI governance tools or your contracts with AI vendors. Those decide which AI you use and how it should behave. Jscrambler enforces those decisions in the browser, where the AI script actually runs, and gives you an activity trail to show they held.
Next Steps After Getting Started with AI Script Control
You don’t have to lock down every AI script at once. We suggest starting like this:
- Start with agentless scanning to build your vendor inventory without changing code. When you’re ready to enforce controls, deploy the Jscrambler agent like any other tag, through Google Tag Manager, Tealium, Ensighten, or CommandersAct.
- Compare the inventory against your approved AI vendors and close any gaps.
- Focus first on pages where AI widgets sit next to sensitive data, such as account, checkout, and support pages.
- Create baseline controls for data no AI script should read, and test them in the staging environment before enforcing them.
- Send alerts to the people who’ll act on them, and set a regular time to review risk insights.
In summary, your AI policy and vendor contracts say what your AI scripts should do, but they can’t stop one from reading more than it needs. Jscrambler shows you what each AI script can access and limits it to what it needs. And when a script’s behavior changes, you’ll know.
To learn more about field-level controls, check out the Form Fencing guide. To see which AI agents and scripts can access your users’ data today, request a free web data risk assessment.