security-and-hardening

Enforce OWASP Top 10 security patterns for web application development.

84.9k|9.1k|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/addyosmani/agent-skills --skill security-and-hardening
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-and-hardening
Source: https://github.com/addyosmani/agent-skills/tree/main/skills/security-and-hardening
Command: npx skills add https://github.com/addyosmani/agent-skills --skill security-and-hardening

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement robust security practices to protect applications from common vulnerabilities, ensuring data integrity and user privacy.

Core Features & Use Cases

  • Input Validation: Prevents injection attacks by validating all external input.
  • Authentication & Authorization: Guides secure implementation of user login and access control.
  • Data Protection: Ensures sensitive data is handled securely, from storage to transmission.
  • Use Case: When building a new user registration feature, use this Skill to ensure all submitted data is validated, passwords are securely hashed, and session cookies are configured with appropriate security flags.

Quick Start

Apply security and hardening best practices to the user authentication module.

Frequently Asked Questions about security-and-hardening

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

FAQPage Schema
How do I prevent injection attacks through input validation in web applications?

Input validation prevents injection attacks by enforcing strict checks on all external input before processing. This Skill requires treating external data as potentially hostile, validating formats, and adhering to OWASP Top 10 prevention patterns to ensure data integrity.

What is the best way to implement secure user authentication and authorization?

Secure user authentication and authorization requires robust access control and secure session management. This Skill guides proper password hashing, session cookie configuration with security flags, and strict authorization checks to protect user privacy.

How do I apply OWASP Top 10 prevention patterns to my external integrations?

Applying OWASP Top 10 prevention patterns to external integrations involves securing data transmission and treating external input as untrusted. This Skill enforces secure coding checklists to protect external data flows from common vulnerabilities.

What security headers do I need to configure for a secure web application?

Security headers protect web applications by enforcing policies like content security and transport-layer security. This Skill mandates configuring appropriate security headers as part of a security-first development approach to harden applications by default.

How do I handle sensitive data storage securely during user registration?

Secure sensitive data storage during user registration requires hashing passwords and protecting data at rest. This Skill ensures sensitive data is handled securely from storage to transmission, treating user information as sacred.

Can I use this security hardening approach for an existing user login module?

Yes, you can apply security and hardening best practices to existing user login modules. This Skill validates submitted data, secures password hashing, and configures session cookies regardless of the development stage.