security-and-hardening

Harden web applications against common security vulnerabilities and misconfigurations.

9|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/klh/speedy-claude --skill security-and-hardening-klh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-and-hardening
Source: https://github.com/klh/speedy-claude/tree/main/skills/security-and-hardening
Command: npx skills add https://github.com/klh/speedy-claude --skill security-and-hardening-klh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces the risk of security vulnerabilities and misconfigurations by providing concrete, repeatable guidance for validating input, protecting secrets, enforcing authentication and authorization, and configuring secure defaults across web applications and APIs.

Core Features & Use Cases

  • Input validation at boundaries to prevent injection and malformed data from reaching business logic.
  • Authentication and session best practices including password hashing, secure cookies, and rate limiting for auth endpoints.
  • Output encoding and header configuration (CSP, HSTS, X-Frame-Options) to mitigate XSS and related attacks.
  • Secrets and dependency management guidance to avoid committing credentials and to triage npm audit findings.
  • Operational checks such as file upload restrictions, CORS restrictions, and a security review checklist for deployment readiness.
  • Use Case: Harden a web API that accepts user uploads and processes payments by validating schemas at the route boundary, restricting origins, enforcing HTTPS, and removing sensitive fields from API responses.

Quick Start

Apply the security-and-hardening checklist to your repository, identify high or critical findings, and generate a prioritized remediation plan.

Frequently Asked Questions about security-and-hardening

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

FAQPage Schema
How do I harden web applications against common security vulnerabilities?

Prevent injection attacks by applying input validation at route boundaries to ensure malformed data never reaches business logic. Validate schemas strictly and use parameterized queries to stop injection and malformed data from compromising application security.

What's the best way to secure authentication endpoints and manage secrets?

Harden APIs by validating schemas at the route boundary, restricting CORS origins, enforcing HTTPS, and removing sensitive fields from API responses. Apply operational checks like file upload restrictions to secure endpoints handling user input and third-party integrations.

Does this security hardening guidance apply to my web API with file uploads?

Mitigate XSS attacks by configuring output encoding and strict security headers including Content Security Policy, HSTS, and X-Frame-Options. These header configurations prevent cross-site scripting and related attacks from exploiting web application vulnerabilities.

How do I triage npm audit findings and dependency vulnerabilities?

Apply a security-and-hardening checklist to your repository to identify high or critical misconfigurations and vulnerabilities. Review input validation, authentication, and secure defaults to generate a prioritized remediation plan for deployment readiness.