Langsung ke konten
Skillpedia
Keamanan41k Β· #6922

signals-scout-csp-violations

Fungsinya

Scout ini memantau pelanggaran Content Security Policy, yaitu laporan bahwa browser memblokir skrip atau koneksi. Ditujukan untuk tim yang peduli keamanan dan ingin cepat mengenali skrip pihak ketiga baru atau deployment yang buruk.

Kapan dipakai

  • βœ“Saat situs Anda tiba-tiba mulai memblokir domain luar yang baru.
  • βœ“Saat sebuah aturan Content Security Policy dilanggar oleh banyak pengguna setelah deployment.
  • βœ“Saat satu alamat yang diblokir muncul di banyak halaman, yang mungkin menunjukkan skrip mencurigakan.

Link skill

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-csp-violations/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-csp-violations/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBeri tahu saya jika ada domain luar baru yang diblokir oleh kebijakan keamanan kami di situs kami.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Scout mengelompokkan pelanggaran berdasarkan alamat yang diblokir dan berdasarkan direktif, lalu memeriksa berapa banyak pengguna dan halaman berbeda yang terdampak oleh setiap kelompok. Satu pengguna dengan ekstensi browser yang bermasalah dihitung jauh lebih sedikit daripada banyak pengguna yang mengalami blokir yang sama.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Mengapa jangkauan lebih penting daripada jumlah mentah?

Satu pengguna dengan ekstensi browser yang bermasalah dapat menghasilkan ribuan laporan, sedangkan masalah nyata biasanya memengaruhi beberapa pengguna yang berbeda.

Apakah scout mengubah kebijakan keamanan saya?

Tidak. Scout hanya memantau dan melaporkan pelanggaran yang dilihatnya.

Apa itu direktif?

Itu adalah bagian dari kebijakan keamanan yang dilanggar oleh sebuah pelanggaran, seperti jenis skrip atau koneksi yang diblokir.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
41k
Peringkat
#6922
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa