security-and-hardening

Harden web applications against security vulnerabilities in input handling, authentication, and data storage.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/logo-solutions/NAS-logo --skill security-and-hardening-logo-solutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-and-hardening
Source: https://github.com/logo-solutions/NAS-logo/tree/main/skills/security-and-hardening
Command: npx skills add https://github.com/logo-solutions/NAS-logo --skill security-and-hardening-logo-solutions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers identify and remediate security vulnerabilities across web applications by enforcing security-first practices for input handling, authentication, data storage, and third-party integrations.

Core Features & Use Cases

  • Boundary validation & injection prevention: Validate inputs at system boundaries and use parameterized queries to prevent SQL/NoSQL/OS injections.
  • Authentication and session hardening: Recommend strong password hashing, secure httpOnly cookies, rate limiting for auth endpoints, and broken access control checks.
  • Configuration, dependency, and secrets safety: Advise on security headers (CSP, HSTS), CORS restrictions, npm audit triage, and secrets management best practices.
  • Use Case: Secure a REST API that accepts file uploads and payments by applying validation, strict CORS, secure headers, rate limits, and dependency updates.

Quick Start

Perform a security review of the new authentication and file upload endpoints, flag high-severity issues, and provide prioritized remediation steps.

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 SQL injection and validate untrusted user input in my API?

To prevent SQL injection, enforce boundary validation at system boundaries and use parameterized database queries. This ensures untrusted user input is sanitized and treated strictly as data, blocking malicious command execution.

What's the best way to harden authentication sessions and manage secure cookies?

The best way to harden authentication is to implement strong password hashing, set secure httpOnly cookies, and apply rate limiting to auth endpoints. Regularly check for broken access controls to prevent session hijacking and unauthorized access.

How do I configure HTTP security headers like CSP and HSTS for web applications?

Configure security headers by adding Content-Security-Policy (CSP) and HTTP Strict Transport Security (HSTS) to your web application responses. These headers enforce secure connections and restrict resource loading, mitigating cross-site scripting and downgrade attacks.

Can I use this approach to secure a REST API that handles file uploads and payments?

Yes, you can secure a REST API handling file uploads and payments by applying strict input validation, CORS restrictions, secure response headers, and rate limits. Additionally, triage dependencies with npm audit to address underlying vulnerabilities.

Why do I need output encoding and CORS restrictions for third-party integrations?

Output encoding prevents cross-site scripting by neutralizing untrusted data before rendering, while CORS restrictions limit external domain access to your resources. Together they secure third-party integrations against data exfiltration and malicious script execution.