mcpField
S
security-headers

security-headers

github.com/fusengineSecurity3442 installsUpdated 2w ago
Repository

About security-headers

A skill for auditing and configuring HTTP security headers in web applications. It helps developers identify framework-specific settings, compare existing headers with best practices, generate fixes, and validate the result.

Key features

  1. 01Detects the web framework
  2. 02Checks existing header settings
  3. 03Compares configuration with best practices
  4. 04Generates framework-specific fixes
  5. 05Validates configured headers
  6. 06Covers seven HTTP security headers

Use cases

  1. 01Audit security headers in a web application
  2. 02Find missing or weak header settings
  3. 03Generate a framework-specific configuration change
  4. 04Verify headers after applying a fix

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/fusengine/claude-plugins --skill security-headers

After installing, type/security-headersin Claude Code to confirm it loaded.

Details

From the project README
This skill audits and configures HTTP security headers for a web application: Content-Security-Policy and Strict-Transport-Security (HIGH severity if missing), X-Content-Type-Options and X-Frame-Options (MEDIUM), and Referrer-Policy, Permissions-Policy, X-XSS-Protection (LOW).

It detects the framework (Next.js next.config.js headers/middleware.ts, Laravel SecurityHeaders middleware, Express helmet, Django SECURE_* settings), checks the current configuration against best practice, generates a framework-specific fix, and validates the headers are properly set.

Security Headers Skill

Overview

Audit and configure HTTP security headers for web applications.

Required Headers

HeaderPurposeSeverity if Missing
Content-Security-PolicyPrevent XSS/injectionHIGH
Strict-Transport-SecurityForce HTTPSHIGH
X-Content-Type-OptionsPrevent MIME sniffingMEDIUM
X-Frame-OptionsPrevent clickjackingMEDIUM
Referrer-PolicyControl referrer infoLOW
Permissions-PolicyControl browser featuresLOW
X-XSS-ProtectionLegacy XSS filterLOW

Workflow

  1. Detect framework (Next.js, Laravel, Express, etc.)
  2. Check current header configuration
  3. Compare against security best practices
  4. Generate framework-specific configuration
  5. Validate headers are properly set

Detection Points

FrameworkConfig Location
Next.jsnext.config.js headers, middleware.ts
LaravelSecurityHeaders middleware
Expresshelmet middleware
DjangoSECURE_* settings

References

Comments

Markdown supported