@aegis-scan/skills 0.5.0 → 0.5.2

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.
Files changed (345) hide show
  1. package/ATTRIBUTION.md +93 -0
  2. package/package.json +1 -1
  3. package/sbom.cdx.json +1 -0
  4. package/skills/compliance/aegis-native/brutaler-anwalt/.claude-plugin/plugin.json +108 -0
  5. package/skills/compliance/aegis-native/brutaler-anwalt/CHANGELOG.md +878 -0
  6. package/skills/compliance/aegis-native/brutaler-anwalt/README.md +9 -3
  7. package/skills/compliance/aegis-native/brutaler-anwalt/SKILL.md +93 -14
  8. package/skills/compliance/aegis-native/brutaler-anwalt/commands/audit.md +193 -0
  9. package/skills/compliance/aegis-native/brutaler-anwalt/commands/avv-redline.md +246 -0
  10. package/skills/compliance/aegis-native/brutaler-anwalt/commands/az-verify.md +155 -0
  11. package/skills/compliance/aegis-native/brutaler-anwalt/commands/cold-start.md +157 -0
  12. package/skills/compliance/aegis-native/brutaler-anwalt/commands/dsar-respond.md +180 -0
  13. package/skills/compliance/aegis-native/brutaler-anwalt/commands/health.md +50 -0
  14. package/skills/compliance/aegis-native/brutaler-anwalt/commands/simulate.md +158 -0
  15. package/skills/compliance/aegis-native/brutaler-anwalt/hooks/post_write.py +315 -0
  16. package/skills/compliance/aegis-native/brutaler-anwalt/hooks/prompt_submit.py +144 -0
  17. package/skills/compliance/aegis-native/brutaler-anwalt/hooks/session_start.py +57 -0
  18. package/skills/compliance/aegis-native/brutaler-anwalt/hooks/triggers.json +191 -0
  19. package/skills/compliance/aegis-native/brutaler-anwalt/references/INDEX.md +102 -0
  20. package/skills/compliance/aegis-native/brutaler-anwalt/references/abmahn-templates.md +1 -1
  21. package/skills/compliance/aegis-native/brutaler-anwalt/references/aegis-integration.md +60 -5
  22. package/skills/compliance/aegis-native/brutaler-anwalt/references/audit-patterns.md +745 -11
  23. package/skills/compliance/aegis-native/brutaler-anwalt/references/az-auffuellung-batch1.md +468 -0
  24. package/skills/compliance/aegis-native/brutaler-anwalt/references/bgh-urteile.md +106 -30
  25. package/skills/compliance/aegis-native/brutaler-anwalt/references/branchenrecht.md +247 -2
  26. package/skills/compliance/aegis-native/brutaler-anwalt/references/checklisten.md +75 -2
  27. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-aufsichtsbehoerden-taetigkeitsberichte-2024.md +310 -0
  28. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-bussgeld-argumentations-layer.md +598 -0
  29. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-dsk-beschluesse.md +346 -0
  30. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AGG/audit-relevance.md +76 -0
  31. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AGG/paragraphs.md +115 -0
  32. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AMG/audit-relevance.md +58 -0
  33. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/AMG/paragraphs.md +95 -0
  34. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ArbZG/audit-relevance.md +60 -0
  35. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ArbZG/paragraphs.md +90 -0
  36. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/BetrVG/audit-relevance.md +73 -0
  37. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/BetrVG/paragraphs.md +114 -0
  38. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DDG/audit-relevance.md +72 -0
  39. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DDG/paragraphs.md +103 -0
  40. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DiGAV/audit-relevance.md +65 -0
  41. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/DiGAV/paragraphs.md +102 -0
  42. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ElektroG/audit-relevance.md +66 -0
  43. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ElektroG/paragraphs.md +108 -0
  44. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/FernUSG/audit-relevance.md +80 -0
  45. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/FernUSG/paragraphs.md +102 -0
  46. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GeschGehG/audit-relevance.md +89 -0
  47. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GeschGehG/paragraphs.md +107 -0
  48. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GwG/audit-relevance.md +62 -0
  49. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/GwG/paragraphs.md +119 -0
  50. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HWG/audit-relevance.md +70 -0
  51. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HWG/paragraphs.md +125 -0
  52. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HinSchG/audit-relevance.md +70 -0
  53. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/HinSchG/paragraphs.md +116 -0
  54. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/INDEX.md +152 -0
  55. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/KWG/audit-relevance.md +64 -0
  56. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/KWG/paragraphs.md +110 -0
  57. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/LFGB/audit-relevance.md +63 -0
  58. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/LFGB/paragraphs.md +90 -0
  59. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/MPDG/audit-relevance.md +61 -0
  60. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/MPDG/paragraphs.md +96 -0
  61. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/NachwG/audit-relevance.md +54 -0
  62. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/NachwG/paragraphs.md +82 -0
  63. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/PAngV/audit-relevance.md +76 -0
  64. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/PAngV/paragraphs.md +86 -0
  65. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/RDG/audit-relevance.md +84 -0
  66. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/RDG/paragraphs.md +114 -0
  67. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/TDDDG/audit-relevance.md +92 -0
  68. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/TDDDG/paragraphs.md +91 -0
  69. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/UrhG-UrhDaG/audit-relevance.md +85 -0
  70. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/UrhG-UrhDaG/paragraphs.md +166 -0
  71. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VDuG/audit-relevance.md +71 -0
  72. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VDuG/paragraphs.md +102 -0
  73. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VERIFICATION-NOTES.md +111 -0
  74. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VVG/audit-relevance.md +65 -0
  75. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VVG/paragraphs.md +101 -0
  76. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VerpackG/audit-relevance.md +62 -0
  77. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/VerpackG/paragraphs.md +120 -0
  78. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/WpHG/audit-relevance.md +64 -0
  79. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/WpHG/paragraphs.md +120 -0
  80. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ZAG/audit-relevance.md +68 -0
  81. package/skills/compliance/aegis-native/brutaler-anwalt/references/de-statute-tier1/ZAG/paragraphs.md +110 -0
  82. package/skills/compliance/aegis-native/brutaler-anwalt/references/dsgvo.md +55 -8
  83. package/skills/compliance/aegis-native/brutaler-anwalt/references/eu-edpb-guidelines.md +505 -0
  84. package/skills/compliance/aegis-native/brutaler-anwalt/references/eu-eugh-dsgvo-schadensersatz.md +223 -0
  85. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BDSG/audit-relevance.md +31 -0
  86. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BFSG/audit-relevance.md +39 -0
  87. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BGB/audit-relevance.md +42 -0
  88. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DDG/audit-relevance.md +28 -0
  89. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DSGVO/audit-relevance.md +35 -0
  90. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/articles.md +4 -1
  91. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/audit-relevance.md +139 -0
  92. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/gpai-pflichten.md +102 -0
  93. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/hochrisiko-annex-iii.md +134 -0
  94. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/sanktionen-art-99.md +97 -0
  95. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/transparenz-art-50.md +120 -0
  96. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/uebergangsfristen.md +109 -0
  97. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CER-2022-2557/articles.md +42 -0
  98. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CRA-2024-2847/articles.md +87 -0
  99. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CSDDD-2024-1760/articles.md +43 -0
  100. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/CSRD-2022-2464/articles.md +42 -0
  101. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DGA-2022-868/articles.md +53 -0
  102. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DMA-2022-1925/articles.md +55 -0
  103. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DORA-2022-2554/articles.md +164 -0
  104. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DORA-2022-2554/audit-relevance.md +86 -0
  105. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/articles.md +3 -0
  106. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/audit-relevance.md +110 -0
  107. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/notice-and-action.md +138 -0
  108. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/small-platform-pflichten.md +109 -0
  109. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/trusted-flaggers.md +77 -0
  110. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/vlop-vlose.md +130 -0
  111. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/Data-Act-2023-2854/articles.md +102 -0
  112. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/Data-Act-2023-2854/audit-relevance.md +77 -0
  113. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/MiCA-2023-1114/articles.md +124 -0
  114. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/MiCA-2023-1114/audit-relevance.md +85 -0
  115. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/NIS2-2022-2555/articles.md +101 -0
  116. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/ProdHaftRL-2024-2853/articles.md +68 -0
  117. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/eIDAS-2024-1183/articles.md +43 -0
  118. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/Finance/KWG.md +52 -0
  119. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/Finance/PSD2.md +67 -0
  120. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/Finance/ZAG.md +50 -0
  121. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/GlueStV/articles.md +86 -0
  122. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/HGB-AO/audit-relevance.md +27 -0
  123. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/HinSchG/articles.md +96 -0
  124. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/JuSchG-JMStV/articles.md +86 -0
  125. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/KritisDachG/articles.md +39 -0
  126. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/LkSG/articles.md +90 -0
  127. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/MedTech/DiGAV.md +60 -0
  128. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/MedTech/IVDR-2017-746.md +51 -0
  129. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/MedTech/MDR-2017-745.md +85 -0
  130. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/NIS2UmsuCG-BSIG/articles.md +53 -0
  131. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/StGB/relevante-paragraphen.md +157 -0
  132. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TDDDG/audit-relevance.md +33 -0
  133. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TDDDG/paragraphs.md +3 -2
  134. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TKG/articles.md +73 -0
  135. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/UWG/audit-relevance.md +39 -0
  136. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/UWG/paragraphs.md +71 -3
  137. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/VERIFICATION-STATUS.md +266 -0
  138. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/VSBG/audit-relevance.md +37 -0
  139. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/ePrivacy-RL-2002-58/articles.md +92 -0
  140. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/ePrivacy-RL-2002-58/audit-relevance.md +62 -0
  141. package/skills/compliance/aegis-native/brutaler-anwalt/references/it-recht.md +115 -9
  142. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/INDEX.md +1 -1
  143. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/ai/anthropic-dpa.md +87 -0
  144. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/astro/cookie-banner-pattern.md +202 -0
  145. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/astro/dse-section-pattern.md +198 -0
  146. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/astro/tracking-server-endpoint.md +193 -0
  147. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/auth0-tom.md +92 -0
  148. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/clerk-tom.md +84 -0
  149. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/django/auth-cookies-pattern.md +295 -0
  150. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/django/cookie-banner-pattern.md +318 -0
  151. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/django/gdpr-cleanup-celery.md +339 -0
  152. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/express/cookie-banner-pattern.md +237 -0
  153. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/express/gdpr-routes-pattern.md +256 -0
  154. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/express/helmet-csp-pattern.md +207 -0
  155. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/agb-versioning-pattern.md +305 -0
  156. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/cookie-banner-pattern.md +287 -0
  157. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/gdpr-models-pattern.md +290 -0
  158. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/laravel/tracking-config-pattern.md +263 -0
  159. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/auth-pattern.md +265 -0
  160. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/cookie-banner-pattern.md +255 -0
  161. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/gdpr-cleanup-cron.md +244 -0
  162. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nest/tracking-interceptor.md +239 -0
  163. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/api-route-bearer-auth.md +103 -0
  164. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/dynamic-rendering-headers.md +83 -0
  165. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/env-driven-tracking.md +135 -0
  166. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/rails/cookie-banner-pattern.md +294 -0
  167. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/rails/devise-dsgvo-pattern.md +262 -0
  168. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/rails/gdpr-anonymization-pattern.md +283 -0
  169. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/react/consent-gate-pattern.md +99 -0
  170. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/react/cookie-banner-pattern.md +204 -0
  171. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/strapi/cms-pii-pattern.md +301 -0
  172. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/strapi/notice-and-action-plugin.md +371 -0
  173. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/svelte/cookie-banner-pattern.md +234 -0
  174. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/svelte/dse-section-pattern.md +231 -0
  175. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/svelte/sveltekit-server-hooks-pattern.md +217 -0
  176. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/tracking/google-analytics-consent.md +129 -0
  177. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/tracking/posthog-consent.md +79 -0
  178. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/cookie-banner-pattern.md +208 -0
  179. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/dse-i18n-pattern.md +204 -0
  180. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/nuxt-vs-vue-only-pattern.md +197 -0
  181. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/vue/tracking-pinia-pattern.md +211 -0
  182. package/skills/compliance/aegis-native/brutaler-anwalt/references/strafrecht-steuer.md +1 -1
  183. package/skills/compliance/aegis-native/brutaler-anwalt/references/streitwerte.json +176 -0
  184. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/DSFA-template.md +80 -0
  185. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/VVT-template-file-upload.md +98 -0
  186. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-EN-international.md +267 -0
  187. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-Audit-Klausel-Varianten.md +148 -0
  188. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-CH-revDSG.md +127 -0
  189. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-SCC-module2-controller-processor.md +180 -0
  190. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-SCC-module3-processor-subprocessor.md +144 -0
  191. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-Sub-Processor-List.md +114 -0
  192. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-TOMs.md +197 -0
  193. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-anhang-UK-IDTA.md +131 -0
  194. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/AVV-standard-DE.md +288 -0
  195. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates-avv-layer/Joint-Controller-Vertrag-Art-26.md +265 -0
  196. package/skills/compliance/aegis-native/brutaler-anwalt/scripts/health-check.sh +190 -48
  197. package/skills/compliance/aegis-native/brutaler-anwalt/scripts/test-triggers.sh +145 -0
  198. package/skills/compliance/aegis-native/brutaler-anwalt/settings.json +90 -0
  199. package/skills/defensive/permoon-fork/README.md +40 -0
  200. package/skills/defensive/permoon-fork/multi-model-consolidation/SKILL.md +47 -0
  201. package/skills/defensive/permoon-fork/multi-model-severity/SKILL.md +34 -0
  202. package/skills/defensive/permoon-fork/multi-model-system-prompt/SKILL.md +40 -0
  203. package/skills/foundation/aegis-native/aegis-handover-writer/SKILL.md +1 -1
  204. package/skills/foundation/aegis-native/aegis-quality-gates/SKILL.md +1 -1
  205. package/skills/offensive/airecon-fork/ctf-crypto/SKILL.md +260 -0
  206. package/skills/offensive/airecon-fork/ctf-crypto-modern-ciphers/SKILL.md +688 -0
  207. package/skills/offensive/airecon-fork/ctf-forensics/SKILL.md +253 -0
  208. package/skills/offensive/airecon-fork/ctf-forensics-network/SKILL.md +480 -0
  209. package/skills/offensive/airecon-fork/ctf-heap-advanced/SKILL.md +336 -0
  210. package/skills/offensive/airecon-fork/ctf-pwn/SKILL.md +294 -0
  211. package/skills/offensive/airecon-fork/ctf-pwn-rop-and-shellcode/SKILL.md +392 -0
  212. package/skills/offensive/airecon-fork/ctf-reversing/SKILL.md +284 -0
  213. package/skills/offensive/airecon-fork/frameworks-django/SKILL.md +268 -0
  214. package/skills/offensive/airecon-fork/frameworks-dotnet/SKILL.md +280 -0
  215. package/skills/offensive/airecon-fork/frameworks-express/SKILL.md +266 -0
  216. package/skills/offensive/airecon-fork/frameworks-fastapi/SKILL.md +193 -0
  217. package/skills/offensive/airecon-fork/frameworks-flask/SKILL.md +297 -0
  218. package/skills/offensive/airecon-fork/frameworks-laravel/SKILL.md +260 -0
  219. package/skills/offensive/airecon-fork/frameworks-nextjs/SKILL.md +230 -0
  220. package/skills/offensive/airecon-fork/frameworks-php/SKILL.md +271 -0
  221. package/skills/offensive/airecon-fork/frameworks-rails/SKILL.md +269 -0
  222. package/skills/offensive/airecon-fork/frameworks-spring/SKILL.md +245 -0
  223. package/skills/offensive/airecon-fork/frameworks-wordpress/SKILL.md +348 -0
  224. package/skills/offensive/airecon-fork/payloads-command-injection/SKILL.md +459 -0
  225. package/skills/offensive/airecon-fork/payloads-http-parameter-pollution/SKILL.md +129 -0
  226. package/skills/offensive/airecon-fork/payloads-ldap-injection/SKILL.md +100 -0
  227. package/skills/offensive/airecon-fork/payloads-lfi/SKILL.md +485 -0
  228. package/skills/offensive/airecon-fork/payloads-sqli/SKILL.md +419 -0
  229. package/skills/offensive/airecon-fork/payloads-ssrf/SKILL.md +125 -0
  230. package/skills/offensive/airecon-fork/payloads-ssti/SKILL.md +443 -0
  231. package/skills/offensive/airecon-fork/payloads-xss/SKILL.md +447 -0
  232. package/skills/offensive/airecon-fork/payloads-xxe/SKILL.md +172 -0
  233. package/skills/offensive/airecon-fork/postexploit-ad-credential-attacks/SKILL.md +306 -0
  234. package/skills/offensive/airecon-fork/postexploit-container-escape/SKILL.md +299 -0
  235. package/skills/offensive/airecon-fork/postexploit-credential-dumping/SKILL.md +249 -0
  236. package/skills/offensive/airecon-fork/postexploit-lateral-movement/SKILL.md +194 -0
  237. package/skills/offensive/airecon-fork/postexploit-linux-privesc/SKILL.md +252 -0
  238. package/skills/offensive/airecon-fork/postexploit-netexec-workflow/SKILL.md +302 -0
  239. package/skills/offensive/airecon-fork/postexploit-pivoting/SKILL.md +205 -0
  240. package/skills/offensive/airecon-fork/postexploit-windows-privesc/SKILL.md +210 -0
  241. package/skills/offensive/airecon-fork/protocols-active-directory/SKILL.md +314 -0
  242. package/skills/offensive/airecon-fork/protocols-dns/SKILL.md +203 -0
  243. package/skills/offensive/airecon-fork/protocols-ftp/SKILL.md +159 -0
  244. package/skills/offensive/airecon-fork/protocols-graphql/SKILL.md +648 -0
  245. package/skills/offensive/airecon-fork/protocols-kerberos/SKILL.md +168 -0
  246. package/skills/offensive/airecon-fork/protocols-ldap/SKILL.md +245 -0
  247. package/skills/offensive/airecon-fork/protocols-rdp/SKILL.md +186 -0
  248. package/skills/offensive/airecon-fork/protocols-smb/SKILL.md +191 -0
  249. package/skills/offensive/airecon-fork/protocols-smtp-imap/SKILL.md +263 -0
  250. package/skills/offensive/airecon-fork/protocols-snmp/SKILL.md +147 -0
  251. package/skills/offensive/airecon-fork/protocols-ssh/SKILL.md +287 -0
  252. package/skills/offensive/airecon-fork/reconnaissance-asn-whois-osint/SKILL.md +236 -0
  253. package/skills/offensive/airecon-fork/reconnaissance-ctf-methodology/SKILL.md +435 -0
  254. package/skills/offensive/airecon-fork/reconnaissance-dorking/SKILL.md +182 -0
  255. package/skills/offensive/airecon-fork/reconnaissance-exposed-devtools-detection/SKILL.md +513 -0
  256. package/skills/offensive/airecon-fork/reconnaissance-full-recon/SKILL.md +305 -0
  257. package/skills/offensive/airecon-fork/reconnaissance-internal-pentest/SKILL.md +202 -0
  258. package/skills/offensive/airecon-fork/reconnaissance-javascript-analysis/SKILL.md +167 -0
  259. package/skills/offensive/airecon-fork/reconnaissance-js-internal-hostname-intelligence/SKILL.md +391 -0
  260. package/skills/offensive/airecon-fork/reconnaissance-monitoring-secrets-exposure/SKILL.md +394 -0
  261. package/skills/offensive/airecon-fork/reconnaissance-shodan-censys/SKILL.md +279 -0
  262. package/skills/offensive/airecon-fork/reconnaissance-subdomain-enum/SKILL.md +952 -0
  263. package/skills/offensive/airecon-fork/technologies-cicd-attacks/SKILL.md +283 -0
  264. package/skills/offensive/airecon-fork/technologies-cloud-security/SKILL.md +299 -0
  265. package/skills/offensive/airecon-fork/technologies-docker-container/SKILL.md +266 -0
  266. package/skills/offensive/airecon-fork/technologies-elasticsearch/SKILL.md +226 -0
  267. package/skills/offensive/airecon-fork/technologies-firebase-firestore/SKILL.md +213 -0
  268. package/skills/offensive/airecon-fork/technologies-frida-hooking/SKILL.md +387 -0
  269. package/skills/offensive/airecon-fork/technologies-gitlab-github/SKILL.md +259 -0
  270. package/skills/offensive/airecon-fork/technologies-jenkins/SKILL.md +256 -0
  271. package/skills/offensive/airecon-fork/technologies-kubernetes-pentest/SKILL.md +281 -0
  272. package/skills/offensive/airecon-fork/technologies-memcached/SKILL.md +230 -0
  273. package/skills/offensive/airecon-fork/technologies-mobile-app-pentesting/SKILL.md +105 -0
  274. package/skills/offensive/airecon-fork/technologies-mongodb/SKILL.md +257 -0
  275. package/skills/offensive/airecon-fork/technologies-nginx-apache/SKILL.md +280 -0
  276. package/skills/offensive/airecon-fork/technologies-observability-stack-attacks/SKILL.md +501 -0
  277. package/skills/offensive/airecon-fork/technologies-redis/SKILL.md +236 -0
  278. package/skills/offensive/airecon-fork/technologies-supabase/SKILL.md +270 -0
  279. package/skills/offensive/airecon-fork/technologies-tomcat/SKILL.md +232 -0
  280. package/skills/offensive/airecon-fork/tools-advanced-fuzzing/SKILL.md +351 -0
  281. package/skills/offensive/airecon-fork/tools-browser-automation/SKILL.md +300 -0
  282. package/skills/offensive/airecon-fork/tools-caido/SKILL.md +776 -0
  283. package/skills/offensive/airecon-fork/tools-code-review/SKILL.md +71 -0
  284. package/skills/offensive/airecon-fork/tools-dalfox/SKILL.md +189 -0
  285. package/skills/offensive/airecon-fork/tools-hashcat-john/SKILL.md +258 -0
  286. package/skills/offensive/airecon-fork/tools-impacket/SKILL.md +227 -0
  287. package/skills/offensive/airecon-fork/tools-install/SKILL.md +202 -0
  288. package/skills/offensive/airecon-fork/tools-metasploit/SKILL.md +270 -0
  289. package/skills/offensive/airecon-fork/tools-nmap/SKILL.md +211 -0
  290. package/skills/offensive/airecon-fork/tools-nuclei/SKILL.md +175 -0
  291. package/skills/offensive/airecon-fork/tools-reporting/SKILL.md +47 -0
  292. package/skills/offensive/airecon-fork/tools-scripting/SKILL.md +1939 -0
  293. package/skills/offensive/airecon-fork/tools-semgrep/SKILL.md +202 -0
  294. package/skills/offensive/airecon-fork/tools-source-audit/SKILL.md +308 -0
  295. package/skills/offensive/airecon-fork/tools-sqlmap/SKILL.md +137 -0
  296. package/skills/offensive/airecon-fork/tools-tool-catalog/SKILL.md +320 -0
  297. package/skills/offensive/airecon-fork/tools-wapiti/SKILL.md +293 -0
  298. package/skills/offensive/airecon-fork/vulnerabilities-2fa-bypass/SKILL.md +219 -0
  299. package/skills/offensive/airecon-fork/vulnerabilities-account-takeover/SKILL.md +223 -0
  300. package/skills/offensive/airecon-fork/vulnerabilities-api-schema-exposure/SKILL.md +849 -0
  301. package/skills/offensive/airecon-fork/vulnerabilities-api-testing/SKILL.md +278 -0
  302. package/skills/offensive/airecon-fork/vulnerabilities-auth-workflow/SKILL.md +252 -0
  303. package/skills/offensive/airecon-fork/vulnerabilities-authentication-jwt/SKILL.md +158 -0
  304. package/skills/offensive/airecon-fork/vulnerabilities-bfla/SKILL.md +156 -0
  305. package/skills/offensive/airecon-fork/vulnerabilities-blind-xss/SKILL.md +111 -0
  306. package/skills/offensive/airecon-fork/vulnerabilities-business-logic/SKILL.md +313 -0
  307. package/skills/offensive/airecon-fork/vulnerabilities-cors/SKILL.md +242 -0
  308. package/skills/offensive/airecon-fork/vulnerabilities-crlf-injection/SKILL.md +146 -0
  309. package/skills/offensive/airecon-fork/vulnerabilities-csrf/SKILL.md +200 -0
  310. package/skills/offensive/airecon-fork/vulnerabilities-csrf-advanced-bypass/SKILL.md +536 -0
  311. package/skills/offensive/airecon-fork/vulnerabilities-deserialization/SKILL.md +363 -0
  312. package/skills/offensive/airecon-fork/vulnerabilities-dom-based-vulnerabilities/SKILL.md +105 -0
  313. package/skills/offensive/airecon-fork/vulnerabilities-exploitation/SKILL.md +286 -0
  314. package/skills/offensive/airecon-fork/vulnerabilities-grpc/SKILL.md +123 -0
  315. package/skills/offensive/airecon-fork/vulnerabilities-host-header-injection/SKILL.md +169 -0
  316. package/skills/offensive/airecon-fork/vulnerabilities-http-smuggling/SKILL.md +411 -0
  317. package/skills/offensive/airecon-fork/vulnerabilities-idor/SKILL.md +705 -0
  318. package/skills/offensive/airecon-fork/vulnerabilities-information-disclosure/SKILL.md +867 -0
  319. package/skills/offensive/airecon-fork/vulnerabilities-insecure-file-uploads/SKILL.md +190 -0
  320. package/skills/offensive/airecon-fork/vulnerabilities-jwt-attacks/SKILL.md +270 -0
  321. package/skills/offensive/airecon-fork/vulnerabilities-kubernetes/SKILL.md +252 -0
  322. package/skills/offensive/airecon-fork/vulnerabilities-mass-assignment/SKILL.md +788 -0
  323. package/skills/offensive/airecon-fork/vulnerabilities-nosql-injection/SKILL.md +204 -0
  324. package/skills/offensive/airecon-fork/vulnerabilities-oauth-misconfig/SKILL.md +220 -0
  325. package/skills/offensive/airecon-fork/vulnerabilities-oauth-saml/SKILL.md +163 -0
  326. package/skills/offensive/airecon-fork/vulnerabilities-open-redirect/SKILL.md +167 -0
  327. package/skills/offensive/airecon-fork/vulnerabilities-password-reset-poisoning/SKILL.md +66 -0
  328. package/skills/offensive/airecon-fork/vulnerabilities-path-traversal/SKILL.md +192 -0
  329. package/skills/offensive/airecon-fork/vulnerabilities-privilege-escalation/SKILL.md +320 -0
  330. package/skills/offensive/airecon-fork/vulnerabilities-prototype-pollution/SKILL.md +242 -0
  331. package/skills/offensive/airecon-fork/vulnerabilities-race-conditions/SKILL.md +192 -0
  332. package/skills/offensive/airecon-fork/vulnerabilities-rce/SKILL.md +240 -0
  333. package/skills/offensive/airecon-fork/vulnerabilities-sensitive-file-pii-exposure/SKILL.md +589 -0
  334. package/skills/offensive/airecon-fork/vulnerabilities-spring4shell/SKILL.md +86 -0
  335. package/skills/offensive/airecon-fork/vulnerabilities-sql-injection/SKILL.md +313 -0
  336. package/skills/offensive/airecon-fork/vulnerabilities-ssrf/SKILL.md +183 -0
  337. package/skills/offensive/airecon-fork/vulnerabilities-ssti/SKILL.md +344 -0
  338. package/skills/offensive/airecon-fork/vulnerabilities-subdomain-takeover/SKILL.md +160 -0
  339. package/skills/offensive/airecon-fork/vulnerabilities-supply-chain/SKILL.md +125 -0
  340. package/skills/offensive/airecon-fork/vulnerabilities-unhandled-exception-differential/SKILL.md +742 -0
  341. package/skills/offensive/airecon-fork/vulnerabilities-waf-detection/SKILL.md +90 -0
  342. package/skills/offensive/airecon-fork/vulnerabilities-web-cache-poisoning/SKILL.md +233 -0
  343. package/skills/offensive/airecon-fork/vulnerabilities-websocket/SKILL.md +180 -0
  344. package/skills/offensive/airecon-fork/vulnerabilities-xss/SKILL.md +316 -0
  345. package/skills/offensive/airecon-fork/vulnerabilities-xxe/SKILL.md +222 -0
@@ -0,0 +1,283 @@
1
+ ---
2
+ license: MIT (snippet)
3
+ provider: Ruby on Rails + Sidekiq (Open-Source)
4
+ last-checked: 2026-05-05
5
+ purpose: Sidekiq-Worker-Pattern fuer asynchrone Anonymisierung + Hard-Delete-Cron.
6
+ ---
7
+
8
+ # Rails — GDPR-Anonymisierungs-Worker (Sidekiq-Pattern)
9
+
10
+ ## Trigger / Detection
11
+
12
+ Repo enthaelt:
13
+ - `gem 'sidekiq'` in `Gemfile`
14
+ - `app/workers/` oder `app/jobs/` Verzeichnis
15
+ - `Sidekiq::Worker` / `ActiveJob::Base` Subclasses
16
+ - Optional: `gem 'sidekiq-cron'` / `gem 'whenever'` fuer Cron-Scheduling
17
+
18
+ ## Default-Verhalten (was passiert ohne Konfiguration)
19
+
20
+ - Account-Loeschung erfolgt synchron im Request → Timeout-Risiko
21
+ - Anonymisierung uebersieht abhaengige Records (Activity, Comments, Uploads)
22
+ - Search-Index (Elasticsearch / Algolia) wird nicht synchron mit DB-Loeschung geupdatet
23
+ - Soft-Deletes haeufen sich → Storage-Kosten + DSGVO-Drift
24
+ - Sidekiq-Logs enthalten Klartext-PII bei Job-Args
25
+
26
+ ## Compliance-Risiken
27
+
28
+ | Risiko | Norm | Severity | Fix |
29
+ |---|---|---|---|
30
+ | Search-Index nicht ge-updated | Art. 17 DSGVO | KRITISCH | Worker triggert `unsearchable!` |
31
+ | Sidekiq-Args mit User-PII (Email/Name) | Art. 5 lit. c | HOCH | Nur User-ID als Arg, Lookup im Worker |
32
+ | Hard-Delete-Cron fehlt | Art. 5 lit. e | KRITISCH | `sidekiq-cron` mit taeglicher Schedule |
33
+ | Job-Failure unbemerkt | Art. 5 Abs. 2 | HOCH | Sidekiq-Web + Alert-Hook |
34
+ | Backup-Files nicht rotated | Art. 5 lit. e | HOCH | Backup-Provider-Policy + Doku |
35
+
36
+ ## Code-Pattern (sanitized)
37
+
38
+ ```ruby
39
+ # File: app/workers/gdpr/anonymize_user_worker.rb
40
+ module Gdpr
41
+ class AnonymizeUserWorker
42
+ include Sidekiq::Worker
43
+
44
+ sidekiq_options queue: 'gdpr', retry: 3, backtrace: true
45
+
46
+ def perform(user_id, reason = nil)
47
+ user = User.with_deleted.find_by(id: user_id)
48
+ return unless user
49
+
50
+ ActiveRecord::Base.transaction do
51
+ # 1. PII anonymisieren
52
+ user.anonymize!
53
+
54
+ # 2. Audit-Log
55
+ UserAuditLog.create!(
56
+ user: user,
57
+ action: 'account_deletion',
58
+ ip_hash: nil,
59
+ user_agent: 'GDPR-Worker',
60
+ occurred_at: Time.current,
61
+ metadata: { reason: reason }.to_json
62
+ )
63
+
64
+ # 3. Search-Index entfernen
65
+ user.unsearchable! if user.respond_to?(:unsearchable!)
66
+
67
+ # 4. Cascade-Anonymisierung auf abhaengige Records
68
+ user.comments.update_all(author_name: 'GELOESCHT')
69
+ user.uploads.find_each(&:purge)
70
+
71
+ # 5. Soft-Delete setzen (falls noch nicht)
72
+ user.update!(deleted_at: Time.current) unless user.deleted_at
73
+
74
+ # 6. Hard-Delete via separatem Cron in 30 Tagen
75
+ end
76
+
77
+ Rails.logger.info "[GDPR] User #{user_id} anonymized"
78
+ rescue => e
79
+ Rails.logger.error "[GDPR] Anonymization failed for #{user_id}: #{e.message}"
80
+ raise # Sidekiq retry
81
+ end
82
+ end
83
+ end
84
+ ```
85
+
86
+ ```ruby
87
+ # File: app/workers/gdpr/hard_delete_worker.rb
88
+ module Gdpr
89
+ class HardDeleteWorker
90
+ include Sidekiq::Worker
91
+
92
+ sidekiq_options queue: 'gdpr', retry: 3
93
+
94
+ HARD_DELETE_GRACE_PERIOD = 30.days
95
+
96
+ def perform
97
+ cutoff = HARD_DELETE_GRACE_PERIOD.ago
98
+
99
+ User.with_deleted.where('deleted_at < ?', cutoff).find_each do |user|
100
+ ActiveRecord::Base.transaction do
101
+ # Cascade-Loeschung
102
+ user.user_audit_logs.delete_all # Audit-Log raus
103
+ user.comments.delete_all
104
+ user.uploads.find_each(&:destroy!)
105
+ user.user_legal_acceptances.delete_all
106
+
107
+ # Hard-Delete
108
+ user.really_destroy! # paranoia-gem
109
+ end
110
+
111
+ Rails.logger.info "[GDPR] User #{user.id} hard-deleted"
112
+ end
113
+
114
+ # Cron-Run-Tracking
115
+ CronRun.create!(
116
+ job_name: 'gdpr-hard-delete',
117
+ finished_at: Time.current,
118
+ status: 'success'
119
+ )
120
+ rescue => e
121
+ CronRun.create!(
122
+ job_name: 'gdpr-hard-delete',
123
+ finished_at: Time.current,
124
+ status: 'failed',
125
+ error: e.message
126
+ )
127
+ raise
128
+ end
129
+ end
130
+ end
131
+ ```
132
+
133
+ ```ruby
134
+ # File: app/workers/gdpr/inactive_user_cleanup_worker.rb
135
+ module Gdpr
136
+ class InactiveUserCleanupWorker
137
+ include Sidekiq::Worker
138
+
139
+ sidekiq_options queue: 'gdpr', retry: 3
140
+
141
+ INACTIVITY_PERIOD = 2.years
142
+
143
+ def perform
144
+ cutoff = INACTIVITY_PERIOD.ago
145
+
146
+ User.where('current_sign_in_at < ? AND deleted_at IS NULL', cutoff)
147
+ .where(consent_inactivity_warning_sent_at: nil)
148
+ .find_each(batch_size: 100) do |user|
149
+ # Erste Stufe: Warning-Mail
150
+ UserMailer.inactivity_warning(user).deliver_later
151
+ user.update!(consent_inactivity_warning_sent_at: Time.current)
152
+ end
153
+
154
+ # Zweite Stufe: User die bereits gewarnt + 30 Tage spaeter immer noch inaktiv
155
+ User.where('consent_inactivity_warning_sent_at < ?', 30.days.ago)
156
+ .where('current_sign_in_at < ?', cutoff)
157
+ .where(deleted_at: nil)
158
+ .find_each do |user|
159
+ Gdpr::AnonymizeUserWorker.perform_async(user.id, 'inactivity_2_years')
160
+ user.update!(deleted_at: Time.current)
161
+ end
162
+ end
163
+ end
164
+ end
165
+ ```
166
+
167
+ ```ruby
168
+ # File: config/sidekiq_cron.yml
169
+ gdpr_hard_delete:
170
+ cron: '0 3 * * *' # Taeglich 3 Uhr UTC
171
+ class: 'Gdpr::HardDeleteWorker'
172
+
173
+ gdpr_inactive_cleanup:
174
+ cron: '0 4 * * 0' # Sonntag 4 Uhr UTC
175
+ class: 'Gdpr::InactiveUserCleanupWorker'
176
+
177
+ analytics_events_cleanup:
178
+ cron: '0 5 * * *'
179
+ class: 'AnalyticsEventCleanupWorker'
180
+ ```
181
+
182
+ ```ruby
183
+ # File: config/initializers/sidekiq.rb
184
+ Sidekiq.configure_server do |config|
185
+ config.redis = { url: ENV.fetch('REDIS_URL') }
186
+
187
+ # Sidekiq-Cron-Schedule laden
188
+ if File.exist?(Rails.root.join('config/sidekiq_cron.yml'))
189
+ schedule = YAML.load_file(Rails.root.join('config/sidekiq_cron.yml'))
190
+ Sidekiq::Cron::Job.load_from_hash(schedule)
191
+ end
192
+
193
+ # Args-Filtering: PII niemals in Logs
194
+ config.logger.formatter = lambda do |severity, time, prog, msg|
195
+ # Strip Email-Patterns
196
+ safe_msg = msg.to_s.gsub(/[\w.+-]+@[\w-]+\.[\w-]+/, '[EMAIL_REDACTED]')
197
+ "#{time.iso8601} [#{severity}] #{safe_msg}\n"
198
+ end
199
+ end
200
+ ```
201
+
202
+ ```ruby
203
+ # File: app/controllers/gdpr_controller.rb
204
+ class GdprController < ApplicationController
205
+ before_action :authenticate_user!
206
+
207
+ def destroy_account
208
+ reason = params[:reason]&.first(500)
209
+
210
+ # Synchron: nur Soft-Delete + Logout
211
+ current_user.update!(deleted_at: Time.current, deletion_reason: reason)
212
+
213
+ # Async: Anonymisierung
214
+ Gdpr::AnonymizeUserWorker.perform_async(current_user.id, reason)
215
+
216
+ sign_out current_user
217
+ render json: {
218
+ status: 'PENDING_HARD_DELETE',
219
+ soft_deleted_at: Time.current.iso8601,
220
+ hard_delete_scheduled: '30 Tage'
221
+ }, status: :accepted
222
+ end
223
+ end
224
+ ```
225
+
226
+ ## AVV / DPA
227
+
228
+ - Datenbank — AVV mit Hard-Delete-Wirksamkeit
229
+ - Sidekiq-Redis (Upstash EU / Redis Cloud EU) — AVV
230
+ - Search-Index (Algolia / Meilisearch) — AVV + Index-Sync-Garantie
231
+ - Mailer fuer Warning-Mails — AVV
232
+
233
+ ## DSE-Wording-Vorlage
234
+
235
+ ```markdown
236
+ ### Loesch-Workflow und Inaktivitaets-Cleanup
237
+
238
+ **Bei Loesch-Antrag (manuell):**
239
+
240
+ 1. Sofort: Account deaktiviert, ausgeloggt
241
+ 2. Sofort (asynchron): PII anonymisiert, Search-Index entfernt, Comments
242
+ anonymisiert, Uploads geloescht
243
+ 3. Nach 30 Tagen: Endgueltige Loeschung aus Datenbank
244
+
245
+ **Bei Inaktivitaet (automatisch):**
246
+
247
+ 1. Nach 2 Jahren ohne Login: Erinnerungs-Mail
248
+ 2. 30 Tage nach Erinnerungs-Mail (immer noch keine Aktivitaet):
249
+ automatischer Loesch-Workflow
250
+ 3. Hard-Delete folgt nach weiteren 30 Tagen
251
+
252
+ **Rechtsgrundlage:** Art. 5 lit. e DSGVO (Speicherbegrenzung), Art. 17 DSGVO
253
+ (Recht auf Loeschung).
254
+ ```
255
+
256
+ ## Verify-Commands (Live-Probe)
257
+
258
+ ```bash
259
+ # 1. Sidekiq-Web-Health
260
+ curl https://<placeholder-domain>/sidekiq/cron
261
+ # Erwartung: aktivitaet aller Cron-Jobs sichtbar
262
+
263
+ # 2. Anonymize-Worker manuell anstossen
264
+ bundle exec rails console
265
+ # > Gdpr::AnonymizeUserWorker.perform_async(<test-user-id>, 'test')
266
+ # > Sidekiq::Queue.new('gdpr').size # Erwartung: 1, dann 0 nach Verarbeitung
267
+
268
+ # 3. Job-Logs ohne PII
269
+ tail -100 log/sidekiq.log | grep -E '[\w.+-]+@[\w-]+\.[\w-]+' | head -5
270
+ # Erwartung: 0 Treffer oder ausschliesslich [EMAIL_REDACTED]
271
+
272
+ # 4. Hard-Delete nach 30 Tagen wirksam
273
+ # DB-Query: SELECT COUNT(*) FROM users WHERE deleted_at < now() - interval '30 days';
274
+ # Erwartung: 0
275
+ ```
276
+
277
+ ## Cross-References
278
+
279
+ - AEGIS-Scanner: `data-retention-checker.ts`, `cron-coverage-checker.ts`, `pii-anonymization-checker.ts`
280
+ - Skill-Reference: `references/dsgvo.md` Art. 17, Art. 5 lit. e
281
+ - BGH-Rechtsprechung: `references/bgh-urteile.md`
282
+ - EuGH: `references/eu-eugh-dsgvo-schadensersatz.md` (Loesch-Anspruch)
283
+ - Audit-Pattern: `references/audit-patterns.md` Phase 4 (DSE-Drift / Cron-Coverage)
@@ -0,0 +1,99 @@
1
+ ---
2
+ license: MIT (snippet)
3
+ provider: React (Open-Source)
4
+ last-checked: 2026-05-02
5
+ purpose: React useConsent Hook fuer ConsentGate-Pattern.
6
+ ---
7
+
8
+ # React — useConsent Hook + ConsentGate (Pattern)
9
+
10
+ ## 1. Use-Case
11
+
12
+ Tracker / Embeds / Drittanbieter sollen NUR nach User-Consent geladen werden.
13
+
14
+ ## 2. Code-Pattern
15
+
16
+ ```tsx
17
+ // File: src/lib/consent.ts
18
+ import { useState, useEffect } from 'react';
19
+
20
+ type ConsentCategory = 'necessary' | 'analytics' | 'marketing';
21
+
22
+ type ConsentState = Record<ConsentCategory, boolean>;
23
+
24
+ const STORAGE_KEY = 'cookie-consent';
25
+
26
+ export function useConsent() {
27
+ const [consent, setConsent] = useState<ConsentState>({
28
+ necessary: true,
29
+ analytics: false,
30
+ marketing: false,
31
+ });
32
+
33
+ useEffect(() => {
34
+ const stored = localStorage.getItem(STORAGE_KEY);
35
+ if (stored) {
36
+ setConsent(JSON.parse(stored));
37
+ }
38
+ // Listen fuer Consent-Aenderungen
39
+ const handler = () => {
40
+ const updated = localStorage.getItem(STORAGE_KEY);
41
+ if (updated) setConsent(JSON.parse(updated));
42
+ };
43
+ window.addEventListener('storage', handler);
44
+ return () => window.removeEventListener('storage', handler);
45
+ }, []);
46
+
47
+ const hasConsented = (category: ConsentCategory) => consent[category];
48
+
49
+ return { consent, hasConsented };
50
+ }
51
+ ```
52
+
53
+ ```tsx
54
+ // File: src/components/ConsentGate.tsx
55
+ 'use client';
56
+
57
+ import { ReactNode } from 'react';
58
+ import { useConsent } from '@/lib/consent';
59
+
60
+ type Props = {
61
+ category: 'analytics' | 'marketing';
62
+ children: ReactNode;
63
+ fallback?: ReactNode;
64
+ };
65
+
66
+ export default function ConsentGate({ category, children, fallback }: Props) {
67
+ const { hasConsented } = useConsent();
68
+
69
+ if (!hasConsented(category)) {
70
+ return fallback ? <>{fallback}</> : null;
71
+ }
72
+
73
+ return <>{children}</>;
74
+ }
75
+ ```
76
+
77
+ ```tsx
78
+ // Verwendung: YouTube-Embed nur nach Consent
79
+ import ConsentGate from '@/components/ConsentGate';
80
+
81
+ <ConsentGate category="marketing" fallback={
82
+ <div className="consent-fallback">
83
+ <p>YouTube-Video benoetigt Ihre Einwilligung.</p>
84
+ <button onClick={() => /* Banner re-open */}>Cookies aendern</button>
85
+ </div>
86
+ }>
87
+ <iframe src="https://www.youtube-nocookie.com/embed/..." />
88
+ </ConsentGate>
89
+ ```
90
+
91
+ ## 3. Az.-Anker
92
+
93
+ - EuGH C-40/17 Fashion-ID (Mit-Verantwortlichkeit)
94
+ - LG Muenchen I 3 O 17493/20 (Google Fonts ohne Consent)
95
+
96
+ ## 4. Cross-Reference
97
+
98
+ - Cookie-Banner: `cookie-banner-pattern.md`
99
+ - Audit-Pattern Phase 5: `audit-patterns.md`
@@ -0,0 +1,204 @@
1
+ ---
2
+ license: MIT (snippet)
3
+ provider: React (Open-Source)
4
+ last-checked: 2026-05-02
5
+ purpose: React Cookie-Banner Pattern mit Accept/Reject/Settings + Dokumentation.
6
+ ---
7
+
8
+ # React — Cookie-Banner (Pattern)
9
+
10
+ ## 1. DSGVO/TDDDG-Pflicht-Eigenschaften
11
+
12
+ | Pflicht | Quelle |
13
+ |---|---|
14
+ | Banner sichtbar bei Erstbesuch | EuGH C-673/17 Planet49 |
15
+ | Akzeptieren + Ablehnen gleichwertig | OLG Koeln 6 U 80/23 |
16
+ | Keine Pre-Tick-Boxen | EuGH C-673/17 |
17
+ | Granulare Kategorien | EDPB Guidelines 03/2022 |
18
+ | Widerruf jederzeit (Footer-Link) | DSGVO Art. 7 Abs. 3 |
19
+ | Consent-Log mit Timestamp | DSGVO Art. 7 Abs. 1 (Nachweis) |
20
+
21
+ ## 2. Code-Pattern (sanitized)
22
+
23
+ ```tsx
24
+ // File: src/components/CookieBanner.tsx
25
+ 'use client';
26
+
27
+ import { useState, useEffect } from 'react';
28
+
29
+ type ConsentState = {
30
+ necessary: true; // Default true (immer erlaubt)
31
+ analytics: boolean;
32
+ marketing: boolean;
33
+ timestamp?: string;
34
+ version: '1.0';
35
+ };
36
+
37
+ const STORAGE_KEY = 'cookie-consent';
38
+
39
+ export default function CookieBanner() {
40
+ const [showBanner, setShowBanner] = useState(false);
41
+ const [showSettings, setShowSettings] = useState(false);
42
+ const [consent, setConsent] = useState<ConsentState>({
43
+ necessary: true,
44
+ analytics: false, // Default false (Opt-In)
45
+ marketing: false, // Default false (Opt-In)
46
+ version: '1.0',
47
+ });
48
+
49
+ useEffect(() => {
50
+ const stored = localStorage.getItem(STORAGE_KEY);
51
+ if (!stored) {
52
+ setShowBanner(true);
53
+ }
54
+ }, []);
55
+
56
+ const persistConsent = (state: ConsentState) => {
57
+ const final = { ...state, timestamp: new Date().toISOString() };
58
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(final));
59
+ // Server-side log fuer Beweis Pflicht
60
+ fetch('/api/consent-log', {
61
+ method: 'POST',
62
+ body: JSON.stringify(final),
63
+ headers: { 'Content-Type': 'application/json' },
64
+ });
65
+ setShowBanner(false);
66
+ };
67
+
68
+ const acceptAll = () => persistConsent({
69
+ ...consent,
70
+ analytics: true,
71
+ marketing: true,
72
+ version: '1.0',
73
+ });
74
+
75
+ const rejectAll = () => persistConsent({
76
+ necessary: true,
77
+ analytics: false,
78
+ marketing: false,
79
+ version: '1.0',
80
+ });
81
+
82
+ if (!showBanner) return null;
83
+
84
+ return (
85
+ <aside role="dialog" aria-label="Cookie-Einwilligung" className="cookie-banner">
86
+ <p>
87
+ Wir nutzen Cookies fuer notwendige Funktionen und (mit Ihrer Einwilligung)
88
+ fuer Webanalyse. Details in <a href="/datenschutz">Datenschutzerklaerung</a>.
89
+ </p>
90
+ <div className="cookie-banner-buttons">
91
+ {/* Beide Buttons gleichwertig (OLG Koeln 6 U 80/23) */}
92
+ <button onClick={rejectAll} className="btn-secondary">
93
+ Nur Notwendige
94
+ </button>
95
+ <button onClick={() => setShowSettings(true)} className="btn-secondary">
96
+ Einstellungen
97
+ </button>
98
+ <button onClick={acceptAll} className="btn-primary">
99
+ Alle akzeptieren
100
+ </button>
101
+ </div>
102
+ {showSettings && (
103
+ <CookieSettings
104
+ consent={consent}
105
+ onSave={persistConsent}
106
+ onChange={setConsent}
107
+ />
108
+ )}
109
+ </aside>
110
+ );
111
+ }
112
+
113
+ function CookieSettings({ consent, onSave, onChange }: any) {
114
+ return (
115
+ <div className="cookie-settings">
116
+ <label>
117
+ <input type="checkbox" checked disabled />
118
+ <strong>Notwendig</strong> (Session-Login, CSRF, Cookie-Consent — kein Opt-Out)
119
+ </label>
120
+ <label>
121
+ <input
122
+ type="checkbox"
123
+ checked={consent.analytics}
124
+ onChange={(e) => onChange({ ...consent, analytics: e.target.checked })}
125
+ />
126
+ <strong>Analytics</strong> (Webseiten-Statistiken, Datenerhebung anonym)
127
+ </label>
128
+ <label>
129
+ <input
130
+ type="checkbox"
131
+ checked={consent.marketing}
132
+ onChange={(e) => onChange({ ...consent, marketing: e.target.checked })}
133
+ />
134
+ <strong>Marketing</strong> (Werbung, Tracking ueber Drittanbieter)
135
+ </label>
136
+ <button onClick={() => onSave(consent)}>Auswahl speichern</button>
137
+ </div>
138
+ );
139
+ }
140
+ ```
141
+
142
+ ## 3. Footer-Link fuer Widerruf
143
+
144
+ ```tsx
145
+ // File: src/components/Footer.tsx
146
+ export default function Footer() {
147
+ const reopenBanner = () => {
148
+ localStorage.removeItem('cookie-consent');
149
+ window.location.reload();
150
+ };
151
+
152
+ return (
153
+ <footer>
154
+ <button onClick={reopenBanner}>
155
+ Cookie-Einstellungen aendern
156
+ </button>
157
+ </footer>
158
+ );
159
+ }
160
+ ```
161
+
162
+ ## 4. Server-Side Consent-Log
163
+
164
+ ```ts
165
+ // File: src/app/api/consent-log/route.ts
166
+ import { db } from '@/lib/db';
167
+
168
+ export async function POST(req: Request) {
169
+ const consent = await req.json();
170
+ await db.consentLog.create({
171
+ data: {
172
+ ip: hashIp(req.headers.get('x-forwarded-for') ?? ''),
173
+ userAgent: req.headers.get('user-agent') ?? '',
174
+ consent: JSON.stringify(consent),
175
+ timestamp: new Date(),
176
+ },
177
+ });
178
+ return new Response(null, { status: 204 });
179
+ }
180
+
181
+ function hashIp(ip: string): string {
182
+ return require('crypto').createHash('sha256').update(ip).digest('hex');
183
+ }
184
+ ```
185
+
186
+ ## 5. Az.-Anker
187
+
188
+ - EuGH C-673/17 Planet49 (01.10.2019)
189
+ - BGH I ZR 7/16 (28.05.2020)
190
+ - OLG Koeln 6 U 80/23 (19.01.2024)
191
+ - LG Berlin 16 O 252/22 (28.06.2023)
192
+
193
+ ## 6. Verify
194
+
195
+ ```bash
196
+ # 1. Banner laedt bei Erstbesuch (no consent set)
197
+ curl -sS https://example.com -H "Cookie: " | grep -ic "cookie-banner\|akzeptieren\|ablehnen"
198
+
199
+ # 2. Reject = Akzeptieren gleichwertig
200
+ # (manuell: pruefe CSS dass beide Buttons gleiche Klasse / Groesse haben)
201
+
202
+ # 3. Settings-Link im Footer
203
+ curl -sS https://example.com | grep -ic "cookie.einstell\|cookie-settings"
204
+ ```