SECOPS

CSP Script-Violation Report Pager

Ingests Content-Security-Policy violation reports via webhook, filters for unexpected script-src blocks.

CategorySecOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps4
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWebhook receives CSP violation reportsHTTP webhook
  • LogicFilter to script-src violations, drop known noise
  • LogicGroup by blocked URI and affected page
  • OutputPage on-call via PagerDuty with violation detailPagerDutyPagerDuty

What it does

This workflow turns your browsers into a distributed supply-chain sensor. It receives `report-to`/`report-uri` CSP violation payloads at a webhook, isolates `script-src` and `script-src-elem` violations, and drops known-noise sources (browser extensions, localhost). A genuine block, meaning a real production page tried to load a script your policy does not allow, indicates either a misconfigured deploy or an active injection, so it pages on-call immediately.

When to use it

Use it once you have a CSP deployed in enforce or report-only mode and want to catch the moment an unexpected third-party script appears in the wild, reported by actual visitor browsers rather than a periodic crawl.

How it works

  1. 1An HTTP webhook receives batched CSP violation reports.
  2. 2A logic step filters to script-related directives and discards extension and noise origins.
  3. 3Remaining violations are grouped by blocked URI and effective page.
  4. 4If any qualifying script violation remains, PagerDuty is triggered with the blocked URI, page, and report count for on-call triage.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect PagerDutyIncidents, on-call, escalations.
  3. 3
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  4. 4
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.