signals-scout-csp-violations
하는 일
이 스카우트는 브라우저가 스크립트나 연결을 차단했다는 보고서인 콘텐츠 보안 정책 위반을 지켜봅니다. 새로운 제3자 스크립트나 나쁜 배포를 빨리 찾고 싶은 보안에 민감한 팀을 위한 것입니다.
사용하는 경우
- ✓사이트가 갑자기 새 외부 도메인을 차단하기 시작할 때.
- ✓배포 후 많은 사용자가 콘텐츠 보안 정책 규칙을 위반할 때.
- ✓하나의 차단된 주소가 많은 페이지에 나타나서 의심스러운 스크립트를 가리킬 수 있을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-csp-violations/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 사이트에서 보안 정책이 새로운 외부 도메인을 차단하고 있는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
위반을 차단된 주소와 지시문별로 묶은 뒤, 각 묶음이 몇 명의 고유 사용자와 페이지에 영향을 주는지 확인합니다. 결함 있는 브라우저 확장 프로그램을 쓰는 사용자 한 명은 같은 차단에 여러 사용자가 걸린 것보다 훨씬 적게 칩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
원시 개수보다 도달 범위가 더 중요한 이유는 무엇인가요?
결함 있는 브라우저 확장 프로그램을 쓰는 사용자 한 명이 수천 개의 보고를 만들 수 있지만, 실제 문제는 보통 여러 다른 사용자에게 영향을 주기 때문입니다.
보안 정책을 바꾸나요?
아니요. 본 위반을 감시하고 보고할 뿐입니다.
지시문이란 무엇인가요?
위반이 깨뜨린 보안 정책의 일부이며, 차단된 스크립트나 연결의 종류를 가리킵니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 41k
- 순위
- #6922
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.