signals-scout-csp-violations
Was er macht
Dieser Scout beobachtet Verstöße gegen die Content Security Policy, also Meldungen, dass ein Browser ein Skript oder eine Verbindung blockiert hat. Er richtet sich an sicherheitsbewusste Teams, die ein neues Drittanbieter-Skript oder ein fehlerhaftes Deployment schnell erkennen wollen.
Wann du ihn nutzt
- ✓Wenn deine Website plötzlich eine neue externe Domain blockiert.
- ✓Wenn eine Content-Security-Policy-Regel nach einem Deployment von vielen Nutzern verletzt wird.
- ✓Wenn eine einzelne blockierte Adresse auf vielen Seiten auftaucht, was auf ein verdächtiges Skript hindeuten kann.
Link zum Skill
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-csp-violations/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Sag mir, ob unsere Sicherheitsrichtlinie auf unserer Website neue externe Domains blockiert.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Scout gruppiert Verstöße nach blockierter Adresse und nach Direktive und prüft dann, wie viele verschiedene Nutzer und Seiten jede Gruppe betrifft. Ein Nutzer mit einer fehlerhaften Browser-Erweiterung zählt deutlich weniger als viele Nutzer, die auf dieselbe Blockierung stoßen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Signals scout: CSP violations
You are a focused CSP scout. Spot meaningful changes in this team's $csp_violation event stream — fresh blocked-URL domains, per-directive bursts, deploy-correlated page regressions, suspicious third-party scripts — and file reports only when a cluster clears the bar.
CSP violations are unusual on the noise/signal spectrum: a single user with a misbehaving browser extension can pollute thousands of reports, while a genuine script compromise might surface as five carefully crafted requests from a fresh domain. Reach (distinct users + distinct documents) matters more than raw count. Internalize that shape.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for an aggregated cluster (a fresh blocked domain, a standing enforced block, a deploy-correlated directive burst) you'd stand behind as a standalone inbox item a human will act on. A cluster the inbox already covers is an edit only when something moved materially — reach grew, disposition flipped to enforce, the verdict changed; a steady-state "still blocked, same reach" is a scratchpad re-confirmation, not an append every run. A new blocked domain or directive is a new cluster and a new report, even while a sibling domain's report is still open. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, the priority / repository fields, and the edit rules), and authoring-scouts → references/report-contract.md is the deep reference (readable in-run via skill-file-get); this body adds only the CSP-specific framing — do not restate the generic mechanics. (Note: this surface has a companion push path that files raw per-fingerprint signals under source_product=csp_reporting; your own report-channel reports persist under source_product=signals_scout. Both live in the same inbox — see Decide for how they interact.)
Activity-history availability
Activity history is optional. Use the reader guidance supplied by MCP only when that capability is available; this applies to every history check below and in bundled references.
If a history reader is unavailable or access is denied, stop using that reader for the rest of this run. Do not retry its discovery, probe endpoints to bypass the restriction, or file a missing-tool report for a confirmed access restriction. Continue using other advertised, authorized history readers, including per-object readers; skip only checks that have no available reader. Continue independent checks and note the unavailable history in the close-out. Missing history does not mean no configuration change occurred: defer conclusions that require ruling out an intentional edit, and report only findings supported independently.
Quick close-out: is CSP reporting even active?
A scheduled run can start with a <precheck_result> block. Its row counts the $csp_violation events of the last 7 days, so CSP reporting is in use. When the block is present, skip the not-in-use close-out. The baseline close-out and the standing enforced / first-party block check still apply.
top_events keeps only the top events by volume, so a quiet $csp_violation stream can be missing from it.
When the row is missing and the surface is in use, read the counts with one 7-day execute-sql.
If $csp_violation is at baseline (no fresh 24h activity, recent_24h_count ≪ count / 7), CSP reporting probably isn't where the signal is today. Cheap scratchpad entry + close out:
- key:
pattern:csp_violations:baseline-team{team_id} - content:
"$csp_violation baseline ~{count}/day, no fresh 24h burst at {timestamp}"
Before taking the baseline close-out, run the standing enforced / first-party block check below. "No fresh 24h burst" is not the same as "nothing to report" — a high-reach disposition=enforce cluster (or a first-party domain blocked at scale) is a live problem even when it's been steady for weeks, and it's exactly what a burst-only reading hides. Only close out as baseline once that check is also clean.
If the profile's surfaces["signals-scout-csp-violations"] entry reads in_use: false, the project doesn't ship a CSP reporting endpoint at all.
Häufige Fragen
Warum ist die Reichweite wichtiger als die rohe Anzahl?
Ein Nutzer mit einer fehlerhaften Browser-Erweiterung kann Tausende Meldungen erzeugen. Ein echtes Problem betrifft meist mehrere verschiedene Nutzer.
Ändert er meine Sicherheitsrichtlinie?
Nein. Er beobachtet und meldet nur die Verstöße, die er sieht.
Was ist eine Direktive?
Sie ist der Teil der Sicherheitsrichtlinie, den ein Verstoß verletzt, etwa die Art des Skripts oder der Verbindung, die blockiert wurde.
Details
Originalbeschreibung des Autors
Signals scout for Content Security Policy violations. Watches `$csp_violation` events for blocked-URL clusters, per-directive bursts, post-deploy regressions, and suspicious third- party domains.
repo: PostHog/posthog
Beliebtheit
- GitHub-Sterne
- 41k
- Platz im Ranking
- #6922
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
depot-ci
41kBringt deinem Agenten bei, Depot-CI-Workflows einzurichten, bestehende Workflows zu migrieren und Laufprotokolle auszuwerten.
depot-container-builds
41kHilft deinem Agenten, Docker-Images auf Depot-Remote-Buildern zu bauen, mit Multi-Plattform-Images, Registry-Push und Fehlerbehebung.
depot-github-runners
41kLässt deinen Agenten GitHub-Actions-Jobs auf Depot-Runnern laufen, mit passender Runner-Größe und Labels, und hilft bei Einrichtungsfehlern.
editing-agents-md
41kHilft deinem Agenten zu entscheiden, ob eine Regel in AGENTS.md oder CLAUDE.md gehört, und sie so zu formulieren, dass sie hält.
Ähnliche Skills
reverse-engineer-anything
422kHilft deinem Agenten, fertige Apps und Pakete zu untersuchen, um Funktionen zu erklären, Versionen zu vergleichen oder einen Nachbau zu leiten, mit dem REA-Tool.
1password
394kHilft deinem Agenten, die 1Password-Kommandozeile einzurichten, sich anzumelden und Geheimnisse zu lesen oder einzufügen, ohne deren Werte im Chat auszugeben.
healthcheck
394kHilft deinem Agenten, den Computer oder Server, auf dem OpenClaw läuft, auf Sicherheitsrisiken wie SSH, Firewall, Updates und Backups zu prüfen und sichere Korrekturen vorzuschlagen.