missing-security-headers-anti-pattern

Detect missing HTTP security headers in web application responses.

8|1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/igbuend/grimbard --skill missing-security-headers-anti-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: missing-security-headers-anti-pattern
Source: https://github.com/igbuend/grimbard/tree/main/skills/missing-security-headers-anti-pattern
Command: npx skills add https://github.com/igbuend/grimbard --skill missing-security-headers-anti-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the security risk of missing crucial HTTP security headers in web applications, which can leave them vulnerable to attacks like XSS and clickjacking.

Core Features & Use Cases

  • Detects Missing Headers: Identifies the absence of headers like CSP, HSTS, X-Frame-Options, and others.
  • Provides Secure Examples: Offers clear "GOOD" code examples demonstrating how to implement these headers.
  • Use Case: When reviewing a web application's security posture, use this Skill to ensure all necessary headers are configured correctly to protect against common browser-based attacks.

Quick Start

Review the provided web application code for missing security headers.

Frequently Asked Questions about missing-security-headers-anti-pattern

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

FAQPage Schema
What HTTP security headers are needed to prevent XSS and clickjacking attacks?

Missing security headers leave web applications vulnerable to browser-based attacks like cross-site scripting (XSS) and clickjacking. This anti-pattern occurs when HTTP responses lack crucial headers such as Content-Security-Policy, Strict-Transport-Security, and X-Frame-Options, exposing users to security risks.

How do I add Content-Security-Policy and Strict-Transport-Security headers to my web application?

Add Content-Security-Policy and Strict-Transport-Security headers to your web application HTTP responses using secure code examples that define resource loading policies and enforce HTTPS connections. This Skill provides clear GOOD code examples demonstrating how to implement these protective headers correctly.

How can I detect missing security headers in my web application?

Detect missing security headers in your web application by reviewing HTTP responses through browser developer tools and security scanners. This Skill provides guidance on identifying the absence of headers like CSP, HSTS, and X-Frame-Options to ensure proper configuration against common attacks.

Does X-Frame-Options prevent clickjacking, and when do I need Content-Security-Policy?

X-Frame-Options prevents clickjacking by controlling frame rendering, while Content-Security-Policy is needed to prevent XSS by restricting resource loading. Use this Skill when reviewing your web application security posture to ensure all necessary protective headers are configured correctly.

What are the limitations of relying only on HTTP security headers for web application security?

HTTP security headers mitigate browser-based attacks like XSS and clickjacking but do not replace secure server-side validation or input sanitization. They function as a defense-in-depth layer; comprehensive web application security requires addressing vulnerabilities beyond just configuring response headers.