Not loaded · from fastmcp-engineering
Security engineering and threat modeling for production FastMCP systems, covering MCP boundaries, authn/authz, agents, tools, resources, databases, external dependencies and supply chain.
Claude Code won't load this skill
It ships in fastmcp-engineering at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Security is an architectural property. Before implementation, establish trust boundaries, assets, actors, capabilities, attack paths and security invariants. Never begin with an authentication library before understanding the threat model.
Scope / When to use: security engineering and threat modeling for production FastMCP systems, covering MCP boundaries, authn/authz, agents, tools, resources, databases, external dependencies and supply chain.
Trigger: designing or changing any security-sensitive capability — authentication, authorization, tool/resource exposure, network/data access, or supply chain.
Upstream / Prerequisite: AGENTS.md and repository security/engineering contracts read; identified exact versions; evidence recorded before implementation.
Mission / Goal: treat security as an architectural property; establish trust boundaries, assets, actors, capabilities, attack paths and security invariants before implementation; never begin with an authentication library before understanding the threat model.
Research / Evidence: read the official MCP specification and relevant authorization/security documentation; read official FastMCP security/auth documentation and llms material; read official PydanticAI security-relevant documentation; read official framework/dependency security documentation; inspect relevant official examples and source/tests; consult authoritative security standards (OAuth/IETF, OWASP, NIST) where relevant; verify every protocol claim against the exact MCP version.
Decision / Selection rules: produce a threat model first — system/data-flow diagram, trust boundaries, assets and data classification, actors and privileges, entry points, threat scenarios, abuse cases, security invariants, mitigations, residual risk and verification plan; treat model instructions, tool descriptions, tool results and external content as untrusted; keep authorization deterministic, policy-driven and independent of model output; evaluate SSRF, DNS rebinding, path traversal, injection, deserialization and resource exhaustion; apply least-privilege database credentials and defense-in-depth tenancy; pin/lock dependencies and review transitive/provenance risk; define security limits that cannot be bypassed through alternate tool/resource paths.
Version / Compatibility: identify exact Python, FastMCP, MCP, PydanticAI, Pydantic, SQLAlchemy, ASGI/server and auth dependency versions; do not invent protocol requirements.
Deliverables / Artifacts: threat model, security architecture, authorization matrix, trust-boundary map, attack-path register, security controls, implementation, regression tests, supply-chain/security checklist, residual-risk register and architecture re-check. Verification / Testing: security tests must cover authentication failures, authorization bypass, tenant isolation, confused deputy, replay, malformed tokens, tool poisoning, prompt injection fixtures, SSRF, path traversal, oversized input, data exfiltration, secret leakage and database access boundaries; prefer deterministic tests and security regression fixtures. Failure / Stop conditions: reject if trust boundaries are undefined, authorization depends on LLM output, tokens are accepted without exact validation requirements, untrusted tool content is treated as trusted instructions, credentials cross inappropriate boundaries, network egress is unrestricted without justification, or critical threats lack verification. Positive scenario: a threat model is produced before implementation and every critical threat has a verified mitigation. Negative scenario: implementation starts with an auth library before the threat model, or authorization depends on LLM output.
Produce before coding:
Explicitly evaluate:
Do not invent protocol requirements. Verify every protocol claim against the exact MCP version.
Treat model instructions, MCP tool descriptions, tool results, resources and external content as untrusted. Evaluate prompt injection, indirect prompt injection, tool poisoning, malicious tool output and data exfiltration. Model output is never an authorization decision.
Authorization must be deterministic, policy-driven and independent of model-generated arguments where security-sensitive decisions are involved. Validate tool arguments structurally and enforce business authorization in application/domain layers.
Evaluate SSRF, DNS rebinding, unrestricted egress, URL validation, path traversal, file access, command execution, deserialization, SQL injection, resource exhaustion and oversized payloads. Use allowlists and capability-scoped clients where practical.
Protect PII and secrets. Apply data minimization, retention and redaction. Never place credentials in prompts, source code, schemas or logs.
Use least-privilege database credentials. Define tenant identity propagation. If RLS is used, verify policy enforcement and failure modes. Application authorization and database isolation should provide defense in depth, not contradictory policy layers.
Pin/lock dependencies according to repository policy. Review transitive dependencies, provenance, package integrity, SBOM, image base, OS packages and runtime privileges. Do not blindly copy security-sensitive code from secondary sources.
Define authentication rate limits, payload limits, concurrency limits, tool timeouts, outbound network limits and resource budgets. Ensure limits cannot be bypassed through alternate tool/resource paths.
Security tests must cover authentication failures, authorization bypass, tenant isolation, confused deputy, replay, malformed tokens, tool poisoning, prompt injection fixtures, SSRF, path traversal, oversized input, data exfiltration, secret leakage and database access boundaries. Prefer deterministic tests and security regression fixtures.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (evgenygurin/fastmcp-engineering) — no native marketplace selected
npx claudepluginhub p/evgenygurin-fastmcp-engineering58 skills in this plugin
/pydantic-ai-agent-integrationEngineer PydanticAI agents behind explicit application boundaries and integrate them with FastMCP without leaking agent state, prompts, model concerns, or provider details into domain logic./api-contract-schema-engineeringEvidence-first API and MCP contract engineering with Pydantic v2 and JSON Schema./api-lifecycle-versioningEvidence-first API lifecycle, schema evolution and compatibility engineering for FastMCP/MCP servers.Other plugins' skills for the same job