security-best-practices

Harden Express.js web applications with OWASP-aligned security configurations.

8|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/JEO-tech-ai/oh-my-unity3d --skill security-best-practices-jeo-tech-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-best-practices
Source: https://github.com/JEO-tech-ai/oh-my-unity3d/tree/main/.unity-skills/security-best-practices
Command: npx skills add https://github.com/JEO-tech-ai/oh-my-unity3d --skill security-best-practices-jeo-tech-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement security best practices across web applications and infrastructure to reduce vulnerabilities and protect data.

Core Features & Use Cases

  • Enforce HTTPS and security headers using helmet and HSTS to harden responses.
  • Input validation with Joi to prevent SQL injection and XSS from malformed input.
  • CSRF protection, token management, and safe handling of state-changing requests.
  • Secrets management via environment variables and Kubernetes Secrets to avoid hardcoding.
  • Secure API authentication patterns with token rotation and secure storage practices.
  • OWASP Top 10 alignment and defense-in-depth security discipline for teams.
  • Security audits and compliance readiness for GDPR, PCI-DSS, etc.

Quick Start

Set up an Express.js server with helmet, HTTPS enforcement, rate limiting, Joi validation, CSRF protection, and environment-based secret management.

Frequently Asked Questions about security-best-practices

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

FAQPage Schema
How do I secure an Express.js API against the OWASP Top 10 vulnerabilities?

To secure an Express.js API against OWASP Top 10 vulnerabilities, enforce HTTPS, configure security headers with helmet, validate inputs using Joi, and apply CSRF protection. This implements defense-in-depth controls to protect state-changing requests and prevent injection attacks.

What is the best way to prevent CSRF and SQL injection in Node.js web apps?

The best way to prevent CSRF and SQL injection in Node.js is to validate inputs with Joi and use parameterized queries. Adding CSRF token management further secures state-changing requests, ensuring malformed data cannot execute malicious database commands.

Does helmet provide enough security headers for HSTS and HTTPS enforcement?

Yes, helmet provides enough security headers for HSTS and HTTPS enforcement by configuring standard HTTP response headers. When applied to an Express.js backend, it hardens API responses and enforces secure connections to prevent protocol downgrade attacks.

How do I manage secrets and API tokens securely in Kubernetes environments?

You manage secrets and API tokens securely in Kubernetes environments by using Kubernetes Secrets and environment variables instead of hardcoding. Secure API authentication also requires token rotation and secure storage to maintain data protection.

When do I need rate limiting for secure API authentication patterns?

You need rate limiting for secure API authentication patterns when exposing endpoints to prevent brute-force attacks. Combined with secure token rotation and environment-based secrets, rate limiting enforces OWASP-aligned controls and defense-in-depth security discipline.