Overview
Cyber Security (Toshi Pentest Scanner v2.1) is a scheduled, automated penetration-testing pipeline with a login-protected web report viewer, deployed live at pentest.sentinal-ai.in. It runs a multi-stage black-box audit against a configured set of web targets, diffs each run against the previous baseline, and renders a polished HTML and PDF report for every scan.
The service is a single FastAPI application packaged as a hardened Docker container. The stack includes:
- FastAPI + Uvicorn (Python 3.12) for the API and web viewer
- httpx as the async HTTP engine for every probe; Jinja2 for report templating; WeasyPrint for paginated A4 PDF output
- Docker Compose for deployment, with the container bound to the internal Docker bridge so an external scheduler (n8n) can call scan endpoints from the host while the public dashboard sits behind a reverse proxy
- Cookie-based auth using an env-driven HMAC token
Scans persist to a mounted /data/reports/ volume, so report history survives container restarts. A scheduled run fires on a recurring cadence (every 12 hours on the dashboard), and an operator can also trigger an immediate scan from the dashboard or via the API.
