pact-security-patterns

Provides PACT framework security patterns aligned with OWASP Top 10 across all phases.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/v4lheru/linkedin-comments-telegram --skill pact-security-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pact-security-patterns
Source: https://github.com/v4lheru/linkedin-comments-telegram/tree/main/.claude/skills/pact-security-patterns
Command: npx skills add https://github.com/v4lheru/linkedin-comments-telegram --skill pact-security-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This cross-cutting Skill provides security patterns, OWASP Top 10 references, and practical primitives to bake security into every PACT phase—from Prepare to Test.

Core Features & Use Cases

  • Combined guidance: OWASP Top 10 coverage, authentication/authorization patterns, input validation, secret management, and security testing checklists.
  • Practical decision trees: Guidance on when to apply JWT, OAuth, MFA, encryption, and secure defaults.
  • Use Case: When designing a new API, run this skill to create a threat model and a security checklist aligned with OWASP Top 10.

Quick Start

Review a new API design and request a security plan covering authentication, input validation, encryption, logging, and a security testing checklist.

Frequently Asked Questions about pact-security-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design authentication and authorization for a secure API?

Authentication and authorization patterns in this Skill cover JWT, OAuth, and MFA decision trees aligned with OWASP Top 10. Start by reviewing your API design to select the right pattern—JWT for stateless services, OAuth for delegated access—then apply secure defaults like MFA and proper credential storage.

What's the best way to validate and sanitize user input to prevent injection attacks?

Input validation patterns provide practical checklists and threat-modeling guidance to catch SQL injection, XSS, and command injection during design and code review. Apply validation at entry points, use parameterized queries, and follow the included security testing checklist.

How do I manage secrets securely across the PACT phases?

Secrets management patterns guide encryption, key rotation, and secure storage across Prepare, Plan, and Test phases. This Skill includes decision trees for when to encrypt, how to rotate keys, and logging practices that don't expose sensitive data.

Can I use this guidance with threat modeling to plan security testing?

Yes. This Skill integrates threat modeling and security testing checklists aligned with OWASP Top 10. Request a security plan for your API design to generate a threat model, testing checklist, and phase-by-phase controls.

What does OWASP Top 10 coverage mean for my application security?

OWASP Top 10 coverage means this Skill maps the ten most critical web application vulnerabilities—injection, broken authentication, sensitive data exposure, XML external entities, broken access control, security misconfiguration, XSS, insecure deserialization, using components with known vulnerabilities, and insufficient logging—to practical patterns and checklists.

How do I apply security patterns during code review and testing?

Security patterns include code review checklists and testing guidelines for each PACT phase. Use them to verify authentication logic, validate input handling, confirm secrets are not logged, and ensure authorization decisions are enforced consistently.