Web Security Logo
Web Security Studio v2.5.0
โšก FREE TIER
โญ FOUNDING MEMBER ACCESS ยท 76% DISCOUNT
Unlock Unlimited Multi-Framework Security Patches, Hardening Bundles & MCP Pipelines
Get lifetime access to one-click CSP Level 3 exports, automated SRI injection, unified security patches, and full CI/CD configs for $19 one-time ($79 regular). Dual Stripe + Solana checkout rails.
๐Ÿ’ณ Unlock Pro โ€” $19 Lifetime

๐Ÿ›ก๏ธ Multi-Vector Security Header & Posture Auditor

Audit live URLs or inspect headers against OWASP Top 10 and web security standards.

Presets: google.com github.com cloudflare.com example.com localhost:8080
A
85 / 100
7
Passed Vectors
1
Warnings / Partial
2
Critical Missing
0
Cookies Evaluated

โšก 1-Click Remediation Snippets

Ready-to-deploy configs to fix all detected missing headers instantly.

Loading remediation config...

๐Ÿ” TLS & Certificate Deep Inspector

Inspect TLS 1.3 protocol handshake, cryptographic cipher suites, certificate validity, expiration, and Subject Alternative Names (SANs).

Presets: google.com github.com cloudflare.com badssl.com expired.badssl.com self-signed.badssl.com
--
Days Remaining
Certificate Status
Valid & Trusted
Valid From
--
Expires On (Not After)
--

๐Ÿค TLS Handshake & Cipher Suite

Negotiated Protocol
TLSv1.3
Cipher Suite
TLS_AES_256_GCM_SHA384
Cipher Strength / Bits
256 bits
ALPN Protocol
h2, http/1.1

Subject (Certificate Owner)

Common Name (CN)--
Organization (O)--
Country (C)--
Serial Number--

Issuer (Certificate Authority)

Common Name (CN)--
Organization (O)--
Country (C)--
OCSP Must-Staple--

๐ŸŒ Subject Alternative Names (SANs) (0)

No certificate inspected yet.

๐Ÿ›ก๏ธ TLS Hardening Recommendations

โš–๏ธ Side-by-Side Security Posture Comparison

Compare security headers, cookie flags, and vulnerability posture between two live targets or before-and-after hardening.

Presets: example.com vs google.com httpbin.org vs github.com cloudflare.com vs google.com
Target A (Baseline)
https://example.com
--
-- / 100
-- Passed โ€ข -- Partial โ€ข -- Failed
POSTURE DELTA
0 pts
Awaiting comparison
Target B (Hardened)
https://google.com
--
-- / 100
-- Passed โ€ข -- Partial โ€ข -- Failed

๐Ÿ” Findings Differential Breakdown

๐ŸŸข Resolved / Better in Target B (0)

No resolved findings to display.

๐Ÿ”ด New Issues / Regressions in Target B (0)

No regressions detected.

โšช Unchanged Status (0)

No shared items.

๐Ÿ“Š Security Vector Matrix Comparison

Security Vector Target A Posture Target B Posture Delta
Run a comparison to view the matrix.

โšก 1-Click Local Project Security Patcher

Automatically inspect your local repository, detect deployment platform (Netlify, Vercel, Next.js, Nginx, Static HTML), and inject hardened security headers with preview diff.

Unified Code Diff (--)

Click "Dry-Run Preview" or "Apply Patch" to inspect the repository patch.

๐Ÿ›ก๏ธ Hardened Security Vectors Included

Content-Security-Policy (CSP)
Level 3 with object-src 'none' & frame-ancestors 'none'
Strict-Transport-Security (HSTS)
max-age=31536000; includeSubDomains; preload
Origin Isolation (COOP / COEP / CORP)
Shields against Spectre side-channel attacks
Permissions-Policy
camera=(), microphone=(), geolocation=()

๐Ÿ”’ CSP Level 3 Policy Builder & Framework Exporter

Construct rock-solid Content Security Policies with 'strict-dynamic' and cryptographic nonces.

'strict-dynamic' Execution
Allows trusted scripts to load trusted dependencies dynamically.
Upgrade Insecure Requests
Forces all HTTP resource URLs to HTTPS.
Block All Mixed Content
Strictly forbids HTTP assets on HTTPS pages.
Allow 'unsafe-eval'
Required for legacy Webpack/eval runtime (Not recommended).
Loading CSP...

๐Ÿš€ Multi-Platform Deployment Snippets

Select a framework tab to view deployment config.

๐Ÿงฌ Subresource Integrity (SRI) Hasher & HTML Injector

Calculate SHA-256, SHA-384, and SHA-512 hashes and automatically inject integrity attributes into HTML.

Single Asset Hasher

<script src="..." integrity="..." crossorigin="anonymous"></script>

HTML Batch Tag Injector

Injected HTML will appear here...

๐ŸŽจ WCAG 2.2 Color Contrast & Accessibility Engine

Real-time relative luminance calculation, AA/AAA compliance validation, and color vision deficiency simulation.

Palettes: Google Blue on White Google Green on White Google Red on White Dark Grey on Light White on Dark

Large Heading Text (24px)

This is normal body text (15px) demonstrating contrast legibility in your selected color scheme.

4.52 : 1
Contrast Ratio
PASS
WCAG AA Normal Text (โ‰ฅ 4.5:1)
PASS
WCAG AA Large Text (โ‰ฅ 3.0:1)
PASS
WCAG AA UI Components (โ‰ฅ 3.0:1)
FAIL
WCAG AAA Normal Text (โ‰ฅ 7.0:1)

๐Ÿ‘๏ธ Color Vision Deficiency Simulation

๐Ÿค– AI Agent & Model Context Protocol (MCP) Hub

Connect Claude Desktop, Cursor AI, Cline, and Zed directly to Web Security Guard tools.

Web Security Guard features a native MCP server exposing automated header audits, CSP generation, SRI calculations, and WCAG validations to any MCP-compliant LLM agent.

Loading MCP configuration...

๐Ÿ› ๏ธ Exposed Agent Tools (9 Tools)

Tool Name Description Required Parameters
sec_audit_site Performs multi-vector security header & cookie audit. url (string)
sec_inspect_ssl Inspects TLS protocol version, cipher suites, SANs, and cert expiration. domain (string), port (int, optional)
sec_diff_postures Computes delta scorecard and side-by-side header comparison between targets. target_a (string), target_b (string)
sec_patch_project Auto-patches local repo (Netlify, Vercel, Next.js, Nginx, HTML) with hardened headers. project_dir (string), platform (string), dry_run (bool)
sec_generate_csp Generates Level 3 CSP policy & framework configs. preset, nonce (optional)
sec_generate_sri Computes SHA-256/384/512 hashes and HTML tags. target or content
sec_inject_sri Injects integrity and crossorigin attributes into HTML tags. html_path_or_content (string)
sec_check_contrast Evaluates WCAG 2.2 contrast ratio & color blindness. fg_color, bg_color (hex strings)
sec_generate_remediation Exports hardened server configs for Next.js, Nginx, Vercel, Netlify. target (string), server_type (string)

โšก Multi-Platform Hardening Exporter

Download complete, hardened drop-in configuration files for your entire production stack.

Next.js 14/15 App Router

Edge middleware with crypto nonce generation & CSP Level 3 injection.

Vercel Edge Headers

Complete vercel.json security headers configuration.

Netlify Production

Drop-in _headers and netlify.toml headers block.

Nginx Virtual Host

Hardened TLS 1.3 ciphers, rate limiting & security-headers.conf.

Select a card above to inspect configuration code.
๐Ÿ”’

Hardening Exporter Bundle Locked

Unlock multi-framework production deployment configs, edge middleware, and unified security patches.

๐Ÿ’ณ Unlock Pro โ€” $19 Lifetime

๐Ÿ“– Web Security Defense-in-Depth Best Practices

Architectural principles for modern, zero-trust web application security.

1. CSP Level 3 & Strict Nonces

Avoid domain allowlists which are vulnerable to JSONP/CDN script bypasses. Rely on dynamic per-request cryptographic nonces with 'strict-dynamic'.

2. Complete Origin Isolation

Deploy COOP (same-origin), COEP (require-corp), and CORP (same-origin) to shield against Spectre side-channel attacks and unauthorized embedding.

3. Cookie Hardening (RFC 6265bis)

Enforce Secure; HttpOnly; SameSite=Lax (or Strict) on all session tokens. Use __Host- prefixes for highest origin binding.

4. Subresource Integrity (SRI)

Lock third-party CDN scripts and styles with cryptographic hashes (sha384-...) to prevent supply-chain compromises.

๐Ÿ”Œ CLI Commands & Python SDK

Automate audits, SSL inspections, posture diffs, and project patches in your CI/CD pipelines.

CLI Quickstart

# 1. Audit any live site from terminal
web-sec-guard audit https://example.com --format json

# 2. Inspect TLS / SSL certificate & cipher suites
web-sec-guard ssl google.com --port 443

# 3. Compare security postures between two targets
web-sec-guard diff https://example.com https://google.com

# 4. 1-Click patch local project repository
web-sec-guard patch ./my-project --platform auto

# 5. Generate strict CSP policy
web-sec-guard csp --preset strict_nonce --export nextjs

# 6. Compute SRI hash for CDN script
web-sec-guard sri https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js

# 7. Launch Web Security Studio UI
web-sec-guard serve --port 8080 --open

Python SDK Integration

from web_security_guard import SecurityAuditEngine, CSPBuilderEngine, WCAGContrastEngine

# Run comprehensive security audit
audit = SecurityAuditEngine.fetch_and_audit("https://example.com")
print(f"Score: {audit['score']}/100 Grade: {audit['grade']}")

# Generate Level 3 CSP
csp = CSPBuilderEngine.generate({"preset": "strict_nonce"})
print(csp["csp"])

# Validate WCAG 2.2 color contrast
contrast = WCAGContrastEngine.evaluate("#1a73e8", "#ffffff")
print(f"Contrast Ratio: {contrast['ratio_formatted']}, AA Normal: {contrast['wcag_aa_normal']}")