Web Security, TLS Certificate & HTTP Headers Audit (MCP) avatar

Web Security, TLS Certificate & HTTP Headers Audit (MCP)

Pricing

$4.00 / 1,000 host auditeds

Go to Apify Store
Web Security, TLS Certificate & HTTP Headers Audit (MCP)

Web Security, TLS Certificate & HTTP Headers Audit (MCP)

Audit websites for TLS protocol/cipher strength, X.509 certificate expiry & SANs, HTTP security headers (HSTS, CSP, XFO, XCTO, Referrer-Policy, Permissions-Policy), server header disclosure, .well-known/security.txt, and DNS CAA records with deterministic 0-100 scores and A+ to F grades. MCP-ready.

Pricing

$4.00 / 1,000 host auditeds

Rating

0.0

(0)

Developer

Cade Hockley

Cade Hockley

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

10 hours ago

Last modified

Features

Limited permissions

Share

Audit public websites and API endpoints for TLS protocol & cipher strength, X.509 certificate validity & expiry, HTTP security headers, server stack disclosures, /.well-known/security.txt, and DNS CAA records — returning a deterministic 0–100 security score, A+ to F grade, and prioritized remediation recommendations.

Built for Apify Pay-per-Event and designed for MCP / AI Agents (apify-mcp-server), n8n, security posture monitoring, and B2B vendor risk workflows.

Key Features

  • TLS Socket & X.509 Inspection: Performs an SNI-enabled TLS handshake via Python ssl to capture tlsVersion, cipherSuite, certificate subject, issuer, notBefore, notAfter, daysUntilExpiry, sanCount, and sanSample, while flagging untrusted or expiring certificates.
  • Full HTTP Security Header Audit: Executes HTTPS GET requests (capturing status codes including 403/404 and full redirect chains) to check:
    • Strict-Transport-Security (HSTS presence, max-age >= 31536000, includeSubDomains, preload)
    • Content-Security-Policy (presence, default-src, frame-ancestors)
    • X-Frame-Options & X-Content-Type-Options (nosniff)
    • Referrer-Policy & Permissions-Policy
    • Server and X-Powered-By version/stack disclosure
  • security.txt & DNS CAA Checks: Optionally verifies /.well-known/security.txt (RFC 9116) and walks parent domains for DNS CAA records (RFC 8659) via dnspython with /usr/bin/dig fallback.
  • Deterministic Scoring (0–100, A+ to F): Transparent point breakdown across TLS (35 pts), HTTP security headers (55 pts), and security hygiene (10 pts).

Pay-per-Event Pricing

  • Event: host-audited
  • Price: $0.004 USD per valid host audited (US$4.00 per 1,000 hosts)
  • Zero-Charge Guard: Malformed or empty host inputs emit structured status: "invalid_input" records and are never charged.

Input Schema Summary

FieldTypeDefaultDescription
hostsstring[]RequiredHostnames or URLs (e.g. https://example.com/foo normalizes to example.com).
portinteger443TCP port for TLS handshake and HTTPS requests.
timeoutSecondsinteger10Per-operation network timeout in seconds (1–60).
checkSecurityTxtbooleantrueFetch /.well-known/security.txt over HTTPS.
checkCaaDnsbooleantrueQuery DNS CAA records across domain hierarchy.
maxItemsinteger100Optional cap on valid hosts audited and charged per run.

Example Input

{
"hosts": [
"google.com",
"https://shopify.com/pricing"
],
"port": 443,
"timeoutSeconds": 10,
"checkSecurityTxt": true,
"checkCaaDns": true
}

Example Output Item

{
"input": "https://shopify.com/pricing",
"host": "shopify.com",
"port": 443,
"status": "ok",
"ok": true,
"securityScore": 84,
"grade": "A",
"tls": {
"ok": true,
"certVerified": true,
"tlsVersion": "TLSv1.3",
"daysUntilExpiry": 62,
"sanCount": 2
},
"http": {
"ok": true,
"httpStatus": 200,
"redirectCount": 1
},
"securityTxt": {
"checked": true,
"present": true,
"status": 200
},
"caaDns": {
"checked": true,
"present": true,
"queriedName": "shopify.com"
},
"findings": [],
"recommendations": []
}

MCP Integration (apify-mcp-server)

Connect this Actor to Claude Desktop, Cursor, or any MCP-compatible client via mcp.apify.com:

{
"mcpServers": {
"apify": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.apify.com/?actors=the_magic_dragon/web-security-tls-headers-mcp",
"--header",
"Authorization: Bearer ${APIFY_TOKEN}"
]
}
}
}