security-best-practices

Installation
Summary

Comprehensive security hardening for web applications covering HTTPS, input validation, authentication, and OWASP Top 10 vulnerabilities.

  • Enforces HTTPS, security headers (CSP, HSTS), and rate limiting via Helmet and Express middleware to prevent DDoS and common attacks
  • Prevents SQL Injection and XSS through parameterized queries, input validation with Joi, and output encoding with DOMPurify
  • Implements CSRF token protection, JWT-based authentication with refresh token rotation, and secret management via environment variables
  • Includes OWASP Top 10 checklist and best practices for access control, defense in depth, and principle of least privilege
SKILL.md

Security Best Practices

When to use this skill

  • New project: consider security from the start
  • Security audit: inspect and fix vulnerabilities
  • Public API: harden APIs accessible externally
  • Compliance: comply with GDPR, PCI-DSS, etc.

Instructions

Step 1: Enforce HTTPS and security headers

Express.js security middleware:

import express from 'express';
import helmet from 'helmet';
Related skills

More from supercent-io/skills-template

Installs
14.1K
GitHub Stars
88
First Seen
Jan 24, 2026