1020 lines
42 KiB
HTML
1020 lines
42 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<title>Pingognito - Sicherheitsdashboard</title>
|
||
<link rel="icon" type="image/png" href="/static/favicon.png">
|
||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||
<link rel="apple-touch-icon" href="/static/favicon.png">
|
||
<link rel="stylesheet" href="/static/fonts.css">
|
||
<link rel="stylesheet" href="/static/style.css">
|
||
</head>
|
||
<body>
|
||
|
||
<header class="topbar">
|
||
<div class="brand">
|
||
<img class="logo" src="/static/favicon.png" alt="Pingognito">
|
||
<div>
|
||
<h1>Pingognito</h1>
|
||
<p>Lokales Dashboard für Sicherheitsprüfungen</p>
|
||
</div>
|
||
</div>
|
||
<nav class="tabs">
|
||
<button class="tab on" data-view="overview">Übersicht</button>
|
||
<button class="tab" data-view="newscan">Scan starten</button>
|
||
<button class="tab" data-view="infra">Netzwerk & Assets</button>
|
||
<button class="tab" data-view="findings">Befunde</button>
|
||
<button class="tab" data-view="trend">Trend</button>
|
||
<button class="tab" data-view="scans">Scans</button>
|
||
<button class="tab" data-view="schedules">Zeitpläne</button>
|
||
<button class="tab" data-view="rules">Regelwerk</button>
|
||
<button class="tab" data-view="falsepositives">Fehlalarme & Gesehen</button>
|
||
<button class="tab" data-view="notifications">Benachrichtigungen</button>
|
||
<button class="tab" data-view="historie">Historie</button>
|
||
<button class="tab" data-view="users" data-need="admin">Benutzer</button>
|
||
<button class="tab" data-view="settings">Einstellungen</button>
|
||
</nav>
|
||
<div class="status" id="connStatus">verbinde...</div>
|
||
<div class="userbox hidden" id="userBox">
|
||
<span id="userLabel"></span>
|
||
<button class="ghost mini" id="logoutBtn">abmelden</button>
|
||
</div>
|
||
</header>
|
||
|
||
<main>
|
||
<!-- ================= Übersicht ================= -->
|
||
<section class="view on" id="view-overview">
|
||
<div class="cards" id="kpiCards"></div>
|
||
|
||
<div class="grid2">
|
||
<div class="panel">
|
||
<h2>Schweregrade</h2>
|
||
<div id="sevBars"></div>
|
||
</div>
|
||
<div class="panel">
|
||
<h2>Scanner-Status</h2>
|
||
<div id="providerList"></div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>Letzte Scans</h2>
|
||
<div class="tablewrap">
|
||
<table id="recentScans">
|
||
<thead><tr><th>Name</th><th>Modus</th><th>Status</th><th>Befunde</th><th>Start</th><th></th></tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Scan starten ================= -->
|
||
<section class="view" id="view-newscan">
|
||
<div class="grid2">
|
||
<div class="panel">
|
||
<h2>Neuen Scan starten</h2>
|
||
<form id="scanForm" data-need="nutzer">
|
||
<label>Name (optional)
|
||
<input type="text" id="f_name" placeholder="z. B. Wochencheck der Web-App">
|
||
</label>
|
||
|
||
<label>Modus
|
||
<select id="f_mode">
|
||
<option value="full">Vollständig (HTTP + Code + Secrets + CVEs + Externe Scanner)</option>
|
||
<option value="all_infra">Komplette Infrastruktur (Netzwerk + Docker + Hypervisor/SNMP/FW + Endpunkte)</option>
|
||
<option value="network">Netzwerk & Geräte (Subnetze, Ports, Gerätetyp, CVEs)</option>
|
||
<option value="docker">Docker-Host & Container-Audit</option>
|
||
<option value="infra">Infrastruktur (SNMP, Proxmox, Hyper-V, Firewalls)</option>
|
||
<option value="endpoint">Endpunkt-Software & Backup-Check (SSH / WinRM)</option>
|
||
<option value="web">Nur HTTP-Dienste</option>
|
||
<option value="headers">Nur Security-Header / TLS</option>
|
||
<option value="sast">Nur statische Codeanalyse</option>
|
||
<option value="secrets">Nur Secrets und Konfiguration</option>
|
||
<option value="sca">Nur Abhängigkeiten / CVEs</option>
|
||
</select>
|
||
</label>
|
||
|
||
<label>Ziele (eine URL je Zeile)
|
||
<textarea id="f_targets" rows="4" placeholder="https://example.test http://localhost:8000"></textarea>
|
||
<small>Ziele werden gegen die Allowlist in den Einstellungen geprüft.</small>
|
||
</label>
|
||
|
||
<label>Projektpfade (einer je Zeile)
|
||
<textarea id="f_projects" rows="4" placeholder="/projects/deinProjekt /data/meinProjekt"></textarea>
|
||
<small>Im Container: eigener Code unter /projects (siehe docker-compose.yml), Daten unter /data.</small>
|
||
</label>
|
||
|
||
<label>Subnetze / VLANs für Netzwerk-Scan (optional, eines je Zeile; leer = alle freigegebenen)
|
||
<textarea id="f_subnets" rows="2" placeholder="192.168.178.0/24 10.10.20.0/24"></textarea>
|
||
</label>
|
||
|
||
<fieldset>
|
||
<legend>Berücksichtigte Schweregrade</legend>
|
||
<div class="checks">
|
||
<label class="inline"><input type="checkbox" class="sev" value="critical" checked> Kritisch</label>
|
||
<label class="inline"><input type="checkbox" class="sev" value="high" checked> Hoch</label>
|
||
<label class="inline"><input type="checkbox" class="sev" value="medium" checked> Mittel</label>
|
||
<label class="inline"><input type="checkbox" class="sev" value="low" checked> Niedrig</label>
|
||
<label class="inline"><input type="checkbox" class="sev" value="info" checked> Info</label>
|
||
</div>
|
||
</fieldset>
|
||
|
||
<label class="inline"><input type="checkbox" id="f_active" checked>
|
||
Aktive Requests erlauben (Payloads an Hosts senden)</label>
|
||
|
||
<label class="inline"><input type="checkbox" id="f_nvd" checked>
|
||
CVE-Treffer zusätzlich über die NVD-Datenbank bestätigen (langsamer)</label>
|
||
|
||
<div class="actions">
|
||
<button type="submit" class="primary">Scan starten</button>
|
||
<span id="scanHint" class="hint"></span>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<div class="toolbar">
|
||
<h2 class="m0">Verlauf des aktuellen Scans</h2>
|
||
<span class="spacer"></span>
|
||
<button class="ghost mini" id="newscanDownloadLogs" data-need="admin">Alle Logs herunterladen</button>
|
||
</div>
|
||
<div id="liveProgress" class="live hidden">
|
||
<div class="proghead">
|
||
<strong id="liveName">-</strong>
|
||
<span id="livePct" class="pct">0 %</span>
|
||
</div>
|
||
<div class="bar"><div class="fill" id="liveFill"></div></div>
|
||
<div class="step" id="liveStep"></div>
|
||
<pre class="log" id="liveLog"></pre>
|
||
<button class="ghost" id="cancelBtn" data-need="nutzer">Scan abbrechen</button>
|
||
</div>
|
||
<div id="liveEmpty" class="empty">
|
||
Noch kein Scan gestartet.<br>
|
||
<small>Ergebnisse erscheinen nach dem Start hier und unter "Befunde".</small>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Netzwerk & Assets ================= -->
|
||
<section class="view" id="view-infra">
|
||
<div class="grid2">
|
||
<div class="panel">
|
||
<div class="toolbar">
|
||
<h2 class="m0">Subnetze / VLANs (Scope-Gate)</h2>
|
||
<span class="spacer"></span>
|
||
<button class="ghost" id="infraDiscoverBtn" data-need="admin">Subnetze erkennen</button>
|
||
<button class="primary" id="infraScanAllBtn" data-need="nutzer">Komplett-Infra-Scan</button>
|
||
</div>
|
||
<p class="note">
|
||
Erkannte Subnetze werden zuerst angezeigt und müssen vor einem aktiven Scan
|
||
<strong>freigegeben</strong> werden.
|
||
</p>
|
||
<div class="row-inline mt10" data-need="admin">
|
||
<input type="text" id="infraNewCidr" placeholder="z. B. 192.168.10.0/24" class="flex1">
|
||
<input type="text" id="infraNewLabel" placeholder="Bezeichnung (z. B. Drucker-VLAN)">
|
||
<button class="ghost" id="infraAddSubnetBtn">Hinzufügen</button>
|
||
</div>
|
||
<div class="tablewrap mt10">
|
||
<table id="subnetTable">
|
||
<thead><tr>
|
||
<th>Subnetz (CIDR)</th><th>Interface / Bezeichnung</th><th>Gateway</th><th>Status</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="subnetEmpty" class="empty">Noch keine Subnetze erkannt. Klicke auf "Subnetze erkennen".</div>
|
||
<div class="mt22">
|
||
<h3>Docker-Anbindung (Socket-Proxy)</h3>
|
||
<div id="dockerStatusBox" class="hint">wird geprüft ...</div>
|
||
<div class="actions mt10">
|
||
<button class="ghost" id="infraDockerScanBtn" data-need="nutzer">Docker jetzt scannen</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="panel" data-need="admin">
|
||
<h2>Infrastruktur- & Endpunkt-Zugangsdaten</h2>
|
||
<p class="note">
|
||
Alle Geheimnisse werden verschlüsselt gespeichert und nie im Klartext ausgeliefert.
|
||
</p>
|
||
<div class="formgrid">
|
||
<label>Name
|
||
<input type="text" id="credName" placeholder="z. B. Proxmox-Node1 oder Drucker-SNMP">
|
||
</label>
|
||
<label>Typ
|
||
<select id="credKind">
|
||
<option value="ssh">SSH (Linux / Server / Software-Inventar)</option>
|
||
<option value="winrm">WinRM (Windows PC / Hyper-V)</option>
|
||
<option value="snmp">SNMP v2c / v3 (Drucker, Switch, NAS)</option>
|
||
<option value="proxmox">Proxmox VE (API-Token)</option>
|
||
<option value="firewall">Firewall / Router (OPNsense, pfSense, UniFi, MikroTik)</option>
|
||
</select>
|
||
</label>
|
||
<label class="wide">Host / IP (kommagetrennt bei mehreren)
|
||
<input type="text" id="credHost" placeholder="192.168.178.10 oder 192.168.178.20,192.168.178.21">
|
||
</label>
|
||
<label>Benutzername / Token-ID
|
||
<input type="text" id="credUser" placeholder="pingognito-ro oder root@pam!readonly">
|
||
</label>
|
||
<label>Port (0 = Standard)
|
||
<input type="number" id="credPort" value="0" min="0" max="65535">
|
||
</label>
|
||
<label class="wide">Passwort / API-Token / SNMP-Community
|
||
<input type="password" id="credSecret" placeholder="Geheimnis (leer lassen um bestehendes zu behalten)" autocomplete="new-password">
|
||
</label>
|
||
<label>Untertyp / Option (z. B. opnsense, mikrotik, unifi, 2c, 3)
|
||
<input type="text" id="credSubtype" placeholder="z. B. opnsense oder 2c">
|
||
</label>
|
||
<label class="checkbox">
|
||
<input type="checkbox" id="credHyperv"> Hyper-V Host (bei WinRM)
|
||
</label>
|
||
</div>
|
||
<div class="actions">
|
||
<button class="primary" id="credSaveBtn">Zugangsprofil speichern</button>
|
||
<button class="ghost hidden" id="credCancelBtn" type="button">Abbrechen</button>
|
||
<span id="credHint" class="hint"></span>
|
||
</div>
|
||
|
||
<div class="tablewrap mt22">
|
||
<table id="credTable">
|
||
<thead><tr>
|
||
<th>Name</th><th>Typ</th><th>Host(s)</th><th>Benutzer</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="credEmpty" class="empty">Noch keine Zugangsprofile angelegt.</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<div class="toolbar">
|
||
<h2 class="m0">Geräte- & Asset-Inventar</h2>
|
||
<select id="assetTypeFilter">
|
||
<option value="">Alle Gerätetypen</option>
|
||
<option value="PC / Workstation">PC / Workstation</option>
|
||
<option value="Drucker">Drucker</option>
|
||
<option value="Handy / Tablet">Handy / Tablet</option>
|
||
<option value="Server / VM">Server / VM</option>
|
||
<option value="Docker-Container">Docker-Container</option>
|
||
<option value="Docker-Host">Docker-Host</option>
|
||
<option value="Hypervisor">Hypervisor</option>
|
||
<option value="Switch / Router">Switch / Router</option>
|
||
<option value="Firewall">Firewall</option>
|
||
<option value="NAS / Speicher">NAS / Speicher</option>
|
||
<option value="IoT / Sonstiges">IoT / Sonstiges</option>
|
||
</select>
|
||
<input type="search" id="assetSearch" placeholder="IP, MAC, Hostname, Software (z. B. Veeam)...">
|
||
<button class="ghost" id="assetReloadBtn">Neu laden</button>
|
||
<span class="spacer"></span>
|
||
<span class="hint" id="assetCountHint"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="assetTable">
|
||
<thead><tr>
|
||
<th>Gerätetyp</th><th>IP / Ziel</th><th>Hostname</th><th>MAC / Hersteller</th>
|
||
<th>OS / Firmware</th><th>Offene Ports</th><th>Backup / Software</th><th>Befunde</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="assetEmpty" class="empty">Noch keine Geräte im Inventar. Starte einen Netzwerk-, Docker- oder Infrastruktur-Scan.</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Befunde ================= -->
|
||
<section class="view" id="view-findings">
|
||
<div class="panel">
|
||
<div class="toolbar">
|
||
<label class="inline">Scan
|
||
<select id="f_scanSelect"></select>
|
||
</label>
|
||
<select id="f_sevFilter">
|
||
<option value="">Alle Schweregrade</option>
|
||
<option value="critical">Kritisch</option>
|
||
<option value="high">Hoch</option>
|
||
<option value="medium">Mittel</option>
|
||
<option value="low">Niedrig</option>
|
||
<option value="info">Info</option>
|
||
</select>
|
||
<select id="f_catFilter">
|
||
<option value="">Alle Kategorien</option>
|
||
<option value="web">HTTP</option>
|
||
<option value="tls">TLS</option>
|
||
<option value="config">Konfiguration</option>
|
||
<option value="sast">Codeanalyse</option>
|
||
<option value="secret">Secrets</option>
|
||
<option value="sca">Abhängigkeiten</option>
|
||
<option value="network">Netzwerk</option>
|
||
<option value="device">Geräte / Drucker</option>
|
||
<option value="docker">Docker</option>
|
||
<option value="infra">Infrastruktur</option>
|
||
<option value="software">Software / Backup</option>
|
||
<option value="external">Externe Scanner</option>
|
||
</select>
|
||
<select id="f_originFilter">
|
||
<option value="">Alle Quellen</option>
|
||
<option value="extern">Nur Fremd-Werkzeuge</option>
|
||
<option value="eigen">Nur eigenes Regelwerk</option>
|
||
</select>
|
||
<select id="f_ackFilter">
|
||
<option value="">Alle (inkl. Gesehen)</option>
|
||
<option value="unack">Nur ungesehene</option>
|
||
<option value="ack">Nur „Gesehen“</option>
|
||
</select>
|
||
<select id="f_diffScan">
|
||
<option value="">Kein Vergleich</option>
|
||
</select>
|
||
<span class="hint" id="f_diffInfo"></span>
|
||
<input type="search" id="f_search" placeholder="Suchen...">
|
||
<label class="inline"><input type="checkbox" id="f_includeFp"> Fehlalarme anzeigen</label>
|
||
<label class="inline"><input type="checkbox" id="f_hideCovered"> Gedeckte ausblenden</label>
|
||
<span class="spacer"></span>
|
||
<span class="exports">
|
||
<a id="expHtml" class="btn" href="#">HTML</a>
|
||
<a id="expJson" class="btn" href="#">JSON</a>
|
||
<a id="expMd" class="btn" href="#">Markdown</a>
|
||
<a id="expPdf" class="btn" href="#">PDF</a>
|
||
<a id="expSarif" class="btn" href="#">SARIF</a>
|
||
<a id="expSbom" class="btn" href="#">SBOM</a>
|
||
</span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="findingsTable">
|
||
<thead><tr>
|
||
<th>Schwere</th><th>Befund</th><th>Regel</th><th>Tool</th><th>Quelle</th><th>Ort</th><th>CWE</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="findingsEmpty" class="empty">Keine Befunde für diese Auswahl.</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Scans ================= -->
|
||
<section class="view" id="view-scans">
|
||
<div class="panel">
|
||
<div class="toolbar">
|
||
<button class="ghost" id="reloadScans">Neu laden</button>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="scansTable">
|
||
<thead><tr>
|
||
<th>Name</th><th>Modus</th><th>Status</th><th>Befunde</th><th>Ziele / Projekte</th>
|
||
<th>Start</th><th>Dauer</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Zeitpläne ================= -->
|
||
<section class="view" id="view-schedules">
|
||
<div class="panel">
|
||
<h2>Neuen Zeitplan anlegen</h2>
|
||
<p class="note">
|
||
Der Dienst startet den Scan selbst, sobald der Zeitplan fällig ist.
|
||
Aktive Ziele müssen in der Allowlist stehen - sonst wird der Zeitplan abgelehnt.
|
||
</p>
|
||
<div class="grid2">
|
||
<label>Name
|
||
<input type="text" id="sch_name" placeholder="Nächtlicher Code-Scan">
|
||
</label>
|
||
<label>Modus
|
||
<select id="sch_mode">
|
||
<option value="full">Vollständig</option>
|
||
<option value="all_infra">Komplette Infrastruktur</option>
|
||
<option value="network">Netzwerk & Geräte</option>
|
||
<option value="docker">Docker-Container</option>
|
||
<option value="infra">Infrastruktur (SNMP/PVE/FW)</option>
|
||
<option value="endpoint">Endpunkt-Software / Backup</option>
|
||
<option value="sast">Codeanalyse</option>
|
||
<option value="sca">Abhängigkeiten / CVEs</option>
|
||
<option value="secrets">Secrets</option>
|
||
<option value="web">HTTP</option>
|
||
<option value="headers">Nur Header</option>
|
||
</select>
|
||
</label>
|
||
</div>
|
||
<div class="grid2">
|
||
<label>Ziele (kommagetrennt)
|
||
<input type="text" id="sch_targets" placeholder="https://example.test">
|
||
</label>
|
||
<label>Projektpfade (kommagetrennt)
|
||
<input type="text" id="sch_projects" placeholder="/projects/meinprojekt">
|
||
</label>
|
||
</div>
|
||
<div class="grid2">
|
||
<label>Intervall in Minuten
|
||
<input type="number" id="sch_interval" min="5" step="5" value="60">
|
||
</label>
|
||
<label class="inline mt22">
|
||
<input type="checkbox" id="sch_active" checked> Aktive Prüfungen erlauben
|
||
</label>
|
||
</div>
|
||
<div class="actions">
|
||
<button class="primary" id="sch_save" data-need="nutzer">Zeitplan anlegen</button>
|
||
<span id="sch_hint" class="hint"></span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<div class="toolbar">
|
||
<h2 class="m0">Zeitpläne</h2>
|
||
<span class="spacer"></span>
|
||
<button class="ghost" id="sch_reload">Neu laden</button>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="schedulesTable">
|
||
<thead><tr>
|
||
<th>Name</th><th>Modus</th><th>Intervall</th><th>Nächster Start (Ortszeit)</th>
|
||
<th>Letzter Lauf (Ortszeit)</th><th>Status</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="schedulesEmpty" class="empty">Noch keine Zeitpläne.</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Fehlalarme ================= -->
|
||
<section class="view" id="view-falsepositives">
|
||
<div class="panel">
|
||
<h2>Dauerhafte Fehlalarme (immer ausgeblendet)</h2>
|
||
<p class="note">
|
||
Diese Einträge gelten projektübergreifend. Jeder Scan, der denselben
|
||
Fund an derselben Stelle erneut findet, markiert ihn automatisch als
|
||
Fehlalarm. Ein einzelner Befund kann auch direkt in der Befundliste
|
||
über <strong>Fehlalarm (immer)</strong> aufgenommen werden.
|
||
</p>
|
||
<div class="toolbar">
|
||
<button class="ghost" id="fpReload">Neu laden</button>
|
||
<span class="spacer"></span>
|
||
<span class="hint" id="fpCount"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="fpTable">
|
||
<thead><tr>
|
||
<th>Befund</th><th>Regel</th><th>Tool</th><th>Ort</th>
|
||
<th>Treffer</th><th>Notiz</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="fpEmpty" class="empty">Noch keine Fehlalarme aufgenommen.</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>Gesehene Befunde (kein Fehlalarm – später beheben)</h2>
|
||
<p class="note">
|
||
Echte Sicherheitsbefunde, die bereits zur Kenntnis genommen wurden. Sie bleiben
|
||
in allen Auswertungen und Befundlisten offen sichtbar, lösen aber bei geplanten
|
||
Scans keine erneute Benachrichtigung mehr aus, bis du wieder auf <strong>Wieder melden</strong> klickst.
|
||
</p>
|
||
<div class="toolbar">
|
||
<button class="ghost" id="ackReload">Neu laden</button>
|
||
<span class="spacer"></span>
|
||
<span class="hint" id="ackCount"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="ackTable">
|
||
<thead><tr>
|
||
<th>Befund</th><th>Regel</th><th>Tool</th><th>Ort</th>
|
||
<th>Treffer</th><th>Gesehen von</th><th>Notiz</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="ackEmpty" class="empty">Noch keine Befunde als „Gesehen“ markiert.</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Trend ================= -->
|
||
<section class="view" id="view-trend">
|
||
<div class="panel">
|
||
<h2>Befundentwicklung über die Scans</h2>
|
||
<p class="note">
|
||
Gezeigt wird, wie sich die Zahl der Befunde je Schweregrad über die
|
||
letzten Scans entwickelt hat. Fehlalarme zählen nicht mit.
|
||
</p>
|
||
<div class="toolbar">
|
||
<label>Modus
|
||
<select id="trendMode">
|
||
<option value="">alle</option>
|
||
<option value="full">full</option>
|
||
<option value="all_infra">all_infra</option>
|
||
<option value="network">network</option>
|
||
<option value="docker">docker</option>
|
||
<option value="infra">infra</option>
|
||
<option value="endpoint">endpoint</option>
|
||
<option value="sast">sast</option>
|
||
<option value="sca">sca</option>
|
||
<option value="web">web</option>
|
||
<option value="headers">headers</option>
|
||
<option value="secrets">secrets</option>
|
||
</select>
|
||
</label>
|
||
<label>Anzahl Scans
|
||
<input type="number" id="trendLimit" value="30" min="1" max="200">
|
||
</label>
|
||
<button class="ghost" id="trendReload">Neu laden</button>
|
||
</div>
|
||
<div id="trendChart"></div>
|
||
<div class="tablewrap">
|
||
<table id="trendTable">
|
||
<thead><tr>
|
||
<th>Scan</th><th>Modus</th><th>Start</th>
|
||
<th>Critical</th><th>High</th><th>Medium</th><th>Low</th><th>Gesamt</th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="trendEmpty" class="empty">Noch keine Scans für diese Auswahl.</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>Verlauf nach Zeitabschnitt</h2>
|
||
<p class="note">
|
||
Dasselbe Bild, aber nach Tag, Woche oder Monat zusammengefasst. So
|
||
lässt sich ein Trend über längere Zeit erkennen, auch wenn an
|
||
einzelnen Tagen gar nicht gescannt wurde.
|
||
</p>
|
||
<div class="toolbar">
|
||
<label>Zeitabschnitt
|
||
<select id="trendBuckets">
|
||
<option value="auto">automatisch</option>
|
||
<option value="tag">Tag</option>
|
||
<option value="woche">Woche</option>
|
||
<option value="monat">Monat</option>
|
||
</select>
|
||
</label>
|
||
<button class="ghost" id="trendHistReload">Neu laden</button>
|
||
<span id="trendHistHint" class="hint"></span>
|
||
</div>
|
||
<div id="trendHistChart"></div>
|
||
<div class="tablewrap">
|
||
<table id="trendHistTable">
|
||
<thead><tr>
|
||
<th>Abschnitt</th><th>Scans</th>
|
||
<th>Critical</th><th>High</th><th>Medium</th><th>Low</th><th>Gesamt</th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="trendHistEmpty" class="empty">Noch keine Scans für diese Auswahl.</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Regelwerk ================= -->
|
||
<section class="view" id="view-rules">
|
||
<div class="panel">
|
||
<h2>Eigene Regeln</h2>
|
||
<p class="note">
|
||
Eigene Regeln kommen zu den eingebauten hinzu. Eine eigene Regel mit
|
||
derselben ID ersetzt die eingebaute - so lässt sich eine zu milde
|
||
Hausregel gezielt schärfen.
|
||
</p>
|
||
<div class="toolbar">
|
||
<button class="ghost" id="ruleNew" data-need="nutzer">Neue Regel</button>
|
||
<button class="ghost" id="ruleReload">Neu laden</button>
|
||
<span class="spacer"></span>
|
||
<span class="hint" id="ruleCount"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="ruleTable">
|
||
<thead><tr>
|
||
<th>ID</th><th>Titel</th><th>Schweregrad</th><th>Sprachen</th>
|
||
<th>Status</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="ruleEmpty" class="empty">Noch keine eigenen Regeln.</div>
|
||
</div>
|
||
|
||
<div class="panel" id="ruleFormPanel">
|
||
<h2 id="ruleFormTitle">Neue Regel</h2>
|
||
<div class="formgrid">
|
||
<label>ID <input type="text" id="ruleId" placeholder="EIGEN-001"></label>
|
||
<label>Titel <input type="text" id="ruleTitle" placeholder="Kurztitel"></label>
|
||
<label>Schweregrad
|
||
<select id="ruleSeverity">
|
||
<option value="critical">critical</option>
|
||
<option value="high">high</option>
|
||
<option value="medium" selected>medium</option>
|
||
<option value="low">low</option>
|
||
<option value="info">info</option>
|
||
</select>
|
||
</label>
|
||
<label>CWE <input type="text" id="ruleCwe" placeholder="CWE-89"></label>
|
||
<label>Sprachen (kommagetrennt)
|
||
<input type="text" id="ruleLanguages" placeholder="python,php">
|
||
</label>
|
||
<label class="wide">Regex
|
||
<input type="text" id="rulePattern" placeholder="\beval\s*\(">
|
||
</label>
|
||
<label class="wide">Ausschluss-Regex (optional)
|
||
<input type="text" id="ruleExclude" placeholder="(?i)beispiel">
|
||
</label>
|
||
<label class="wide">Was genau ist falsch
|
||
<input type="text" id="ruleMessage" placeholder="Beschreibung des Problems">
|
||
</label>
|
||
<label class="wide">Empfehlung
|
||
<input type="text" id="ruleRemediation" placeholder="Konkrete Empfehlung">
|
||
</label>
|
||
<label class="checkbox"><input type="checkbox" id="ruleMultiline">
|
||
über mehrere Zeilen</label>
|
||
<label class="checkbox"><input type="checkbox" id="ruleIgnoreCase">
|
||
Groß-/Kleinschreibung egal</label>
|
||
<label class="checkbox"><input type="checkbox" id="ruleEnabled" checked>
|
||
aktiv</label>
|
||
</div>
|
||
<div class="actions">
|
||
<button id="ruleSave" data-need="nutzer">Speichern</button>
|
||
<button class="ghost" id="ruleCancel">Abbrechen</button>
|
||
<span id="ruleHint" class="hint"></span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>Eingebaute Regeln</h2>
|
||
<p class="note">
|
||
Diese Regeln liegen in <code>backend/app/rules/sast_rules.yaml</code>
|
||
und werden von Hand gepflegt.
|
||
</p>
|
||
<div class="tablewrap">
|
||
<table id="builtinRuleTable">
|
||
<thead><tr>
|
||
<th>ID</th><th>Titel</th><th>Schweregrad</th><th>Sprachen</th><th>CWE</th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Benachrichtigungen ================= -->
|
||
<section class="view" id="view-notifications">
|
||
<div class="panel">
|
||
<h2>Benachrichtigungen</h2>
|
||
<p class="note">
|
||
Zeitpläne melden offene Befunde über <strong>n8n</strong>, <strong>ntfy</strong> oder allgemeine
|
||
<strong>Webhooks</strong> so lange erneut, bis du den Befund auf <strong>Gesehen</strong> setzt oder
|
||
als <strong>Fehlalarm</strong> markierst.
|
||
</p>
|
||
<div class="toolbar">
|
||
<button class="ghost" id="notifNew" data-need="admin">Neue Benachrichtigung</button>
|
||
<button class="ghost" id="notifReload">Neu laden</button>
|
||
<span class="spacer"></span>
|
||
<span class="hint" id="notifCount"></span>
|
||
</div>
|
||
<div class="toolbar mt10">
|
||
<button class="ghost" id="notifExport" data-need="admin">Konfiguration exportieren</button>
|
||
<button class="ghost" id="notifExportSecrets" data-need="admin">Export mit Geheimnissen</button>
|
||
<button class="ghost" id="notifImport" data-need="admin">Konfiguration importieren</button>
|
||
<input type="file" id="notifImportFile" accept="application/json,.json" hidden>
|
||
<span class="hint" id="notifExportHint"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="notifTable">
|
||
<thead><tr>
|
||
<th>Name</th><th>Art</th><th>Ziel</th><th>Ereignisse</th>
|
||
<th>Ab Schweregrad</th><th>Status</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="notifEmpty" class="empty">Noch keine Benachrichtigungen eingerichtet.</div>
|
||
</div>
|
||
|
||
<div class="panel" id="notifFormPanel">
|
||
<h2 id="notifFormTitle">Neue Benachrichtigung</h2>
|
||
<div class="formgrid">
|
||
<label>Name <input type="text" id="notifName" placeholder="z. B. ntfy Handy oder n8n Security"></label>
|
||
<label>Art
|
||
<select id="notifArt">
|
||
<option value="n8n">n8n (strukturierter Webhook)</option>
|
||
<option value="ntfy">ntfy (Push-Mitteilung)</option>
|
||
<option value="webhook">Allgemeiner Webhook</option>
|
||
</select>
|
||
</label>
|
||
<label class="wide">Ziel-URL
|
||
<input type="text" id="notifZiel" placeholder="https://ntfy.sh/mein-topic oder https://n8n.example.com/webhook/...">
|
||
</label>
|
||
<label>Ab Schweregrad
|
||
<select id="notifSeverity">
|
||
<option value="critical">critical</option>
|
||
<option value="high" selected>high</option>
|
||
<option value="medium">medium</option>
|
||
<option value="low">low</option>
|
||
<option value="info">info</option>
|
||
</select>
|
||
</label>
|
||
<label>Bearer-Token (optional, z. B. für ntfy / n8n Auth)
|
||
<input type="password" id="notifPasswort" placeholder="Leer lassen um bestehenden Token zu behalten" autocomplete="new-password">
|
||
</label>
|
||
<label class="wide">Ereignisse
|
||
<input type="text" id="notifEvents"
|
||
placeholder="neuer_befund, scan_fertig, scan_fehler">
|
||
</label>
|
||
<label class="wide">Text (optional)
|
||
<input type="text" id="notifTemplate" placeholder="Eigener Text">
|
||
</label>
|
||
<label class="checkbox"><input type="checkbox" id="notifAktiv" checked>
|
||
aktiv</label>
|
||
<label class="checkbox"><input type="checkbox" id="notifExtern">
|
||
Externe Ziele (ausserhalb localhost) erlauben</label>
|
||
</div>
|
||
<div class="actions">
|
||
<button id="notifSave" data-need="admin">Speichern</button>
|
||
<button class="ghost" id="notifCancel">Abbrechen</button>
|
||
<span id="notifHint" class="hint"></span>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Einstellungen ================= -->
|
||
<section class="view" id="view-settings">
|
||
<div class="grid2">
|
||
<div class="panel">
|
||
<h2>Scope-Allowlist</h2>
|
||
<p class="note">
|
||
Aktive Requests werden nur gegen Hosts gesendet, die hier eingetragen sind.
|
||
Einträge als <code>example.test</code> oder <code>*.example.test</code>,
|
||
Netzbereiche z. B. <code>10.0.0.0/8</code>. Leere Liste = nichts wird aktiv gescannt.
|
||
</p>
|
||
<label>Erlaubte Hosts
|
||
<textarea id="sc_allowed" rows="6" placeholder="example.test *.staging.example.test 127.0.0.1"></textarea>
|
||
</label>
|
||
<label>Erlaubte Netzbereiche (CIDR)
|
||
<textarea id="sc_cidrs" rows="3" placeholder="10.0.0.0/8"></textarea>
|
||
</label>
|
||
<label>Gesperrte Hosts
|
||
<textarea id="sc_denied" rows="3" placeholder="admin.example.test"></textarea>
|
||
</label>
|
||
<label class="inline"><input type="checkbox" id="sc_private">
|
||
Private Netze und localhost erlauben (für eigene Testziele)</label>
|
||
<div class="actions">
|
||
<button class="primary" id="saveScope" data-need="admin">Allowlist speichern</button>
|
||
<span id="scopeHint" class="hint"></span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="panel">
|
||
<h2>Scope prüfen</h2>
|
||
<p class="note">Testet, ob ein Ziel durch das Gate kommen würde - ohne Request zu senden.</p>
|
||
<div class="row-inline">
|
||
<input type="text" id="scopeTestUrl" placeholder="https://example.test" class="flex1">
|
||
<button class="ghost" id="scopeTestBtn">Prüfen</button>
|
||
</div>
|
||
<div id="scopeTestResult" class="hint"></div>
|
||
|
||
<h2 class="mt22">Limits</h2>
|
||
<div class="row-inline">
|
||
<label>Requests/Sekunde pro Host
|
||
<input type="number" id="s_rps" min="0.1" step="0.1">
|
||
</label>
|
||
<label>Burst
|
||
<input type="number" id="s_burst" min="1" step="1">
|
||
</label>
|
||
<label>Parallel je Host
|
||
<input type="number" id="s_conc" min="1" step="1">
|
||
</label>
|
||
<label>Nuclei-Requests/Sekunde
|
||
<input type="number" id="s_nuclei" min="1" step="1">
|
||
</label>
|
||
<label>Nuclei-Zeitgrenze (Sekunden)
|
||
<input type="number" id="s_nucleiTimeout" min="30" step="30">
|
||
</label>
|
||
<button class="ghost" id="saveLimits" data-need="admin">Speichern</button>
|
||
</div>
|
||
|
||
<h2 class="mt22">Scanner-Status</h2>
|
||
<div id="settingsProviders"></div>
|
||
|
||
<h2 class="mt22">nuclei-Templates</h2>
|
||
<p class="note">
|
||
nuclei bringt rund 13.900 Templates mit. Die Schweregrad-Auswahl ist
|
||
der wirksame Hebel: high und critical sind rund 5.100 Templates, ein
|
||
Lauf dauert damit rund 243 Sekunden statt rund 656 Sekunden (gemessen
|
||
mit zwei Zielen). Beim Speichern wird die Zeitgrenze passend
|
||
angehoben - sonst bricht nuclei ab und liefert nur ein Teilergebnis.
|
||
</p>
|
||
<div id="nucleiProfiles" class="presets"></div>
|
||
<div class="formgrid">
|
||
<label class="wide">Schweregrade (kommagetrennt)
|
||
<input type="text" id="nucleiSeverities" placeholder="high,critical">
|
||
</label>
|
||
<label class="wide">Ausgeschlossene Tags (kommagetrennt)
|
||
<input type="text" id="nucleiExcluded"
|
||
placeholder="dos,fuzzing,bruteforce,headless">
|
||
</label>
|
||
<label class="wide">Nur diese Tags (leer = alle)
|
||
<input type="text" id="nucleiOnly" placeholder="cve,misconfig">
|
||
</label>
|
||
<label class="wide">Eigene Templates (Verzeichnis)
|
||
<input type="text" id="nucleiTemplates" placeholder="/opt/eigene-templates">
|
||
</label>
|
||
</div>
|
||
<div class="actions">
|
||
<button id="nucleiSave" data-need="admin">Speichern</button>
|
||
<button class="ghost" id="nucleiCount">Template-Anzahl zählen</button>
|
||
<span id="nucleiHint" class="hint"></span>
|
||
</div>
|
||
|
||
<h2 class="mt22">CVE-Cache</h2>
|
||
<div id="cacheInfo"><span class="hint">wird geladen ...</span></div>
|
||
<div class="actions mt10">
|
||
<button class="ghost" id="cacheClear" data-need="admin">Cache leeren</button>
|
||
<span id="cacheHint" class="hint"></span>
|
||
</div>
|
||
|
||
<h2 class="mt22">Zugriffsschutz</h2>
|
||
<p class="note">
|
||
Der Dienst nimmt nur lokale Host-Header an - damit kann keine fremde
|
||
Seite über DNS-Rebinding darauf zugreifen. Bei schreibenden
|
||
Anfragen wird zusätzlich die Herkunft geprüft.
|
||
</p>
|
||
<div id="accessInfo"><span class="hint">wird geladen ...</span></div>
|
||
<div class="row-inline mt10">
|
||
<label class="flex1">Zugangstoken (nur nötig, wenn der Dienst
|
||
<code>PINGOGNITO_ACCESS_TOKEN</code> gesetzt hat)
|
||
<input type="password" id="s_token" placeholder="Token" autocomplete="off">
|
||
</label>
|
||
<button class="ghost" id="saveToken" data-need="admin">Speichern</button>
|
||
<button class="ghost" id="clearToken" data-need="admin">Löschen</button>
|
||
</div>
|
||
<span id="tokenHint" class="hint"></span>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Historie ================= -->
|
||
<section class="view" id="view-historie">
|
||
<div class="panel">
|
||
<h2>Wer hat wann was gemacht</h2>
|
||
<p class="note">
|
||
Jede Anmeldung, jede Aktion und jeder Lesezugriff auf Daten landet hier.
|
||
Technische Statusabfragen des Dashboards sind im Modus <em>Aktionen</em>
|
||
ausgeblendet - sie würden sonst den Laufenden Scan mit hunderten
|
||
Einträgen füllen.
|
||
</p>
|
||
<div class="toolbar">
|
||
<label>Benutzer
|
||
<input type="text" id="histUser" placeholder="Name">
|
||
</label>
|
||
<label>Kategorie
|
||
<select id="histCat">
|
||
<option value="">alle</option>
|
||
<option value="auth">Anmeldung</option>
|
||
<option value="admin">Benutzer und Token</option>
|
||
<option value="settings">Allowlist und Einstellungen</option>
|
||
<option value="rules">Regelwerk</option>
|
||
<option value="notifications">Benachrichtigungen</option>
|
||
<option value="scan">Scans und Zeitpläne</option>
|
||
<option value="findings">Fehlalarme und Befunde</option>
|
||
<option value="zugriff">Lesezugriff</option>
|
||
<option value="status">Statusabfrage</option>
|
||
</select>
|
||
</label>
|
||
<label>Volltext
|
||
<input type="text" id="histSuche" placeholder="Aktion, Detail, IP ...">
|
||
</label>
|
||
<label>Von
|
||
<input type="datetime-local" id="histVon">
|
||
</label>
|
||
<label>Bis
|
||
<input type="datetime-local" id="histBis">
|
||
</label>
|
||
</div>
|
||
<div class="toolbar">
|
||
<label class="inline"><input type="checkbox" id="histStatus">
|
||
Auch technische Statusabfragen zeigen</label>
|
||
<label class="inline" data-need="admin">Modus
|
||
<select id="histModus">
|
||
<option value="aktionen">Aktionen (Vorgabe)</option>
|
||
<option value="voll">Voll - mit technischen Statusabfragen</option>
|
||
</select>
|
||
</label>
|
||
<button class="ghost" id="histReload">Neu laden</button>
|
||
<button class="ghost" id="histExportJson">Export JSON</button>
|
||
<button class="ghost" id="histExportCsv">Export CSV</button>
|
||
<button class="primary" id="histExportAllLogs" data-need="admin">Alle Logs herunterladen (.txt)</button>
|
||
<button class="ghost" id="histExportAllLogsJson" data-need="admin">Alle Logs (.json)</button>
|
||
<button class="ghost hidden" id="histClear" data-need="admin">Historie leeren</button>
|
||
<span id="histHint" class="hint"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="histTable">
|
||
<thead><tr>
|
||
<th>Zeit</th><th>Benutzer</th><th>Aktion</th><th>Kategorie</th>
|
||
<th>Details</th><th>IP</th><th>Ergebnis</th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="histEmpty" class="empty">Noch keine Einträge.</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ================= Benutzer ================= -->
|
||
<section class="view" id="view-users">
|
||
<div class="panel">
|
||
<h2>Benutzer</h2>
|
||
<p class="note">
|
||
<strong>Admin</strong> darf alles, <strong>Nutzer</strong> darf scannen,
|
||
Fehlalarme markieren und Regeln pflegen, <strong>Betrachter</strong> darf
|
||
nur lesen. Sobald der erste Benutzer existiert, ist die Anmeldung
|
||
Pflicht.
|
||
</p>
|
||
<div class="toolbar">
|
||
<button class="ghost" id="userReload">Neu laden</button>
|
||
<span id="userHint" class="hint"></span>
|
||
</div>
|
||
<div class="tablewrap">
|
||
<table id="userTable">
|
||
<thead><tr>
|
||
<th>Benutzer</th><th>Rolle</th><th>Status</th><th>Letzte Anmeldung</th>
|
||
<th>IP</th><th>Token</th><th></th>
|
||
</tr></thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div id="userEmpty" class="empty">Noch keine Benutzer.</div>
|
||
</div>
|
||
|
||
<div class="panel" id="userFormPanel">
|
||
<h2>Neuen Benutzer anlegen</h2>
|
||
<div class="formgrid">
|
||
<label>Benutzername
|
||
<input type="text" id="u_name" placeholder="z. B. m.mueller">
|
||
</label>
|
||
<label>Anzeigename (optional)
|
||
<input type="text" id="u_display" placeholder="Mia Müller">
|
||
</label>
|
||
<label>Rolle
|
||
<select id="u_role">
|
||
<option value="nutzer">Nutzer - darf scannen</option>
|
||
<option value="betrachter">Betrachter - darf nur lesen</option>
|
||
<option value="admin">Admin - darf alles</option>
|
||
</select>
|
||
</label>
|
||
<label>Passwort
|
||
<input type="password" id="u_pass" placeholder="mindestens 8 Zeichen" autocomplete="new-password">
|
||
</label>
|
||
</div>
|
||
<div class="actions">
|
||
<button id="u_create">Benutzer anlegen</button>
|
||
<span id="u_hint" class="hint"></span>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
|
||
<!-- ================= Anmeldung ================= -->
|
||
<div class="loginmask hidden" id="loginMask">
|
||
<div class="loginbox">
|
||
<div class="brand">
|
||
<img class="logo" src="/static/favicon.png" alt="Pingognito">
|
||
<div>
|
||
<h1>Pingognito</h1>
|
||
<p>Lokales Dashboard für Sicherheitsprüfungen</p>
|
||
</div>
|
||
</div>
|
||
<form id="loginForm">
|
||
<label>Benutzername
|
||
<input type="text" id="loginUser" autocomplete="username" autofocus>
|
||
</label>
|
||
<label>Passwort
|
||
<input type="password" id="loginPass" autocomplete="current-password">
|
||
</label>
|
||
<label class="inline"><input type="checkbox" id="loginBleiben">
|
||
Angemeldet bleiben (7 Tage)</label>
|
||
<label>Oder Zugangstoken (falls gesetzt)
|
||
<input type="password" id="loginToken" placeholder="Optional: API- oder Master-Token" autocomplete="off">
|
||
</label>
|
||
<div class="actions">
|
||
<button type="submit" class="primary">Anmelden</button>
|
||
<span id="loginHint" class="hint"></span>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="modal hidden" id="modal">
|
||
<div class="modalbox">
|
||
<div class="modalhead">
|
||
<strong id="modalTitle">Befund</strong>
|
||
<button class="ghost" id="modalClose">Schließen</button>
|
||
</div>
|
||
<div id="modalBody"></div>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="/static/app.js"></script>
|
||
</body>
|
||
</html>
|