security-express

Audits Express.js applications for security vulnerabilities in JavaScript and TypeScript files.

Updated Feb 9, 2025
One-click install
npx skills add https://github.com/xeon826/dotfiles --skill security-express-xeon826
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-express
Source: https://github.com/xeon826/dotfiles/tree/main/opencode/skill/security-express
Command: npx skills add https://github.com/xeon826/dotfiles --skill security-express-xeon826

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers identify and fix common security vulnerabilities in Express.js applications, ensuring robust protection against attacks.

Core Features & Use Cases

  • Security Auditing: Reviews middleware, route configurations, and common vulnerability patterns.
  • Proactive Security: Use when developing or reviewing Express.js apps to prevent security flaws.
  • Use Case: A developer can ask to "Secure my Express app" and receive guidance on implementing Helmet.js, configuring CORS correctly, and auditing authentication middleware.

Quick Start

Use the security-express skill to audit the CORS configuration in the current directory.

Frequently Asked Questions about security-express

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

FAQPage Schema
How do I audit my Express.js application for security vulnerabilities?

To audit Express.js security vulnerabilities, you can use this Skill to review your project's JavaScript and TypeScript files. It analyzes middleware, route configurations, and common attack vectors like SQL injection and path traversal to identify weaknesses.

What is the best way to configure CORS and Helmet.js in an Express.js app?

Configuring CORS and Helmet.js in an Express.js app is addressed by this Skill through security auditing. It analyzes your current configurations and provides guidance on implementing these middleware correctly to ensure robust web security.

Does this Express.js security audit check session and authentication middleware?

Yes, this Express.js security audit checks session and authentication middleware. It analyzes your configurations to ensure authentication mechanisms are secure and properly implemented against common web security attack vectors.

Can I use this to prevent SQL injection and path traversal in my Express routes?

Yes, you can use this to prevent SQL injection and path traversal in Express routes. The Skill audits your route security and middleware configurations to identify and help fix vulnerabilities related to these common attack vectors.

What Express.js files do I need for a middleware security audit?

For a middleware security audit, you need your JavaScript and TypeScript files within the project directory. The Skill requires reviewing these files to analyze body-parser limits, CORS, and other middleware configurations.

Why should I review body-parser limits for Express.js security?

Reviewing body-parser limits is crucial for Express.js security because unrestricted limits can lead to denial-of-service attacks. This Skill analyzes your body-parser configuration to ensure request sizes are properly constrained.