security-best-practices

Enforce HTTPS, security headers, and input validation for web applications.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/Cwuzto/DACN --skill security-best-practices-cwuzto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-best-practices
Source: https://github.com/Cwuzto/DACN/tree/main/.agent/skills/security-best-practices
Command: npx skills add https://github.com/Cwuzto/DACN --skill security-best-practices-cwuzto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security gaps in web applications and infrastructure expose organizations to data breaches, downtime, and regulatory risk. This skill provides a structured framework of best practices to implement HTTPS, headers, CSRF protection, input validation, rate limiting, secret management, and secure authentication.

Core Features & Use Cases

  • Enforce HTTPS and security headers across services using Helmet and HSTS configurations.
  • Validate inputs to prevent injection attacks and XSS, with parameterized queries and server-side validation.
  • Protect against CSRF and manage secrets securely, including token rotation and environment isolation.
  • Implement rate limiting and secure authentication workflows to mitigate abuse and maintain compliance.

Quick Start

Apply these practices to your API and frontend today to reduce common vulnerabilities and harden your stack.

Frequently Asked Questions about security-best-practices

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

FAQPage Schema
How do I enforce HTTPS and security headers across backend services?

To enforce HTTPS and security headers, apply Helmet and HSTS configurations across your backend services. This hardens web applications against protocol downgrade attacks and prevents unauthorized traffic interception.

What is the best way to prevent injection attacks and XSS via input validation?

Input validation prevents injection attacks and XSS by enforcing server-side validation and parameterized queries. This structured framework stops malicious payloads from executing on backend services and frontend interfaces.

How do I implement CSRF protection and secure secret management?

CSRF protection and secure secret management are implemented through token rotation and environment isolation. This workflow prevents cross-site request forgery and secures sensitive authentication data across backend services.

Does this approach work for API security hardening and vulnerability remediation?

Yes, this approach applies directly to API security hardening and vulnerability remediation. It provides a structured framework to reduce common web application vulnerabilities and satisfy compliance workflows across frontend interfaces and backend services.

When do I need rate limiting and secure authentication workflows?

You need rate limiting and secure authentication workflows, such as JWT auth, to mitigate API abuse and maintain regulatory compliance. These practices protect backend services by restricting excessive automated requests.