@aegis-scan/skills 0.4.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 +204 -0
- package/CHANGELOG.md +48 -3
- package/package.json +1 -1
- package/sbom.cdx.json +1 -1
- package/skills/compliance/aegis-native/brutaler-anwalt/.claude-plugin/plugin.json +108 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/CHANGELOG.md +1080 -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/LICENSE +43 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/README.md +242 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/SKILL.md +427 -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 +63 -9
- package/skills/compliance/aegis-native/brutaler-anwalt/references/audit-patterns.md +1581 -10
- 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 +323 -31
- package/skills/compliance/aegis-native/brutaler-anwalt/references/branchenrecht.md +610 -1
- package/skills/compliance/aegis-native/brutaler-anwalt/references/checklisten.md +107 -1
- 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 +81 -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/BDSG/paragraphs.md +62 -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/BFSG/paragraphs.md +85 -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/BGB/paragraphs.md +112 -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/DDG/paragraphs.md +71 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DSGVO/articles.md +182 -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 +111 -0
- 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 +134 -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/HGB-AO/paragraphs.md +61 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/HinSchG/articles.md +96 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/INDEX.md +93 -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 +68 -0
- 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 +185 -0
- 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/VSBG/paragraphs.md +57 -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 +137 -9
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/INDEX.md +122 -0
- 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/ai/mistral-eu.md +123 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/ai/openai-dpa.md +120 -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/auth/nextauth-tom.md +120 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/supabase-auth-tom.md +104 -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/nextjs/proxy-csp-pattern.md +93 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/payment/stripe-pci-tom.md +121 -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/plausible-pattern.md +107 -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/AffiliateDisclaimer.tsx.example +54 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/COMPLIANCE-AUDIT-TRAIL-template.md +95 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/DSE-Section-UGC.md.example +77 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/DSFA-template.md +156 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/LostFoundReportForm-consent.tsx.example +126 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/README.md +33 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/UmamiScript.tsx.example +64 -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/VVT-template.md +60 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/data-retention-cron.ts.example +52 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/data-retention-workflow.yml.example +47 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/proxy-strict-dynamic.ts.example +80 -0
- package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/security.txt.example +26 -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 +262 -0
- 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/aegis-native/rls-defense/SKILL.md +85 -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-module-builder/SKILL.md +5 -1
- package/skills/foundation/aegis-native/aegis-orchestrator/SKILL.md +87 -4
- package/skills/foundation/aegis-native/aegis-quality-gates/SKILL.md +69 -9
- 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
- package/skills/offensive/matty-fork/cicd-redteam/SKILL.md +531 -0
- package/skills/offensive/matty-fork/cloud-security/SKILL.md +106 -0
- package/skills/offensive/matty-fork/container-escape/SKILL.md +174 -0
- package/skills/offensive/matty-fork/mobile-pentester/SKILL.md +357 -0
- package/skills/offensive/matty-fork/subdomain-takeover/SKILL.md +154 -0
- package/skills/osint/elementalsouls-fork/offensive-osint/README.md +92 -0
- package/skills/osint/elementalsouls-fork/offensive-osint/SKILL.md +4177 -0
- package/skills/osint/elementalsouls-fork/osint-methodology/README.md +66 -0
- package/skills/osint/elementalsouls-fork/osint-methodology/SKILL.md +1695 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
---
|
|
2
|
+
license: MIT (snippet)
|
|
3
|
+
provider: Django + Celery + Celery-Beat (Open-Source)
|
|
4
|
+
last-checked: 2026-05-05
|
|
5
|
+
purpose: Celery-Beat-Cron Pattern fuer DSGVO-Loeschpflichten + Anonymisierung in Django.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Django + Celery — GDPR-Cleanup-Cron
|
|
9
|
+
|
|
10
|
+
## Trigger / Detection
|
|
11
|
+
|
|
12
|
+
Repo enthaelt:
|
|
13
|
+
- `celery` in `requirements.txt`
|
|
14
|
+
- `app/celery.py` mit `celery -A app worker`
|
|
15
|
+
- `app/tasks.py` mit `@shared_task` Decorators
|
|
16
|
+
- `django-celery-beat` Package mit `PeriodicTask` Models
|
|
17
|
+
- Optional: `flower` fuer Monitoring
|
|
18
|
+
|
|
19
|
+
## Default-Verhalten (was passiert ohne Konfiguration)
|
|
20
|
+
|
|
21
|
+
- Account-Loeschung synchron im View → Timeout-Risiko
|
|
22
|
+
- Soft-Deletes haeufen sich → DSGVO-Drift
|
|
23
|
+
- Search-Index nicht synchronisiert mit DB-Loeschung
|
|
24
|
+
- Celery-Logs enthalten Klartext-Task-Args mit PII
|
|
25
|
+
- Task-Failures unbemerkt → Cron-Reliability fragil
|
|
26
|
+
|
|
27
|
+
## Compliance-Risiken
|
|
28
|
+
|
|
29
|
+
| Risiko | Norm | Severity | Fix |
|
|
30
|
+
|---|---|---|---|
|
|
31
|
+
| Hard-Delete-Cron fehlt | Art. 5 lit. e DSGVO | KRITISCH | Celery-Beat taeglich um 3 Uhr UTC |
|
|
32
|
+
| Celery-Args mit User-Email leakt in Logs | Art. 5 lit. f | HOCH | Nur User-ID als Arg, Lookup im Worker |
|
|
33
|
+
| Search-Index ueberlebt User-Delete | Art. 17 DSGVO | KRITISCH | Worker triggert Index-Removal |
|
|
34
|
+
| Task-Failure unbemerkt | Art. 5 Abs. 2 | HOCH | Sentry-Integration + DLQ |
|
|
35
|
+
| Backup-Files ohne Rotation | Art. 5 lit. e | HOCH | Provider-Policy + Doku |
|
|
36
|
+
|
|
37
|
+
## Code-Pattern (sanitized)
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
# File: app/celery.py
|
|
41
|
+
import os
|
|
42
|
+
from celery import Celery
|
|
43
|
+
from celery.schedules import crontab
|
|
44
|
+
|
|
45
|
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
|
|
46
|
+
|
|
47
|
+
app = Celery('app')
|
|
48
|
+
app.config_from_object('django.conf:settings', namespace='CELERY')
|
|
49
|
+
app.autodiscover_tasks()
|
|
50
|
+
|
|
51
|
+
app.conf.beat_schedule = {
|
|
52
|
+
'gdpr-hard-delete-daily': {
|
|
53
|
+
'task': 'app.tasks.gdpr_hard_delete',
|
|
54
|
+
'schedule': crontab(hour=3, minute=0), # taeglich 3 Uhr UTC
|
|
55
|
+
},
|
|
56
|
+
'gdpr-inactive-cleanup-weekly': {
|
|
57
|
+
'task': 'app.tasks.gdpr_inactive_user_cleanup',
|
|
58
|
+
'schedule': crontab(hour=4, minute=0, day_of_week=0), # Sonntag 4 Uhr
|
|
59
|
+
},
|
|
60
|
+
'analytics-events-cleanup-daily': {
|
|
61
|
+
'task': 'app.tasks.analytics_events_cleanup',
|
|
62
|
+
'schedule': crontab(hour=5, minute=0),
|
|
63
|
+
},
|
|
64
|
+
'consent-log-rotation-weekly': {
|
|
65
|
+
'task': 'app.tasks.consent_log_rotation',
|
|
66
|
+
'schedule': crontab(hour=6, minute=0, day_of_week=0),
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
# File: app/tasks.py
|
|
73
|
+
import logging
|
|
74
|
+
from datetime import timedelta
|
|
75
|
+
from celery import shared_task
|
|
76
|
+
from django.utils import timezone
|
|
77
|
+
from django.db import transaction
|
|
78
|
+
|
|
79
|
+
from app.models import User, ConsentLog, AnalyticsEvent, CronRun
|
|
80
|
+
|
|
81
|
+
logger = logging.getLogger(__name__)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@shared_task(bind=True, max_retries=3, default_retry_delay=300)
|
|
85
|
+
def gdpr_anonymize_user(self, user_id: int, reason: str = ''):
|
|
86
|
+
try:
|
|
87
|
+
user = User.objects.select_for_update().get(pk=user_id)
|
|
88
|
+
except User.DoesNotExist:
|
|
89
|
+
logger.warning('user-not-found-for-anonymization', extra={'user_id': user_id})
|
|
90
|
+
return
|
|
91
|
+
|
|
92
|
+
with transaction.atomic():
|
|
93
|
+
# 1. PII anonymisieren
|
|
94
|
+
user.email = f'deleted-{user.id}@<placeholder-domain>'
|
|
95
|
+
user.first_name = 'GELOESCHT'
|
|
96
|
+
user.last_name = ''
|
|
97
|
+
user.phone = None
|
|
98
|
+
user.deleted_at = timezone.now()
|
|
99
|
+
user.deletion_reason = reason or None
|
|
100
|
+
user.save(update_fields=[
|
|
101
|
+
'email', 'first_name', 'last_name', 'phone', 'deleted_at', 'deletion_reason'
|
|
102
|
+
])
|
|
103
|
+
|
|
104
|
+
# 2. Search-Index removal (z.B. Algolia / Meilisearch)
|
|
105
|
+
try:
|
|
106
|
+
from app.search import remove_user_from_index
|
|
107
|
+
remove_user_from_index(user.id)
|
|
108
|
+
except Exception as e:
|
|
109
|
+
logger.warning('search-index-removal-failed', extra={'user_id': user_id, 'error': str(e)})
|
|
110
|
+
|
|
111
|
+
# 3. Cascade-Anonymisierung
|
|
112
|
+
from app.models import Comment, Upload
|
|
113
|
+
Comment.objects.filter(author=user).update(author_name='GELOESCHT')
|
|
114
|
+
for upload in Upload.objects.filter(owner=user):
|
|
115
|
+
upload.purge()
|
|
116
|
+
|
|
117
|
+
logger.info('user-anonymized', extra={'user_id': user_id})
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@shared_task(bind=True, max_retries=3)
|
|
121
|
+
def gdpr_hard_delete(self):
|
|
122
|
+
cutoff = timezone.now() - timedelta(days=30)
|
|
123
|
+
deleted_count = 0
|
|
124
|
+
|
|
125
|
+
try:
|
|
126
|
+
with transaction.atomic():
|
|
127
|
+
users = User.objects.filter(deleted_at__lt=cutoff).select_for_update()
|
|
128
|
+
for user in users:
|
|
129
|
+
# Cascade-Loeschung
|
|
130
|
+
user.useraudit_logs.all().delete()
|
|
131
|
+
user.comments.all().delete()
|
|
132
|
+
user.uploads.all().delete() # mit storage-cleanup
|
|
133
|
+
user.delete() # endgueltig
|
|
134
|
+
deleted_count += 1
|
|
135
|
+
|
|
136
|
+
CronRun.objects.create(
|
|
137
|
+
job_name='gdpr-hard-delete',
|
|
138
|
+
finished_at=timezone.now(),
|
|
139
|
+
status='success',
|
|
140
|
+
metadata={'deleted_count': deleted_count},
|
|
141
|
+
)
|
|
142
|
+
logger.info('gdpr-hard-delete-complete', extra={'deleted_count': deleted_count})
|
|
143
|
+
|
|
144
|
+
except Exception as exc:
|
|
145
|
+
CronRun.objects.create(
|
|
146
|
+
job_name='gdpr-hard-delete',
|
|
147
|
+
finished_at=timezone.now(),
|
|
148
|
+
status='failed',
|
|
149
|
+
metadata={'error': str(exc)},
|
|
150
|
+
)
|
|
151
|
+
raise self.retry(exc=exc)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@shared_task
|
|
155
|
+
def gdpr_inactive_user_cleanup():
|
|
156
|
+
cutoff = timezone.now() - timedelta(days=730) # 2 Jahre
|
|
157
|
+
warning_cutoff = timezone.now() - timedelta(days=30)
|
|
158
|
+
|
|
159
|
+
# Stufe 1: Warning an inaktive User die noch keine Warnung erhielten
|
|
160
|
+
for user in User.objects.filter(
|
|
161
|
+
last_login__lt=cutoff,
|
|
162
|
+
deleted_at__isnull=True,
|
|
163
|
+
inactivity_warning_sent_at__isnull=True,
|
|
164
|
+
)[:1000]:
|
|
165
|
+
from app.mail import send_inactivity_warning
|
|
166
|
+
send_inactivity_warning(user)
|
|
167
|
+
user.inactivity_warning_sent_at = timezone.now()
|
|
168
|
+
user.save(update_fields=['inactivity_warning_sent_at'])
|
|
169
|
+
|
|
170
|
+
# Stufe 2: User die gewarnt + immer noch inaktiv
|
|
171
|
+
for user in User.objects.filter(
|
|
172
|
+
last_login__lt=cutoff,
|
|
173
|
+
deleted_at__isnull=True,
|
|
174
|
+
inactivity_warning_sent_at__lt=warning_cutoff,
|
|
175
|
+
)[:1000]:
|
|
176
|
+
gdpr_anonymize_user.delay(user.id, reason='inactivity_2_years')
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@shared_task
|
|
180
|
+
def analytics_events_cleanup():
|
|
181
|
+
cutoff = timezone.now() - timedelta(days=90)
|
|
182
|
+
deleted, _ = AnalyticsEvent.objects.filter(timestamp__lt=cutoff).delete()
|
|
183
|
+
logger.info('analytics-events-deleted', extra={'count': deleted})
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@shared_task
|
|
187
|
+
def consent_log_rotation():
|
|
188
|
+
cutoff = timezone.now() - timedelta(days=6 * 365) # 6 Jahre
|
|
189
|
+
deleted, _ = ConsentLog.objects.filter(timestamp__lt=cutoff).delete()
|
|
190
|
+
logger.info('consent-logs-rotated', extra={'count': deleted})
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
```python
|
|
194
|
+
# File: app/views/gdpr.py
|
|
195
|
+
from django.contrib.auth.decorators import login_required
|
|
196
|
+
from django.contrib.auth import logout
|
|
197
|
+
from django.http import JsonResponse
|
|
198
|
+
from django.utils import timezone
|
|
199
|
+
from django.views.decorators.http import require_POST
|
|
200
|
+
from django.views.decorators.csrf import csrf_protect
|
|
201
|
+
|
|
202
|
+
from app.tasks import gdpr_anonymize_user
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
@require_POST
|
|
206
|
+
@login_required
|
|
207
|
+
@csrf_protect
|
|
208
|
+
def delete_account(request):
|
|
209
|
+
import json
|
|
210
|
+
body = json.loads(request.body or '{}')
|
|
211
|
+
reason = (body.get('reason') or '')[:500]
|
|
212
|
+
|
|
213
|
+
user_id = request.user.id
|
|
214
|
+
|
|
215
|
+
# Synchron: nur Soft-Delete
|
|
216
|
+
request.user.deleted_at = timezone.now()
|
|
217
|
+
request.user.deletion_reason = reason or None
|
|
218
|
+
request.user.save(update_fields=['deleted_at', 'deletion_reason'])
|
|
219
|
+
|
|
220
|
+
# Async: Anonymisierung
|
|
221
|
+
gdpr_anonymize_user.delay(user_id, reason)
|
|
222
|
+
|
|
223
|
+
logout(request)
|
|
224
|
+
|
|
225
|
+
return JsonResponse({
|
|
226
|
+
'status': 'PENDING_HARD_DELETE',
|
|
227
|
+
'soft_deleted_at': timezone.now().isoformat(),
|
|
228
|
+
'hard_delete_scheduled': '30 Tage',
|
|
229
|
+
}, status=202)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
```python
|
|
233
|
+
# File: app/models/cron_run.py
|
|
234
|
+
from django.db import models
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
class CronRun(models.Model):
|
|
238
|
+
job_name = models.CharField(max_length=100, db_index=True)
|
|
239
|
+
started_at = models.DateTimeField(auto_now_add=True)
|
|
240
|
+
finished_at = models.DateTimeField()
|
|
241
|
+
status = models.CharField(max_length=16, choices=[('success', 'success'), ('failed', 'failed')])
|
|
242
|
+
metadata = models.JSONField(default=dict, blank=True)
|
|
243
|
+
|
|
244
|
+
class Meta:
|
|
245
|
+
indexes = [models.Index(fields=['job_name', 'started_at'])]
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
```python
|
|
249
|
+
# File: app/views/health.py
|
|
250
|
+
from datetime import timedelta
|
|
251
|
+
from django.http import JsonResponse
|
|
252
|
+
from django.utils import timezone
|
|
253
|
+
|
|
254
|
+
from app.models import CronRun
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def cron_health(request):
|
|
258
|
+
last_24h = timezone.now() - timedelta(hours=24)
|
|
259
|
+
|
|
260
|
+
expected_jobs = ['gdpr-hard-delete', 'analytics-events-cleanup']
|
|
261
|
+
recent_runs = list(CronRun.objects.filter(started_at__gt=last_24h).order_by('-started_at'))
|
|
262
|
+
failed = [r for r in recent_runs if r.status == 'failed']
|
|
263
|
+
missing = [
|
|
264
|
+
j for j in expected_jobs
|
|
265
|
+
if not any(r.job_name == j and r.status == 'success' for r in recent_runs)
|
|
266
|
+
]
|
|
267
|
+
|
|
268
|
+
return JsonResponse({
|
|
269
|
+
'healthy': not failed and not missing,
|
|
270
|
+
'recent_runs': len(recent_runs),
|
|
271
|
+
'failed_runs': len(failed),
|
|
272
|
+
'missing_jobs': missing,
|
|
273
|
+
})
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
## AVV / DPA
|
|
277
|
+
|
|
278
|
+
- Datenbank — Hard-Delete-Wirksamkeit
|
|
279
|
+
- Celery-Broker (Redis Cloud EU / Upstash) — AVV
|
|
280
|
+
- Search-Provider (Algolia EU / Meilisearch self-host) — AVV
|
|
281
|
+
- Mailer fuer Warning-Mails — AVV
|
|
282
|
+
- Sentry/APM (sofern integriert) — AVV mit PII-Scrubbing
|
|
283
|
+
|
|
284
|
+
## DSE-Wording-Vorlage
|
|
285
|
+
|
|
286
|
+
```markdown
|
|
287
|
+
### Loeschverfahren und Inaktivitaets-Cleanup
|
|
288
|
+
|
|
289
|
+
**Bei Loesch-Antrag (manuell):**
|
|
290
|
+
|
|
291
|
+
| Stufe | Zeitpunkt | Aktion |
|
|
292
|
+
|---|---|---|
|
|
293
|
+
| 1 | sofort | Account deaktiviert, Logout |
|
|
294
|
+
| 2 | < 60 Sekunden (asynchron) | PII anonymisiert, Search-Index entfernt |
|
|
295
|
+
| 3 | nach 30 Tagen | Endgueltige DB-Loeschung |
|
|
296
|
+
|
|
297
|
+
**Bei Inaktivitaet (automatisch):**
|
|
298
|
+
|
|
299
|
+
| Stufe | Zeitpunkt | Aktion |
|
|
300
|
+
|---|---|---|
|
|
301
|
+
| 1 | nach 2 Jahren ohne Login | Warning-Mail |
|
|
302
|
+
| 2 | 30 Tage nach Warning | Account-Anonymisierung |
|
|
303
|
+
| 3 | 30 Tage nach Anonymisierung | Hard-Delete |
|
|
304
|
+
|
|
305
|
+
**Rechtsgrundlage:** Art. 5 lit. e DSGVO (Speicherbegrenzung), Art. 17 DSGVO.
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
## Verify-Commands (Live-Probe)
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
# 1. Cron-Health-Endpoint
|
|
312
|
+
curl https://<placeholder-domain>/health/cron
|
|
313
|
+
# Erwartung: { "healthy": true, "missing_jobs": [] }
|
|
314
|
+
|
|
315
|
+
# 2. Celery-Worker-Health (Flower)
|
|
316
|
+
curl https://<placeholder-domain>/flower/api/workers
|
|
317
|
+
# Erwartung: aktive Worker sichtbar
|
|
318
|
+
|
|
319
|
+
# 3. Anonymize-Task manuell triggern
|
|
320
|
+
python manage.py shell
|
|
321
|
+
# >>> from app.tasks import gdpr_anonymize_user
|
|
322
|
+
# >>> gdpr_anonymize_user.delay(<test-user-id>, 'manual-test')
|
|
323
|
+
|
|
324
|
+
# 4. Logs ohne PII
|
|
325
|
+
tail -100 /var/log/celery/worker.log | grep -E '[\w.+-]+@[\w-]+\.[\w-]+' | head -5
|
|
326
|
+
# Erwartung: 0 Treffer
|
|
327
|
+
|
|
328
|
+
# 5. Hard-Delete nach 30 Tagen
|
|
329
|
+
# DB: SELECT COUNT(*) FROM users WHERE deleted_at < now() - interval '30 days';
|
|
330
|
+
# Erwartung: 0
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
## Cross-References
|
|
334
|
+
|
|
335
|
+
- AEGIS-Scanner: `data-retention-checker.ts`, `cron-coverage-checker.ts`, `pii-anonymization-checker.ts`
|
|
336
|
+
- Skill-Reference: `references/dsgvo.md` Art. 17, Art. 5 lit. e
|
|
337
|
+
- BGH-Rechtsprechung: `references/bgh-urteile.md`
|
|
338
|
+
- EuGH: `references/eu-eugh-dsgvo-schadensersatz.md` (Loesch-Anspruch)
|
|
339
|
+
- Audit-Pattern: `references/audit-patterns.md` Phase 4 (DSE-Drift / Cron-Coverage)
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
---
|
|
2
|
+
license: MIT (snippet)
|
|
3
|
+
provider: Express.js (Open-Source)
|
|
4
|
+
last-checked: 2026-05-05
|
|
5
|
+
purpose: Express Middleware-Stack Pattern fuer Consent-Cookie-Read + Conditional Tracker-Mount.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Express — Cookie-Banner Middleware Pattern
|
|
9
|
+
|
|
10
|
+
## Trigger / Detection
|
|
11
|
+
|
|
12
|
+
Repo enthaelt:
|
|
13
|
+
- `express` in `package.json`
|
|
14
|
+
- `cookie-parser` Middleware
|
|
15
|
+
- `app.use(...)` Mount-Pattern in `app.ts` / `server.ts` / `index.js`
|
|
16
|
+
- Optional: Server-rendered Views (Pug/EJS/Handlebars) mit Banner-Component
|
|
17
|
+
|
|
18
|
+
## Default-Verhalten (was passiert ohne Konfiguration)
|
|
19
|
+
|
|
20
|
+
- `cookie-parser` setzt keine `Secure;HttpOnly;SameSite`-Defaults
|
|
21
|
+
- Kein zentrales Consent-Validation-Middleware → Tracker laeuft via Hardcoded-Routes
|
|
22
|
+
- `app.use(express.static('public'))` cached HTML mit hardcoded Tracker-Tags
|
|
23
|
+
- Headers wie `X-Powered-By: Express` leaken Stack-Info
|
|
24
|
+
- Default-Logger (morgan) loggt volle IPs
|
|
25
|
+
|
|
26
|
+
## Compliance-Risiken
|
|
27
|
+
|
|
28
|
+
| Risiko | Norm | Severity | Fix |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| Tracker im Static-HTML hardcoded | § 25 TDDDG | KRITISCH | Server-Side-Render mit Consent-Pruefung |
|
|
31
|
+
| Consent-Cookie ohne `Secure;SameSite` | Art. 32 DSGVO | HOCH | `cookie.set` mit Flags |
|
|
32
|
+
| Klartext-IP in morgan-Log | Art. 5 lit. f | HOCH | Custom IP-Hash-Token |
|
|
33
|
+
| Fehlendes `helmet` → keine Security-Headers | Art. 32 DSGVO | KRITISCH | `helmet()` Middleware |
|
|
34
|
+
| `X-Powered-By: Express` Header | Art. 25 DSGVO Privacy-by-Design | NIEDRIG | `app.disable('x-powered-by')` |
|
|
35
|
+
|
|
36
|
+
## Code-Pattern (sanitized)
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
// File: src/middleware/consent.ts
|
|
40
|
+
import type { Request, Response, NextFunction } from 'express';
|
|
41
|
+
|
|
42
|
+
export type Consent = {
|
|
43
|
+
necessary: true;
|
|
44
|
+
analytics: boolean;
|
|
45
|
+
marketing: boolean;
|
|
46
|
+
timestamp?: string;
|
|
47
|
+
version: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare global {
|
|
51
|
+
namespace Express {
|
|
52
|
+
interface Request {
|
|
53
|
+
consent: Consent;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const defaultConsent: Consent = {
|
|
59
|
+
necessary: true,
|
|
60
|
+
analytics: false,
|
|
61
|
+
marketing: false,
|
|
62
|
+
version: '1.0',
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export function consentMiddleware(req: Request, _res: Response, next: NextFunction) {
|
|
66
|
+
const raw = req.cookies?.['cookie-consent'];
|
|
67
|
+
if (!raw) {
|
|
68
|
+
req.consent = { ...defaultConsent };
|
|
69
|
+
return next();
|
|
70
|
+
}
|
|
71
|
+
try {
|
|
72
|
+
const parsed = JSON.parse(raw);
|
|
73
|
+
req.consent = { ...defaultConsent, ...parsed };
|
|
74
|
+
} catch {
|
|
75
|
+
req.consent = { ...defaultConsent };
|
|
76
|
+
}
|
|
77
|
+
next();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function requireAnalyticsConsent(req: Request, res: Response, next: NextFunction) {
|
|
81
|
+
if (!req.consent.analytics) {
|
|
82
|
+
return res.status(204).json({ blocked: 'analytics-opt-out' });
|
|
83
|
+
}
|
|
84
|
+
next();
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
// File: src/routes/consent.ts
|
|
90
|
+
import { Router } from 'express';
|
|
91
|
+
import crypto from 'node:crypto';
|
|
92
|
+
|
|
93
|
+
const router = Router();
|
|
94
|
+
|
|
95
|
+
router.post('/api/consent-log', async (req, res) => {
|
|
96
|
+
const consent = req.body;
|
|
97
|
+
if (!consent || typeof consent.analytics !== 'boolean') {
|
|
98
|
+
return res.status(400).json({ error: 'invalid payload' });
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const ip = req.headers['x-forwarded-for']?.toString().split(',')[0]?.trim()
|
|
102
|
+
?? req.socket.remoteAddress
|
|
103
|
+
?? '';
|
|
104
|
+
const ipHash = crypto
|
|
105
|
+
.createHash('sha256')
|
|
106
|
+
.update(ip + (process.env.IP_HASH_SALT ?? ''))
|
|
107
|
+
.digest('hex')
|
|
108
|
+
.slice(0, 16);
|
|
109
|
+
|
|
110
|
+
// Persist via DB-Layer (Pseudo-Code)
|
|
111
|
+
await req.app.locals.db.consentLog.create({
|
|
112
|
+
data: {
|
|
113
|
+
ipHash,
|
|
114
|
+
userAgent: req.headers['user-agent']?.slice(0, 200) ?? '',
|
|
115
|
+
consent: JSON.stringify(consent),
|
|
116
|
+
timestamp: new Date(),
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// Set Cookie mit allen Security-Flags
|
|
121
|
+
res.cookie('cookie-consent', JSON.stringify({ ...consent, timestamp: new Date().toISOString() }), {
|
|
122
|
+
httpOnly: false, // Banner-JS muss lesen koennen
|
|
123
|
+
secure: process.env.NODE_ENV === 'production',
|
|
124
|
+
sameSite: 'lax',
|
|
125
|
+
maxAge: 12 * 30 * 24 * 60 * 60 * 1000, // 12 Monate
|
|
126
|
+
path: '/',
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
res.status(204).end();
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
export default router;
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
// File: src/app.ts
|
|
137
|
+
import express from 'express';
|
|
138
|
+
import cookieParser from 'cookie-parser';
|
|
139
|
+
import helmet from 'helmet';
|
|
140
|
+
import morgan from 'morgan';
|
|
141
|
+
import { consentMiddleware, requireAnalyticsConsent } from './middleware/consent';
|
|
142
|
+
import consentRoutes from './routes/consent';
|
|
143
|
+
|
|
144
|
+
const app = express();
|
|
145
|
+
|
|
146
|
+
// Security
|
|
147
|
+
app.disable('x-powered-by');
|
|
148
|
+
app.use(helmet({
|
|
149
|
+
contentSecurityPolicy: {
|
|
150
|
+
directives: {
|
|
151
|
+
defaultSrc: ["'self'"],
|
|
152
|
+
scriptSrc: ["'self'", "https://<placeholder-eu-analytics-host>"],
|
|
153
|
+
connectSrc: ["'self'", "https://<placeholder-eu-analytics-host>"],
|
|
154
|
+
imgSrc: ["'self'", 'data:'],
|
|
155
|
+
styleSrc: ["'self'", "'unsafe-inline'"],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
}));
|
|
159
|
+
|
|
160
|
+
// Body + Cookies
|
|
161
|
+
app.use(express.json({ limit: '100kb' }));
|
|
162
|
+
app.use(cookieParser());
|
|
163
|
+
app.use(consentMiddleware);
|
|
164
|
+
|
|
165
|
+
// IP-anonymisiertes Logging (custom morgan-token)
|
|
166
|
+
morgan.token('ipHash', (req) => {
|
|
167
|
+
const ip = req.headers['x-forwarded-for']?.toString().split(',')[0]?.trim()
|
|
168
|
+
?? req.socket.remoteAddress ?? '';
|
|
169
|
+
return require('crypto').createHash('sha256').update(ip).digest('hex').slice(0, 8);
|
|
170
|
+
});
|
|
171
|
+
app.use(morgan(':ipHash :method :url :status :response-time ms'));
|
|
172
|
+
|
|
173
|
+
// Routes
|
|
174
|
+
app.use(consentRoutes);
|
|
175
|
+
app.post('/api/track', requireAnalyticsConsent, async (req, res) => {
|
|
176
|
+
// ... Tracker-Forward-Logic
|
|
177
|
+
res.status(204).end();
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
export default app;
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## AVV / DPA
|
|
184
|
+
|
|
185
|
+
- Hosting-Provider — Art. 28 DSGVO
|
|
186
|
+
- Datenbank-Provider (Postgres-Cloud / Mongo-Atlas EU) — AVV
|
|
187
|
+
- Logging-Provider (sofern extern) — AVV mit IP-Hash-Garantie
|
|
188
|
+
- Reverse-Proxy (Cloudflare / Fastly EU) — AVV
|
|
189
|
+
|
|
190
|
+
## DSE-Wording-Vorlage
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
### Server-Logs
|
|
194
|
+
|
|
195
|
+
Beim Aufruf dieser Webseite werden technische Daten in Server-Logs erfasst:
|
|
196
|
+
|
|
197
|
+
- Hash der IP-Adresse (SHA-256, gekuerzt auf 8 Zeichen)
|
|
198
|
+
- Zeitstempel des Aufrufs
|
|
199
|
+
- HTTP-Methode und URL
|
|
200
|
+
- HTTP-Statuscode
|
|
201
|
+
- Antwortzeit (ms)
|
|
202
|
+
- User-Agent (max. 200 Zeichen)
|
|
203
|
+
|
|
204
|
+
**Rechtsgrundlage:** Art. 6 Abs. 1 lit. f DSGVO (berechtigtes Interesse an
|
|
205
|
+
sicherem Webseitenbetrieb).
|
|
206
|
+
**Speicherdauer:** 14 Tage, danach automatische Loeschung.
|
|
207
|
+
**Hinweis:** Die volle IP-Adresse wird zu keinem Zeitpunkt gespeichert.
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
## Verify-Commands (Live-Probe)
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# 1. X-Powered-By NICHT vorhanden
|
|
214
|
+
curl -sI https://<placeholder-domain>/ | grep -i "x-powered-by"
|
|
215
|
+
# Erwartung: leer
|
|
216
|
+
|
|
217
|
+
# 2. helmet-Headers
|
|
218
|
+
curl -sI https://<placeholder-domain>/ | grep -iE "x-content-type-options|x-frame-options|strict-transport-security"
|
|
219
|
+
# Erwartung: 3 Treffer
|
|
220
|
+
|
|
221
|
+
# 3. Tracker-Endpoint blockt ohne Consent
|
|
222
|
+
curl -X POST https://<placeholder-domain>/api/track -i
|
|
223
|
+
# Erwartung: 204 mit "blocked":"analytics-opt-out"
|
|
224
|
+
|
|
225
|
+
# 4. Consent-Cookie mit Secure-Flags
|
|
226
|
+
curl -X POST https://<placeholder-domain>/api/consent-log \
|
|
227
|
+
-H "Content-Type: application/json" \
|
|
228
|
+
-d '{"necessary":true,"analytics":false,"marketing":false}' -i
|
|
229
|
+
# Erwartung: Set-Cookie: cookie-consent=...; SameSite=Lax; Path=/; HttpOnly nein; Secure ja
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Cross-References
|
|
233
|
+
|
|
234
|
+
- AEGIS-Scanner: `cookie-flags-checker.ts`, `helmet-config-checker.ts`, `morgan-pii-checker.ts`
|
|
235
|
+
- Skill-Reference: `references/dsgvo.md` Art. 32 (Sicherheit), § 25 TDDDG
|
|
236
|
+
- BGH-Rechtsprechung: `references/bgh-urteile.md` BGH I ZR 7/16
|
|
237
|
+
- Audit-Pattern: `references/audit-patterns.md` Phase 6 (Server-Side-Logs)
|