security

Implement OWASP-aligned security controls for API endpoints and user content.

Updated Dec 15, 2025
One-click install
npx skills add https://github.com/jhlee0409/sidedish --skill security-jhlee0409
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/jhlee0409/sidedish/tree/main/.claude/skills/security
Command: npx skills add https://github.com/jhlee0409/sidedish --skill security-jhlee0409

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes references (resource) components.

What problem does it solve?

λ³΄μ•ˆ μ»΄ν¬λ„ŒνŠΈμ˜ μΌκ΄€λœ κ΅¬ν˜„μ„ 돕고, μž…λ ₯ 검증, XSS 차단, 속도 μ œν•œ, 인증/κΆŒν•œ 확인, μ†Œμœ κΆŒ 검사λ₯Ό ν¬κ΄„ν•˜λŠ” κ°€μ΄λ“œμ™€ νŒ¨ν„΄μ„ μ œκ³΅ν•©λ‹ˆλ‹€.

Core Features & Use Cases

  • Validation: μž…λ ₯ 값을 μ€‘μ•™μ—μ„œ κ²€μ¦ν•˜λŠ” νŒ¨ν„΄
  • XSS Prevention: SafeMarkdown 및 sanitize-utils μ‚¬μš©
  • Rate limiting & Auth: μ—”λ“œν¬μΈνŠΈ λ³΄μ•ˆμ„ κ°•ν™”ν•˜λŠ” 예제
  • Ownership checks: μ“°κΈ° μž‘μ—… μ‹œ μ†Œμœ κΆŒ 확인 νŒ¨ν„΄

Quick Start

λ³΄μ•ˆ νŒ¨ν„΄μ„ μƒˆ API κ²½λ‘œμ— μ μš©ν•˜κ³ , 검증 및 sanitization 흐름을 μΆ”κ°€ν•©λ‹ˆλ‹€.

Frequently Asked Questions about security

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

FAQPage Schema
How do I prevent XSS attacks in user-generated content?β–Ό

XSS prevention requires sanitizing user input before rendering. This Skill applies SafeMarkdown and sanitizePlainText utilities to strip malicious scripts from content, protecting against injection attacks across API endpoints and file uploads while preserving safe markup.

What's the best way to implement input validation across API endpoints?β–Ό

Centralized input validation catches malicious or malformed data at entry points. This Skill provides security-utils patterns to validate all incoming requests, enforcing type checks and constraints consistently across endpoints to block injections and XSS before they reach your application logic.

How do I add rate limiting to protect my API from abuse?β–Ό

Rate limiting restricts request frequency per user or IP to prevent brute-force attacks and denial-of-service attempts. This Skill implements rate-limiter patterns that enforce quotas on endpoints, allowing you to control traffic and protect backend resources.

Can I verify user ownership before allowing write operations?β–Ό

Ownership checks prevent unauthorized modifications by ensuring users can only update their own data. This Skill provides patterns to verify authentication and enforce ownership validation on write operations, blocking privilege escalation and data tampering.

Does this approach work with authentication and authorization checks?β–Ό

Yes. This Skill integrates authentication verification with authorization enforcement, confirming user identity and verifying permissions before granting access to protected resources, aligned with OWASP security controls for API protection.

What are the limitations of centralized security patterns?β–Ό

Centralized patterns enforce consistent controls but require discipline across all new endpoints. Performance overhead from sanitization and rate limiting must be monitored; patterns assume your framework supports middleware or decorator patterns for uniform application.