MinhCyber
đŸ›Ąī¸

Security Implementation

This page showcases the security measures implemented on this portfolio site. As a security professional, I believe in practicing what I preach — building secure applications from the ground up.

🏆

Security Rating Target

A+ on SecurityHeaders.com & SSL Labs

Security Headers & Protections

đŸ›Ąī¸

Content Security Policy

Implemented

Strict CSP with nonce-based script execution

  • default-src 'self'
  • Nonce-based inline scripts
  • Explicit allowlist for Giscus
  • No unsafe-eval
🔒

HTTPS Only

Implemented

TLS 1.2+ with HSTS preload

  • Strict-Transport-Security enabled
  • max-age=31536000
  • includeSubDomains
  • preload directive
đŸšĢ

XSS Protection

Implemented

Multiple layers of XSS prevention

  • X-Content-Type-Options: nosniff
  • React auto-escaping
  • CSP script restrictions
đŸ–ŧī¸

Clickjacking Protection

Implemented

Frame embedding prevention

  • X-Frame-Options: DENY
  • frame-ancestors 'none'
đŸ‘ī¸

Privacy Controls

Implemented

Restricted browser permissions

  • Permissions-Policy header
  • Camera/Microphone disabled
  • Geolocation disabled
  • Interest-cohort disabled (FLoC)
🔗

Referrer Policy

Implemented

Controlled referrer information

  • strict-origin-when-cross-origin
  • Prevents information leakage

Security Architecture

Defense in depth approach with multiple security layers protecting the application.

CDN & Edge Security

Layer 1

First line of defense at the edge

Cloudflare WAFDDoS ProtectionSSL/TLS TerminationEdge Caching

Transport Security

Layer 2

Secure data in transit

TLS 1.2+ OnlyHSTS PreloadCertificate Pinning

HTTP Security Headers

Layer 3

Browser security policies

Content-Security-PolicyX-Frame-OptionsX-Content-Type-OptionsPermissions-Policy

Application Security

Layer 4

Code-level protections

React Auto-EscapingInput ValidationStatic Site GenerationNo Server-Side State

Cookie Isolation

Layer 5

Cross-domain protection

SameSite=StrictExact Domain OnlyHttpOnly CookiesSecure Flag
âš ī¸

Shadow Twin Architecture

This main site (minhcyber.com) implements security best practices. The Lab Site (lab.minhcyber.com) intentionally contains vulnerabilities for educational purposes and is completely isolated from this site.

đŸ”ĩ Main Site: Secure🔴 Lab Site: Intentionally Vulnerable

Content Security Policy

CSP is a security layer that helps detect and mitigate certain types of attacks, including Cross-Site Scripting (XSS) and data injection attacks.

default-src 'self'; script-src 'self' 'nonce-{random}' https://giscus.app; style-src 'self' 'unsafe-inline'; frame-src https://giscus.app; connect-src 'self' https://api.github.com; img-src 'self' data: https:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests (enabled)

Learn More

â„šī¸

Disclaimer

Security is an ongoing process, not a destination. While this site implements current best practices, the security landscape constantly evolves. The measures shown here represent a point-in-time implementation and are regularly reviewed and updated.