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
  • product analytics, browser monitoring, session replay, or another client-side telemetry path that can transmit customer-controlled content

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
Secret read pathsThe change shapes what a read route returns for an entity or config blob that also stores a credentialreferences/secret-read-paths.md
Client telemetry and session replayThe change records DOM, browser state, events, logs, or network data in a third-party systemreferences/client-telemetry-privacy.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)
  • 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のその他のスキル

frontend-browser-review
langfuse
このスキルは、変更がブラウザ上でユーザーが見たり操作したりする内容に影響を与える場合に使用してください。
frontend-large-feature-architecture
langfuse
大規模なLangfuseフロントエンド機能、仮想化リスト、大規模テーブル、コントローラーコンポーネント、ローカル機能などを構築、変更、リファクタリングする際に使用します。
skill-developer
langfuse
Anthropicのベストプラクティスに従ってClaude Codeスキルを作成・管理します。新しいスキルの作成、skill-rules.jsonの変更、トリガーの理解…
langfuse-prompt-migration
langfuse
ハードコードされたプロンプトをLangfuseに移行し、バージョン管理とデプロイ不要の反復を実現します。ユーザーがプロンプトを外部化したい、Langfuseにプロンプトを移動したい、…場合に使用します。
incident-alert-tickets
langfuse
Read and, after human approval, update the Linear `incident-alert` knowledge base. Use before and after investigating a named Datadog monitor,…
refactor-react-effects
langfuse
Langfuseフロントエンドコードにおける、回避可能なReact useEffectの使用をリファクタリングします。エフェクトの追加、レビュー、削除時や、フォームやローカルUI状態の初期化時に使用します…
sentry-instrumentation
langfuse
Decide whether and how errors report to Sentry. Use when touching capture or error-handling paths in `web/**`, triaging Sentry noise, or changing Sentry…
posthog-instrumentation
langfuse
Product analytics with posthog. Use when adding a meaningful user action or feature in `web/**`, touching PostHog capture code, or answering product-usage…