CyberShield

A web security scanner for small businesses. Scan any website for around 60 security issues across SSL, headers, DNS, open ports and source code, with the results in plain language.

The CyberShield landing page: a domain scan form with checks for SSL and TLS, HTTP headers, email security, DNS, open ports and VirusTotal.
digitalcybershield.com, captured 24 November 2026.
Period
Jan to Jun 2026, four sprints
Role
Designed, built and deployed it, from scan engine to subscription model
Stack
Python 3.12, FastAPI, Supabase (PostgreSQL), Railway, Vercel, Resend, VirusTotal API
Open
Scan engine paused (Nov 2026); 2 roadmap items pending, 2 planned

Overview

Security checks (Max)
~60
API endpoints
18
Subscription tiers
3
Development sprints
4

Small businesses face real website security risks (expired SSL certificates, misconfigured email authentication, exposed admin panels) but rarely have in-house security expertise or the budget for dedicated tooling. CyberShield runs a security scan in under 90 seconds, straight from a browser, and explains the results in plain language.

Midway through, I pivoted from an agent-based monitoring model to a pure domain-scanning SaaS, for lower onboarding friction and a better fit for small businesses. The site also carries 12 bilingual blog posts.

Architecture

A static front end on Vercel talks to an async FastAPI service on Railway. Supabase provides PostgreSQL, authentication and a realtime channel that pushes new findings to the dashboard.

CyberShield architecture The visitor’s browser loads the front end from Vercel, which calls the FastAPI back end on Railway with a JWT. The back end scans the customer’s domain, queries the VirusTotal API for reputation, sends reports through the Resend API, and stores results in Supabase: PostgreSQL with row-level security, Auth with email and Google OAuth, and Realtime, which pushes scan_events back to the front end over WebSocket. Visitor’s browser scan form, dashboard Customer’s domain SSL, headers, DNS, ports VirusTotal API domain reputation Front end on Vercel HTML and JS, 20 routes JWT FastAPI on Railway 18 endpoints, async engine scans Resend API reports and alerts Supabase PostgreSQL 5 tables, RLS Auth email, Google Realtime scan_events live findings
LayerTechnologyWhat it does
Front endHTML5 and JS on Vercel20 routes: landing, dashboard, register, blog. Deployed to Vercel’s edge network with the custom domain digitalcybershield.com.
Back endFastAPI on Railway18 endpoints across 3 modules (scan engine, customer API, dashboard API). Python 3.12, async throughout.
DatabaseSupabase PostgreSQL5 tables: customers, scan_history, scan_findings, scan_events, customer_domains, with row-level security policies.
AuthSupabase AuthEmail and password plus Google OAuth sign-in. JWT-based sessions on all dashboard API routes.
RealtimeSupabase WebSocketThe scan_events table is published over WebSocket, so the dashboard updates on new findings without a refresh. 5-minute polling fallback.
EmailResend APIBranded HTML scan reports and security alerts, sent from general@jihun.me.
ReputationVirusTotal API90-vendor consensus domain reputation scoring; malware and phishing detection at scan time.

Scan engine

The domain scanner runs every check category concurrently with Python asyncio and returns a full scan in 5 to 15 seconds. Findings are scored and letter-graded automatically.

Seven check categories in the domain scanner
CategoryKey checksMax severity
SSL / TLSCertificate expiry (7 and 30 days), TLS version, weak ciphers, CT log query, HSTS preloadCritical
HTTP headersHSTS, CSP (including unsafe-eval analysis), X-Frame-Options, SRI audit, TRACE detection, sensitive path exposure (/admin, /.env, /.git)High
Email authenticationSPF (+all, ~all, -all), DKIM (11 selectors), DMARC policy strength, MTA-STS, rua/ruf presence, SPF lookup countHigh
DNSDNSSEC, CAA records, AXFR zone transfer test, subdomain takeover (8 fingerprints), NS redundancyCritical
Open ports15 high-risk ports on Free and Plus; 50 ports on Max, including Docker API (2376), Kubernetes (6443), etcd (2379), Jupyter (8888) and Consul (8500)Critical
Malware and reputationVirusTotal 90-vendor consensus, domain reputation scoreCritical
Sensitive information leaks/.env variants, /.git/config, backup files, phpinfo.php, wp-config.php.bak (Max tier)Critical

Scoring

Each finding deducts points from 100 by severity; the remaining score maps to a letter grade.

SeverityDeductionGradeScore range
Critical−22 ptsA+93 to 100
High−12 ptsA85 to 92
Medium−6 ptsB75 to 84
Low−2 ptsC60 to 74
D45 to 59
F0 to 44

Static code analyser: 14 vulnerability patterns

Users upload source files (Python, JS, PHP and others) for pattern-based static analysis. Detected categories include:

  • Hardcoded API keys and secrets, plus third-party secret patterns (Stripe, Twilio, SendGrid)
  • SQL injection through unsanitised string concatenation
  • Insecure os.getenv() fallbacks
  • JWT validation disabled (verify=False)
  • CORS wildcard (*) and debug mode left on in production
  • Insecure deserialisation (pickle.loads)
  • Open redirects through unvalidated URLs, and path traversal (../ sequences)

Security controls in the platform

A security product has to hold itself to the checks it sells. These are the controls the architecture above puts in place.

  • Tenant isolation: row-level security policies on the Supabase tables, so each customer reads only their own scans and findings.
  • Authentication: email and password or Google OAuth through Supabase Auth, with JWT-based sessions required on every dashboard API route.
  • Plan limits enforced server-side: scan quotas, file-size limits and the extended checks are gated per tier in the API, not in the browser.

Subscription tiers

FeatureFreePlus, $19/moMax, $49/mo
Domain scans per month550Unlimited
Security checks~15~35~60
Registered domains1520
Code file scans3, up to 500 KB30, up to 2 MBUnlimited, up to 10 MB
Event retention7 days90 days1 year
Scheduled scansNoneWeeklyDaily
Notification channelsEmailEmail, Slack, DiscordAll channels
Extended port scan (50 ports)NoNoYes
Sensitive information leak detectionNoNoYes

Customer dashboard

WidgetWhat it shows
Security scoreA 0 to 100 score with a letter grade (A+ to F) and the week-over-week change
Action itemsThe top 3 unresolved vulnerabilities by severity, with links to remediation guidance
30-day score chartA Chart.js trend line, coloured green at 80 and above, amber at 55 and above, red below 55
Vulnerability listEvery finding, with a severity filter and a resolve button per finding
Security event feedEvents within the retention window, each one marked as reviewed when checked
Blocked threatsMonthly malicious IP connections, broken down by country
Scan quotaMonthly scan usage against the plan limit, in the navigation bar

Realtime updates

A Supabase Realtime WebSocket subscription pushes new scan_events to the dashboard as they land, with a silent 5-minute polling fallback when the WebSocket is unavailable. A _pollingStarted guard stops duplicate setInterval registration across the several Supabase auth events (SIGNED_IN, TOKEN_REFRESHED, INITIAL_SESSION).

Bugs resolved

Production bugs found and fixed during development, rated on my own S2 to S4 scale (S4 most severe).

Login button completely unresponsive

S4
Root cause
SyntaxError: const quota declared twice inside renderDashboard(). A syntax error stops the whole script from parsing, so no event listeners attach.
Fix
Removed the duplicate declaration. Lesson: check the browser console before assuming the bug is in the logic.

Railway deployment crashing on every push

S4
Root cause
UnboundLocalError: datetime used before assignment. A from datetime import datetime inside a function body made datetime local to the whole function under Python’s scoping rules.
Fix
Replaced agent_api.py with a lightweight deprecated stub and moved all imports to module level.

Register page jumping to step 2 while the user typed

S4
Root cause
getSession() completed while the user was still typing, and its catch(() => goStep(2)) handler advanced the step on an API failure.
Fix
Removed the auto-advance entirely; on a detected session the page now only pre-fills the email and updates the button text.

Dashboard polling every 2 seconds, causing flicker

S3
Root cause
Supabase fired three auth events per page load, and each one called startPolling(), creating independent setInterval loops.
Fix
A _pollingStarted boolean guard: polling starts exactly once per page load, however many auth events arrive.

Windows service startup timeout (agent model)

S2
Root cause
The Go process never sent the Running signal to the Windows Service Control Manager, so SCM timed out and killed the service.
Fix
Added service_windows.go with a golang.org/x/sys SCM handler.

PowerShell install script failing to parse JSON (agent model)

S2
Root cause
PowerShell’s default encoding wrote a UTF-8 byte-order mark, which Go’s json.Decoder rejects as invalid JSON.
Fix
Switched to UTF8Encoding(false) for BOM-less UTF-8 output.

Status and roadmap

As of 24 November 2026 the site is up, with the scan engine (Railway) and database (Supabase) paused for maintenance, so scans return an error until they are resumed.

ItemStatusDescription
Stripe integrationPendingConnect Stripe Checkout to update customers.tier on subscription, enabling the Plus and Max feature gates
Railway cronPendingSchedule POST /internal/run-scheduled-scans daily, enabling automated weekly and daily scans for paid tiers
CVE correlationPlannedMatch detected server versions (Apache, Nginx, OpenSSL) against NVD CVE records
PDF reportsPlannedDownloadable PDF scan reports for B2B client reporting

Next case study

Penetration test report