From bf24fb3370a0056661ba088920a3e1fa02328d2b Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sat, 26 Sep 2026 08:25:10 +0000 Subject: [PATCH] docs: a German home and getting started for Maschinenbauer (#405) --- docs/.vitepress/config.mts | 105 ++- docs/.vitepress/theme/components/HomePage.vue | 876 ++++++++++++++++++ docs/.vitepress/theme/components/Wordmark.vue | 8 + docs/.vitepress/theme/custom.css | 469 ++++++++++ docs/.vitepress/theme/index.ts | 20 + docs/guide/getting-started-en.md | 88 ++ docs/guide/getting-started.md | 247 +++-- docs/index.md | 36 +- docs/public/logo.svg | 1 + 9 files changed, 1721 insertions(+), 129 deletions(-) create mode 100644 docs/.vitepress/theme/components/HomePage.vue create mode 100644 docs/.vitepress/theme/components/Wordmark.vue create mode 100644 docs/.vitepress/theme/custom.css create mode 100644 docs/.vitepress/theme/index.ts create mode 100644 docs/guide/getting-started-en.md create mode 100644 docs/public/logo.svg diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 9ec550b..d9efd67 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,68 +1,107 @@ import { defineConfig } from 'vitepress' import { withMermaid } from 'vitepress-plugin-mermaid' +// `head` entries are not base-prefixed, so the favicon carries `/docs/`. +const BASE = '/docs/' + export default withMermaid(defineConfig({ // Served under https://pruefwerk-.breakpilot.com/docs/ (orca route // /docs/* on the dashboard host, prefix not stripped). - base: '/docs/', + base: BASE, + lang: 'de-DE', title: 'Prüfwerk', - description: 'AI-powered security compliance scanning platform', + description: 'CRA-Nachweise aus Ihrem Quellcode', + head: [ + ['link', { rel: 'icon', type: 'image/svg+xml', href: `${BASE}logo.svg` }], + ['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }], + ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }], + [ + 'link', + { + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap', + }, + ], + ], ignoreDeadLinks: [ /localhost/, ], // Internal design notes live next to the docs but are not published. srcExclude: ['design/**'], themeConfig: { + logo: '/logo.svg', + // The navbar shows the BreakPilot wordmark instead (theme/components/Wordmark.vue). + siteTitle: false, nav: [ - { text: 'Guide', link: '/guide/getting-started' }, - { text: 'Features', link: '/features/overview' }, - { text: 'Reference', link: '/reference/glossary' }, + { text: 'Erste Schritte', link: '/guide/getting-started' }, + { text: 'Handbuch', link: '/guide/repositories' }, + { text: 'Referenz', link: '/reference/glossary' }, ], sidebar: [ { - text: 'Guide', + text: 'Einstieg', items: [ - { text: 'Getting Started', link: '/guide/getting-started' }, - { text: 'Adding Repositories', link: '/guide/repositories' }, - { text: 'Running Scans', link: '/guide/scanning' }, - { text: 'PLC / SPS (CODESYS)', link: '/guide/plc' }, - { text: 'Demo Targets', link: '/guide/demo-targets' }, - { text: 'Understanding Findings', link: '/guide/findings' }, - { text: 'Findings from Manual Tests', link: '/guide/manual-findings' }, - { text: 'Data and Retention', link: '/guide/data-retention' }, - { text: 'SBOM & Licenses', link: '/guide/sbom' }, - { text: 'Issues & Tracking', link: '/guide/issues' }, - { text: 'Webhooks & PR Reviews', link: '/guide/webhooks' }, + { text: 'Erste Schritte', link: '/guide/getting-started' }, + { text: 'Demo-Prüfobjekte', link: '/guide/demo-targets' }, ], }, { - text: 'Features', + text: 'Prüfen', + items: [ + { text: 'Prüfobjekte anlegen', link: '/guide/repositories' }, + { text: 'Prüfungen', link: '/guide/scanning' }, + { text: 'SPS / PLC (CODESYS)', link: '/guide/plc' }, + { text: 'Befunde', link: '/guide/findings' }, + { text: 'Befunde aus manuellen Tests', link: '/guide/manual-findings' }, + { text: 'Stückliste (SBOM) und Lizenzen', link: '/guide/sbom' }, + { text: 'CRA-Anforderungen', link: '/features/control-mapping' }, + { text: 'Daten und Aufbewahrung', link: '/guide/data-retention' }, + ], + }, + { + text: 'Oberfläche und Anbindung', + items: [ + { text: 'Übersicht', link: '/features/overview' }, + { text: 'MCP-Schnittstelle', link: '/features/mcp-server' }, + { text: 'Tickets', link: '/guide/issues' }, + { text: 'Webhooks und PR-Reviews', link: '/guide/webhooks' }, + { text: 'Getting Started (English)', link: '/guide/getting-started-en' }, + ], + }, + { + text: 'Referenz', + items: [ + { text: 'Glossar', link: '/reference/glossary' }, + { text: 'Werkzeuge', link: '/reference/tools' }, + { text: 'SPS-Laufzeitumgebungen', link: '/reference/plc-runtimes' }, + ], + }, + { + text: 'Weitere Funktionen (nicht im Pilotumfang)', + collapsed: true, items: [ - { text: 'Dashboard Overview', link: '/features/overview' }, { text: 'DAST Scanning', link: '/features/dast' }, { text: 'AI Pentest', link: '/features/pentest' }, { text: 'Pentest Architecture', link: '/features/pentest-architecture' }, { text: 'AI Chat', link: '/features/ai-chat' }, { text: 'Code Knowledge Graph', link: '/features/graph' }, - { text: 'Compliance Control Mapping', link: '/features/control-mapping' }, - { text: 'MCP Integration', link: '/features/mcp-server' }, ], }, - { - text: 'Reference', - items: [ - { text: 'Glossary', link: '/reference/glossary' }, - { text: 'Tools & Scanners', link: '/reference/tools' }, - { text: 'PLC Runtime Landscape', link: '/reference/plc-runtimes' }, - ], - }, - ], - socialLinks: [ - { icon: 'github', link: 'https://git.breakpilot.com/platform/pruefwerk' }, ], footer: { - message: 'Prüfwerk Documentation', + message: 'Prüfwerk von BreakPilot', }, + outline: { label: 'Auf dieser Seite' }, + docFooter: { prev: 'Zurück', next: 'Weiter' }, + darkModeSwitchLabel: 'Darstellung', + lightModeSwitchTitle: 'Zum hellen Modus wechseln', + darkModeSwitchTitle: 'Zum dunklen Modus wechseln', + sidebarMenuLabel: 'Menü', + returnToTopLabel: 'Nach oben', + }, + // Code blocks sit on the dark "Nacht" ground in both themes. + markdown: { + theme: 'github-dark', }, mermaid: {}, })) diff --git a/docs/.vitepress/theme/components/HomePage.vue b/docs/.vitepress/theme/components/HomePage.vue new file mode 100644 index 0000000..8971b7d --- /dev/null +++ b/docs/.vitepress/theme/components/HomePage.vue @@ -0,0 +1,876 @@ + + + + + + diff --git a/docs/.vitepress/theme/components/Wordmark.vue b/docs/.vitepress/theme/components/Wordmark.vue new file mode 100644 index 0000000..9a804e3 --- /dev/null +++ b/docs/.vitepress/theme/components/Wordmark.vue @@ -0,0 +1,8 @@ + + diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css new file mode 100644 index 0000000..dcc1208 --- /dev/null +++ b/docs/.vitepress/theme/custom.css @@ -0,0 +1,469 @@ +/* + * Prüfwerk docs in the BreakPilot platform look. + * + * Tokens first (light, then dark), then the default theme's variables mapped + * onto them, then typography for content pages, custom blocks, code, sidebar + * and the navbar wordmark. The home page styles live in HomePage.vue. + * Fonts (Geist, Geist Mono) are loaded from Google Fonts in config.mts. + */ + +/* ---------- Tokens ---------- */ + +:root { + --bp-ground: #f5f6fb; + --bp-surface: #ffffff; + --bp-ink: #14162b; + --bp-text: #414669; + --bp-muted: #5e6384; + --bp-rule: #e4e6f0; + --bp-accent: #4f46e5; + --bp-accent-hover: #4338ca; + --bp-accent-soft: rgba(79, 70, 229, 0.08); + --bp-accent-line: rgba(79, 70, 229, 0.28); + --bp-violet: #7c3aed; + --bp-night: #0f1225; + --bp-night-rule: #232846; + --bp-night-text: #c9cdea; + + --bp-ok: #17805a; + --bp-ok-soft: rgba(23, 128, 90, 0.08); + --bp-warn: #a15c07; + --bp-warn-soft: rgba(161, 92, 7, 0.08); + --bp-danger: #c0283f; + --bp-danger-soft: rgba(192, 40, 63, 0.07); + --bp-neutral: #c9ccdf; + --bp-process: #b9b5f5; + + --bp-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, + 'Helvetica Neue', Arial, sans-serif; + --bp-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, + monospace; +} + +.dark { + --bp-ground: #0f1225; + --bp-surface: #1a1e38; + --bp-ink: #eef0fa; + --bp-text: #b9bedc; + --bp-muted: #8b90b3; + --bp-rule: #2a2f52; + --bp-accent: #8b87f6; + --bp-accent-hover: #a5a2f8; + --bp-accent-soft: rgba(139, 135, 246, 0.1); + --bp-accent-line: rgba(139, 135, 246, 0.35); + --bp-violet: #a78bfa; + --bp-night: #0a0c1a; + --bp-night-rule: #232846; + + --bp-ok: #4cc79a; + --bp-ok-soft: rgba(76, 199, 154, 0.09); + --bp-warn: #e7a74a; + --bp-warn-soft: rgba(231, 167, 74, 0.09); + --bp-danger: #f07a8c; + --bp-danger-soft: rgba(240, 122, 140, 0.09); + --bp-neutral: #3a4068; + --bp-process: #4a4690; +} + +/* ---------- Default theme variables ---------- */ + +:root, +.dark { + --vp-font-family-base: var(--bp-sans); + --vp-font-family-mono: var(--bp-mono); + + --vp-c-bg: var(--bp-ground); + --vp-c-bg-alt: var(--bp-surface); + --vp-c-bg-elv: var(--bp-surface); + --vp-c-bg-soft: var(--bp-accent-soft); + + --vp-c-text-1: var(--bp-ink); + --vp-c-text-2: var(--bp-text); + --vp-c-text-3: var(--bp-muted); + + --vp-c-divider: var(--bp-rule); + --vp-c-border: var(--bp-rule); + --vp-c-gutter: var(--bp-rule); + + --vp-c-brand-1: var(--bp-accent); + --vp-c-brand-2: var(--bp-accent-hover); + --vp-c-brand-3: var(--bp-accent); + --vp-c-brand-soft: var(--bp-accent-soft); + + --vp-c-tip-1: var(--bp-ok); + --vp-c-tip-soft: var(--bp-ok-soft); + --vp-c-warning-1: var(--bp-warn); + --vp-c-warning-soft: var(--bp-warn-soft); + --vp-c-danger-1: var(--bp-danger); + --vp-c-danger-soft: var(--bp-danger-soft); + --vp-c-caution-1: var(--bp-danger); + --vp-c-caution-soft: var(--bp-danger-soft); + + --vp-nav-bg-color: var(--bp-surface); + --vp-sidebar-bg-color: var(--bp-surface); + --vp-local-nav-bg-color: var(--bp-surface); + + --vp-button-brand-bg: var(--bp-accent); + --vp-button-brand-hover-bg: var(--bp-accent-hover); + --vp-button-brand-active-bg: var(--bp-accent-hover); + --vp-button-brand-text: #ffffff; + --vp-button-brand-hover-text: #ffffff; + --vp-button-brand-active-text: #ffffff; + + --vp-code-font-size: 0.9em; + --vp-code-bg: var(--bp-accent-soft); + --vp-code-color: var(--bp-ink); + --vp-code-block-bg: var(--bp-night); + --vp-code-block-color: var(--bp-night-text); + --vp-code-block-divider-color: var(--bp-night-rule); + --vp-code-lang-color: #8b90b3; + --vp-code-line-highlight-color: rgba(139, 135, 246, 0.16); + --vp-code-line-number-color: #4f557d; + --vp-code-copy-code-bg: #1a1e38; + --vp-code-copy-code-hover-bg: #232846; + --vp-code-copy-code-border-color: #2a2f52; + --vp-code-copy-code-hover-border-color: #3a4068; + + --vp-custom-block-font-size: 15px; +} + +.dark { + /* Dark ink on the light accent keeps the primary button readable. */ + --vp-button-brand-text: #0f1225; + --vp-button-brand-hover-text: #0f1225; + --vp-button-brand-active-text: #0f1225; +} + +body { + background-color: var(--bp-ground); + font-feature-settings: 'ss01', 'cv11'; + -webkit-font-smoothing: antialiased; +} + +/* ---------- Content typography ---------- */ + +.vp-doc { + color: var(--bp-text); + font-size: 16px; + line-height: 1.7; +} + +.vp-doc p, +.vp-doc ul, +.vp-doc ol, +.vp-doc blockquote { + max-width: 70ch; +} + +.vp-doc h1, +.vp-doc h2, +.vp-doc h3, +.vp-doc h4 { + color: var(--bp-ink); + font-weight: 650; +} + +.vp-doc h1 { + font-size: clamp(30px, 4vw, 38px); + line-height: 1.12; + letter-spacing: -0.03em; + font-weight: 700; +} + +.vp-doc h2 { + margin-top: 56px; + padding-top: 28px; + border-top: 1px solid var(--bp-rule); + font-size: 24px; + line-height: 1.25; + letter-spacing: -0.022em; +} + +.vp-doc h3 { + margin-top: 36px; + font-size: 18px; + letter-spacing: -0.012em; +} + +.vp-doc h4 { + font-family: var(--bp-mono); + font-size: 12px; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--bp-muted); +} + +.vp-doc strong { + color: var(--bp-ink); + font-weight: 600; +} + +.vp-doc a { + color: var(--bp-accent); + font-weight: 500; + text-decoration: underline; + text-decoration-color: var(--bp-accent-line); + text-underline-offset: 3px; + text-decoration-thickness: 1px; +} + +.vp-doc a:hover { + color: var(--bp-accent-hover); + text-decoration-color: currentColor; +} + +.vp-doc hr { + border-top: 1px solid var(--bp-rule); +} + +.vp-doc blockquote { + border-left: 2px solid var(--bp-accent); + color: var(--bp-text); +} + +/* Tables: hairlines only, a mono header row. */ +.vp-doc table { + border-collapse: collapse; + font-size: 14.5px; +} + +.vp-doc tr { + background: transparent !important; + border-top: 1px solid var(--bp-rule); +} + +.vp-doc th, +.vp-doc td { + border: none; + border-bottom: 1px solid var(--bp-rule); + padding: 10px 16px 10px 0; + vertical-align: top; +} + +.vp-doc th { + background: transparent; + font-family: var(--bp-mono); + font-size: 11.5px; + font-weight: 500; + letter-spacing: 0.07em; + text-transform: uppercase; + color: var(--bp-muted); +} + +/* Inline code: a quiet indigo tint, mono. */ +.vp-doc :not(pre) > code { + border-radius: 4px; + padding: 2px 5px; + font-weight: 500; +} + +.vp-doc a > code { + color: var(--bp-accent); +} + +/* ---------- Code blocks: "Nacht" ---------- */ + +.vp-doc div[class*='language-'] { + border: 1px solid var(--bp-night-rule); + border-radius: 10px; +} + +.vp-doc div[class*='language-'] .highlighted { + box-shadow: inset 2px 0 0 #8b87f6; +} + +/* ---------- Custom blocks ---------- */ + +.vp-doc .custom-block { + border: 1px solid var(--bp-rule); + border-left-width: 3px; + border-radius: 6px; + background: var(--bp-surface); + color: var(--bp-text); + padding: 14px 20px 12px; + line-height: 1.65; +} + +.vp-doc .custom-block .custom-block-title { + font-family: var(--bp-mono); + font-size: 11.5px; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; +} + +.vp-doc .custom-block.info, +.vp-doc .custom-block.note, +.vp-doc .custom-block.important, +.vp-doc .custom-block.details { + border-left-color: var(--bp-accent); +} + +.vp-doc .custom-block.info .custom-block-title, +.vp-doc .custom-block.note .custom-block-title, +.vp-doc .custom-block.important .custom-block-title { + color: var(--bp-accent); +} + +.vp-doc .custom-block.tip { + border-left-color: var(--bp-ok); + background: linear-gradient(var(--bp-ok-soft), var(--bp-ok-soft)), var(--bp-surface); +} + +.vp-doc .custom-block.tip .custom-block-title { + color: var(--bp-ok); +} + +.vp-doc .custom-block.warning { + border-left-color: var(--bp-warn); + background: linear-gradient(var(--bp-warn-soft), var(--bp-warn-soft)), var(--bp-surface); +} + +.vp-doc .custom-block.warning .custom-block-title { + color: var(--bp-warn); +} + +.vp-doc .custom-block.danger, +.vp-doc .custom-block.caution { + border-left-color: var(--bp-danger); + background: linear-gradient(var(--bp-danger-soft), var(--bp-danger-soft)), + var(--bp-surface); +} + +.vp-doc .custom-block.danger .custom-block-title, +.vp-doc .custom-block.caution .custom-block-title { + color: var(--bp-danger); +} + +.vp-doc .custom-block a { + color: inherit; +} + +/* ---------- Sidebar ---------- */ + +.VPSidebar { + border-right: 1px solid var(--bp-rule); +} + +.VPSidebarItem.level-0 > .item > .text, +.VPSidebarItem.level-0 > .item > .link > .text { + font-family: var(--bp-mono); + font-size: 11px !important; + font-weight: 500 !important; + letter-spacing: 0.09em; + text-transform: uppercase; + color: var(--bp-muted) !important; +} + +.VPSidebarItem.level-0 { + padding-bottom: 20px; +} + +.VPSidebarItem.level-1 .text { + font-size: 14px; + color: var(--bp-text); +} + +.VPSidebarItem.level-1.is-active > .item .text { + color: var(--bp-accent); + font-weight: 600; +} + +.VPSidebarItem.level-1.is-active > .item > .indicator { + background-color: var(--bp-accent); +} + +/* ---------- Navbar and wordmark ---------- */ + +.VPNavBar .divider-line { + background-color: var(--bp-rule) !important; +} + +/* One solid bar across the full width, including over the sidebar column. */ +.VPNavBar, +.VPNavBar.has-sidebar { + background-color: var(--vp-nav-bg-color) !important; +} + +.VPNavBar .content-body { + border-bottom: 1px solid var(--bp-rule); +} + +.VPNavBarTitle .logo { + height: 26px; + margin-right: 10px; +} + +.VPNavBarMenuLink { + font-size: 14px; + font-weight: 500; +} + +.bp-wordmark { + display: inline-flex; + flex-direction: column; + justify-content: center; + line-height: 1; +} + +.bp-wordmark-name { + font-size: 18px; + font-weight: 800; + letter-spacing: -0.03em; + color: var(--bp-ink); +} + +.bp-wordmark-name span { + color: var(--bp-accent); +} + +.bp-wordmark-sub { + margin-top: 3px; + font-family: var(--bp-mono); + font-size: 10.5px; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--bp-muted); +} + +/* ---------- Doc footer, pager, outline ---------- */ + +.VPDocFooter .pager-link { + border-radius: 8px; + background: var(--bp-surface); +} + +.VPDocFooter .pager-link .desc { + font-family: var(--bp-mono); + font-size: 11px; + letter-spacing: 0.08em; + text-transform: uppercase; +} + +.VPDocAsideOutline .outline-title { + font-family: var(--bp-mono); + font-size: 11px; + font-weight: 500; + letter-spacing: 0.09em; + text-transform: uppercase; + color: var(--bp-muted); +} + +.VPDocAsideOutline .outline-marker { + background-color: var(--bp-accent); +} + +/* ---------- Phone width ---------- */ + +@media (max-width: 767px) { + .vp-doc h2 { + margin-top: 40px; + padding-top: 22px; + } + + .vp-doc table { + font-size: 14px; + } +} diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts new file mode 100644 index 0000000..153158e --- /dev/null +++ b/docs/.vitepress/theme/index.ts @@ -0,0 +1,20 @@ +// The default VitePress theme in the BreakPilot platform look: palette, type +// and surfaces in custom.css, the BreakPilot wordmark in the navbar, and a +// custom home page (HomePage.vue) used from docs/index.md. +import { h } from 'vue' +import DefaultTheme from 'vitepress/theme' +import type { Theme } from 'vitepress' +import HomePage from './components/HomePage.vue' +import Wordmark from './components/Wordmark.vue' +import './custom.css' + +export default { + extends: DefaultTheme, + Layout: () => + h(DefaultTheme.Layout, null, { + 'nav-bar-title-after': () => h(Wordmark), + }), + enhanceApp({ app }) { + app.component('HomePage', HomePage) + }, +} satisfies Theme diff --git a/docs/guide/getting-started-en.md b/docs/guide/getting-started-en.md new file mode 100644 index 0000000..9e5758d --- /dev/null +++ b/docs/guide/getting-started-en.md @@ -0,0 +1,88 @@ +# Getting Started (English) + +Prüfwerk is an AI-powered security compliance platform that scans your Git repositories for vulnerabilities, builds software bills of materials, performs dynamic application testing, and provides code intelligence through an interactive knowledge graph and AI chat. + +## What You Get + +When you connect a repository, Prüfwerk runs a comprehensive scan pipeline that covers: + +- **Static Analysis (SAST)** -- finds code-level vulnerabilities like injection flaws, insecure crypto, and misconfigurations +- **Software Bill of Materials (SBOM)** -- inventories every dependency, its version, and its license +- **CVE Monitoring** -- cross-references your dependencies against known vulnerabilities +- **Code Knowledge Graph** -- maps the structure of your codebase for impact analysis +- **AI Triage** -- every finding is reviewed by an LLM that provides severity assessment, confidence scores, and remediation guidance +- **Issue Tracking** -- automatically creates issues in your tracker for new findings + +## Dashboard Overview + +After logging in, you land on the Overview page, which gives you a snapshot of your security posture across all repositories. + +![Dashboard overview showing stats cards, severity distribution, and recent scan activity](/screenshots/dashboard-overview.png) + +The overview shows key metrics at a glance: total repositories, findings broken down by severity, dependency counts, CVE alerts, and tracker issues. A severity distribution chart visualizes your risk profile, and recent scan runs let you monitor scanning activity. + +## Quick Walkthrough + +Here is the fastest path from zero to your first scan results: + +### 0. Or start with the demo targets + +An empty workspace offers **Add demo targets** on the Targets page and in the +onboarding wizard. It creates a small curated set — two PLC projects, a +deliberately vulnerable web service and a Zephyr firmware sample — attaches +their files, detects each type and starts the first scans, so there are real +findings to look at within minutes. See [Demo targets](/guide/demo-targets). + +### 1. Add a repository + +Navigate to **Repositories** in the sidebar and click **Add Repository**. Enter a name, the Git clone URL, and the default branch to scan. + +![Add repository dialog](/screenshots/add-repository.png) + +### 2. Trigger a scan + +Click the **Scan** button on your repository row. The scan runs in the background through all phases: cloning, static analysis, SBOM extraction, CVE checking, graph building, and issue sync. + +### 3. View findings + +Once the scan completes, navigate to **Findings** to see everything that was discovered. Each finding includes a severity level, description, code evidence, and AI-generated remediation guidance. + +![Findings list with filters](/screenshots/findings-list.png) + +## Next Steps + +- [Add and configure repositories](/guide/repositories) -- including private repos and issue tracker setup +- [Understand how scans work](/guide/scanning) -- phases, triggers, and deduplication +- [Work with findings](/guide/findings) -- triage, false positives, and developer feedback +- [Explore your SBOM](/guide/sbom) -- dependencies, licenses, and exports +- [Connect your IDE](/features/mcp-server) -- query findings from an LLM client over MCP + +## Deployment modes (`APP_ENV`) + +`APP_ENV` decides how strict the deployment is about authentication. + +| `APP_ENV` | Behaviour | +|---|---| +| `dev` (default) | Auth may be absent. Without Keycloak the API serves unauthenticated against a synthetic `dev` tenant, CORS is permissive, entitlements are not checked. For a laptop and CI only. | +| `staging`, `production` | *Hardened.* The agent, dashboard and MCP server refuse to start unless authentication is fully configured, and the dev-tenant, permissive-CORS and skip-entitlement paths are unreachable. | + +A hardened deployment requires `KEYCLOAK_URL`, `KEYCLOAK_REALM`, +`KEYCLOAK_AUDIENCE`, `CORS_ALLOWED_ORIGINS`, `TENANT_REGISTRY_URL`, +`TENANT_REGISTRY_CLIENT_ID`, `TENANT_REGISTRY_CLIENT_SECRET` and +`PLATFORM_ALLOWED_CLIENTS`; the MCP server additionally requires `MCP_PORT`, +since its stdio transport has no tenant authentication. Startup lists every +missing variable at once, so one corrected deploy is enough. + +The scheduler follows the same rule: where a tenant registry is configured, its +tenant list is authoritative, and a registry outage skips the tick instead of +falling back to the `dev` tenant. + +## Static-analysis-only environments + +Some deployments run with `PW_FEATURES=source_only` — the shared staging +environment does. Dynamic testing needs infrastructure (a browser, a soft-PLC, +network access to a running target) that is not deployed there, so dynamic +application testing, pentest sessions, the ICS probe and the ephemeral PLC +runtime are hidden in the interface, and a scan records those stages as +*skipped* rather than failed. Everything static — SAST, SBOM, CVE, the graph, +AI triage, control mapping — works as documented. diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index 7f59e96..8cc75f5 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -1,88 +1,197 @@ -# Getting Started +--- +title: Erste Schritte +--- -Prüfwerk is an AI-powered security compliance platform that scans your Git repositories for vulnerabilities, builds software bills of materials, performs dynamic application testing, and provides code intelligence through an interactive knowledge graph and AI chat. +# Erste Schritte -## What You Get +Diese Seite führt Sie vom ersten Anmelden bis zum Nachweispaket für ein +Prüfobjekt. Ein Prüfobjekt ist ein Produkt oder eine Komponente, die Prüfwerk +prüft: eine Firmware, ein SPS-Programm oder eine Anwendung. -When you connect a repository, Prüfwerk runs a comprehensive scan pipeline that covers: +In der Testphase prüft Prüfwerk ausschließlich Quellcode. Es führt nichts aus +und verbindet sich mit keinem Gerät. -- **Static Analysis (SAST)** -- finds code-level vulnerabilities like injection flaws, insecure crypto, and misconfigurations -- **Software Bill of Materials (SBOM)** -- inventories every dependency, its version, and its license -- **CVE Monitoring** -- cross-references your dependencies against known vulnerabilities -- **Code Knowledge Graph** -- maps the structure of your codebase for impact analysis -- **AI Triage** -- every finding is reviewed by an LLM that provides severity assessment, confidence scores, and remediation guidance -- **Issue Tracking** -- automatically creates issues in your tracker for new findings +## Was Sie brauchen -## Dashboard Overview +- einen Zugang zur BreakPilot-Plattform und einen Arbeitsbereich; +- den Quellcode des Prüfobjekts, entweder + - als **Git-Repository** (HTTPS-Adresse; für private Repositories ein + Zugangstoken mit Leserecht), oder + - als **Archiv** im Format zip, tar oder tar.gz. Passwortgeschützte + zip-Archive sind möglich. 7z- und RAR-Archive werden nicht angenommen. -After logging in, you land on the Overview page, which gives you a snapshot of your security posture across all repositories. +Für CODESYS-Projekte gilt: Die Steuerungslogik lässt sich aus PLCopen-XML-Exporten +oder `.st`-Dateien prüfen, die Stückliste der Bibliotheken braucht das +`.projectarchive`. Die binäre `.project`-Datei allein lässt sich nicht auswerten. +Mehr dazu unter [SPS / PLC (CODESYS)](/guide/plc). -![Dashboard overview showing stats cards, severity distribution, and recent scan activity](/screenshots/dashboard-overview.png) +## 1. Prüfwerk öffnen -The overview shows key metrics at a glance: total repositories, findings broken down by severity, dependency counts, CVE alerts, and tracker issues. A severity distribution chart visualizes your risk profile, and recent scan runs let you monitor scanning activity. +Melden Sie sich bei der BreakPilot-Plattform an, öffnen Sie Ihren +Arbeitsbereich und wählen Sie **Prüfwerk**. Prüfwerk startet mit der +**Übersicht**. Über **Zur Plattform** in der Seitenleiste kommen Sie zurück. -## Quick Walkthrough +Die Oberfläche ist auf Deutsch; über den Sprachschalter wechseln Sie auf +Englisch. -Here is the fastest path from zero to your first scan results: +## 2. Ein Prüfobjekt anlegen -### 0. Or start with the demo targets +Klicken Sie in der Seitenleiste auf **Neues Prüfobjekt**. Es öffnet sich +**Prüfobjekt anlegen** mit vier Schritten: **Typ**, **Artefakte**, **Prüfen**, +**Fertig**. -An empty workspace offers **Add demo targets** on the Targets page and in the -onboarding wizard. It creates a small curated set — two PLC projects, a -deliberately vulnerable web service and a Zephyr firmware sample — attaches -their files, detects each type and starts the first scans, so there are real -findings to look at within minutes. See [Demo targets](/guide/demo-targets). +### Typ -### 1. Add a repository +Tragen Sie unter **Name** einen Namen ein und beantworten Sie die Frage +**Um welche Art von Software handelt es sich?** Für Maschinen- und +Anlagenbau sind meist diese Typen richtig: -Navigate to **Repositories** in the sidebar and click **Add Repository**. Enter a name, the Git clone URL, and the default branch to scan. - -![Add repository dialog](/screenshots/add-repository.png) - -### 2. Trigger a scan - -Click the **Scan** button on your repository row. The scan runs in the background through all phases: cloning, static analysis, SBOM extraction, CVE checking, graph building, and issue sync. - -### 3. View findings - -Once the scan completes, navigate to **Findings** to see everything that was discovered. Each finding includes a severity level, description, code evidence, and AI-generated remediation guidance. - -![Findings list with filters](/screenshots/findings-list.png) - -## Next Steps - -- [Add and configure repositories](/guide/repositories) -- including private repos and issue tracker setup -- [Understand how scans work](/guide/scanning) -- phases, triggers, and deduplication -- [Work with findings](/guide/findings) -- triage, false positives, and developer feedback -- [Explore your SBOM](/guide/sbom) -- dependencies, licenses, and exports -- [Connect your IDE](/features/mcp-server) -- query findings from an LLM client over MCP - -## Deployment modes (`APP_ENV`) - -`APP_ENV` decides how strict the deployment is about authentication. - -| `APP_ENV` | Behaviour | +| Typ | Wann | |---|---| -| `dev` (default) | Auth may be absent. Without Keycloak the API serves unauthenticated against a synthetic `dev` tenant, CORS is permissive, entitlements are not checked. For a laptop and CI only. | -| `staging`, `production` | *Hardened.* The agent, dashboard and MCP server refuse to start unless authentication is fully configured, and the dev-tenant, permissive-CORS and skip-entitlement paths are unreachable. | +| **SPS / PLC** | Steuerungsprogramme nach IEC 61131-3 (CODESYS, PLCopen XML, Structured Text) | +| **Firmware — RTOS** | Mikrocontroller-Firmware mit Echtzeitbetriebssystem, z. B. Zephyr oder FreeRTOS | +| **Firmware — ohne Betriebssystem** | Mikrocontroller-Firmware ohne Betriebssystem | +| **Embedded Linux / Yocto** | BSP und Image auf Linux-Basis | -A hardened deployment requires `KEYCLOAK_URL`, `KEYCLOAK_REALM`, -`KEYCLOAK_AUDIENCE`, `CORS_ALLOWED_ORIGINS`, `TENANT_REGISTRY_URL`, -`TENANT_REGISTRY_CLIENT_ID`, `TENANT_REGISTRY_CLIENT_SECRET` and -`PLATFORM_ALLOWED_CLIENTS`; the MCP server additionally requires `MCP_PORT`, -since its stdio transport has no tenant authentication. Startup lists every -missing variable at once, so one corrected deploy is enough. +Für Software auf PC oder Server wählen Sie **Webanwendung**, **Backend / API** +oder **Desktop-Anwendung**. -The scheduler follows the same rule: where a tenant registry is configured, its -tenant list is authoritative, and a registry outage skips the tick instead of -falling back to the `dev` tenant. +### Artefakte -## Static-analysis-only environments +Unter **Artefakte hinzufügen** geben Sie an, woher der Code kommt. Wählen Sie +bei **Art**: -Some deployments run with `PW_FEATURES=source_only` — the shared staging -environment does. Dynamic testing needs infrastructure (a browser, a soft-PLC, -network access to a running target) that is not deployed there, so dynamic -application testing, pentest sessions, the ICS probe and the ephemeral PLC -runtime are hidden in the interface, and a scan records those stages as -*skipped* rather than failed. Everything static — SAST, SBOM, CVE, the graph, -AI triage, control mapping — works as documented. +- **Git-Repository**: Tragen Sie die Adresse unter **Referenz (URL / Pfad / Text)** + ein, bei Bedarf den **Branch**. Für ein privates Repository füllen Sie + **Zugangstoken (nur für private Repositories)** aus, gegebenenfalls auch + **Benutzername (optional)**. Mit **+ Hinzufügen** übernehmen Sie das + Repository. +- **Quellcode-Archiv (zip, tar, tar.gz)**: Wählen Sie die **Datei** und klicken + Sie auf **+ Datei hinzufügen**. Ist das Archiv passwortgeschützt, tragen Sie + das Passwort in das Feld **Archiv-Passwort (nur bei passwortgeschützten + Archiven)** neben der Datei ein. +- **SPS-Projekt**: Wählen Sie die Datei und das **Format** (PLCopen XML, + Structured Text oder `.projectarchive`) und klicken Sie auf + **+ Datei hinzufügen**. + +Ein Prüfobjekt kann mehrere Artefakte haben, etwa die Firmware und das +SPS-Programm einer Maschine. + +### Prüfen und anlegen + +Im Schritt **Prüfen** sehen Sie Typ und Artefakte noch einmal. Mit +**Anlegen und prüfen** legt Prüfwerk das Prüfobjekt an, lädt die Dateien hoch +und startet die erste Prüfung. + +## 3. Die erste Prüfung + +Die erste Prüfung startet automatisch. Im Schritt **Fertig** steht +„Die erste Prüfung läuft. Der Fortschritt erscheint unten.“ Darunter sehen Sie +die einzelnen Schritte, zum Beispiel **Statische Codeanalyse (Semgrep)**, +**C/C++-Analyse (cppcheck)**, **Firmware-SBOM** oder +**SPS-Bibliotheken (SBOM)**, und die **Laufzeit**. Prüfungen, die ein +laufendes System brauchen, etwa **Dynamische Prüfung (DAST)**, stehen in der +Testphase unter **Nicht ausgeführt**. + +Je nach Umfang des Codes dauert eine Prüfung einige Minuten. Sie können die +Seite verlassen; die Prüfung läuft weiter. Mit **Zu den Befunden** oder +**Zu den Prüfobjekten** geht es weiter. + +Eine neue Prüfung, etwa nach einer Änderung am Code, starten Sie unter +**Prüfobjekte** mit **Prüfung starten**. Unter **Details** finden Sie den +**Prüfverlauf** aller Prüfungen. + +## 4. Befunde + +Unter **Befunde** stehen alle Ergebnisse der Prüfungen. Die Liste lässt sich +nach Prüfobjekt, Schweregrad (**Kritisch**, **Hoch**, **Mittel**, **Niedrig**), +Art und Status filtern. Jeder Befund zeigt die **Fundstelle** (Datei und +Zeile), das **Werkzeug**, das ihn gefunden hat, und in der Spalte **CRA** die +Anforderungen, für die er relevant ist. + +Ein Klick auf einen Befund öffnet die Einzelheiten: **Beschreibung**, +**Fundstelle**, den betroffenen **Code**, die **CRA-Anforderungen (Anhang I)** +und, wo vorhanden, eine **Behebung**. Mit **Status ändern** halten Sie fest, wie +Sie mit dem Befund umgehen, zum Beispiel **Behoben**, **Fehlalarm** oder +**Risiko akzeptiert** mit einer **Begründung**. Mehr dazu unter +[Befunde](/guide/findings). + +## 5. Stückliste (SBOM) + +Unter **SBOM** steht die Stückliste (SBOM) aller Prüfobjekte: welche +Komponenten in welcher Version enthalten sind, unter welcher Lizenz sie stehen +und welche bekannten Schwachstellen (CVE) für sie gemeldet sind. Dazu gehören +auch Firmware-Komponenten wie FreeRTOS, lwIP, Mbed TLS oder FatFs und die +Bibliotheken eines CODESYS-Projekts. + +- **Pakete**: die Komponenten; der Filter **Mit Schwachstellen** zeigt nur + Komponenten mit bekannten Schwachstellen. +- **Lizenzen**: die Lizenzverteilung, mit einem Hinweis auf Copyleft-Lizenzen. +- **Vergleich**: die Stücklisten zweier Prüfobjekte nebeneinander, etwa zweier + Firmware-Stände. + +Mit **Exportieren** laden Sie die Stückliste eines Prüfobjekts als +CycloneDX 1.5 oder SPDX 2.3 herunter. Mehr dazu unter +[Stückliste (SBOM) und Lizenzen](/guide/sbom). + +## 6. CRA-Status + +Unter **Prüfobjekte** öffnen Sie mit **Details** ein Prüfobjekt und klicken +auf **CRA-Status anzeigen**. Der **CRA-Status** zeigt für jede der 40 +grundlegenden Anforderungen aus Anhang I des Cyber Resilience Act den Stand +dieses Prüfobjekts: + +| Stand | Bedeutung | +|---|---| +| **Nicht erfüllt** | Mindestens ein Befund verstößt gegen die Anforderung; die Befunde sind verlinkt. | +| **Kein Verstoß gefunden** | Eine Prüfregel hat den Code in dieser Sprache geprüft, alle Werkzeuge sind vollständig gelaufen, und es gibt keinen Befund. | +| **Nicht bewertet** | Es fehlt etwas für ein Urteil, zum Beispiel eine Prüfregel für die gefundene Sprache oder ein vollständiger Prüflauf. Der Grund steht dabei. | +| **Nicht im Code prüfbar** | Eine Eigenschaft des Designs oder Prozesses; sie wird im Compliance-Prozess von BreakPilot nachgewiesen. | + +„Kein Verstoß gefunden“ erscheint also nur dort, wo tatsächlich geprüft wurde. +Befunde werden am Code nachgeprüft, bevor sie einer Anforderung zugeordnet +werden. Der CRA-Status zeigt, welche Anforderungen im Code geprüft sind; er ist +keine Konformitätsbewertung. + +## 7. Nachweispaket + +Mit **Nachweispaket herunterladen** (auf der Seite **CRA-Status** und unter +**Details** eines Prüfobjekts) erhalten Sie ein ZIP mit: + +- der Bewertung gegen CRA Anhang I im Format OSCAL, +- der Stückliste als CycloneDX und SPDX, +- den Befunden als JSON und CSV, +- den CVE-Warnungen, +- einem Manifest mit SHA-256-Prüfsummen aller Dateien. + +Dieselben Nachweise stehen der Compliance-Plattform von BreakPilot über API und +MCP zur Verfügung. + +## Befunde aus Pentests und manuellen Tests + +Ergebnisse eines externen Penetrationstests oder eines DAST-Laufs gehören zum +selben Prüfobjekt. Unter **Prüfobjekte** → **Details** → +**Befunde aus manuellen Tests** können Sie einen **Befund erfassen** oder mit +**Bericht importieren** eine Datei im Format SARIF 2.1.0 oder ZAP-JSON +übernehmen. Mehr dazu unter +[Befunde aus manuellen Tests](/guide/manual-findings). + +## Kein Projekt zur Hand? + +Im Schritt **Typ** bietet Prüfwerk einen Demo-Satz an: zwei SPS-Projekte, +einen Dienst mit CRA-Schwachstellen und ein Zephyr-Firmwarebeispiel. So sehen +Sie echte Befunde, bevor Sie eigenen Code hochladen. Siehe +[Demo-Prüfobjekte](/guide/demo-targets). + +## Weiter + +- [SPS / PLC (CODESYS)](/guide/plc): welche Dateien Prüfwerk aus einem + CODESYS-Projekt auswertet +- [Prüfungen](/guide/scanning): wie Prüfungen ausgelöst werden und welche + Schritte sie haben +- [CRA-Anforderungen](/features/control-mapping): wie Befunde den + Anforderungen zugeordnet werden +- [Daten und Aufbewahrung](/guide/data-retention): wo Prüfwerk Ihren Code und + die Ergebnisse speichert und wann sie gelöscht werden + +Die weiterführenden Seiten sind derzeit auf Englisch. diff --git a/docs/index.md b/docs/index.md index c8af8fd..e208c42 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,29 +1,11 @@ --- -layout: home - -hero: - name: Prüfwerk - text: AI-Powered Security Compliance - tagline: Automated SAST, SBOM, DAST, CVE monitoring, and code intelligence for your repositories - actions: - - theme: brand - text: Get Started - link: /guide/getting-started - - theme: alt - text: Features - link: /features/overview - -features: - - title: Smart Findings with AI Triage - details: Every finding is triaged by an LLM that considers severity, blast radius, and codebase context. You get a confidence score, rationale, and remediation guidance -- not just raw scanner output. - - title: SBOM & License Compliance - details: Full software bill of materials with dependency inventory, vulnerability tracking, license compliance analysis, and export to CycloneDX and SPDX formats. - - title: Dynamic Testing (DAST) - details: Black-box security testing of live web applications and APIs. Crawls endpoints, fuzzes parameters, and detects SQL injection, XSS, SSRF, and auth bypass vulnerabilities. - - title: Code Knowledge Graph - details: Interactive visualization of your codebase structure. Understand function calls, class hierarchies, and module dependencies at a glance. - - title: AI-Powered Chat - details: Ask questions about your codebase using RAG-powered AI. Code is embedded and retrieved contextually to give accurate, source-referenced answers. - - title: MCP Integration - details: Expose your security data to LLM tools like Claude and Cursor through the Model Context Protocol. Query findings, SBOMs, and DAST results from any MCP-compatible client. +layout: page +title: Prüfwerk +titleTemplate: CRA-Nachweise aus Ihrem Quellcode +description: Prüfwerk prüft Quellcode, Firmware und SPS-Programme und liefert Nachweise für die Anforderungen aus Anhang I des Cyber Resilience Act. +sidebar: false +aside: false +footer: false --- + + diff --git a/docs/public/logo.svg b/docs/public/logo.svg new file mode 100644 index 0000000..fc4a5c0 --- /dev/null +++ b/docs/public/logo.svg @@ -0,0 +1 @@ +