Agent Skillslangfuse/langfuse › security-review

security-review

GitHub

用于审查涉及SSRF、密钥处理、租户隔离等安全敏感面的代码变更,防止设计或集成阶段引入漏洞。

.agents/skills/security-review/SKILL.md langfuse/langfuse

Trigger Scenarios

审查接受用户URL或主机的代码 检查新集成的安全配置

Install

npx skills add langfuse/langfuse --skill security-review -g -y
More Options

Non-standard path

npx skills add https://github.com/langfuse/langfuse/tree/main/.agents/skills/security-review -g -y

Use without installing

npx skills use langfuse/langfuse@security-review

指定 Agent (Claude Code)

npx skills add langfuse/langfuse --skill security-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add langfuse/langfuse --all -g -y

预览 repo 内 skill

npx skills add langfuse/langfuse --list

SKILL.md

Frontmatter
{
    "name": "security-review",
    "description": "Review Langfuse changes for SSRF, tenant isolation, secret handling, unsafe redirects or uploads, RBAC drift, and client telemetry privacy. Use when a design or change accepts URLs or host fields, handles secrets or cross-tenant data, makes outbound requests, adds an integration, follows redirects, widens permissions, or can send customer-controlled UI data through analytics, monitoring, or session replay."
}

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.
Topic Open when File
SSRF and outbound URL validation The change accepts or fetches a user-supplied URL, host, or endpoint references/outbound-url-validation.md
Secret read paths The change shapes what a read route returns for an entity or config blob that also stores a credential references/secret-read-paths.md
Client telemetry and session replay The change records DOM, browser state, events, logs, or network data in a third-party system references/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.

Version History

  • f6e56cb Current 2026-08-29 05:20

    新增客户端遥测隐私审查支持,修复PostHog会话回放数据保护问题。

  • f7e3c26 2026-08-20 17:47

Same Skill Collection

.agents/skills/add-model-price/SKILL.md
.agents/skills/agent-setup-maintenance/SKILL.md
.agents/skills/analyze-cloud-costs/SKILL.md
.agents/skills/backend-dev-guidelines/SKILL.md
.agents/skills/changelog-writing/SKILL.md
.agents/skills/clickhouse-best-practices/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/create-repo-agent/SKILL.md
.agents/skills/cursor-agents-workflow/SKILL.md
.agents/skills/datadog-query-recipes/SKILL.md
.agents/skills/debug-issue-with-datadog/SKILL.md
.agents/skills/frontend-browser-review/SKILL.md
.agents/skills/frontend-large-feature-architecture/SKILL.md
.agents/skills/git-workflow/SKILL.md
.agents/skills/grill-me/SKILL.md
.agents/skills/housekeeping/SKILL.md
.agents/skills/incident-alert-tickets/SKILL.md
.agents/skills/infra-scaling/SKILL.md
.agents/skills/langfuse-codebase-navigator/SKILL.md
.agents/skills/langfuse-previews/SKILL.md
.agents/skills/linear-bug-triage/SKILL.md
.agents/skills/pnpm-upgrade-package/SKILL.md
.agents/skills/posthog-instrumentation/SKILL.md
.agents/skills/react-component-cleaner/SKILL.md
.agents/skills/react-component-guidelines/SKILL.md
.agents/skills/refactor-react-effects/SKILL.md
.agents/skills/seed-test-data/SKILL.md
.agents/skills/sentry-instrumentation/SKILL.md
.agents/skills/skill-creator/SKILL.md
.agents/skills/turborepo/SKILL.md
.agents/skills/weekly-production-review/SKILL.md
web/.agents/skills/vercel-composition-patterns/SKILL.md
web/.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/storybook/SKILL.md

Metadata

Files
0
Version
f6e56cb
Hash
314bf5ab
Indexed
2026-08-20 17:47

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 20:27
浙ICP备14020137号-1 $Гость$