security-review

작성자: langfuse

Langfuse의 보안 검토 패턴입니다. 코드 리뷰, 설계 또는 계획 중 사용자 제공 URL, 호스트/엔드포인트/baseURL 필드 등을 수용하는 변경 사항이 있을 때 사용하세요.

npx skills add https://github.com/langfuse/langfuse --skill security-review

Security Review

Use this skill when reviewing or planning code that touches a security-sensitive surface in Langfuse. It collects the recurring findings the team has seen in external security reports so that future agents catch them at design and review time rather than after the fact.

When to Apply

Apply this skill when the change touches any of:

  • a user-supplied URL, host, endpoint, baseURL, or webhook target
  • a new outbound HTTP request (fetch, axios, AWS SDK client init with a custom endpoint, OpenAI/Anthropic/Bedrock client init with a custom baseURL, etc.)
  • a new integration form under Settings -> Integrations or any admin-configurable network destination
  • a new tRPC procedure or public API route that mutates project-scoped data or changes who can access it
  • secrets, API keys, signing secrets, or encryption-at-rest fields
  • redirect-following or cross-origin header handling
  • file uploads, image proxies, or other binary data flowing in or out

Apply this skill during plan mode when designing a new integration so the correct validation surfaces land in the plan, not in a follow-up CVE.

How to Read This Skill

  1. Open references/checklist.md and run the mental sweep against the change.
  2. For each bullet that fires, open the matching topic reference.
TopicOpen whenFile
SSRF and outbound URL validationThe change accepts or fetches a user-supplied URL, host, or endpointreferences/outbound-url-validation.md

The catalog is intentionally short today. New topic files are added as new finding classes recur (see "Extending This Skill").

Output Expectations (Review Mode)

When this skill is used during code review:

  • List findings first, ordered by severity, with file and line references.
  • For each finding, name the canonical helper or known-good call site the author should copy.
  • For SSRF-class findings, point at references/outbound-url-validation.md rather than re-deriving the fix.
  • Call out missing negative tests (private-IP, cross-tenant, missing-scope) as findings, not as nice-to-haves.

Output Expectations (Design / Plan Mode)

When this skill is used while planning:

  • Restate which surfaces the new feature exposes (forms, public API routes, worker entrypoints).
  • For each surface that matches a checklist trigger, name the validator or helper that must be invoked and at which layer (save-time, use-time, connection-time, redirect-time).
  • Treat "we will validate later" as a design defect: validation belongs in the same change that introduces the surface.

Extending This Skill

Add a new references/<topic>.md whenever a security finding recurs across features or PR reviews. Keep each reference narrow and concrete:

  1. Threat in plain language (one paragraph).
  2. Canonical helpers in this repo, with paths.
  3. Known-good call sites that can be copied.
  4. Required defenses (save-time, use-time, transport-time, etc.).
  5. Anti-patterns to flag in review.

Then add a one-line trigger to references/checklist.md pointing at the new topic file, and add a row to the table above.

Candidates for future references (do not add until a real finding recurs):

  • Tenant isolation (projectId filters across Prisma and ClickHouse)
  • Secret handling and encryption-at-rest read paths
  • Redirect mishandling and sensitive-header propagation
  • File upload validation and content-type sniffing
  • RBAC scope drift on new tRPC/public API endpoints
  • Signed URL scoping (expiry, path, method)
  • Public API rate limiting and auth boundary checks

Integration With Other Skills

  • The shared code-review skill should defer here for any change that matches the triggers above; see code-review/SKILL.md.
  • The shared backend-dev-guidelines skill should defer here when adding outbound HTTP, integration config, or URL-accepting procedures; see backend-dev-guidelines/SKILL.md.
  • Confirmed issues with reproduction evidence go through linear-bug-triage for Linear handoff.

langfuse의 다른 스킬

clickhouse-best-practices
langfuse
ClickHouse 스키마, 쿼리 또는 구성을 검토할 때 반드시 사용해야 합니다. 권장 사항을 제공하기 전에 반드시 확인해야 하는 28개의 규칙이 포함되어 있습니다. 항상 읽어보세요…
official
skill-creator
langfuse
효과적인 스킬을 만들기 위한 가이드입니다. 사용자가 Claude의 기능을 확장하는 새 스킬을 만들거나 기존 스킬을 업데이트하려 할 때 이 스킬을 사용해야 합니다.
official
vercel-react-best-practices
langfuse
Vercel Engineering의 React 및 Next.js 성능 최적화 가이드라인입니다. 이 스킬은 React/Next.js를 작성, 검토 또는 리팩토링할 때 사용해야 합니다…
official
add-model-price
langfuse
Use when editing worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, pricing tiers, tokenizer IDs, or matchPattern regexes…
official
analyze-cloud-costs
langfuse
Metabase cost marts를 사용하여 Langfuse Cloud 인프라 비용 구조를 분석합니다. 클라우드 지출, AWS 대 ClickHouse 비용 분할, 비용…에 대해 질문받을 때 사용합니다.
official
backend-dev-guidelines
langfuse
Build or review Langfuse backend code. Use for tRPC routers, public REST APIs, BullMQ processors, services, middleware, Prisma or ClickHouse access,…
official
clickhouse-best-practices
langfuse
ClickHouse 스키마, 쿼리 또는 구성을 검토할 때 반드시 사용해야 합니다. 권장사항을 제공하기 전에 확인해야 하는 28가지 규칙이 포함되어 있습니다. 항상 읽으세요…
official
code-review
langfuse
Review Langfuse code changes for correctness, regressions, and best practices.
official