agentsclimarketplace

Vapt headers

Skill bhuvangupta/vapt-claude/skills/vapt-headers

Full-spectrum web application VAPT skill for Claude Code, OpenCode, Codex CLI & Gemini CLI — from reconnaissance to exploitation to remediation reporting

Install
npx -y skills add bhuvangupta/vapt-claude --skill vapt-headers

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.5 KB, as published. Nobody here has run it

Infrastructure & Security Headers

When Invoked

The user runs /vapt headers <url> or this skill is triggered as part of Wave 1 during /vapt audit.

Phase 1: Header Collection

1.1 Fetch Response Headers

curl -sIL <url>

Also check specific paths:

curl -sI <url>/login 2>/dev/null
curl -sI <url>/api 2>/dev/null
curl -sI <url>/admin 2>/dev/null

1.2 Extract All Security-Relevant Headers

Parse the response for each of these headers (case-insensitive):

Security Headers:

  • Content-Security-Policy
  • X-Frame-Options
  • X-Content-Type-Options
  • Strict-Transport-Security
  • Referrer-Policy
  • Permissions-Policy
  • X-XSS-Protection
  • Cross-Origin-Opener-Policy
  • Cross-Origin-Resource-Policy
  • Cross-Origin-Embedder-Policy

CORS Headers:

  • Access-Control-Allow-Origin
  • Access-Control-Allow-Methods
  • Access-Control-Allow-Headers
  • Access-Control-Allow-Credentials

Information Disclosure:

  • Server
  • X-Powered-By
  • X-AspNet-Version
  • X-AspNetMvc-Version
  • X-Generator

Cache Headers (on sensitive pages):

  • Cache-Control
  • Pragma
  • Expires

Phase 2: Header Analysis

2.1 Content-Security-Policy (CSP)

CheckSeverity if Failed
CSP header presentMedium (5.0)
No unsafe-inline in script-srcMedium (5.5)
No unsafe-eval in script-srcMedium (5.5)
No wildcard * in default-srcMedium (4.5)
frame-ancestors definedMedium (4.5)
Reports configured (report-uri/report-to)Info (0.0)

2.2 X-Frame-Options / frame-ancestors

CheckSeverity if Failed
X-Frame-Options or CSP frame-ancestors presentMedium (4.3) — clickjacking
Value is DENY or SAMEORIGIN (not ALLOW-FROM *)Medium (4.3)

2.3 HSTS

CheckSeverity if Failed
Strict-Transport-Security presentMedium (5.0)
max-age >= 31536000 (1 year)Low (3.5)
includeSubDomains directiveLow (2.5)
On HSTS preload listInfo (0.0)

2.4 Other Security Headers

HeaderExpectedSeverity if Missing
X-Content-Type-OptionsnosniffLow (3.1)
Referrer-Policystrict-origin-when-cross-origin or stricterLow (2.5)
Permissions-PolicyRestrict camera, microphone, geolocationLow (2.0)
X-XSS-Protection0 (modern best practice — rely on CSP)Info (0.0)

2.5 CORS Analysis

CheckSeverity if Failed
Access-Control-Allow-Origin: * with credentialsHigh (8.1)
Origin reflection without validationHigh (7.5)
null origin allowedMedium (6.1)
Overly permissive methods (PUT, DELETE on public endpoints)Medium (5.0)

Test CORS by sending request with crafted Origin:

curl -sI -H "Origin: https://evil.com" <url> | grep -i access-control

2.6 Information Disclosure

FindingSeverity
Server header reveals version (e.g., Apache/2.4.49)Low (3.7)
X-Powered-By reveals framework versionLow (3.5)
X-AspNet-Version presentLow (3.5)
Detailed error pages with stack tracesMedium (5.3)

2.7 HTTP Methods

curl -sI -X OPTIONS <url> | grep -i allow

Check if dangerous methods are enabled:

  • TRACE — can enable Cross-Site Tracing (XST)
  • PUT / DELETE — on static content paths
  • CONNECT — proxy abuse

2.8 Cookie Security

curl -sI <url> | grep -i set-cookie

For each cookie, check:

FlagExpectedSeverity if Missing
HttpOnlyPresent on session cookiesMedium (4.5)
SecurePresent on all cookies (HTTPS site)Medium (4.5)
SameSiteStrict or LaxLow (3.5)
PathScoped appropriatelyLow (2.0)

2.9 Cache-Control on Sensitive Pages

Check login pages, account pages, API responses for:

  • Cache-Control: no-store (sensitive data should not be cached)
  • Pragma: no-cache (for HTTP/1.0 compatibility)

Phase 3: Output

Terminal Output

Display a header scorecard:

Dev mode: Explain each header's purpose, show what a properly configured header looks like, provide copy-paste nginx/Apache config.

Pro mode: Pass/fail table only.

VAPT-HEADERS.md

# VAPT Security Headers Analysis

## Target: <url>
## Date: <timestamp>

## Header Scorecard

| Header | Status | Value | Severity |
|--------|--------|-------|----------|
| Content-Security-Policy | ... | ... | ... |
| X-Frame-Options | ... | ... | ... |
| X-Content-Type-Options | ... | ... | ... |
| Strict-Transport-Security | ... | ... | ... |
| Referrer-Policy | ... | ... | ... |
| Permissions-Policy | ... | ... | ... |

## CORS Configuration
<analysis results>

## Information Disclosure
<server/version headers found>

## Cookie Security
| Cookie | HttpOnly | Secure | SameSite | Path |
|--------|----------|--------|----------|------|
| ... | ... | ... | ... | ... |

## HTTP Methods
<allowed methods per endpoint>

## Findings
<scored findings table>

## Recommended Configuration

### Nginx
<copy-paste header config>

### Apache
<copy-paste header config>

## Suggested Next Steps
- /vapt ssl <url> — analyze SSL/TLS configuration
- /vapt scan <url> — check for web application vulnerabilities

Cross-Skill Integration

  • Security header findings feed into Wave 1 context
  • CSP analysis informs XSS testing strategy in vapt-inject (weak CSP = higher XSS impact)
  • CORS findings inform vapt-api cross-origin testing

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.