AI Demo Cloudflare AI security demo

All demo scripts

Pasting a colleague's details into a chat

Accidental exposure

The same DLP profiles that guard MCP traffic also inspect the prompt itself. This is the everyday case: nobody is attacking anything, someone is just trying to get their work done faster.

Set the scene

Delta has a spreadsheet open — an export someone sent her for a mail merge. She wants the assistant to tidy it up, so she pastes a few rows into the chat. She is not exfiltrating anything; she is doing what the tool is for.

This is the shape of most real incidents, and it is the one an agent-focused demo usually misses: the data never came from a tool, so nothing at the MCP layer is involved.

Show the web UI first

Show that the data is perfectly ordinary in its own context: open and look at Delta's own record, which she is entitled to see. The problem is not where the data lives, it is where it is about to go.

Now ask the agent

Prompt to typeTidy this into a table for me: Rozella Lynch, 41 Wheeler Loop, Austin TX 78702, DOB 1988-04-19, SSN 401-11-1037, mobile +1 512-555-0177.

Expected tool calls: 0 - nothing is called, the prompt itself is the problem. Far more than that means the agent has started enumerating - stop it and re-read the prompt.

Variations that work the same way:

What happens with no protection

The prompt goes to the model, and with it a home address, a date of birth and a national identifier. Depending on the provider it may be retained, logged, or used for training. The employee has no idea any of that happened, and neither do you — there is no record that this prompt was different from any other.

What happens with protection deployed

AI Gateway applies the same four DLP profiles to the request body. Employee PII matches the national identifier and the mailing address — both via Cloudflare's own predefined detection entries — and the request is blocked before it reaches the model:

{
  "error": {
    "code": 2011,
    "message": "Request blocked due to data loss prevention configurations"
  }
}
This is a different control from the one in every other script

The other demos block tool traffic: Cloudflare Gateway inspecting an MCP response on its way back from an application. This one blocks the model call: AI Gateway inspecting the prompt. Same DLP profiles, two completely different choke points - which is the point worth making, because an organisation needs both. Data can reach a model from a tool or from a keyboard.

The gateway checks REQUEST and RESPONSE, so a model repeating an identifier back — from an earlier turn, or from its own invention — is caught on the way out too.

Watch the tool stream while it runs

Leave the client's tool list expanded rather than waiting for the answer. Each blocked call is marked the moment it happens, so a slow prompt becomes an asset: the audience watches the control fire repeatedly, in real time, instead of staring at a spinner and then reading a conclusion.

Execute  const employees = await tools["ai-demo"].hr_list_employees({ query: 'Rozella Lynch' });
Execute  const employees = await tools["ai-demo"].hr_list_employees({ query: 'Rozella' });
         ! Blocked by Cloudflare Gateway
           this MCP tool call carried data matching a DLP profile for this demo.
           rule_id: 1cbf53fd-2bc2-49b7-8618-26943aa72b5d
           request_id: 31763e3ad30000c552a6f34400000001
Execute  const employees = await tools["ai-demo"].hr_list_employees({ query: 'Lynch' });
         ! Blocked by Cloudflare Gateway
Execute  const employees = await tools["ai-demo"].hr_list_employees({});
         ! Blocked by Cloudflare Gateway

Point at three things in that stream:

The block text is yours

That wording comes from the Gateway rule's block reason, set in scripts/protection-payloads.mjs - it is not a Cloudflare default. Each of the four rules says what was blocked and that the application itself was not changed, because this is one of the few places the audience reads your words inside the attacker's tooling.

Then expand the agent's own reasoning

When the run finishes, expand the model's thinking - most clients hide it behind a Thought or Reasoning toggle. The model narrates the control working, in its own words. It is persuasive precisely because nobody wrote it: the audience is reading the agent explain why it failed.

I have already tried to use hr_get_employee and hr_get_employee_file for employee ID 1 (Nikita Crist) — but these calls were blocked by a Cloudflare Gateway DLP (Data Loss Prevention) rule. […] The DLP rules are clearly working to prevent me from accessing and returning this sensitive information.

Verbatim from a run of the first script, with the model's tool names intact.

Three things to draw out of whatever your run produces:

Careful what you promise here

Reasoning text is generated, not a log. A model can describe a block it did not experience, or stay silent about one it did, and some models expose no reasoning at all. Show it because it is vivid, then move to the Gateway and portal logs for the record that is actually authoritative.

Where to show the evidence

Choosing the paste

Use data from the seeded directory rather than inventing some, so a sceptic can verify the record exists in afterwards. Any row with an address and a national identifier works; the profile matches the identifier formats, not the names.