@aegis-scan/skills 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ATTRIBUTION.md +93 -0
- package/package.json +1 -1
- package/sbom.cdx.json +1 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/.claude-plugin/plugin.json +108 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/CHANGELOG.md +878 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/HANDOVER-LO-LIVE-VERIFICATION-2026-05-15.md +187 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/README.md +9 -3
- package/skills/compliance/aegis-native/brutaler-anwalt/SKILL.md +93 -14
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/audit.md +193 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/avv-redline.md +246 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/az-verify.md +155 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/cold-start.md +157 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/dsar-respond.md +180 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/health.md +50 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/commands/simulate.md +158 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/hooks/post_write.py +315 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/hooks/prompt_submit.py +144 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/hooks/session_start.py +57 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/hooks/triggers.json +191 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/INDEX.md +102 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/abmahn-templates.md +1 -1
- package/skills/compliance/aegis-native/brutaler-anwalt/references/aegis-integration.md +60 -5
- package/skills/compliance/aegis-native/brutaler-anwalt/references/audit-patterns.md +745 -11
- package/skills/compliance/aegis-native/brutaler-anwalt/references/az-auffuellung-batch1.md +468 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/bgh-urteile.md +106 -30
- package/skills/compliance/aegis-native/brutaler-anwalt/references/branchenrecht.md +247 -2
- package/skills/compliance/aegis-native/brutaler-anwalt/references/checklisten.md +75 -2
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-aufsichtsbehoerden-taetigkeitsberichte-2024.md +310 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-bussgeld-argumentations-layer.md +598 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-dsk-beschluesse.md +346 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AGG/audit-relevance.md +76 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AGG/paragraphs.md +115 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AMG/audit-relevance.md +58 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AMG/paragraphs.md +95 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ArbZG/audit-relevance.md +60 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ArbZG/paragraphs.md +90 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/BetrVG/audit-relevance.md +73 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/BetrVG/paragraphs.md +114 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DDG/audit-relevance.md +72 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DDG/paragraphs.md +103 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DiGAV/audit-relevance.md +65 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DiGAV/paragraphs.md +102 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ElektroG/audit-relevance.md +66 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ElektroG/paragraphs.md +108 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/FernUSG/audit-relevance.md +80 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/FernUSG/paragraphs.md +102 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GeschGehG/audit-relevance.md +89 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GeschGehG/paragraphs.md +107 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GwG/audit-relevance.md +62 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GwG/paragraphs.md +119 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HWG/audit-relevance.md +70 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HWG/paragraphs.md +125 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HinSchG/audit-relevance.md +70 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HinSchG/paragraphs.md +116 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/INDEX.md +152 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/KWG/audit-relevance.md +64 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/KWG/paragraphs.md +110 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/LFGB/audit-relevance.md +63 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/LFGB/paragraphs.md +90 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/MPDG/audit-relevance.md +61 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/MPDG/paragraphs.md +96 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/NachwG/audit-relevance.md +54 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/NachwG/paragraphs.md +82 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/PAngV/audit-relevance.md +76 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/PAngV/paragraphs.md +86 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/RDG/audit-relevance.md +84 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/RDG/paragraphs.md +114 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/TDDDG/audit-relevance.md +92 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/TDDDG/paragraphs.md +91 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/UrhG-UrhDaG/audit-relevance.md +85 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/UrhG-UrhDaG/paragraphs.md +166 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VDuG/audit-relevance.md +71 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VDuG/paragraphs.md +102 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VERIFICATION-NOTES.md +111 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VVG/audit-relevance.md +65 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VVG/paragraphs.md +101 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VerpackG/audit-relevance.md +62 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VerpackG/paragraphs.md +120 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/WpHG/audit-relevance.md +64 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/WpHG/paragraphs.md +120 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ZAG/audit-relevance.md +68 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ZAG/paragraphs.md +110 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/dsgvo.md +55 -8
- package/skills/compliance/aegis-native/brutaler-anwalt/references/eu-edpb-guidelines.md +505 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/eu-eugh-dsgvo-schadensersatz.md +223 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BDSG/audit-relevance.md +31 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BFSG/audit-relevance.md +39 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BGB/audit-relevance.md +42 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DDG/audit-relevance.md +28 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DSGVO/audit-relevance.md +35 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/articles.md +4 -1
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/audit-relevance.md +139 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/gpai-pflichten.md +102 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/hochrisiko-annex-iii.md +134 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/sanktionen-art-99.md +97 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/transparenz-art-50.md +120 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/uebergangsfristen.md +109 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CER-2022-2557/articles.md +42 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CRA-2024-2847/articles.md +87 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CSDDD-2024-1760/articles.md +43 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CSRD-2022-2464/articles.md +42 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DGA-2022-868/articles.md +53 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DMA-2022-1925/articles.md +55 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DORA-2022-2554/articles.md +164 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DORA-2022-2554/audit-relevance.md +86 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/articles.md +3 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/audit-relevance.md +110 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/notice-and-action.md +138 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/small-platform-pflichten.md +109 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/trusted-flaggers.md +77 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/vlop-vlose.md +130 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/Data-Act-2023-2854/articles.md +102 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/Data-Act-2023-2854/audit-relevance.md +77 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/MiCA-2023-1114/articles.md +124 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/MiCA-2023-1114/audit-relevance.md +85 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/NIS2-2022-2555/articles.md +101 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/ProdHaftRL-2024-2853/articles.md +68 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/eIDAS-2024-1183/articles.md +43 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/Finance/KWG.md +52 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/Finance/PSD2.md +67 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/Finance/ZAG.md +50 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/GlueStV/articles.md +86 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/HGB-AO/audit-relevance.md +27 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/HinSchG/articles.md +96 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/JuSchG-JMStV/articles.md +86 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/KritisDachG/articles.md +39 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/LkSG/articles.md +90 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/MedTech/DiGAV.md +60 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/MedTech/IVDR-2017-746.md +51 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/MedTech/MDR-2017-745.md +85 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/NIS2UmsuCG-BSIG/articles.md +53 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/StGB/relevante-paragraphen.md +157 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TDDDG/audit-relevance.md +33 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TDDDG/paragraphs.md +3 -2
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TKG/articles.md +73 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/UWG/audit-relevance.md +39 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/UWG/paragraphs.md +71 -3
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/VERIFICATION-STATUS.md +266 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/VSBG/audit-relevance.md +37 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/ePrivacy-RL-2002-58/articles.md +92 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/ePrivacy-RL-2002-58/audit-relevance.md +62 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/it-recht.md +115 -9
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/INDEX.md +1 -1
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/ai/anthropic-dpa.md +87 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/astro/cookie-banner-pattern.md +202 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/astro/dse-section-pattern.md +198 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/astro/tracking-server-endpoint.md +193 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/auth0-tom.md +92 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/clerk-tom.md +84 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/django/auth-cookies-pattern.md +295 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/django/cookie-banner-pattern.md +318 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/django/gdpr-cleanup-celery.md +339 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/express/cookie-banner-pattern.md +237 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/express/gdpr-routes-pattern.md +256 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/express/helmet-csp-pattern.md +207 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/agb-versioning-pattern.md +305 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/cookie-banner-pattern.md +287 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/gdpr-models-pattern.md +290 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/tracking-config-pattern.md +263 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/auth-pattern.md +265 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/cookie-banner-pattern.md +255 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/gdpr-cleanup-cron.md +244 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/tracking-interceptor.md +239 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/api-route-bearer-auth.md +103 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/dynamic-rendering-headers.md +83 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/env-driven-tracking.md +135 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/rails/cookie-banner-pattern.md +294 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/rails/devise-dsgvo-pattern.md +262 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/rails/gdpr-anonymization-pattern.md +283 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/react/consent-gate-pattern.md +99 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/react/cookie-banner-pattern.md +204 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/strapi/cms-pii-pattern.md +301 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/strapi/notice-and-action-plugin.md +371 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/svelte/cookie-banner-pattern.md +234 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/svelte/dse-section-pattern.md +231 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/svelte/sveltekit-server-hooks-pattern.md +217 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/tracking/google-analytics-consent.md +129 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/tracking/posthog-consent.md +79 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/cookie-banner-pattern.md +208 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/dse-i18n-pattern.md +204 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/nuxt-vs-vue-only-pattern.md +197 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/tracking-pinia-pattern.md +211 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/strafrecht-steuer.md +1 -1
- package/skills/compliance/aegis-native/brutaler-anwalt/references/streitwerte.json +176 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/DSFA-template.md +80 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/VVT-template-file-upload.md +98 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-EN-international.md +267 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-Audit-Klausel-Varianten.md +148 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-CH-revDSG.md +127 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-SCC-module2-controller-processor.md +180 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-SCC-module3-processor-subprocessor.md +144 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-Sub-Processor-List.md +114 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-TOMs.md +197 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-UK-IDTA.md +131 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-standard-DE.md +288 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/Joint-Controller-Vertrag-Art-26.md +265 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/scripts/health-check.sh +190 -48
- package/skills/compliance/aegis-native/brutaler-anwalt/scripts/test-triggers.sh +145 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/settings.json +90 -0
- package/skills/defensive/permoon-fork/README.md +40 -0
- package/skills/defensive/permoon-fork/multi-model-consolidation/SKILL.md +47 -0
- package/skills/defensive/permoon-fork/multi-model-severity/SKILL.md +34 -0
- package/skills/defensive/permoon-fork/multi-model-system-prompt/SKILL.md +40 -0
- package/skills/foundation/aegis-native/aegis-handover-writer/SKILL.md +1 -1
- package/skills/foundation/aegis-native/aegis-quality-gates/SKILL.md +1 -1
- package/skills/offensive/airecon-fork/ctf-crypto/SKILL.md +260 -0
- package/skills/offensive/airecon-fork/ctf-crypto-modern-ciphers/SKILL.md +688 -0
- package/skills/offensive/airecon-fork/ctf-forensics/SKILL.md +253 -0
- package/skills/offensive/airecon-fork/ctf-forensics-network/SKILL.md +480 -0
- package/skills/offensive/airecon-fork/ctf-heap-advanced/SKILL.md +336 -0
- package/skills/offensive/airecon-fork/ctf-pwn/SKILL.md +294 -0
- package/skills/offensive/airecon-fork/ctf-pwn-rop-and-shellcode/SKILL.md +392 -0
- package/skills/offensive/airecon-fork/ctf-reversing/SKILL.md +284 -0
- package/skills/offensive/airecon-fork/frameworks-django/SKILL.md +268 -0
- package/skills/offensive/airecon-fork/frameworks-dotnet/SKILL.md +280 -0
- package/skills/offensive/airecon-fork/frameworks-express/SKILL.md +266 -0
- package/skills/offensive/airecon-fork/frameworks-fastapi/SKILL.md +193 -0
- package/skills/offensive/airecon-fork/frameworks-flask/SKILL.md +297 -0
- package/skills/offensive/airecon-fork/frameworks-laravel/SKILL.md +260 -0
- package/skills/offensive/airecon-fork/frameworks-nextjs/SKILL.md +230 -0
- package/skills/offensive/airecon-fork/frameworks-php/SKILL.md +271 -0
- package/skills/offensive/airecon-fork/frameworks-rails/SKILL.md +269 -0
- package/skills/offensive/airecon-fork/frameworks-spring/SKILL.md +245 -0
- package/skills/offensive/airecon-fork/frameworks-wordpress/SKILL.md +348 -0
- package/skills/offensive/airecon-fork/payloads-command-injection/SKILL.md +459 -0
- package/skills/offensive/airecon-fork/payloads-http-parameter-pollution/SKILL.md +129 -0
- package/skills/offensive/airecon-fork/payloads-ldap-injection/SKILL.md +100 -0
- package/skills/offensive/airecon-fork/payloads-lfi/SKILL.md +485 -0
- package/skills/offensive/airecon-fork/payloads-sqli/SKILL.md +419 -0
- package/skills/offensive/airecon-fork/payloads-ssrf/SKILL.md +125 -0
- package/skills/offensive/airecon-fork/payloads-ssti/SKILL.md +443 -0
- package/skills/offensive/airecon-fork/payloads-xss/SKILL.md +447 -0
- package/skills/offensive/airecon-fork/payloads-xxe/SKILL.md +172 -0
- package/skills/offensive/airecon-fork/postexploit-ad-credential-attacks/SKILL.md +306 -0
- package/skills/offensive/airecon-fork/postexploit-container-escape/SKILL.md +299 -0
- package/skills/offensive/airecon-fork/postexploit-credential-dumping/SKILL.md +249 -0
- package/skills/offensive/airecon-fork/postexploit-lateral-movement/SKILL.md +194 -0
- package/skills/offensive/airecon-fork/postexploit-linux-privesc/SKILL.md +252 -0
- package/skills/offensive/airecon-fork/postexploit-netexec-workflow/SKILL.md +302 -0
- package/skills/offensive/airecon-fork/postexploit-pivoting/SKILL.md +205 -0
- package/skills/offensive/airecon-fork/postexploit-windows-privesc/SKILL.md +210 -0
- package/skills/offensive/airecon-fork/protocols-active-directory/SKILL.md +314 -0
- package/skills/offensive/airecon-fork/protocols-dns/SKILL.md +203 -0
- package/skills/offensive/airecon-fork/protocols-ftp/SKILL.md +159 -0
- package/skills/offensive/airecon-fork/protocols-graphql/SKILL.md +648 -0
- package/skills/offensive/airecon-fork/protocols-kerberos/SKILL.md +168 -0
- package/skills/offensive/airecon-fork/protocols-ldap/SKILL.md +245 -0
- package/skills/offensive/airecon-fork/protocols-rdp/SKILL.md +186 -0
- package/skills/offensive/airecon-fork/protocols-smb/SKILL.md +191 -0
- package/skills/offensive/airecon-fork/protocols-smtp-imap/SKILL.md +263 -0
- package/skills/offensive/airecon-fork/protocols-snmp/SKILL.md +147 -0
- package/skills/offensive/airecon-fork/protocols-ssh/SKILL.md +287 -0
- package/skills/offensive/airecon-fork/reconnaissance-asn-whois-osint/SKILL.md +236 -0
- package/skills/offensive/airecon-fork/reconnaissance-ctf-methodology/SKILL.md +435 -0
- package/skills/offensive/airecon-fork/reconnaissance-dorking/SKILL.md +182 -0
- package/skills/offensive/airecon-fork/reconnaissance-exposed-devtools-detection/SKILL.md +513 -0
- package/skills/offensive/airecon-fork/reconnaissance-full-recon/SKILL.md +305 -0
- package/skills/offensive/airecon-fork/reconnaissance-internal-pentest/SKILL.md +202 -0
- package/skills/offensive/airecon-fork/reconnaissance-javascript-analysis/SKILL.md +167 -0
- package/skills/offensive/airecon-fork/reconnaissance-js-internal-hostname-intelligence/SKILL.md +391 -0
- package/skills/offensive/airecon-fork/reconnaissance-monitoring-secrets-exposure/SKILL.md +394 -0
- package/skills/offensive/airecon-fork/reconnaissance-shodan-censys/SKILL.md +279 -0
- package/skills/offensive/airecon-fork/reconnaissance-subdomain-enum/SKILL.md +952 -0
- package/skills/offensive/airecon-fork/technologies-cicd-attacks/SKILL.md +283 -0
- package/skills/offensive/airecon-fork/technologies-cloud-security/SKILL.md +299 -0
- package/skills/offensive/airecon-fork/technologies-docker-container/SKILL.md +266 -0
- package/skills/offensive/airecon-fork/technologies-elasticsearch/SKILL.md +226 -0
- package/skills/offensive/airecon-fork/technologies-firebase-firestore/SKILL.md +213 -0
- package/skills/offensive/airecon-fork/technologies-frida-hooking/SKILL.md +387 -0
- package/skills/offensive/airecon-fork/technologies-gitlab-github/SKILL.md +259 -0
- package/skills/offensive/airecon-fork/technologies-jenkins/SKILL.md +256 -0
- package/skills/offensive/airecon-fork/technologies-kubernetes-pentest/SKILL.md +281 -0
- package/skills/offensive/airecon-fork/technologies-memcached/SKILL.md +230 -0
- package/skills/offensive/airecon-fork/technologies-mobile-app-pentesting/SKILL.md +105 -0
- package/skills/offensive/airecon-fork/technologies-mongodb/SKILL.md +257 -0
- package/skills/offensive/airecon-fork/technologies-nginx-apache/SKILL.md +280 -0
- package/skills/offensive/airecon-fork/technologies-observability-stack-attacks/SKILL.md +501 -0
- package/skills/offensive/airecon-fork/technologies-redis/SKILL.md +236 -0
- package/skills/offensive/airecon-fork/technologies-supabase/SKILL.md +270 -0
- package/skills/offensive/airecon-fork/technologies-tomcat/SKILL.md +232 -0
- package/skills/offensive/airecon-fork/tools-advanced-fuzzing/SKILL.md +351 -0
- package/skills/offensive/airecon-fork/tools-browser-automation/SKILL.md +300 -0
- package/skills/offensive/airecon-fork/tools-caido/SKILL.md +776 -0
- package/skills/offensive/airecon-fork/tools-code-review/SKILL.md +71 -0
- package/skills/offensive/airecon-fork/tools-dalfox/SKILL.md +189 -0
- package/skills/offensive/airecon-fork/tools-hashcat-john/SKILL.md +258 -0
- package/skills/offensive/airecon-fork/tools-impacket/SKILL.md +227 -0
- package/skills/offensive/airecon-fork/tools-install/SKILL.md +202 -0
- package/skills/offensive/airecon-fork/tools-metasploit/SKILL.md +270 -0
- package/skills/offensive/airecon-fork/tools-nmap/SKILL.md +211 -0
- package/skills/offensive/airecon-fork/tools-nuclei/SKILL.md +175 -0
- package/skills/offensive/airecon-fork/tools-reporting/SKILL.md +47 -0
- package/skills/offensive/airecon-fork/tools-scripting/SKILL.md +1939 -0
- package/skills/offensive/airecon-fork/tools-semgrep/SKILL.md +202 -0
- package/skills/offensive/airecon-fork/tools-source-audit/SKILL.md +308 -0
- package/skills/offensive/airecon-fork/tools-sqlmap/SKILL.md +137 -0
- package/skills/offensive/airecon-fork/tools-tool-catalog/SKILL.md +320 -0
- package/skills/offensive/airecon-fork/tools-wapiti/SKILL.md +293 -0
- package/skills/offensive/airecon-fork/vulnerabilities-2fa-bypass/SKILL.md +219 -0
- package/skills/offensive/airecon-fork/vulnerabilities-account-takeover/SKILL.md +223 -0
- package/skills/offensive/airecon-fork/vulnerabilities-api-schema-exposure/SKILL.md +849 -0
- package/skills/offensive/airecon-fork/vulnerabilities-api-testing/SKILL.md +278 -0
- package/skills/offensive/airecon-fork/vulnerabilities-auth-workflow/SKILL.md +252 -0
- package/skills/offensive/airecon-fork/vulnerabilities-authentication-jwt/SKILL.md +158 -0
- package/skills/offensive/airecon-fork/vulnerabilities-bfla/SKILL.md +156 -0
- package/skills/offensive/airecon-fork/vulnerabilities-blind-xss/SKILL.md +111 -0
- package/skills/offensive/airecon-fork/vulnerabilities-business-logic/SKILL.md +313 -0
- package/skills/offensive/airecon-fork/vulnerabilities-cors/SKILL.md +242 -0
- package/skills/offensive/airecon-fork/vulnerabilities-crlf-injection/SKILL.md +146 -0
- package/skills/offensive/airecon-fork/vulnerabilities-csrf/SKILL.md +200 -0
- package/skills/offensive/airecon-fork/vulnerabilities-csrf-advanced-bypass/SKILL.md +536 -0
- package/skills/offensive/airecon-fork/vulnerabilities-deserialization/SKILL.md +363 -0
- package/skills/offensive/airecon-fork/vulnerabilities-dom-based-vulnerabilities/SKILL.md +105 -0
- package/skills/offensive/airecon-fork/vulnerabilities-exploitation/SKILL.md +286 -0
- package/skills/offensive/airecon-fork/vulnerabilities-grpc/SKILL.md +123 -0
- package/skills/offensive/airecon-fork/vulnerabilities-host-header-injection/SKILL.md +169 -0
- package/skills/offensive/airecon-fork/vulnerabilities-http-smuggling/SKILL.md +411 -0
- package/skills/offensive/airecon-fork/vulnerabilities-idor/SKILL.md +705 -0
- package/skills/offensive/airecon-fork/vulnerabilities-information-disclosure/SKILL.md +867 -0
- package/skills/offensive/airecon-fork/vulnerabilities-insecure-file-uploads/SKILL.md +190 -0
- package/skills/offensive/airecon-fork/vulnerabilities-jwt-attacks/SKILL.md +270 -0
- package/skills/offensive/airecon-fork/vulnerabilities-kubernetes/SKILL.md +252 -0
- package/skills/offensive/airecon-fork/vulnerabilities-mass-assignment/SKILL.md +788 -0
- package/skills/offensive/airecon-fork/vulnerabilities-nosql-injection/SKILL.md +204 -0
- package/skills/offensive/airecon-fork/vulnerabilities-oauth-misconfig/SKILL.md +220 -0
- package/skills/offensive/airecon-fork/vulnerabilities-oauth-saml/SKILL.md +163 -0
- package/skills/offensive/airecon-fork/vulnerabilities-open-redirect/SKILL.md +167 -0
- package/skills/offensive/airecon-fork/vulnerabilities-password-reset-poisoning/SKILL.md +66 -0
- package/skills/offensive/airecon-fork/vulnerabilities-path-traversal/SKILL.md +192 -0
- package/skills/offensive/airecon-fork/vulnerabilities-privilege-escalation/SKILL.md +320 -0
- package/skills/offensive/airecon-fork/vulnerabilities-prototype-pollution/SKILL.md +242 -0
- package/skills/offensive/airecon-fork/vulnerabilities-race-conditions/SKILL.md +192 -0
- package/skills/offensive/airecon-fork/vulnerabilities-rce/SKILL.md +240 -0
- package/skills/offensive/airecon-fork/vulnerabilities-sensitive-file-pii-exposure/SKILL.md +589 -0
- package/skills/offensive/airecon-fork/vulnerabilities-spring4shell/SKILL.md +86 -0
- package/skills/offensive/airecon-fork/vulnerabilities-sql-injection/SKILL.md +313 -0
- package/skills/offensive/airecon-fork/vulnerabilities-ssrf/SKILL.md +183 -0
- package/skills/offensive/airecon-fork/vulnerabilities-ssti/SKILL.md +344 -0
- package/skills/offensive/airecon-fork/vulnerabilities-subdomain-takeover/SKILL.md +160 -0
- package/skills/offensive/airecon-fork/vulnerabilities-supply-chain/SKILL.md +125 -0
- package/skills/offensive/airecon-fork/vulnerabilities-unhandled-exception-differential/SKILL.md +742 -0
- package/skills/offensive/airecon-fork/vulnerabilities-waf-detection/SKILL.md +90 -0
- package/skills/offensive/airecon-fork/vulnerabilities-web-cache-poisoning/SKILL.md +233 -0
- package/skills/offensive/airecon-fork/vulnerabilities-websocket/SKILL.md +180 -0
- package/skills/offensive/airecon-fork/vulnerabilities-xss/SKILL.md +316 -0
- package/skills/offensive/airecon-fork/vulnerabilities-xxe/SKILL.md +222 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
---
|
|
2
|
+
license: MIT (snippet)
|
|
3
|
+
provider: Laravel + Spatie/Versionable (Open-Source)
|
|
4
|
+
last-checked: 2026-05-05
|
|
5
|
+
purpose: Laravel AGB-/DSE-Versioning-Pattern fuer Nachweis von Vertragsversionen je User.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Laravel — AGB/DSE-Versioning Pattern
|
|
9
|
+
|
|
10
|
+
## Trigger / Detection
|
|
11
|
+
|
|
12
|
+
Repo enthaelt:
|
|
13
|
+
- `spatie/laravel-versionable` oder `tightenco/ziggy-versionable` Package
|
|
14
|
+
- Models mit `Versionable` Trait
|
|
15
|
+
- Tabellen `agb_versions`, `privacy_versions`, `consent_versions`
|
|
16
|
+
- Optional: User-Tabelle mit `current_agb_version` Column
|
|
17
|
+
|
|
18
|
+
## Default-Verhalten (was passiert ohne Konfiguration)
|
|
19
|
+
|
|
20
|
+
- AGB-aenderungen erfolgen direkt in `resources/views/legal/agb.blade.php` ohne Versionierung
|
|
21
|
+
- User-Akzeptanz wird beim Signup gespeichert, aber Version unbekannt
|
|
22
|
+
- Bei spaeteren AGB-aenderungen kein Re-Confirm-Workflow → Vertrag-Drift
|
|
23
|
+
- Audit-Trail "Welcher User akzeptierte welche Version wann" fehlt
|
|
24
|
+
- DSE-aenderung ohne Banner-Re-Show → User merkt es nicht
|
|
25
|
+
|
|
26
|
+
## Compliance-Risiken
|
|
27
|
+
|
|
28
|
+
| Risiko | Norm | Severity | Fix |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| Kein Versions-Nachweis | Art. 5 Abs. 2 DSGVO Rechenschaft | KRITISCH | Versions-Tabelle mit Hash + Date |
|
|
31
|
+
| AGB-Drift ohne Re-Confirm | § 305 BGB Wirksamkeit | KRITISCH | Banner bei jeder Major-Version |
|
|
32
|
+
| Privacy-Update ohne Notification | Art. 13/14 DSGVO | HOCH | E-Mail + Banner-Force-Show |
|
|
33
|
+
| Hash-Manipulation moeglich | Art. 32 DSGVO | MITTEL | Append-Only Tabelle + DB-Trigger |
|
|
34
|
+
| Keine Diff-Sichtbarkeit fuer User | Art. 12 DSGVO Klarheit | MITTEL | Diff-Page `/datenschutz/diff?from=2.0&to=2.3` |
|
|
35
|
+
|
|
36
|
+
## Code-Pattern (sanitized)
|
|
37
|
+
|
|
38
|
+
```php
|
|
39
|
+
// File: database/migrations/2026_05_05_create_legal_versions.php
|
|
40
|
+
<?php
|
|
41
|
+
|
|
42
|
+
use Illuminate\Database\Migrations\Migration;
|
|
43
|
+
use Illuminate\Database\Schema\Blueprint;
|
|
44
|
+
use Illuminate\Support\Facades\Schema;
|
|
45
|
+
|
|
46
|
+
return new class extends Migration {
|
|
47
|
+
public function up(): void
|
|
48
|
+
{
|
|
49
|
+
Schema::create('legal_versions', function (Blueprint $table) {
|
|
50
|
+
$table->id();
|
|
51
|
+
$table->string('section', 32); // 'agb', 'privacy', 'cookie'
|
|
52
|
+
$table->string('version', 16); // '2.3'
|
|
53
|
+
$table->text('content');
|
|
54
|
+
$table->string('content_hash', 64); // SHA-256
|
|
55
|
+
$table->string('author', 100);
|
|
56
|
+
$table->timestamp('published_at');
|
|
57
|
+
$table->boolean('is_major')->default(false);
|
|
58
|
+
$table->timestamps();
|
|
59
|
+
|
|
60
|
+
$table->unique(['section', 'version']);
|
|
61
|
+
$table->index(['section', 'published_at']);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
Schema::create('user_legal_acceptances', function (Blueprint $table) {
|
|
65
|
+
$table->id();
|
|
66
|
+
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
|
|
67
|
+
$table->foreignId('legal_version_id')->constrained();
|
|
68
|
+
$table->string('ip_hash', 16);
|
|
69
|
+
$table->string('user_agent', 200);
|
|
70
|
+
$table->timestamp('accepted_at');
|
|
71
|
+
$table->timestamps();
|
|
72
|
+
|
|
73
|
+
$table->unique(['user_id', 'legal_version_id']);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public function down(): void
|
|
78
|
+
{
|
|
79
|
+
Schema::dropIfExists('user_legal_acceptances');
|
|
80
|
+
Schema::dropIfExists('legal_versions');
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
```php
|
|
86
|
+
// File: app/Models/LegalVersion.php
|
|
87
|
+
<?php
|
|
88
|
+
|
|
89
|
+
namespace App\Models;
|
|
90
|
+
|
|
91
|
+
use Illuminate\Database\Eloquent\Model;
|
|
92
|
+
|
|
93
|
+
class LegalVersion extends Model
|
|
94
|
+
{
|
|
95
|
+
protected $fillable = ['section', 'version', 'content', 'content_hash', 'author', 'published_at', 'is_major'];
|
|
96
|
+
|
|
97
|
+
protected $casts = [
|
|
98
|
+
'published_at' => 'datetime',
|
|
99
|
+
'is_major' => 'boolean',
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
public function acceptances()
|
|
103
|
+
{
|
|
104
|
+
return $this->hasMany(UserLegalAcceptance::class);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
protected static function booted()
|
|
108
|
+
{
|
|
109
|
+
// Append-Only: kein Update, kein Delete
|
|
110
|
+
static::updating(function () {
|
|
111
|
+
throw new \RuntimeException('LegalVersion ist append-only (Beweisfunktion)');
|
|
112
|
+
});
|
|
113
|
+
static::deleting(function () {
|
|
114
|
+
throw new \RuntimeException('LegalVersion ist append-only');
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// Hash automatisch berechnen
|
|
118
|
+
static::creating(function (self $model) {
|
|
119
|
+
$model->content_hash = hash('sha256', $model->content);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
public static function latest(string $section): ?self
|
|
124
|
+
{
|
|
125
|
+
return self::where('section', $section)
|
|
126
|
+
->orderByDesc('published_at')
|
|
127
|
+
->first();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
```php
|
|
133
|
+
// File: app/Models/UserLegalAcceptance.php
|
|
134
|
+
<?php
|
|
135
|
+
|
|
136
|
+
namespace App\Models;
|
|
137
|
+
|
|
138
|
+
use Illuminate\Database\Eloquent\Model;
|
|
139
|
+
|
|
140
|
+
class UserLegalAcceptance extends Model
|
|
141
|
+
{
|
|
142
|
+
protected $fillable = ['user_id', 'legal_version_id', 'ip_hash', 'user_agent', 'accepted_at'];
|
|
143
|
+
|
|
144
|
+
protected $casts = ['accepted_at' => 'datetime'];
|
|
145
|
+
|
|
146
|
+
protected static function booted()
|
|
147
|
+
{
|
|
148
|
+
static::updating(function () {
|
|
149
|
+
throw new \RuntimeException('Acceptance ist append-only');
|
|
150
|
+
});
|
|
151
|
+
static::deleting(function () {
|
|
152
|
+
// Erlaubt nur Cascade von User::forceDelete (Hard-Delete-Cron)
|
|
153
|
+
if (!app()->runningInConsole()) {
|
|
154
|
+
throw new \RuntimeException('Acceptance darf nur via Cron geloescht werden');
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
```php
|
|
162
|
+
// File: app/Http/Middleware/EnforceLatestLegal.php
|
|
163
|
+
<?php
|
|
164
|
+
|
|
165
|
+
namespace App\Http\Middleware;
|
|
166
|
+
|
|
167
|
+
use Closure;
|
|
168
|
+
use Illuminate\Http\Request;
|
|
169
|
+
use App\Models\LegalVersion;
|
|
170
|
+
use App\Models\UserLegalAcceptance;
|
|
171
|
+
|
|
172
|
+
class EnforceLatestLegal
|
|
173
|
+
{
|
|
174
|
+
public function handle(Request $request, Closure $next)
|
|
175
|
+
{
|
|
176
|
+
$user = $request->user();
|
|
177
|
+
if (!$user) return $next($request);
|
|
178
|
+
|
|
179
|
+
// Pruefe nur major-versions
|
|
180
|
+
$latestAgb = LegalVersion::latest('agb');
|
|
181
|
+
$latestPrivacy = LegalVersion::latest('privacy');
|
|
182
|
+
|
|
183
|
+
$missingAcceptances = [];
|
|
184
|
+
|
|
185
|
+
foreach (['agb' => $latestAgb, 'privacy' => $latestPrivacy] as $section => $version) {
|
|
186
|
+
if (!$version || !$version->is_major) continue;
|
|
187
|
+
|
|
188
|
+
$accepted = UserLegalAcceptance::where('user_id', $user->id)
|
|
189
|
+
->where('legal_version_id', $version->id)
|
|
190
|
+
->exists();
|
|
191
|
+
|
|
192
|
+
if (!$accepted) {
|
|
193
|
+
$missingAcceptances[] = $section;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (!empty($missingAcceptances) && !$request->is('legal/accept*')) {
|
|
198
|
+
return redirect()->route('legal.accept-required', [
|
|
199
|
+
'sections' => implode(',', $missingAcceptances),
|
|
200
|
+
]);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return $next($request);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
```php
|
|
209
|
+
// File: app/Http/Controllers/LegalAcceptanceController.php
|
|
210
|
+
<?php
|
|
211
|
+
|
|
212
|
+
namespace App\Http\Controllers;
|
|
213
|
+
|
|
214
|
+
use Illuminate\Http\Request;
|
|
215
|
+
use App\Models\LegalVersion;
|
|
216
|
+
use App\Models\UserLegalAcceptance;
|
|
217
|
+
|
|
218
|
+
class LegalAcceptanceController extends Controller
|
|
219
|
+
{
|
|
220
|
+
public function accept(Request $request)
|
|
221
|
+
{
|
|
222
|
+
$request->validate([
|
|
223
|
+
'sections' => 'required|array',
|
|
224
|
+
'sections.*' => 'in:agb,privacy,cookie',
|
|
225
|
+
]);
|
|
226
|
+
|
|
227
|
+
$user = $request->user();
|
|
228
|
+
$ipHash = substr(hash('sha256', $request->ip() . config('app.ip_hash_salt')), 0, 16);
|
|
229
|
+
|
|
230
|
+
foreach ($request->input('sections') as $section) {
|
|
231
|
+
$version = LegalVersion::latest($section);
|
|
232
|
+
if (!$version) continue;
|
|
233
|
+
|
|
234
|
+
UserLegalAcceptance::firstOrCreate([
|
|
235
|
+
'user_id' => $user->id,
|
|
236
|
+
'legal_version_id' => $version->id,
|
|
237
|
+
], [
|
|
238
|
+
'ip_hash' => $ipHash,
|
|
239
|
+
'user_agent' => substr($request->userAgent() ?? '', 0, 200),
|
|
240
|
+
'accepted_at' => now(),
|
|
241
|
+
]);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return response()->noContent();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## AVV / DPA
|
|
250
|
+
|
|
251
|
+
- Datenbank — append-only-Garantie via DB-Trigger optional ergaenzen
|
|
252
|
+
- Mailer fuer Notification-Mails — AVV
|
|
253
|
+
- Diff-Service (sofern external z.B. Diff2HTML) — kein AVV wenn nur public-Texte verglichen werden
|
|
254
|
+
|
|
255
|
+
## DSE-Wording-Vorlage
|
|
256
|
+
|
|
257
|
+
```markdown
|
|
258
|
+
### Versions-Historie und Aktualisierungen
|
|
259
|
+
|
|
260
|
+
Wir versionieren unsere Datenschutzerklaerung und AGB nachvollziehbar:
|
|
261
|
+
|
|
262
|
+
**Aktuelle Versionen:**
|
|
263
|
+
- Datenschutzerklaerung: Version <placeholder-version>, Stand <placeholder-date>
|
|
264
|
+
- AGB: Version <placeholder-version>, Stand <placeholder-date>
|
|
265
|
+
|
|
266
|
+
**Frueher veroeffentlichte Versionen:** auf Anfrage verfuegbar (E-Mail an
|
|
267
|
+
<placeholder-email>) — wir koennen den genauen Wortlaut zum Zeitpunkt
|
|
268
|
+
Ihrer Registrierung jederzeit nachweisen (SHA-256-Hash gespeichert).
|
|
269
|
+
|
|
270
|
+
**Bei wesentlichen aenderungen** (Major-Version) bitten wir Sie beim
|
|
271
|
+
naechsten Login um erneute Zustimmung. Bis zur Bestaetigung wird Ihr
|
|
272
|
+
Account auf den Bestaetigungs-Workflow umgeleitet.
|
|
273
|
+
|
|
274
|
+
**Rechtsgrundlage:** § 305 BGB (Wirksame Einbeziehung von AGB) i.V.m.
|
|
275
|
+
Art. 5 Abs. 2 DSGVO (Rechenschaftspflicht).
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Verify-Commands (Live-Probe)
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# 1. Hash-Wirksamkeit pruefen
|
|
282
|
+
php artisan tinker
|
|
283
|
+
# > $v = LegalVersion::first(); hash('sha256', $v->content) === $v->content_hash;
|
|
284
|
+
# Erwartung: true
|
|
285
|
+
|
|
286
|
+
# 2. Append-only-Schutz
|
|
287
|
+
# > $v->content = 'modified'; $v->save();
|
|
288
|
+
# Erwartung: RuntimeException
|
|
289
|
+
|
|
290
|
+
# 3. Re-Confirm-Workflow
|
|
291
|
+
# Setze neue is_major-Version, login als User, navigiere zu /dashboard
|
|
292
|
+
# Erwartung: Redirect zu /legal/accept-required?sections=agb
|
|
293
|
+
|
|
294
|
+
# 4. Audit-Log-Vollstaendigkeit
|
|
295
|
+
# DB-Query: SELECT user_id, legal_version_id, accepted_at FROM user_legal_acceptances WHERE user_id = '<test>';
|
|
296
|
+
# Erwartung: Eintrag pro Major-Version
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## Cross-References
|
|
300
|
+
|
|
301
|
+
- AEGIS-Scanner: `legal-versioning-checker.ts`, `audit-trail-checker.ts`
|
|
302
|
+
- Skill-Reference: `references/dsgvo.md` Art. 5 Abs. 2 (Rechenschaft), Art. 13/14 (Information)
|
|
303
|
+
- BGB: § 305 (Einbeziehung AGB)
|
|
304
|
+
- BGH-Rechtsprechung: `references/bgh-urteile.md`
|
|
305
|
+
- Audit-Pattern: `references/audit-patterns.md` Phase 1 (DSE-Vollstaendigkeit), Phase 8 (Re-Confirm)
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
license: MIT (snippet)
|
|
3
|
+
provider: Laravel + Spatie/cookie-consent (Open-Source)
|
|
4
|
+
last-checked: 2026-05-05
|
|
5
|
+
purpose: Laravel Blade-Component fuer Cookie-Banner mit Spatie/Cookie-Consent-Package.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Laravel — Cookie-Banner (Pattern)
|
|
9
|
+
|
|
10
|
+
## Trigger / Detection
|
|
11
|
+
|
|
12
|
+
Repo enthaelt:
|
|
13
|
+
- `laravel/framework` in `composer.json`
|
|
14
|
+
- `resources/views/**/*.blade.php` Templates
|
|
15
|
+
- `app/Http/Controllers/*` Controller
|
|
16
|
+
- Optional: `spatie/laravel-cookie-consent` Package
|
|
17
|
+
|
|
18
|
+
## Default-Verhalten (was passiert ohne Konfiguration)
|
|
19
|
+
|
|
20
|
+
- Laravel-Default-Cookie-Encryption gilt fuer alle Cookies — Performance-Hit
|
|
21
|
+
- `cookie('name', $value)` ohne `secure(true)` → unsicher in Prod
|
|
22
|
+
- Tracker-Scripts in Layout-Blade direkt eingebunden → laufen vor Consent
|
|
23
|
+
- Session-Cookies ohne `same_site=lax` Default in alten Versionen
|
|
24
|
+
- `csrf_token()` Cookie nicht vom Encryption-Bypass betroffen → korrekt
|
|
25
|
+
|
|
26
|
+
## Compliance-Risiken
|
|
27
|
+
|
|
28
|
+
| Risiko | Norm | Severity | Fix |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| Tracker-Script in `app.blade.php` Layout | § 25 TDDDG | KRITISCH | Conditional `@if(consent('analytics'))` |
|
|
31
|
+
| Cookie-Encryption auf Consent-Cookie | DSGVO Art. 25 | NIEDRIG | EncryptCookies Middleware-Bypass |
|
|
32
|
+
| `secure(false)` in Prod-Cookies | Art. 32 DSGVO | KRITISCH | `'secure' => env('APP_ENV') === 'production'` |
|
|
33
|
+
| Session ohne `same_site=lax` | Art. 32 DSGVO | HOCH | `config/session.php` setzen |
|
|
34
|
+
| Drittland-Tracker in `mix.js` | Art. 44 DSGVO | KRITISCH | EU-Provider + AVV |
|
|
35
|
+
|
|
36
|
+
## Code-Pattern (sanitized)
|
|
37
|
+
|
|
38
|
+
```php
|
|
39
|
+
// File: config/cookie-consent.php
|
|
40
|
+
<?php
|
|
41
|
+
|
|
42
|
+
return [
|
|
43
|
+
'banner_view' => 'cookies.banner',
|
|
44
|
+
'cookie_name' => 'cookie_consent',
|
|
45
|
+
'cookie_lifetime' => 60 * 24 * 365, // 12 Monate (Minuten)
|
|
46
|
+
'categories' => [
|
|
47
|
+
'necessary' => ['default' => true, 'locked' => true],
|
|
48
|
+
'analytics' => ['default' => false, 'locked' => false],
|
|
49
|
+
'marketing' => ['default' => false, 'locked' => false],
|
|
50
|
+
],
|
|
51
|
+
];
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```php
|
|
55
|
+
// File: app/Http/Middleware/ConsentCookie.php
|
|
56
|
+
<?php
|
|
57
|
+
|
|
58
|
+
namespace App\Http\Middleware;
|
|
59
|
+
|
|
60
|
+
use Closure;
|
|
61
|
+
use Illuminate\Http\Request;
|
|
62
|
+
|
|
63
|
+
class ConsentCookie
|
|
64
|
+
{
|
|
65
|
+
public function handle(Request $request, Closure $next)
|
|
66
|
+
{
|
|
67
|
+
$raw = $request->cookie('cookie_consent');
|
|
68
|
+
$consent = [
|
|
69
|
+
'necessary' => true,
|
|
70
|
+
'analytics' => false,
|
|
71
|
+
'marketing' => false,
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
if ($raw) {
|
|
75
|
+
$parsed = json_decode($raw, true);
|
|
76
|
+
if (is_array($parsed)) {
|
|
77
|
+
$consent = array_merge($consent, $parsed);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
$request->attributes->set('consent', $consent);
|
|
82
|
+
view()->share('consent', $consent);
|
|
83
|
+
|
|
84
|
+
return $next($request);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```php
|
|
90
|
+
// File: app/Http/Controllers/ConsentController.php
|
|
91
|
+
<?php
|
|
92
|
+
|
|
93
|
+
namespace App\Http\Controllers;
|
|
94
|
+
|
|
95
|
+
use Illuminate\Http\Request;
|
|
96
|
+
use App\Models\ConsentLog;
|
|
97
|
+
|
|
98
|
+
class ConsentController extends Controller
|
|
99
|
+
{
|
|
100
|
+
public function store(Request $request)
|
|
101
|
+
{
|
|
102
|
+
$validated = $request->validate([
|
|
103
|
+
'analytics' => 'required|boolean',
|
|
104
|
+
'marketing' => 'required|boolean',
|
|
105
|
+
]);
|
|
106
|
+
|
|
107
|
+
$consent = [
|
|
108
|
+
'necessary' => true,
|
|
109
|
+
'analytics' => $validated['analytics'],
|
|
110
|
+
'marketing' => $validated['marketing'],
|
|
111
|
+
'version' => '1.0',
|
|
112
|
+
'timestamp' => now()->toIso8601String(),
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
// Server-Log fuer Nachweispflicht
|
|
116
|
+
ConsentLog::create([
|
|
117
|
+
'ip_hash' => substr(hash('sha256', $request->ip() . config('app.ip_hash_salt')), 0, 16),
|
|
118
|
+
'user_agent' => substr($request->userAgent() ?? '', 0, 200),
|
|
119
|
+
'consent' => $consent,
|
|
120
|
+
]);
|
|
121
|
+
|
|
122
|
+
return response()->noContent()
|
|
123
|
+
->cookie(
|
|
124
|
+
'cookie_consent',
|
|
125
|
+
json_encode($consent),
|
|
126
|
+
60 * 24 * 365, // 12 Monate (Minuten)
|
|
127
|
+
'/', // Path
|
|
128
|
+
null, // Domain
|
|
129
|
+
config('app.env') === 'production', // Secure
|
|
130
|
+
false, // HttpOnly = false (Banner-JS muss lesen)
|
|
131
|
+
false, // Raw
|
|
132
|
+
'lax' // SameSite
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
```blade
|
|
139
|
+
{{-- File: resources/views/cookies/banner.blade.php --}}
|
|
140
|
+
@if(! request()->cookie('cookie_consent'))
|
|
141
|
+
<aside id="cookie-banner" role="dialog" aria-label="Cookie-Einwilligung" class="cookie-banner">
|
|
142
|
+
<p>
|
|
143
|
+
Wir nutzen Cookies fuer notwendige Funktionen und mit Ihrer Einwilligung
|
|
144
|
+
zusaetzlich fuer Webanalyse. Details:
|
|
145
|
+
<a href="{{ route('legal.privacy') }}">Datenschutzerklaerung</a>.
|
|
146
|
+
</p>
|
|
147
|
+
<div class="cookie-actions">
|
|
148
|
+
<button type="button" data-action="reject-all" class="btn-secondary">
|
|
149
|
+
Nur Notwendige
|
|
150
|
+
</button>
|
|
151
|
+
<button type="button" data-action="accept-all" class="btn-primary">
|
|
152
|
+
Alle akzeptieren
|
|
153
|
+
</button>
|
|
154
|
+
</div>
|
|
155
|
+
</aside>
|
|
156
|
+
|
|
157
|
+
<script>
|
|
158
|
+
(function() {
|
|
159
|
+
const csrf = '{{ csrf_token() }}';
|
|
160
|
+
const submit = (analytics, marketing) => {
|
|
161
|
+
fetch('{{ route('consent.store') }}', {
|
|
162
|
+
method: 'POST',
|
|
163
|
+
headers: {
|
|
164
|
+
'Content-Type': 'application/json',
|
|
165
|
+
'X-CSRF-TOKEN': csrf,
|
|
166
|
+
},
|
|
167
|
+
body: JSON.stringify({ analytics, marketing }),
|
|
168
|
+
}).then(() => {
|
|
169
|
+
document.getElementById('cookie-banner').remove();
|
|
170
|
+
if (analytics) loadAnalytics();
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
document.querySelector('[data-action="reject-all"]').onclick = () => submit(false, false);
|
|
175
|
+
document.querySelector('[data-action="accept-all"]').onclick = () => submit(true, true);
|
|
176
|
+
|
|
177
|
+
function loadAnalytics() {
|
|
178
|
+
const s = document.createElement('script');
|
|
179
|
+
s.src = 'https://<placeholder-eu-analytics-host>/script.js';
|
|
180
|
+
s.async = true;
|
|
181
|
+
document.head.appendChild(s);
|
|
182
|
+
}
|
|
183
|
+
})();
|
|
184
|
+
</script>
|
|
185
|
+
@endif
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
```blade
|
|
189
|
+
{{-- File: resources/views/layouts/app.blade.php --}}
|
|
190
|
+
<!DOCTYPE html>
|
|
191
|
+
<html lang="de">
|
|
192
|
+
<head>
|
|
193
|
+
<meta charset="UTF-8">
|
|
194
|
+
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
195
|
+
<title>@yield('title', '<placeholder-site-name>')</title>
|
|
196
|
+
{{-- KEIN Tracker-Script hier — nur conditional nach Consent --}}
|
|
197
|
+
@if($consent['analytics'] ?? false)
|
|
198
|
+
<script src="https://<placeholder-eu-analytics-host>/script.js" async></script>
|
|
199
|
+
@endif
|
|
200
|
+
</head>
|
|
201
|
+
<body>
|
|
202
|
+
@yield('content')
|
|
203
|
+
@include('cookies.banner')
|
|
204
|
+
</body>
|
|
205
|
+
</html>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
```php
|
|
209
|
+
// File: app/Http/Kernel.php (Auszug)
|
|
210
|
+
protected $middlewareGroups = [
|
|
211
|
+
'web' => [
|
|
212
|
+
\App\Http\Middleware\EncryptCookies::class,
|
|
213
|
+
// ...
|
|
214
|
+
\App\Http\Middleware\ConsentCookie::class,
|
|
215
|
+
],
|
|
216
|
+
];
|
|
217
|
+
|
|
218
|
+
// File: app/Http/Middleware/EncryptCookies.php
|
|
219
|
+
protected $except = [
|
|
220
|
+
'cookie_consent', // Banner-JS muss lesen koennen → kein Encryption
|
|
221
|
+
];
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## AVV / DPA
|
|
225
|
+
|
|
226
|
+
- Hosting-Provider — Art. 28 DSGVO
|
|
227
|
+
- Datenbank-Provider (MySQL/Postgres) — AVV
|
|
228
|
+
- Analytics-Provider (Plausible EU / Matomo) — AVV
|
|
229
|
+
- Mailer (SES EU / Mailgun EU) — AVV
|
|
230
|
+
|
|
231
|
+
## DSE-Wording-Vorlage
|
|
232
|
+
|
|
233
|
+
```markdown
|
|
234
|
+
### Cookies (Laravel)
|
|
235
|
+
|
|
236
|
+
Diese Webseite verwendet folgende Cookies:
|
|
237
|
+
|
|
238
|
+
**Notwendige Cookies (kein Opt-Out moeglich):**
|
|
239
|
+
- `XSRF-TOKEN` — CSRF-Schutz, Session-Dauer
|
|
240
|
+
- `<placeholder-app-name>_session` — Session-Management, Session-Dauer
|
|
241
|
+
- `cookie_consent` — Speicherung Ihrer Einwilligung, 12 Monate
|
|
242
|
+
|
|
243
|
+
**Analyse-Cookies (Opt-In):**
|
|
244
|
+
- `<placeholder-analytics-cookie>` — Webanalyse, <placeholder-days> Tage
|
|
245
|
+
- Anbieter: <placeholder-analytics-provider>, EU-Hosting
|
|
246
|
+
|
|
247
|
+
**Marketing-Cookies (Opt-In):**
|
|
248
|
+
- aktuell keine, ggf. zukuenftig
|
|
249
|
+
|
|
250
|
+
**Rechtsgrundlage:** § 25 TDDDG i.V.m. Art. 6 Abs. 1 lit. a/f DSGVO.
|
|
251
|
+
**Widerruf:** [Cookie-Einstellungen](#cookie-settings) im Footer.
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## Verify-Commands (Live-Probe)
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
# 1. Banner sichtbar fuer neue Visitors
|
|
258
|
+
curl -sS https://<placeholder-domain>/ | grep -ic "cookie-banner"
|
|
259
|
+
|
|
260
|
+
# 2. cookie_consent in EncryptCookies-Bypass
|
|
261
|
+
curl -X POST https://<placeholder-domain>/consent \
|
|
262
|
+
-H "Content-Type: application/json" \
|
|
263
|
+
-H "X-CSRF-TOKEN: <placeholder-csrf>" \
|
|
264
|
+
-d '{"analytics":false,"marketing":false}' -i \
|
|
265
|
+
| grep -i "set-cookie:.*cookie_consent"
|
|
266
|
+
# Erwartung: Klartext-JSON, NICHT Laravel-encrypted
|
|
267
|
+
|
|
268
|
+
# 3. Tracker-Script erst nach Consent
|
|
269
|
+
curl -sS -H 'Cookie: cookie_consent=%7B%22analytics%22%3Afalse%7D' https://<placeholder-domain>/ \
|
|
270
|
+
| grep -ic "<placeholder-eu-analytics-host>"
|
|
271
|
+
# Erwartung: 0
|
|
272
|
+
|
|
273
|
+
curl -sS -H 'Cookie: cookie_consent=%7B%22analytics%22%3Atrue%7D' https://<placeholder-domain>/ \
|
|
274
|
+
| grep -ic "<placeholder-eu-analytics-host>"
|
|
275
|
+
# Erwartung: >=1
|
|
276
|
+
|
|
277
|
+
# 4. Session-Cookie mit Lax + Secure
|
|
278
|
+
curl -sI https://<placeholder-domain>/ | grep -iE "set-cookie:.*session.*lax.*secure"
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Cross-References
|
|
282
|
+
|
|
283
|
+
- AEGIS-Scanner: `cookie-flags-checker.ts`, `consent-flow-checker.ts`, `tracking-scan.ts`
|
|
284
|
+
- Skill-Reference: `references/dsgvo.md` § 25 TDDDG, Art. 7 DSGVO
|
|
285
|
+
- BGH-Rechtsprechung: `references/bgh-urteile.md` BGH I ZR 7/16
|
|
286
|
+
- OLG Koeln 6 U 80/23 (Button-Gleichwertigkeit)
|
|
287
|
+
- Audit-Pattern: `references/audit-patterns.md` Phase 2 (Cookie-Audit)
|