30 KiB
Pingognito
A local security scanner that inspects your code, dependencies, web services, and infrastructure—and tells you where to look.
Overview
Pingognito runs on your own workstation or server. It requires no vendor account, no subscription, and no mandatory cloud connection—everything it stores stays with you. When multiple people use the service, each person gets an individual account with a password, a role, and full audit logging.
Note
In short: Pingognito does not tell you whether your system is secure. It tells you where you should look. Deciding what constitutes an actual risk always remains a human responsibility.
Pingognito scans for security issues in two main directions—plus network and infrastructure auditing:
- Inside your code: Reads source files, detects common programming flaws (unsanitized database queries, plaintext secrets, weak cryptography), and checks your dependencies against known CVEs.
- Outside against your web service: Sends read-only HTTP requests to verify security headers, cookie flags, TLS configuration, exposed config files, and more.
Unlike a standard linter, Pingognito understands security impact and classifies findings by severity. Unlike a manual penetration test, it checks broadly and rapidly rather than deeply and interactively.
Target Audience
| Role | How Pingognito Helps |
|---|---|
| Developer | "Where in my code is the flaw the scanner found?" — pinpoints file and line number with remediation guidance |
| Team Lead / Project Owner | "How is the number of open findings evolving over time?" — trend views per scan and per time bucket |
| Security Officer | "Which dependencies have known CVEs, and which are truly affected?" — exportable as CycloneDX SBOM and SARIF |
| Operations / Server Admin | "Is the service we just deployed exposed or misconfigured?" — scheduled recurring scans with webhook notifications |
For deep technical documentation (API routes, rule syntax, middleware internals, self-tests), see ENTWICKLER.md (German) or inspect /docs on a running instance.
Features
Five core scanning modules plus network/infrastructure auditing, reporting, automation, multi-user access, and audit logging:
1. Web Service Inspection (Active)
Pingognito sends real read-only HTTP requests (GET/HEAD/OPTIONS) to your targets and evaluates:
- Security Headers: Checks for
Strict-Transport-Security,Content-Security-Policy,X-Frame-Options,X-Content-Type-Options,Referrer-Policy, andPermissions-Policy. - Cookies: Checks for missing
Secure,HttpOnly, andSameSiteflags. - TLS: Inspects offered protocol versions and certificate expiration dates.
- CORS: Detects overly permissive headers such as
Access-Control-Allow-Origin: *on sensitive APIs. - Open Redirects: Checks if the service redirects to arbitrary external destinations.
- TRACE Method: Verifies whether HTTP
TRACEis still enabled. - Exposed Files: Probes for accidentally published
.git,.env,wp-config.bak,actuator/env, and similar artifacts. - Stack Traces: Detects internal file paths or configuration leaks in error responses.
- Directory Listing, Mixed Content & Server Banners: Identifies open directory indexes, insecure HTTP subresources, and version-leaking server headers.
2. Static Source Code Analysis (SAST)
88 built-in rules covering Python, Django, Flask, PHP, Laravel, WordPress, JavaScript, TypeScript, Node, React, Java, Spring, C#, .NET, Go, Ruby, Kotlin, Rust, Shell, and Terraform:
- SQL injection and command injection (queries/shell commands built from unvalidated inputs)
- Insecure deserialization, XXE, path traversal, weak cryptography
- JWTs without signature verification, insecure TLS configuration
- Missing input validation, insecure defaults, leftover debug code in production
Comments (#, //, /* */) and Python docstrings are stripped before matching so documented examples do not trigger false positives. Custom house rules can be added via the Rules (Regelwerk) tab and override built-in rules with the same ID.
3. Secret Detection
21 rules search for hardcoded credentials: AWS keys, GitHub tokens, Slack webhooks, Stripe keys, Google keys, private keys, JWTs, database URLs, npm and PyPI tokens, Telegram tokens—plus a generic rule with entropy checking for password-like values.
Important
Discovered secrets are masked in all reports and finding snippets (e.g.
AKIA…7H2F) and are never written in plaintext to exported report files.
4. Dependency Vulnerability Scanning (SCA / CVE)
Parses lockfiles and manifests to build a dependency inventory and checks it against OSV.dev (npm, PyPI, Packagist, Maven, NuGet, Go, RubyGems, crates.io, Pub) and NVD (National Vulnerability Database) for enrichment:
- Supported Manifests:
package-lock.json,package.json,yarn.lock,pnpm-lock.yaml,requirements.txt,Pipfile.lock,poetry.lock,pyproject.toml,composer.lock,pom.xml,build.gradle,gradle.lockfile,packages.lock.json,go.mod,go.sum,go.work.sum,Cargo.lock,Gemfile.lock,packages.config,pubspec.yaml,pubspec.lock,*.csproj, and more. - Also runs
npm auditandpip-audit.
5. Integrated External Scanners
Pingognito bundles leading open-source scanners and runs them first:
| Tool | Scope | Version in Docker Image |
|---|---|---|
| Bandit | Python security flaws | 1.9.4 (via pip) |
| Semgrep | Multi-language pattern matching | 1.184.0 (via pip) |
| Gitleaks | Secrets in Git history and source code | 8.30.1 |
| Nuclei | Known web misconfigurations (~13,900 templates) | 3.11.1 |
| Trivy | Dependency & container image vulnerabilities | 0.76.1 |
| npm audit / pip-audit | Ecosystem dependency audits | 9.2.0 / 2.10.1 |
Prioritization & Deduplication: External tools run first, followed by Pingognito's own rules as a fallback net. If two tools report the same finding (matched by target/file/line for code or project/package/version for dependencies), Pingognito's own finding is marked as already reported by … (covered_by) and hidden by default—never deleted.
6. Network, Device, Docker & Infrastructure Auditing
- Subnet/VLAN Discovery: Discovers reachable local subnets and VLANs; active scanning only begins after explicit approval in the dashboard.
- Device Type & Port Detection: Uses
nmap/ARP/banners to identify PCs, printers, phones/tablets, switches/routers, firewalls, NAS devices, hypervisors, and servers, inspects open/insecure ports, and correlates services/firmware against NVD, CISA KEV, andinfra_cve_rules.yaml. - Docker Host Audit: Connects via a read-only
docker-socket-proxyto audit running containers (privileged,docker.sockmounts, root user,0.0.0.0bindings, secrets, image CVEs). - Infrastructure Integrations: Read-only checks for SNMP v2c/v3, Proxmox VE, Hyper-V (WinRM), and Firewalls/Routers (OPNsense, pfSense, UniFi, MikroTik).
- Endpoint Software & Backup Check: Queries installed software via SSH/WinRM, specifically verifying backup tooling (Veeam, Borg, Restic, Duplicati, UrBackup, Proxmox Backup Server, etc.), outdated versions, and known CVEs. Stored credentials are encrypted with Fernet.
7. Evaluation, Reporting & Automation
- Trends: Finding counts by severity per scan and by time bucket (day / week / month / automatic: daily up to 14 days, weekly up to 90 days, monthly beyond).
- Delta Comparison: Shows new, resolved, and unchanged findings between any two scans using finding fingerprints.
- Six Report Formats: Interactive filterable HTML, JSON, Markdown, PDF, SARIF 2.1.0 (GitHub Code Scanning, GitLab, Azure DevOps), and CycloneDX SBOM 1.5 (with Package URLs
pkg:...and vulnerability blocks). - Schedules: Automated recurring scans down to 5-minute intervals.
- Notifications: Webhooks (
HTTP POSTwith{"betreff", "text", "daten"}) forneuer_befund,scan_fertig,scan_fehler, andzeitplan_verspaetet(plus configuration export/import). - CLI: Full command-line interface (
python -m app.cli) with CI exit codes (0,1,2).
8. Multi-User Access, Roles & Audit History
- Authentication: Password login (
scrypthashed) and per-user API tokens (SHA-256hashed) for scripts/CI. Authentication activates automatically as soon as the first user exists. - Three Roles:
admin(rank 3),nutzer/ user (rank 2),betrachter/ viewer (rank 1). - Audit History: Records logins, changes, and data access with timestamp, username, role, action, target, IP address, User-Agent, and result (
ok,denied,nicht_gefunden,fehler). Filterable and exportable as JSON or semicolon-delimited CSV.
How It Works & Tech Stack
| Layer | Technology |
|---|---|
| Backend | Python 3.12 (python:3.12-slim pinned by SHA-256 digest), FastAPI, Uvicorn, Pydantic v2, httpx, Jinja2, ReportLab, cryptography (Fernet), Paramiko, pywinrm |
| Frontend | Vanilla HTML5, CSS3, JavaScript (frontend/, zero build step, bundled fonts) |
| Database | SQLite (/data/pingognito.db) |
| External Binaries & Tools | nuclei v3.11.1 (SHA-256 verified, ~13,900 templates preloaded), gitleaks v8.30.1 (SHA-256 verified), trivy v0.76.1 (SHA-256 verified, DB preloaded), bandit, semgrep, pip-audit, npm, nmap, iproute2, snmp |
| Container & Sidecar | Docker Compose with network_mode: host (NET_RAW, NET_ADMIN) + tecnativa/docker-socket-proxy (read-only on 127.0.0.1:2375) |
| Default Port | 127.0.0.1:7464 (loopback-only by default) |
What Pingognito Does Automatically vs. Your Responsibility
| What Pingognito Handles Automatically | What You Must Do Yourself |
|---|---|
| Checks the Allowlist before every HTTP request—including redirects | Enter allowed hosts. An empty Allowlist prevents all active scans |
Enforces per-host rate limits (5 req/s, burst 10, max 4 concurrent connections) |
Adjust limits if a target requires different thresholds |
Uses strictly read-only HTTP methods (GET/HEAD/OPTIONS), no exploit payloads, no brute-force |
Nothing—hardcoded and cannot be disabled |
Excludes intrusive nuclei templates (dos, fuzzing, bruteforce, headless) |
Nothing |
| Masks discovered secrets in all reports | Decide whether an alert needs remediation |
| Hides false positives and covered findings from stats and reports | Confirm permanent false positives so they stay suppressed |
| Marks duplicate findings as already reported by … instead of deleting them | Decide which hits matter |
| Caches CVE lookups (6 hours) for fast repeat scans | Clear the cache when fresh upstream data is needed |
Adjusts nuclei timeout automatically to match template selection in the UI |
Ensure manual env overrides (PINGOGNITO_NUCLEI_TIMEOUT) fit |
| Computes deltas between scans | Choose the baseline scan |
| Runs scheduled scans automatically | Create schedules |
| Generates reports in six formats | Choose the format and distribute the output |
| Sends webhooks | Emails are not sent—Pingognito only composes the message text in logs |
Validates Host header, Origin header, and optional token on every request |
For server use: set access token, allowed hosts, and TLS reverse proxy |
Stores passwords (scrypt), tokens, and session IDs (SHA-256) strictly as hashes |
Choose an initial admin password (min. 8 characters) |
| Logs logins, actions, and data access in the History tab | Review and export/back up the audit history |
| Blocks deleting/disabling the last admin | Create a second admin if multiple people manage the instance |
| Streams scan progress and logs live | Nothing |
Auto-restarts on crash (restart: unless-stopped) |
Never run docker compose down -v without a backup |
Four-Stage Access Protection Middleware (backend/app/access.py)
HostHeader Check: Only accepts loopback names (127.0.0.1,localhost,::1) plusPINGOGNITO_ACCESS_ALLOWED_HOSTS(protects against DNS rebinding).OriginHeader Check: On state-changing methods (POST,PUT,PATCH,DELETE), verifies browserOriginagainst the allowed hosts list (non-browser CLI/scripts withoutOriginare permitted).- Authentication: Once at least one user exists (or
PINGOGNITO_ACCESS_TOKENis set), every API call requires a session cookie (pingognito_session), user API token (X-Pingognito-Token/Authorization: Bearer ...), or master token. - Role Enforcement: Checked centrally via
auth.pfad_rolle(method, path). Exemptions:/health,/api/health,/api/auth/status,/api/auth/me, and/api/auth/login.
Prerequisites & Installation
Quick Start with Docker Compose (Recommended)
Prerequisites: Docker Engine & Docker Compose v2.
-
Clone the repository:
git clone https://git.orfel.de/Jannik/Pingognito.git cd Pingognito -
Create your environment file from the template:
cp .env.example .envEdit
.envto set an initial admin account (PINGOGNITO_ADMIN_USERNAME,PINGOGNITO_ADMIN_PASSWORD) and, for server deployments,PINGOGNITO_ACCESS_TOKENandPINGOGNITO_ACCESS_ALLOWED_HOSTS. -
Build and start the stack:
docker compose up -d --build -
Open the dashboard at http://127.0.0.1:7464.
-
Verify the installation with the built-in self-test (73 tests, exit code
0= all passing):docker exec pingognito python /app/backend/selftest.py
Note
The Docker image is ~5.79 GB (including 1.7 GB Trivy DB, 85 MB Nuclei templates, and ~330 MB scanner binaries) and uses ~400 MB RAM at idle. All scanner downloads verify SHA-256 checksums and pre-cache templates/databases for offline scanning.
Local Installation Without Docker
python -m venv .venv
.venv\Scripts\activate # Windows (or: source .venv/bin/activate on Linux/macOS)
pip install -r backend/requirements.txt
# Optional Semgrep scanner:
pip install -r backend/requirements-optional.txt
set PINGOGNITO_DATA_DIR=./data # Windows (or: export PINGOGNITO_DATA_DIR=./data)
python -m uvicorn app.main:app --app-dir backend --host 127.0.0.1 --port 7464
Without Docker, nuclei, gitleaks, and trivy are absent unless installed separately on PATH; Pingognito automatically marks them as unavailable in Provider Status and skips them cleanly.
Mounting Source Code Projects
Mount your source code read-only under /projects in .env (PINGOGNITO_PROJECTS_DIR) or docker-compose.yml:
volumes:
- pingognito-data:/data
- /path/to/your/code:/projects:ro
Then specify /projects/<project-folder> when launching a scan.
Configuration
All settings use environment variables with prefix PINGOGNITO_ (template in .env.example):
| Variable | Default | Description |
|---|---|---|
PINGOGNITO_DATA_DIR |
./data (/data in Docker) |
Directory for SQLite DB, scope, settings, cache, reports |
PINGOGNITO_HOST / PINGOGNITO_PORT |
127.0.0.1 / 7464 |
Bind address and port |
PINGOGNITO_PROJECTS_DIR |
./projects |
Host path mounted read-only as /projects in Compose |
PINGOGNITO_DOCKER_HOST |
http://127.0.0.1:2375 |
Read-only Docker socket proxy endpoint |
PINGOGNITO_CRED_KEY |
— | Optional fixed Fernet key for encrypted infrastructure credentials |
PINGOGNITO_ALLOW_PRIVATE_NETWORKS |
1 |
Allow scanning localhost and private RFC1918 networks |
PINGOGNITO_ENABLE_ACTIVE_SCANS |
1 |
Enable active HTTP requests |
PINGOGNITO_ENABLE_EXTERNAL |
1 |
Enable Bandit, Semgrep, Gitleaks, Nuclei, and Trivy |
PINGOGNITO_RATE_PER_SECOND |
5 |
Per-host HTTP requests/second |
PINGOGNITO_RATE_BURST |
10 |
Per-host token-bucket burst size |
PINGOGNITO_PER_HOST_CONCURRENCY |
4 |
Max concurrent connections per host |
PINGOGNITO_NUCLEI_RATE_LIMIT |
100 |
Nuclei requests/second |
PINGOGNITO_NUCLEI_TIMEOUT |
600 |
Nuclei timeout in seconds (dashboard auto-adjusts 300–1800s) |
PINGOGNITO_NUCLEI_SEVERITIES |
high,critical |
Severities executed by Nuclei (critical ~2,000 templates / 83s; critical,high ~5,100 / 243s; critical,high,medium ~8,000 / 338s; all ~13,900 / 656s) |
PINGOGNITO_NUCLEI_EXCLUDED_TAGS |
dos,fuzzing,bruteforce,headless |
Excluded Nuclei template tags |
PINGOGNITO_NUCLEI_ONLY_TAGS |
— | If set, executes only these Nuclei tags |
PINGOGNITO_NUCLEI_TEMPLATES_DIR |
— | Custom Nuclei templates directory |
PINGOGNITO_NVD_ENABLED |
1 |
Enrich CVE matches via NVD |
PINGOGNITO_NVD_API_KEY |
— | Optional NVD API key (significantly raises NVD rate limits) |
PINGOGNITO_OSV_CACHE_TTL |
21600 |
CVE cache TTL in seconds (6 hours; 0 disables caching) |
PINGOGNITO_MAX_FILES |
20000 |
Max files per project path |
PINGOGNITO_ACCESS_ALLOWED_HOSTS |
127.0.0.1,localhost,::1 |
Allowed Host / Origin headers (* disables check) |
PINGOGNITO_ACCESS_TOKEN |
— | Emergency Master Token (grants admin access, logged as master-token) |
PINGOGNITO_ADMIN_USERNAME |
— | Initial admin username created on startup if non-empty |
PINGOGNITO_ADMIN_PASSWORD |
— | Initial admin password (min. 8 characters); clear after first login |
PINGOGNITO_AUDIT_MODE |
aktionen |
History logging mode: aktionen (default) or voll (~115k entries/day/user due to 1.5s polling) |
Project-Level Exceptions (.pingognito.yaml / .pingognito.yml)
Place .pingognito.yaml inside the scanned project directory to exclude test fixtures or known intentional patterns with documented reasons:
skip_paths:
- "**/tests/fixtures/**"
- "**/vendor/**"
ignore_rules:
- rule: PY-SQL-001
reason: "Example query in docstring, not executed"
- rule: B110
paths: ["backend/app/jobs.py"]
reason: "Intentional optional try/except/pass"
Suppressed findings are logged in the scan log with rule ID, path, and count.
Data Storage (pingognito-data Volume)
Docker Volume "pingognito-data" (/data/)
├── pingognito.db # SQLite: scans, findings, logs, schedules, false positives,
│ # dependencies, custom rules, users, sessions, tokens, audit_log
├── scope.json # Allowlist and Deny-list
├── settings.json # Runtime dashboard overrides (limits, nuclei selection, etc.)
├── notifications.json # Webhook & mail configs (passwords/headers stored in plaintext!)
├── osv-cache.json # Cached OSV/NVD responses (~170 KB)
├── reports/ # Exported report files (not auto-purged)
└── backups/ # Empty by default (no built-in auto-backup yet)
Warning
There is no built-in automated backup. Back up SQLite safely from outside the container:
docker exec pingognito python -c "import sqlite3; src=sqlite3.connect('/data/pingognito.db'); dst=sqlite3.connect('/data/backups/pingognito-$(date +%F).db'); src.backup(dst); dst.close(); src.close()"
Usage
Typical Workflow
- First Start: The Allowlist is empty by default—no active scan can run until hosts are explicitly permitted. If
PINGOGNITO_ADMIN_USERNAME/PASSWORDwere set in.env, log in at the top bar, change the password, and clear those two env vars. - Configure Allowlist (Settings): Add allowed hosts (
example.test,*.example.test,10.0.0.0/8), optional Deny-list entries (which always take precedence), and enable Allow private networks and localhost if scanning internal targets. Use Check Scope (Scope prüfen) to test without sending requests. - Start Scan (Start Scan): Select mode (
full,web,sast,sca,secrets,headers), web target URLs,/projects/...paths, and minimum severity. Progress and logs stream live; scans can be cancelled mid-run. - Triage Findings (Findings): Filter by severity, category, origin (
externvs.eigen), or search text; inspect file, line, and masked code snippet. Mark single-scan false positives or promote them to Permanent (Fehlalarme) via fingerprint; toggle Hide covered (Gedeckte ausblenden) to hide own-rule duplicates already caught by external tools. - Compare Deltas (Findings → Compare): Compare against a baseline scan to view new, resolved, and unchanged findings.
- Monitor Trends (Trend): Track open findings by severity per scan and per time bucket (day/week/month/auto).
- Export Reports: Download HTML, JSON, Markdown, PDF, SARIF 2.1.0, or CycloneDX SBOM 1.5.
- Automate (Schedules & Notifications): Set recurring scans (≥ 5 min) and webhooks.
Dashboard Tabs (12 Tabs)
| Tab | Purpose |
|---|---|
| Overview (Übersicht) | Metrics, recent scans, installed scanner status |
| Start Scan (Scan starten) | Launch and monitor scans live |
| Findings (Befunde) | Filter findings, inspect details, mark false positives, download reports, compare deltas |
| Scans | Scan history, logs, and individual scan deletion |
| Trend | Severity trends per scan and per time bucket |
| Schedules (Zeitpläne) | Recurring automated scans |
| Rules (Regelwerk) | Create, validate, and toggle custom SAST house rules |
| False Positives (Fehlalarme) | Manage permanent fingerprint suppressions and hit counts |
| Notifications (Benachrichtigungen) | Configure webhooks/mail templates and export/import config |
| History (Historie) | Filterable audit log (auth, admin, settings, rules, notifications, scan, findings, zugriff, status), JSON/CSV export, mode switch |
| Users (Benutzer) | Admin-only user management, roles, disable/enable, password reset, API tokens |
| Settings (Einstellungen) | Allowlist, rate limits, Nuclei presets (Schnell, Standard, Vollständig, Nur kritisch), schedule defaults, access token |
User Roles & Audit History
| Role | Permissions |
|---|---|
Admin (admin) |
Full access: scans, findings, rules, schedules, Allowlist, settings, notifications, users, API tokens, clearing/switching audit history mode |
User (nutzer) |
Start/cancel scans, view findings, mark false positives, manage custom rules and schedules (cannot modify Allowlist) |
Viewer (betrachter) |
Read-only access to overview, findings, trends, scans, and history |
- Privacy Notice: Audit history stores IP addresses and User-Agent strings of all logged-in users. If you do not want this recorded, leave no users created (single-user local mode).
- Emergency Recovery: If locked out, create an admin via CLI or authenticate with
PINGOGNITO_ACCESS_TOKEN. The last admin cannot be deleted or disabled via UI (only via CLI--force).
CLI Usage (CI Pipelines & User Management)
# Run a scan in CI (exit codes: 0 = clean, 1 = findings >= fail-on, 2 = error)
docker exec pingognito python -m app.cli scan \
--project /projects/my-project \
--mode sast \
--fail-on high \
--format sarif --output results.sarif
# Manage users and API tokens directly
docker exec pingognito python -m app.cli user list
docker exec pingognito python -m app.cli user add --username alice --password secret123 --role admin
docker exec pingognito python -m app.cli user passwd --username alice --password newpass123
docker exec pingognito python -m app.cli user token --username alice --name ci
Server Deployment Options
- Variant A — Internal Network Only:
- A1 (SSH Tunnel, safest):
ssh -L 7464:127.0.0.1:7464 user@server→ openhttp://127.0.0.1:7464. - A2/A3 (LAN IP or Hostname): Bind port in
docker-compose.ymlor setPINGOGNITO_HOST, then configurePINGOGNITO_ACCESS_ALLOWED_HOSTSandPINGOGNITO_ACCESS_TOKENin.envbefore first start (otherwise all requests fail with HTTP403).
- A1 (SSH Tunnel, safest):
- Variant B — Internet-Exposed Behind TLS Reverse Proxy:
- Keep port
7464bound to127.0.0.1. - Terminate HTTPS in Nginx/Caddy, pass
Host $host(critical: passing127.0.0.1triggers403),X-Forwarded-Proto $scheme, andproxy_read_timeout 1800s(for long Nuclei runs). - Set
PINGOGNITO_ACCESS_ALLOWED_HOSTS,PINGOGNITO_ACCESS_TOKEN, and initialPINGOGNITO_ADMIN_USERNAME/PASSWORDin.env. - Mount
/srv/source:/projects:roand set up external database/volume backups and Docker log rotation.
- Keep port
Known Limitations
- Pattern-based SAST: Cannot detect business-logic flaws; does not replace human code review or manual penetration testing.
- CVE & Template Currency: OSV/NVD data has upstream lag; Trivy DB and Nuclei templates are build-time snapshots (rebuild image regularly). Offline environments require pre-cached CVE data.
- No Multi-Tenancy / Per-Project Roles: All users in one instance share the same Allowlist, findings, rules, and notifications. Use one container + volume per team for strict isolation.
- No Built-in HTTPS, LDAP/AD/SSO, Email Sending, or Auto-Backup/Retention: Put SSO/TLS in a reverse proxy, wire emails via webhooks, and back up
/dataexternally. Only one container instance may mount a given SQLite volume at a time.
Project Structure
Pingognito/
├── assets/
│ └── logo.png # Application logo
├── backend/
│ ├── requirements.txt # Core Python dependencies (FastAPI, httpx, Bandit, pip-audit, etc.)
│ ├── requirements-optional.txt # Optional Semgrep scanner
│ ├── selftest.py # Built-in self-test suite (73 tests)
│ └── app/
│ ├── main.py # FastAPI app, routes, lifespan bootstrap
│ ├── cli.py # CLI for CI scans and user management
│ ├── config.py # PINGOGNITO_* settings + runtime overrides
│ ├── models.py # Pydantic models (scans, findings, schedules)
│ ├── db.py # SQLite persistence & migrations
│ ├── scope.py # Allowlist, per-host rate limiter, safe HTTP/TLS client
│ ├── access.py # 4-stage Host/Origin/Auth/Role middleware
│ ├── auth.py # scrypt passwords, sessions, API tokens, roles
│ ├── audit.py # Audit history logging, filtering, JSON/CSV export
│ ├── api_auth.py # Auth, users, tokens & audit REST router
│ ├── api_infra.py # Network, Docker & infrastructure REST router
│ ├── credentials_store.py # Fernet-encrypted infrastructure credentials
│ ├── cve_matcher.py # NVD & CISA KEV matching for infrastructure
│ ├── net_discovery.py # Local subnet/VLAN discovery
│ ├── rules_admin.py # Custom SAST rules validation & CRUD
│ ├── nuclei_profiles.py # Nuclei template counting & runtime presets
│ ├── notifications.py # Webhooks, mail templates, config export/import
│ ├── jobs.py # Scan orchestrator
│ ├── diff.py # Fingerprint-based scan delta comparison
│ ├── scheduler.py # Background recurring scan scheduler
│ ├── project_config.py # .pingognito.yaml/.yml exception parser
│ ├── cache.py # OSV/NVD JSON cache
│ ├── log_bundle.py # Diagnostic log bundling
│ ├── scanner/
│ │ ├── base.py # Shared scanner base utilities
│ │ ├── sast.py # Built-in 88-rule static analyzer
│ │ ├── secrets.py # 21-rule secret scanner with masking
│ │ ├── sca.py # Manifest/lockfile parser, OSV/NVD, npm/pip-audit
│ │ ├── web.py # Active read-only HTTP & TLS scanner
│ │ ├── external.py # Bandit, Semgrep, Gitleaks, Nuclei, Trivy runner
│ │ ├── network.py # Nmap/ARP device & port scanner
│ │ ├── docker_scanner.py # Read-only Docker socket proxy auditor
│ │ ├── infra_scanner.py # SNMP, Proxmox VE, Hyper-V, firewall auditor
│ │ └── endpoint_scanner.py # SSH/WinRM installed software & backup checker
│ ├── reports/ # html_report, json_report, markdown_report, pdf_report, sarif_report, sbom_report
│ └── rules/ # sast_rules.yaml, secret_rules.yaml, infra_cve_rules.yaml
├── frontend/ # Zero-build HTML/CSS/JS dashboard & bundled fonts
├── projects/ # Mount target for source code & E2E test fixtures
├── .env.example # Environment variable template
├── .pingognito.yaml # Project-level scan exceptions for Pingognito itself
├── Dockerfile # Pinned Python 3.12-slim + verified scanner binaries
├── docker-compose.yml # Pingognito + read-only docker-socket-proxy
└── ENTWICKLER.md # Detailed German technical reference
License
This project's own code is dedicated to the public domain under CC0 1.0 Universal — see LICENSE.
Third-Party Components: External dependencies, bundled libraries, fonts, datasets, and media assets retain their own respective licenses and are excluded from CC0 1.0. See
THIRD_PARTY_NOTICES.mdfor details.