← work

Alpha / active development

FortiCore

A Rust security-assessment engine spanning CLI, API, dashboard, reports, and optional AI analysis.

Creator · Alpha prototype · 2025–present

scan modes
10
CLI commands
4
report formats
3
tagged releases
2
overview

FortiCore is an alpha security-assessment prototype I built to explore how one typed engine could support an entire operator workflow instead of leaving each scanner, output format, and interface as a separate tool.

Across three codebases, a shared Rust engine powers a CLI and an Axum API, background jobs persist to SQLite, a Next.js dashboard presents results, and optional AI analysis sits behind a separate provider boundary. The project is deliberately presented here as an engineering case study: several scanning and validation modules still need ground-truth testing before their output should be treated as confirmed vulnerabilities.

the problem

Security-assessment workflows often fragment the operator experience: one tool gathers ports, another checks a web surface, results arrive in incompatible formats, and reporting becomes a separate manual system.

FortiCore explores a systems question rather than claiming to replace expert judgment: what architecture can carry a target from operator input to structured evidence, persistence, review, analysis, and a shareable report while keeping the scanner core reusable?

my role

I created the project and worked across the full request path: the Rust library and CLI, HTTP API, scanner dispatch, background jobs, result persistence, reporting, the browser-facing workflow, and the separate AI-provider proxy.

The repository history spans three connected codebases and two tagged core releases. That breadth made the project a useful lesson in product boundaries as much as scanner implementation—especially where a promising prototype still needs validation, access control, and safer data handling.

architecture

The architecture keeps one shared finding model at the center. Operator surfaces call the same engine, while persistence, reporting, and external AI sit on explicit boundaries.

  1. 01

    Operator surfaces

    A Rust CLI and Next.js dashboard create scans and present their results.

  2. 02

    API & job layer

    Axum authenticates requests, validates targets, queues work, and records job state in SQLite.

  3. 03

    Shared Rust engine

    A typed dispatcher runs ten scan modes and returns one consistent finding structure.

  4. 04

    Evidence & reports

    Results flow to JSON or SQLite and can be rendered as terminal, TXT, PDF, or HTML output.

  5. 05

    Optional AI boundary

    Selected findings can leave the local process for analysis through a direct provider or hosted proxy.

engineering decisions

One engine, two operator surfaces

The CLI and API import the same Rust library instead of duplicating scanner behavior.

Trade-off: A defect in a scanner also propagates to every surface that uses it.

Typed findings

Severity, evidence, exploitability, remediation, and presentation share a consistent model.

Trade-off: Free-form detail fields still need stronger sensitivity and redaction rules.

Queued work with polling

API requests return quickly while background scans update persistent job state for the dashboard.

Trade-off: The current in-process queue has no cancellation, recovery, or hard concurrency limit.

Server-side credential boundary

A same-origin frontend layer keeps the Rust API bearer token out of browser JavaScript.

Trade-off: The dashboard still needs real end-user authentication and authorization.

security guardrails
  • The HTTP API binds to localhost by default.
  • Protected scan routes use bearer authentication and a restricted CORS allowlist.
  • The API rejects private, loopback, link-local, and other internal target ranges unless a lab override is explicitly enabled.
  • Credential testing is disabled by default and requires an explicit environment switch.
  • Crawler depth, page count, parameter count, response size, and concurrency are bounded.
  • Self-contained HTML reports escape finding content before rendering.
current evidence

Verified today

  • Ten public scan modes and four top-level CLI commands are connected to the current code path.
  • The frontend passed a local TypeScript check and the AI proxy passed a Node syntax check during the repository audit.
  • The API implements queued SQLite-backed jobs, bearer protection, target filtering, and HTML report generation.
  • The repository contains two tagged core releases and distribution surfaces for Debian, Docker, and systemd.

Not proven yet

  • No automated test suite or CI workflow exists yet.
  • The Rust build was not reproduced during the audit because the application lockfile is not committed.
  • Some TLS, generic vulnerability, and exploit-success conclusions are heuristic, simulated, or structurally unreliable.
  • Sensitive scan artifacts are not encrypted at rest and the browser workflow still lacks user-level authentication.
what it does
  • Shared assessment engine

    Ten scan modes use one typed finding model and dispatcher across CLI and API workflows.

  • Queued API jobs

    Axum endpoints create asynchronous scan jobs and persist status and structured results in SQLite.

  • Operator dashboard

    A Next.js interface supports scan creation, polling, history, filtering, analysis, and report access.

  • Multiple report paths

    Findings can be presented as terminal output, JSON, TXT, PDF, or self-contained HTML.

  • Optional AI boundary

    Analysis can use a direct provider or a separate hosted proxy without placing provider credentials in browser code.

  • Experimental validation

    Six validation families explore scan-to-validation workflows, with their current accuracy limits made explicit.

next engineering milestones
  1. 01Build deterministic local fixtures and regression tests for every scanner before treating signals as validated findings.
  2. 02Add reproducible builds and CI for formatting, linting, tests, dependency review, and container packaging.
  3. 03Harden authentication, rate limits, redirect validation, job limits, AI consent, and stored-result handling.
  4. 04Replace heuristic TLS and service conclusions with protocol-aware evidence and explicit outcome states.
  5. 05Separate observations, suspected issues, validated vulnerabilities, and successful validation throughout the data model and UI.
details
Built with
Rust 2021 · Axum · Tokio · SQLite · Next.js · TypeScript · Node.js
Integrates
Nmap (optional) · crt.sh · Gemini (optional) · OpenRouter proxy (optional)
Platforms
Linux / Debian packaging · Docker · Browser dashboard

Alpha software for authorized labs, security research, and education. Scanner output is evidence to review—not an automatic confirmation of a vulnerability.