Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Establish a security baseline for a website or web app. Use this skill when configuring HTTPS and TLS, setting security headers, planning secrets management, evaluating CSP policies, doing a basic security audit, or hardening a site before launch. Triggers on security headers, HTTPS, TLS, CSP, content security policy, HSTS, secrets management, vulnerability scan, security audit, harden, OWASP, security baseline. Also triggers when a security review is required for compliance or before going live
.claude/skills/rampstackco-security-baseline/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 93% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 140% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 86% | 0% |
| case-16 | ✓→✗ | ▼ Worse | 145% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 169% | 0% |
Establish the security floor for any production website or web app. Stack-agnostic. Covers the things that should be in place before public launch and verified periodically after.
incident-response)code-review-web)email-deliverability)domain-strategy)performance-optimization)Security is layered. Each layer addresses a different attack surface.
How data moves from server to client.
includeSubDomains and preload for high-confidence sites.What the browser is told about your site.
| Header | Purpose | Default value | |---|---|---| | Strict-Transport-Security | Force HTTPS | max-age=31536000; includeSubDomains | | Content-Security-Policy | Restrict resource loading | Site-specific | | X-Content-Type-Options | Prevent MIME sniffing | nosniff | | X-Frame-Options | Clickjacking protection | DENY or SAMEORIGIN | | Referrer-Policy | Control referrer info | strict-origin-when-cross-origin | | Permissions-Policy | Control browser features | Site-specific (camera, mic, etc.) | | Cross-Origin-Opener-Policy | Process isolation | same-origin (where compatible) | | Cross-Origin-Embedder-Policy | Cross-origin restrictions | require-corp (where applicable) |
CSP deserves its own attention. See the framework section below.
How users prove who they are and what they can do.
How untrusted input is processed.
Where credentials and keys live.
How the team operates.
incident-response)backup-and-disaster-recovery)CSP is the most powerful response header and the most often misconfigured. Worth its own treatment.
CSP tells the browser which sources are allowed for various resource types: scripts, styles, images, frames, connections, etc. A strict CSP prevents most XSS attacks even when input handling has bugs.
Strict CSP (recommended): uses nonce- or hash- based source allowlists. Inline scripts must be explicitly allowed via nonce.
Content-Security-Policy: script-src 'self' 'nonce-{random}' 'strict-dynamic'; object-src 'none'; base-uri 'self';Allowlist CSP (legacy): lists allowed domains. Easier to set up, much weaker.
Content-Security-Policy: script-src 'self' https://trusted.com; ...Strict CSP requires application changes (every inline script needs a nonce). The investment pays off.
Content-Security-Policy-Report-Only to log violations without blocking.unsafe-inline in script-src. Defeats most of CSP's value.unsafe-eval in script-src. Often required by older libraries; refactor or replace.*). Defeats the policy.frame-ancestors. Use this for clickjacking defense (more flexible than X-Frame-Options).Use a free scanner: securityheaders.com, or the MDN HTTP Observatory at developer.mozilla.org/en-US/observatory. Get a current grade. This is the floor. If no scan result can be obtained, state the gap per the data-availability rule.
Walk the 6 layers. For each, document:
High risk, easy fixes go first:
Medium risk, medium fixes next:
Low risk, nice-to-haves last:
For each fix:
Write a security baseline document. It says what's expected on every site:
New sites get audited against this. Existing sites get re-audited periodically.
Quarterly is the floor. Add reviews after major changes or incidents.
Not legal advice. Surfaces where security baseline meets compliance requirements:
When compliance applies, the baseline is necessary but not the full answer.
HSTS without includeSubDomains. Attacker tricks browser into HTTP on a subdomain you haven't HTTPS'd yet.
HSTS preload without commitment. Once preloaded, removing it takes months to reach users through a Chrome update, with no guarantee for other browsers. Don't preload until HTTPS is solid across all subdomains forever.
CSP with unsafe-inline. Defeats most of CSP. Either go strict (nonce-based) or accept that CSP is providing limited protection.
Default headers missing. X-Content-Type-Options, X-Frame-Options, Referrer-Policy are easy and free. Set them.
Admin without 2FA. The single most common high-impact vulnerability across small teams. Fix today.
Secrets in environment variables baked into images. Anyone with image access has the secrets. Use a runtime secret manager.
No security.txt. Researchers find issues; they need somewhere to report. Publish a security.txt at /.well-known/security.txt.
Old TLS versions enabled. Disable TLS 1.0 and 1.1. Most providers offer this as a checkbox.
CDN allowing arbitrary inline scripts via misconfigured CSP. The CDN proxies user content; attackers leverage that. Audit the CSP against actual loaded resources.
No incident response plan. When (not if) something happens, no runbook = chaos. See incident-response.
Vulnerability scanning without remediation. Reports pile up. The scan is theater unless someone fixes findings.
Penetration test ignored. Pen test report sits on a shelf. Test results without remediation are worse than no test.
A security baseline document includes:
This skill's output depends on data, measurements, or tool results it cannot generate on its own. When a required input, tool, or data source is unavailable or unverifiable, the sanctioned output is the deliverable with the gap stated: what was needed, what was actually obtained or verified, and which parts of the output are affected. Fabricating, estimating, or interpolating a required number to complete the deliverable is never sanctioned. A stated gap is a complete answer.
references/headers-checklist.md: A copy-paste checklist of recommended security headers with example values, organized by tier of importance.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 34,606 | 27,260 | -21% | 1 | 1 | 0% | 2,945 | 7,924 | +169% | 0 | 0 | — |
case-02 | pass→pass | 22,364 | 23,272 | +4% | 1 | 1 | 0% | 2,710 | 5,869 | +117% | 0 | 0 | — |
case-03 | fail→pass | 27,291 | 23,095 | -15% | 1 | 1 | 0% | 3,444 | 6,639 | +93% | 0 | 0 | — |
case-04 | pass→pass | 15,689 | 15,288 | -3% | 1 | 1 | 0% | 2,566 | 5,072 | +98% | 0 | 0 | — |
case-05 | pass→pass | 12,449 | 16,533 | +33% | 1 | 1 | 0% | 2,270 | 5,694 | +151% | 0 | 0 | — |
case-11 | pass→pass | 13,263 | 13,664 | +3% | 1 | 1 | 0% | 2,348 | 5,076 | +116% | 0 | 0 | — |
case-06 | pass→pass | 18,687 | 18,597 | -0% | 1 | 1 | 0% | 3,236 | 5,841 | +81% | 0 | 0 | — |
case-07 | pass→pass | 11,570 | 9,955 | -14% | 1 | 1 | 0% | 2,309 | 4,650 | +101% | 0 | 0 | — |
case-08 | pass→pass | 9,817 | 8,298 | -15% | 1 | 1 | 0% | 1,866 | 4,226 | +126% | 0 | 0 | — |
case-09 | pass→pass | 12,553 | 11,840 | -6% | 1 | 1 | 0% | 2,289 | 4,701 | +105% | 0 | 0 | — |
case-10 | pass→pass | 18,762 | 16,910 | -10% | 1 | 1 | 0% | 3,020 | 5,397 | +79% | 0 | 0 | — |
case-12 | pass→pass | 2,617 | 2,697 | +3% | 1 | 1 | 0% | 447 | 3,123 | +599% | 0 | 0 | — |
case-13 | pass→pass | 14,825 | 13,881 | -6% | 1 | 1 | 0% | 2,621 | 5,166 | +97% | 0 | 0 | — |
case-14 | pass→pass | 7,096 | 6,399 | -10% | 1 | 1 | 0% | 1,178 | 3,786 | +221% | 0 | 0 | — |
case-15 | pass→pass | 9,300 | 8,810 | -5% | 1 | 1 | 0% | 1,829 | 4,348 | +138% | 0 | 0 | — |
case-16 | pass→fail | 10,687 | 9,027 | -16% | 1 | 1 | 0% | 1,708 | 4,180 | +145% | 0 | 0 | — |
case-17 | pass→pass | 9,000 | 9,035 | +0% | 1 | 1 | 0% | 1,635 | 4,269 | +161% | 0 | 0 | — |
case-18 | fail→pass | 19,613 | 7,018 | -64% | 1 | 1 | 0% | 1,534 | 3,685 | +140% | 0 | 0 | — |
case-19 | fail→pass | 11,970 | 6,147 | -49% | 1 | 1 | 0% | 1,978 | 3,677 | +86% | 0 | 0 | — |
case-20 | pass→pass | 9,019 | 8,141 | -10% | 1 | 1 | 0% | 1,681 | 4,136 | +146% | 0 | 0 | — |
case-21 | pass→pass | 7,476 | 8,129 | +9% | 1 | 1 | 0% | 1,231 | 4,080 | +231% | 0 | 0 | — |
case-22 | pass→pass | 10,307 | 6,090 | -41% | 1 | 1 | 0% | 1,781 | 3,672 | +106% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.