Skip to main content

pysentra

PyPI Python License Build

Local-first security scanner for web applications (DAST) and universal local codebases (SAST + Secrets + Dependencies), featuring a zero-login live vulnerability dashboard.

Authorization required — Use pysentra only against systems and codebases you own or have explicit permission to assess. It rate-limits requests, avoids destructive checks, and requires an authorization confirmation before scanning.

Privacy

pysentra makes no external network calls other than to the target you specify and OSV.dev for dependency vulnerability checks. No telemetry, no analytics, no data leaves your machine. All scan reports, logs, and artifacts are stored locally in the pysentra-reports/ directory.

Install

pip install pysentra

For local development, use pip install -e ".[dev]".

Quickstart

1. Scan local code (Universal static & dependency scan)

Scan any repository or folder locally on any device without running the application:

cd ~/any/project
pysentra scan .

Or point to any local directory or file:

pysentra scan /path/to/repo

pysentra automatically inspects files for hardcoded secrets, insecure framework configs, vulnerable dependencies (via OSV.dev), exposed sensitive files, and potential code injection patterns.

2. Scan a running web app (DAST)

Run the intentionally vulnerable demo target in one terminal:

cd demo-vulnerable-app
pip install -r requirements.txt
python app.py

Then scan it from the project root:

pysentra scan http://localhost:5000 --i-am-authorized --target-is-test-app

Both modes generate report.json and a printable report.html under pysentra-reports/<timestamp>/ and start the live dashboard at http://127.0.0.1:8765 (no login or auth required).

Dashboard

Dashboard screenshot placeholder

The dashboard provides severity cards, a findings chart, interactive filters, expandable evidence/PoCs, and JSON/HTML export links. It binds strictly to 127.0.0.1 and requires zero credentials.

CLI Reference

Flag Purpose
pysentra scan [target] Scan a target URL (http://...) or local directory/file path (default: .).
--i-am-authorized Confirm authorization non-interactively.
--target-is-test-app Enable extra safe checks only intended for the bundled test app.
--modules auth,authz,... Comma-separated list of web check modules to run.
--auth-token <token> First test token for read-only authorization checks.
--second-auth-token <token> Second test token; enables cross-user IDOR checks.
--rate-limit <n> Maximum requests per second (positive number); default 5.
--bind <host> Host address to bind the dashboard server; default 127.0.0.1.
--port <port> Dashboard server port (integer 1-65535); default 8765.
--headless-browser Request optional Playwright-based browser checks.
--no-open Do not automatically open the dashboard in a browser.

Architecture

  1. Local Code Scanner (code_checks): Language-agnostic inspection covering Secrets, Dependencies (OSV.dev), Insecure Configs, Sensitive File Exposure, and Static Code Injection.
  2. Web Application Scanner (scanner/): Rate-limited, audited assessment covering Auth, AuthZ, Input Validation, API Security, Client-Side Controls, TLS/HSTS, Storage & Privacy, and CORS.
  3. Dashboard & Reporting (dashboard/, report/): Zero-login local web UI and JSON/HTML report generation.

Contributing

See CONTRIBUTING.md. Do not add checks that could be destructive, credential-brute-force targets, or bypass safeguards.

Metadata

Release files for pysentra 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysentra 1.1.0
File Size Uploaded Provenance
pysentra-1.1.0.tar.gz 40.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pysentra 1.1.0
File Interpreter ABI Platform
pysentra-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 77.2 kB

Release files / pysentra-1.1.0.tar.gz

Download URL pysentra-1.1.0.tar.gz
Size 40.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2cc8d60e43c23457334f29a7922bc3529aa635ea275fc5d72963a5d89f2f226c
BLAKE2b-256 checksum
How to use checksums
6ae19b04902a8b9a9ca510ba6fc5a8eecca2a48f2da79e576622d714b7371ee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release files / pysentra-1.1.0-py3-none-any.whl

Download URL pysentra-1.1.0-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f0a038614d32875a0ee65650953622bb2ccdb18def5822e0675da824cba149a
BLAKE2b-256 checksum
How to use checksums
4e8be028b50b6c540a387b07a805eaac8901b18b9632641576f6ac7630169cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Security for pysentra 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysentra-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page