Skip to content

Requirements

Zuko Gutyungwa edited this page Aug 17, 2026 · 7 revisions

Requirements

This is a condensed summary. The full Software Requirements Specification lives in the repo at docs/SRS.md and is the source of truth. If this page and that file ever disagree, trust the file and flag it for an update here.

Scope

A registered user submits a website URL and receives a passive only security assessment: findings across several checks, an aggregate score and risk rating, and a downloadable PDF report. Users can view scan history and score trends over time.

Functional requirements by area

Area Plan day Summary
Authentication & accounts Day 4 Register/login with BCrypt hashed passwords, JWT issued on login, JWT required on all other endpoints
Website management Day 6 Register, list, view, and remove websites; strict per-user ownership
Scanner engine Days 7 to 9 Pluggable ScanCheck strategy interface run by ScannerEngine; checks for HTTPS usage, security headers, SSL/TLS certificate, HSTS, cookie security, redirect analysis
Scoring Day 11 Aggregate numeric score (100 start, severity-weighted deductions, floored at 0) mapped to a RiskRating enum via fixed bands. See Architecture for the actual weights and bands.
Scan orchestration & history Days 12, 14 Trigger a scan (runs asynchronously, doesn't block the request), track its status, view results, view the full scan history and score trend per website. See Architecture.
Reporting Day 13 Generate and download a PDF report for a completed scan

Non-functional requirements

  • Safety (hard constraint): never send anything beyond what a passive assessment requires, no fuzzing, brute forcing, injection, exploitation, or denial of service, under any configuration, ever.
  • Auth security: BCrypt password hashes, signed and time limited JWTs, no secrets committed to the repo.
  • Data isolation: a user can never read or modify another user's data.
  • Extensibility: new checks plug into the Strategy pattern without touching ScannerEngine or existing checks.
  • Portability: build and run instructions work on both Windows and Linux.
  • Resilience: one check failing must not crash the scan or the other checks' results.
  • Deployability: docker-compose up from a clean checkout, no manual setup beyond documented environment variables.

Out of scope (v1)

  • Active or offensive scanning of any kind. Permanent, not a v1 limitation.
  • Domain ownership verification for registered websites (accepted risk, documented as finding S-3 in docs/THREAT_MODEL.md).
  • Admin/operator roles and multi-tenant organization accounts.
  • Real time or streaming scan progress.
  • Scanning targets on private or internal networks (documented as finding I-4 in docs/THREAT_MODEL.md, currently unmitigated rather than actively enforced, see Architecture).

Open questions

None currently open. Both questions originally raised in docs/SRS.md are resolved, see below.

Resolved

  • Scoring weights and risk rating bands (Day 11): resolved, see Architecture and docs/SRS.md FR-4.1/FR-4.2 (updated to match, v0.2.0).
  • Scan execution model (Day 12): asynchronous, not synchronous, the triggering request must not block indefinitely, see FR-5.1 in docs/SRS.md (updated to match, v0.3.0) and Architecture for why and how.

Clone this wiki locally