sec-appsec-web-baseline

Audit and harden HTTP security headers, cookies, redirects, and mixed content on web sites.

1|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/bitranox/bitranox-skills --skill sec-appsec-web-baseline-bitranox
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sec-appsec-web-baseline
Source: https://github.com/bitranox/bitranox-skills/tree/main/plugins/bitranox/skills/sec-appsec-web-baseline
Command: npx skills add https://github.com/bitranox/bitranox-skills --skill sec-appsec-web-baseline-bitranox

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Public web sites often ship with missing or weak HTTP security headers, insecure cookies, mixed content, or leaked server versions, and hand-checking with curl misses findings. This Skill measures every dimension with a bundled scanner, grades each finding SEVERE/MEDIUM/MINOR/OK, and gates fixes on a clean re-scan. ## Core Features & Use Cases - Automated header auditing: Run audit_headers.py against a URL to grade CSP, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, COOP, and X-XSS-Protection in one pass. - Cookie, redirect, and mixed-content checks: Detect Set-Cookie flags missing Secure/HttpOnly/SameSite, verify the HTTP-to-HTTPS 301/308 redirect, and find http:// subresources in returned HTML. - Guided safe rollout: Follow a staged order (TLS, safe headers, CSP report-only, CSP enforced, short then long HSTS) with nginx snippets and per-header recommended values from the reference file. - Use Case: Before launching a site, scan it, apply the proposed nginx config diffs for the SEVERE findings, then re-scan until the report shows 0 SEVERE and 0 MEDIUM on every representative page. ## Quick Start Ask the AI to audit https://your-site.com with the web security baseline skill and propose fixes for any SEVERE or MEDIUM findings.

Frequently Asked Questions about sec-appsec-web-baseline

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

FAQPage Schema
How do I audit HTTP security headers on a website?▼

Run the bundled scanner with uv run audit_headers.py https://host. It makes one GET and one plain-HTTP HEAD request, grades each header SEVERE, MEDIUM, MINOR, or OK, and exits non-zero until the site reaches 0 SEVERE and 0 MEDIUM.

How do I roll out Content-Security-Policy without breaking my site?▼

Ship Content-Security-Policy-Report-Only for at least 48 hours, fix reported violations, then promote it to an enforced policy. Avoid unsafe-inline and unsafe-eval in script-src by using nonces or hashes for inline scripts.

Why did my nginx security headers disappear on some pages?▼

An add_header directive inside a location block drops all inherited add_header directives, silently removing security headers there. Put the headers in an included file and re-include it in every block that adds its own header, and use the always flag so 4xx and 5xx responses are covered.

Does the scanner check TLS versions like TLS 1.2 or 1.3?▼

No, the scanner grades headers, cookies, redirects, and mixed content only; a clean result says nothing about TLS protocol versions. Check TLS configuration manually with testssl.sh or openssl s_client if it matters.

Why should I scan a public site through a proxy?▼

Scanning from inside the network often hits the internal origin via split-horizon DNS, missing the edge headers added by a CDN or reverse proxy. Use the --proxy option to egress externally so the audit measures what outside visitors actually receive.

When is this baseline audit not the right tool?▼

It does not cover deep penetration testing, authentication flows, secret scanning, or GDPR consent infrastructure. Those concerns are handed off to sibling sec-* and privacy skills, while this one stays limited to headers, cookies, transport redirects, and information leakage.