security-and-hardening

Harden web application code against security vulnerabilities with input validation and secure authentication.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/yahav123147/paid-ads-cro-skills --skill security-and-hardening-yahav123147
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-and-hardening
Source: https://github.com/yahav123147/paid-ads-cro-skills/tree/main/skills/security-and-hardening
Command: npx skills add https://github.com/yahav123147/paid-ads-cro-skills --skill security-and-hardening-yahav123147

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents security failures by providing practical, implementation-level guidance to defend against common web app vulnerabilities and deployment risks.

Core Features & Use Cases

  • Input validation & safe boundaries: Validate untrusted inputs at the system boundary using schemas and defensive handling for API routes and form submissions.
  • Defensive authz/authn patterns: Enforce password hashing, secure session cookie practices, rate limiting on authentication, and mandatory authorization checks per endpoint.
  • XSS and injection prevention: Encode output to avoid XSS and use parameterized queries to mitigate SQL/NoSQL injection and similar attack classes.
  • Secrets and operational security: Keep secrets out of code and commits, avoid sensitive logging, configure security headers and CORS, and triage vulnerabilities with npm audit.

Quick Start

Ask the AI to review your auth and input-handling code and produce a prioritized hardening checklist based on OWASP Top 10 and your current deployment practices.

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 application code against common security vulnerabilities?

Harden web application code by enforcing safe input handling at boundaries, applying defensive authentication and authorization checks per endpoint, and using parameterized queries to mitigate injection attacks.

What is the best way to prevent XSS and SQL injection in API routes?

Prevent XSS and SQL injection by encoding output to avoid cross-site scripting and using parameterized queries for data access, ensuring untrusted inputs from API routes and form submissions are validated defensively.

How do I configure secure session cookies and authentication checks?

Configure secure session cookies and authentication by enforcing password hashing, applying secure session cookie practices, implementing rate limiting on authentication endpoints, and mandating authorization checks.

Can I use this approach to secure third-party integrations and file uploads?

Yes, you can secure third-party integrations and file uploads by validating untrusted inputs at the system boundary using schemas and applying defensive handling where sensitive secrets and untrusted data are involved.

What operational security measures should I apply to manage secrets and headers?

Manage secrets and operational security by keeping secrets out of code and commits, avoiding sensitive logging, configuring security headers and CORS restrictions, and triaging vulnerabilities using npm audit.

How do I create a prioritized checklist based on the OWASP Top 10?

Create a prioritized hardening checklist by reviewing your current authentication and input-handling code, mapping findings against OWASP Top 10 vulnerabilities, and applying a repeatable vulnerability and audit review workflow.