security-patterns

Identify and remediate security vulnerabilities using OWASP Top 10 guidance.

27|16|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude --skill security-patterns-bejranonda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-patterns
Source: https://github.com/bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude/tree/main/skills/security-patterns
Command: npx skills add https://github.com/bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude --skill security-patterns-bejranonda

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill provides comprehensive knowledge and best practices for building secure applications, preventing common vulnerabilities (OWASP Top 10), and effectively remediating security issues. It ensures data protection and system integrity, reducing security risks.

Core Features & Use Cases:

  • OWASP Top 10 Deep Dive: Covers prevention strategies and secure coding patterns for critical vulnerabilities like Broken Access Control, Cryptographic Failures, and Injection.
  • Secure Coding Patterns: Offers practical examples for password hashing (bcrypt), encryption (Fernet), secure random token generation, and environment variable management.
  • Input Validation & Authentication: Guides robust input validation, strong password policies, multi-factor authentication, and account lockout mechanisms.
  • Secure Configuration & Logging: Provides checklists for security headers, CORS, generic error messages, and secure logging of security events.
  • Use Case: When developing an authentication module, this skill guides the implementation of secure password hashing, multi-factor authentication, and account lockout, preventing common brute-force and credential stuffing attacks.

Quick Start: Explain the "SQL Injection Prevention" pattern and provide an example of insecure vs. secure query construction.

Frequently Asked Questions about security-patterns

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

FAQPage Schema
How do I prevent SQL injection attacks in my web application?

SQL injection prevention relies on parameterized queries and prepared statements, which separate code from data. Use placeholders for user input rather than string concatenation, and validate all inputs against expected formats before querying the database.

What are the OWASP Top 10 vulnerabilities I should protect against?

The OWASP Top 10 includes Broken Access Control, Cryptographic Failures, Injection, Insecure Design, Security Misconfiguration, Vulnerable Components, Authentication Failures, Software and Data Integrity Failures, Logging Deficiencies, and Server-Side Request Forgery. Each requires specific prevention strategies and secure coding patterns.

How do I implement secure password storage in my authentication module?

Secure password storage uses cryptographic hashing algorithms like bcrypt, which apply salt and multiple iterations to prevent rainbow table attacks. Never store plain-text passwords; hash them during registration and verify hashes during login.

What input validation practices prevent common web application vulnerabilities?

Input validation requires whitelisting acceptable formats, rejecting unexpected data types, enforcing length limits, and sanitizing special characters. Validate on both client and server side, treat all user input as untrusted, and reject requests that violate defined patterns.

How should I manage secrets and API keys in my application?

Manage secrets using environment variables, never hardcode credentials in source code, and rotate keys regularly. Use secure vaults or secret management systems for production deployments, and ensure secrets are excluded from version control and logs.

What security headers and configuration practices protect against common attacks?

Security headers like Content-Security-Policy, X-Frame-Options, and Strict-Transport-Security prevent XSS, clickjacking, and man-in-the-middle attacks. Configure CORS policies restrictively, use HTTPS, disable unnecessary HTTP methods, and return generic error messages to avoid information disclosure.