Skip to content

About

Modern penetration testing & vulnerability management frontend workbench (Vue 3 + Vite + Pinia + ECharts)

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

Pentest Platform v2.0

An AppSec workspace for organizing assets, importing static analysis reports, prioritizing findings with CVSS 3.1, tracking remediation, and exporting audit evidence. The Vue demo runs offline with synthetic data. FastAPI and SQLite provide persistent project data when the service is running.

Start locally

Use Node.js 22 and Python 3.12. From a Python virtual environment, install the backend dependencies and start the API:

python -m pip install -r backend/requirements.txt
python -m uvicorn backend.app.main:app --port 8080

In a second terminal:

npm ci
npm run dev

The development server forwards API requests to the local FastAPI service. Its OpenAPI UI is at the API server's /docs path. To build the static demo, set VITE_DEMO_ONLY=true and run npm run build. GitHub Pages runs that build after the verification jobs succeed. Demo data is synthetic and any edits belong to the browser session.

Set APPSEC_SECURITY_ADMIN_TOKEN to a unique, random bearer token before starting the API to create projects and manage their assets. Configure separate tokens in APPSEC_PENTESTER_TOKEN, APPSEC_DEVELOPER_TOKEN, and APPSEC_AUDITOR_TOKEN as needed. An unset token disables that role. Supply tokens through the local process environment or Docker Compose's ignored environment file; never put them in a VITE_* variable. The browser accepts a role token for live API requests. APPSEC_DB_PATH selects the SQLite file.

Website security checkup

The Website Checkup screen reviews an authorized public website's redirects, HTTPS certificate, browser-security headers, and cookie attributes. It makes a bounded sequence of ordinary GET requests; it does not crawl pages, sign in, or exploit the site. In a live workspace, pentester and security-admin tokens can run a check. The same workflow is available from the repository root:

python -m pip install -r backend/requirements.txt
python -m pentest_platform.website_checkup https://www.example.com --output /tmp/site-checkup.html

Use --ca path/to/ca.pem to trust a local or private test CA. Run ./examples/website-checkup.sh for loopback-only HTTP/TLS examples covering HTTPS, redirects, missing headers and cookie attributes, and an expired certificate. See the demo walkthrough.

Share browser network captures

Open HAR Sharing to inspect a HAR file in the browser, select credential fields to redact, and download a sanitized copy. The capture stays in the browser tab; request and response bodies are omitted unless you explicitly include reviewed bodies. Automatic redaction cannot find every secret, so review the output before sharing. See the local browser walkthrough for a sample site and DevTools export/import steps.

API Notebook

Open API Notebook to load or paste an OpenAPI 3.0 JSON or YAML document, choose a supported GET or POST operation, edit its base URL and path/query values, preview and send the request, and review its response. JSON request bodies are editable, and a bearer token can be supplied for the current page session. Add notes to selected entries and export them as Markdown. Authentication headers and credential-shaped request fields are redacted from saved entries. See the supported subset and local smoke walkthrough.

With the FastAPI service and Vite app running as described above, exercise the bundled localhost API through the application:

python -m pentest_platform.api_notebook.smoke --base-url http://localhost:5173

Score findings with CVSS v3.1

Open Findings, review a finding, then import a vector or edit its eight base metrics and save an assessor rationale. The calculated score stays separate from imported level, workflow state, and client-report severity. See the synthetic finding example and run python3 scripts/smoke-cvss-editor.py --launch for the live-app save, reopen, and report smoke.

Build client reports

Open Client Report to filter and select confirmed findings, arrange their order, and edit client-facing severity, affected assets, evidence, reproduction steps, remediation, executive summary, scope, and branding. Export Markdown or self-contained HTML, or use Print / Save as PDF for a print-ready PDF. Screenshots are embedded in the report and edits stay in the browser session. See the synthetic report example and run python3 scripts/smoke_client_reports.py --launch for the browser export smoke flow.

Track remediation

Open Remediation Board to assign finding owners, set due dates, record remediation and verification notes, and retain evidence links. Board counts are included in client report exports. Run python3 scripts/smoke-remediation-board.py to start the local API and exercise the seeded engagement through assignment, failed and successful retests, evidence retention, summary, and CSV export.

Container

Export the role tokens and run docker compose up --build. Open the application on localhost port 8080. The Compose service uses a named volume for SQLite and publishes its HTTP port on loopback. Use docker compose down --remove-orphans to stop it while preserving the database.

Defensive regression catalog

The 12 cases pair a short description of a previous design mistake with a secure implementation and executable assertions for normal behavior and policy enforcement. Case selection accepts only fixed identifiers. It acquires no files or remote resources and does not execute vulnerable services. The static demo uses a checked-in snapshot whose results are verified against the live catalog by the Python suite.

Verification

python -m ruff check backend sandbox_arena pentest_platform tests examples/website_checkup_demo.py serve.py
python -m pytest backend sandbox_arena pentest_platform tests
npm ci
npm run lint
npm test
VITE_DEMO_ONLY=true npm run build

See Security and safe use. Released under the MIT License.

About

Modern penetration testing & vulnerability management frontend workbench (Vue 3 + Vite + Pinia + ECharts)

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages