@aegis-scan/skills 0.2.1 → 0.5.0

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 (93) hide show
  1. package/ATTRIBUTION.md +171 -4
  2. package/CHANGELOG.md +112 -1
  3. package/README.md +27 -0
  4. package/dist/skills-loader.d.ts +43 -0
  5. package/dist/skills-loader.d.ts.map +1 -1
  6. package/dist/skills-loader.js +102 -0
  7. package/dist/skills-loader.js.map +1 -1
  8. package/package.json +1 -1
  9. package/skills/compliance/_INDEX.md +49 -0
  10. package/skills/compliance/aegis-native/brutaler-anwalt/CHANGELOG.md +202 -0
  11. package/skills/compliance/aegis-native/brutaler-anwalt/LICENSE +43 -0
  12. package/skills/compliance/aegis-native/brutaler-anwalt/README.md +236 -0
  13. package/skills/compliance/aegis-native/brutaler-anwalt/SKILL.md +437 -6
  14. package/skills/compliance/aegis-native/brutaler-anwalt/references/aegis-integration.md +3 -4
  15. package/skills/compliance/aegis-native/brutaler-anwalt/references/audit-patterns.md +842 -5
  16. package/skills/compliance/aegis-native/brutaler-anwalt/references/bgh-urteile.md +226 -10
  17. package/skills/compliance/aegis-native/brutaler-anwalt/references/branchenrecht.md +365 -1
  18. package/skills/compliance/aegis-native/brutaler-anwalt/references/checklisten.md +33 -0
  19. package/skills/compliance/aegis-native/brutaler-anwalt/references/dsgvo.md +26 -0
  20. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BDSG/paragraphs.md +62 -0
  21. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BFSG/paragraphs.md +85 -0
  22. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/BGB/paragraphs.md +112 -0
  23. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DDG/paragraphs.md +71 -0
  24. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/DSGVO/articles.md +182 -0
  25. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/AI-Act-2024-1689/articles.md +108 -0
  26. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/EU-Verordnungen/DSA-2022-2065/articles.md +131 -0
  27. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/HGB-AO/paragraphs.md +61 -0
  28. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/INDEX.md +93 -0
  29. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/TDDDG/paragraphs.md +67 -0
  30. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/UWG/paragraphs.md +117 -0
  31. package/skills/compliance/aegis-native/brutaler-anwalt/references/gesetze/VSBG/paragraphs.md +57 -0
  32. package/skills/compliance/aegis-native/brutaler-anwalt/references/it-recht.md +22 -0
  33. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/INDEX.md +122 -0
  34. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/ai/mistral-eu.md +123 -0
  35. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/ai/openai-dpa.md +120 -0
  36. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/nextauth-tom.md +120 -0
  37. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/auth/supabase-auth-tom.md +104 -0
  38. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/nextjs/proxy-csp-pattern.md +93 -0
  39. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/payment/stripe-pci-tom.md +121 -0
  40. package/skills/compliance/aegis-native/brutaler-anwalt/references/stack-patterns/tracking/plausible-pattern.md +107 -0
  41. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/AffiliateDisclaimer.tsx.example +54 -0
  42. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/COMPLIANCE-AUDIT-TRAIL-template.md +95 -0
  43. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/DSE-Section-UGC.md.example +77 -0
  44. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/DSFA-template.md +76 -0
  45. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/LostFoundReportForm-consent.tsx.example +126 -0
  46. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/README.md +33 -0
  47. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/UmamiScript.tsx.example +64 -0
  48. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/VVT-template.md +60 -0
  49. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/data-retention-cron.ts.example +52 -0
  50. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/data-retention-workflow.yml.example +47 -0
  51. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/proxy-strict-dynamic.ts.example +80 -0
  52. package/skills/compliance/aegis-native/brutaler-anwalt/references/templates/security.txt.example +26 -0
  53. package/skills/compliance/aegis-native/brutaler-anwalt/scripts/health-check.sh +120 -0
  54. package/skills/defensive/aegis-native/rls-defense/SKILL.md +110 -0
  55. package/skills/defensive/aegis-native/tenant-isolation-defense/SKILL.md +26 -0
  56. package/skills/foundation/_INDEX.md +73 -0
  57. package/skills/foundation/aegis-native/aegis-audit/SKILL.md +194 -0
  58. package/skills/foundation/aegis-native/aegis-audit/references/layer-1-headers.md +138 -0
  59. package/skills/foundation/aegis-native/aegis-audit/references/layer-2-html.md +153 -0
  60. package/skills/foundation/aegis-native/aegis-audit/references/layer-3-impressum.md +159 -0
  61. package/skills/foundation/aegis-native/aegis-audit/references/layer-4-dse.md +178 -0
  62. package/skills/foundation/aegis-native/aegis-audit/references/layer-5-cookie.md +180 -0
  63. package/skills/foundation/aegis-native/aegis-audit/references/layer-6-branche.md +204 -0
  64. package/skills/foundation/aegis-native/aegis-audit/references/layer-7-code-cross-check.md +212 -0
  65. package/skills/foundation/aegis-native/aegis-audit/references/layer-8-schadens-diagnose.md +232 -0
  66. package/skills/foundation/aegis-native/aegis-customer-build/SKILL.md +232 -0
  67. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-1-recon.md +147 -0
  68. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-2-architecture.md +164 -0
  69. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-3-component-build.md +231 -0
  70. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-4-content.md +196 -0
  71. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-5-integration.md +273 -0
  72. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-6-mid-audit.md +200 -0
  73. package/skills/foundation/aegis-native/aegis-customer-build/references/phase-7-final-verify.md +258 -0
  74. package/skills/foundation/aegis-native/aegis-handover-writer/SKILL.md +128 -0
  75. package/skills/foundation/aegis-native/aegis-module-builder/SKILL.md +255 -0
  76. package/skills/foundation/aegis-native/aegis-orchestrator/SKILL.md +229 -0
  77. package/skills/foundation/aegis-native/aegis-quality-gates/SKILL.md +182 -0
  78. package/skills/foundation/aegis-native/aegis-skill-creator/SKILL.md +223 -0
  79. package/skills/foundation/aegis-native/aegis-skill-creator/references/hard-constraint-template.md +213 -0
  80. package/skills/foundation/aegis-native/aegis-skill-creator/references/skillforge-methodology.md +220 -0
  81. package/skills/foundation/aegis-native/dsgvo-compliance/SKILL.md +185 -0
  82. package/skills/foundation/aegis-native/dsgvo-compliance/references/art-13-15-templates.md +309 -0
  83. package/skills/foundation/aegis-native/dsgvo-compliance/references/datenpanne-runbook.md +291 -0
  84. package/skills/offensive/matty-fork/cicd-redteam/SKILL.md +531 -0
  85. package/skills/offensive/matty-fork/cloud-security/SKILL.md +106 -0
  86. package/skills/offensive/matty-fork/container-escape/SKILL.md +174 -0
  87. package/skills/offensive/matty-fork/mobile-pentester/SKILL.md +357 -0
  88. package/skills/offensive/matty-fork/subdomain-takeover/SKILL.md +154 -0
  89. package/skills/osint/elementalsouls-fork/offensive-osint/README.md +92 -0
  90. package/skills/osint/elementalsouls-fork/offensive-osint/SKILL.md +4177 -0
  91. package/skills/osint/elementalsouls-fork/osint-methodology/README.md +66 -0
  92. package/skills/osint/elementalsouls-fork/osint-methodology/SKILL.md +1695 -0
  93. package/sbom.cdx.json +0 -1
@@ -0,0 +1,202 @@
1
+ # Changelog — brutaler-anwalt
2
+
3
+ Alle relevanten Aenderungen am Skill werden hier dokumentiert.
4
+ Format orientiert sich an [Keep a Changelog](https://keepachangelog.com/de/1.1.0/),
5
+ Versionierung folgt [SemVer](https://semver.org/lang/de/).
6
+
7
+ > Provenance-Disziplin (SKILL.md §5) ist seit v3.0 zero-tolerance.
8
+ > Jede neue Az. in `references/bgh-urteile.md` muss eine Source-URL haben
9
+ > (Primaerquelle bevorzugt; Sekundaerquelle mit `[secondary-source-verified]`-Tag).
10
+
11
+ ---
12
+
13
+ ## [Unreleased] — Roadmap zu v4.0.0
14
+
15
+ Naechste Schritte (mehrere Sessions, siehe `MAXOUT-PROGRESS.md` falls vorhanden):
16
+
17
+ - [ ] `references/gesetze/` — strukturierte Auszuege fuer leere Folders (HinSchG, NIS2UmsuCG-BSIG, KritisDachG, StGB §§ 202a-d, ePrivacy-RL, DMA, ODR, eIDAS, StPO, IHK-DSK-EDSA-Guidelines) + 6 audit-relevance.md fuer befuellte Folder (BDSG, TDDDG, DDG, BGB, HGB-AO, UWG, VSBG, BFSG)
18
+ - [ ] `references/stack-patterns/` — 22 weitere Files: vue/, astro/, laravel/, rails/, django/, express/, nest/, strapi/ (frameworks), auth/auth0+clerk+custom-jwt, payment/paddle+mollie+lemonsqueezy+paypal, tracking/google-analytics+posthog+umami+mixpanel+fathom, ai/anthropic-dpa+replicate+self-hosted-llm, react/cookie-banner+consent-gate, nextjs/env-driven-tracking+dynamic-rendering+api-bearer-auth
19
+ - [ ] `references/bgh-urteile.md` Source-URL-Coverage 39/67 → 67/67 (28 Az. ohne Source pflegen, primary-source bevorzugt; nach v3.3.0-Spot-Check sind Halluzinations-Verdaechtige bereinigt)
20
+ - [ ] `references/abmahn-templates.md` — DSA-Notice + BFSG-Anhoerung + AI-Act-Behoerden-Anhoerung + Crypto-MiCA + HinSchG
21
+ - [ ] `references/aegis-integration.md` — Update auf AEGIS v0.17.x Module-Map
22
+ - [ ] `references/international.md` — Schweiz nFADP (revDSG) + Oesterreich DSG-Layer + Liechtenstein
23
+ - [ ] `references/vertragsrecht.md` — § 312k Pflicht-Klauseln-Komplettliste + FairVertrG 2022 + B2B vs B2C Abgrenzungs-Pattern
24
+ - [ ] `references/strafrecht-steuer.md` — § 202a-d StGB Volltext + GoBD-Praxis
25
+ - [ ] OSS-Release als MIT-Submodule unter AEGIS-Repo (User-authorized)
26
+ - [ ] OOC-Anti-Overfit-Verification (cross-project audit comparison)
27
+
28
+ ---
29
+
30
+ ## [3.4.0] — 2026-05-01 — Audit-Korrektur + Live-E2E-Verify-Lessons
31
+
32
+ Erweiterungen aus dem Live-Fix-Cycle desselben Audit-Targets (eine Session
33
+ nach v3.3.0). Skill wird jetzt durch echten End-to-End-Verify gehaertet,
34
+ nicht mehr nur durch statische Audit-Pattern.
35
+
36
+ ### Changed
37
+ - **audit-patterns.md Phase 5g DKIM-Check** auf Multi-Selector-Pattern erweitert.
38
+ Ehemalige Pflicht-Annahme „TXT auf `default._domainkey` ist Standard" hat
39
+ bei All-Inkl-Hosting einen False-Positive produziert: All-Inkl generiert
40
+ beim DKIM-Aktivierungs-Klick einen eigenen Selector im Format
41
+ `kasYYYYMMDDHHMMSS._domainkey`, der einen Wildcard-CNAME `*._domainkey` durch
42
+ Specific-over-Wildcard-Regel ueberschreibt. Lesson: NIE nur `default` testen,
43
+ sondern (1) sample-mail-header `DKIM-Signature: ... s=<selector> ...` lesen,
44
+ (2) mit DIESEM Selector `dig +short TXT <selector>._domainkey.<domain>`,
45
+ (3) Multi-Selector-Probe als Fallback (`default`, `mail`, `s1`, `k1`,
46
+ `kas...`, `selector1`, `google`).
47
+
48
+ - **bgh-urteile.md** Audit-Korrektur: Finding "DKIM defekt" wurde im operativen
49
+ Audit-Re-Run zum FALSE-POSITIVE umklassifiziert nach DNS-Sicht-Klärung
50
+ (User-Screenshot zeigte korrekten DKIM-TXT-Record auf hoster-spezifischem
51
+ Selector). Das ist eine wertvolle Lesson für brutaler-anwalt-Skill:
52
+ audit-side-Verify per `dig` allein ist nicht ausreichend — Operator-DNS-
53
+ Settings-View ist die definitive Quelle.
54
+
55
+ ### Added
56
+ - **audit-patterns.md Phase 5g** Operator-View-Pflicht-Check ergaenzt:
57
+ „Bei DKIM-Verdacht NICHT nur `dig`, sondern auch Operator-DNS-Settings-View
58
+ einsehen — Specific-over-Wildcard-CNAME-Konstellationen koennten den
59
+ `dig`-Output verschleiern."
60
+
61
+ - **NEUER Pattern in audit-patterns.md Phase 5d Origin-Strict-Match**: Multi-
62
+ Surface-Regression-Discovery. Im Live-Fix-Cycle wurden 3 weitere API-Routes
63
+ (`contact`, `widerruf`, `consent-log`) mit demselben startsWith-Origin-Bug
64
+ entdeckt — ueber den initial-gepruefte newsletter hinaus. Skill-Pflicht-
65
+ Check: `grep -rEn "function isValidOrigin|origin\.startsWith" src/app/api/
66
+ src/lib/` — alle API-Routes muessen einen einzigen shared validator
67
+ importieren, **kein** lokal-defined Variant.
68
+
69
+ - **NEUER Pattern Phase 5d File-Storage in Production-Container**:
70
+ process.cwd()-basiertes File-Storage funktioniert lokal, kann aber in
71
+ Docker-Production-Container schreib-Permissions failen. Pflicht: Default-
72
+ Path mit `os.tmpdir()` als Production-Fallback + ENV-Override fuer
73
+ persistent volume. Detail: in audit-patterns.md Phase 5d „Folder-/Slug-
74
+ Sanitization"-Zeile bei Bedarf erweitern.
75
+
76
+ - **NEUER Pattern Phase 5g granulare Try-Catch**: Newsletter-DOI-Endpoint
77
+ hatte initial einen Bug — kein granulares Try-Catch um Mail-Send,
78
+ resultiert in HTTP 500 wenn Mail fail. Best-Practice: Persist-Fail = 500
79
+ (User soll nicht denken Anmeldung war OK), Mail-Fail = 200 + Log + retry-
80
+ Moeglichkeit (User kann erneut anmelden). Beispiel-Vorbild: konfigurator/
81
+ route.ts mit try-catch um sendKonfiguratorEmails.
82
+
83
+ ### Skill-Lesson auf Meta-Ebene
84
+ **Static-Audit + Live-E2E-Verify ist ein Pflicht-Paar.** Static-Audit allein
85
+ produziert False-Positives (DKIM-Wildcard-CNAME-Verschleierung) UND uebersieht
86
+ Multi-Surface-Regressions (3 weitere Origin-Bugs). Brutaler-anwalt-Skill v3.4
87
+ empfiehlt jetzt explizit: nach jedem Audit ein End-to-End-Verify am echten
88
+ Live-System mit echten Test-Tokens / Test-Mails / DNS-Probes.
89
+
90
+ ### AGB-Audit-Pattern (NEU in audit-patterns.md Phase 4 vorgeschlagen für v3.5)
91
+ Der gleiche Audit-Cycle deckte 4 AGB-Inkonsistenzen + 3 fehlende state-of-the-
92
+ art-Klauseln auf. Skill-Erweiterung fuer naechste Version: Phase 4 DSE-Drift-
93
+ Audit-Matrix sollte um „AGB-Konsistenz-Pass" erweitert werden mit Pflicht-
94
+ Pruefungen:
95
+ - Frist-Konflikt-Check (mehrere Werktage-/Kalendertage-Fristen — wann genau, was triggert)
96
+ - Zahlungs-Reihenfolge-Check (Vor/nach Vertragsunterschrift, vor/nach Demo)
97
+ - Rücktrittsrecht-vs-Mängelrechte-Verhältnis-Klausel (B2B parallel-Schutz)
98
+ - Höhere-Gewalt-Klausel (Drittanbieter-Ausfälle: Hosting/CDN/Email/AI)
99
+ - KI-Verordnung-Art.-50-Klausel (ab 02.08.2026 Pflicht für KI-Inhalte)
100
+ - Preisanpassungs-Klausel mit CPI-Cap (BGH XI ZR 26/20-konform)
101
+
102
+ ---
103
+
104
+ ## [3.3.0] — 2026-05-01 — Audit-driven Maxout (DACH-Brand-Audit)
105
+
106
+ ### Added
107
+ - **audit-patterns.md** Phase 5d — KONFIGURATOR-/MULTI-STEP-FORM-AUDIT: 14 Pflicht-Checks (Origin-Strict, Honeypot, CSRF, Rate-Limit, Zod, Server-Pricing, Folder-Sanitization, File-Upload-Polyglot, PII-Pre-Submit-Hygiene, DSE-Konfigurator-Block, TTL-Loesch-Konzept, Eingangsbestaetigung, Pre-DSGVO-Hinweis, Email-Pflichtfeld-Trennung) + 6 Verify-Curl-Probes + Az.-Anker.
108
+ - **audit-patterns.md** Phase 5e — AI-CHATBOT-/LLM-DSGVO-AUDIT: 14 Pflicht-Checks (Vendor-AVV/DPA, Drittland-DSE, Pre-Consent-Loading, Prompt-Logging-Doku, PII-Auto-Redaction, Auskunftsrecht-Routing, System-Prompt-Anti-Leak, Prompt-Injection-Defense, AI-Act-Transparenz, Anti-Hallucination-Disclaimer, Response-Filter, Rate-Limit, Origin-Check, Konversations-TTL, Children-Schutz) + 5 Verify-Curl-Probes + Az.-Anker (Art. 50 EU AI Act).
109
+ - **audit-patterns.md** Phase 5f — SCANNER-/AUDIT-TOOL-SELBST-AUDIT: 12 Pflicht-Checks (RDG-Disclaimer, FP/FN-Liability, Eingabe-URL-Logging, Active-Probes-Authorisierung, SSRF-Defense, DNS-Rebinding-Defense, Rate-Limit, Output-Sanitization, Drittstellen-Hinweis, FP/FN-Tracking, User-Consent-Hinweis, Output-Disclaimer-pro-Finding) + 5 Verify-Curl-Probes + Az.-Anker (BGH I ZR 113/20 Smartlaw, § 202a-c StGB).
110
+ - **audit-patterns.md** Phase 5g — EMAIL-/SMTP-OUTBOUND-COMPLIANCE-AUDIT: 6 Mail-Authentifizierungs-Checks (SPF/DKIM-TXT-NICHT-CNAME/DMARC-mit-Reporting/BIMI/MX/Reporting-Adresse) + 12 Outbound-Compliance-Checks (3rd-Party-AVV, IP-Reputation, Bestandskunden, DOI, Bestaetigungs-Mail-Werbung, Unsubscribe, List-Unsubscribe-Header, Footer-Impressum, Consent-Beweis-Doku, Cold-Outreach, Bounce-Handling, TLS) + 7 Verify-Commands (dig + nc + Inbox-Header-Check) + Az.-Anker.
111
+
112
+ ### Changed
113
+ - **SKILL.md** §5(c) Halluzinations-Indikatoren erweitert um V3.3-Lesson: WebSearch-Treffer mit „aehnlichem Sachverhalt" sind NICHT ausreichend — Pflicht-WebFetch zur Az.-Volltext-Verifikation. Anlass: Audit 2026-05-01 entdeckte 2 Halluzinationen (OLG Hamm 4 U 75/23 + LG Berlin 16 O 9/22). Beide WebSearch-Vorschlaege waren initial falsch — erst WebFetch-Volltext zeigte korrektes Az. (OLG Hamm 11 U 88/22, 20.01.2023, lennmed.de Source).
114
+ - **bgh-urteile.md** OLG Hamm 4 U 75/23 → ersetzt mit verifiziertem **OLG Hamm 11 U 88/22 (20.01.2023)** + Source lennmed.de + Provenance-Note.
115
+ - **bgh-urteile.md** LG Berlin 16 O 9/22 → markiert als VERDACHT-HALLUZINATION + auf BGH I ZR 218/07 + § 7 UWG-Rechtsprechung umgeleitet.
116
+ - **bgh-urteile.md** KG Berlin 5 U 87/19 Duplikat konsolidiert (eine Section mit secondary-source-verified Source bleibt).
117
+ - **branchenrecht.md** neue Branche **Webdesign-Agentur / Marketing-Agentur** (post-2026-05-01-Audit-Lessons): 11 Pflicht-Checks + Trigger + Az.-Anker (BGH I ZR 113/20, I ZR 218/07, I ZR 161/24, OLG Hamm 11 U 88/22).
118
+ - **scripts/health-check.sh** pipefail-Bug gefixt: `grep -l` mit no-match → exit 1 propagiert mit `set -euo pipefail` → Script abbruch. Fix: Subshell + `|| true` + Klammern. Brand-Leak + Templates-Check liefern jetzt korrekt 0 Treffer.
119
+
120
+ ### Audit-Validierung (battle-tested 2026-05-01)
121
+ Phasen 5d/5e/5f/5g auf einer Live-DACH-Brand-Site (Webdesign-Agentur, B2B-primaer, Konfigurator + Mistral-Chatbot + AEGIS-Scanner) angewandt. Ergebnis: **10 Findings produziert** (3 KRITISCH: Newsletter-Single-Opt-In + DSE-Drift + Newsletter-Origin-Bug + DKIM-CNAME-Defekt; 3 HOCH: DMARC-`p=none` + BFSG-Pflicht-Seite-404 + CSP-frame-src-Maps-Drift; 4 NIEDRIG/MITTEL). DEVIL'S ADVOCATE ergaenzte Sammelklage-Vektor + AI-Act-Future-Pflicht. LIVE-PROBE-Matrix: 17 PASS / 4 FAIL / 1 not-tested. Phase 5g war highest-ROI mit 3 hochwertigen Findings (DKIM/DMARC/Newsletter-SOI). Audit-Output liegt operator-side im jeweiligen Repo-`strategy/`-Folder.
122
+
123
+ ---
124
+
125
+ ## [3.2.0] — 2026-05-01 — Sanitization + OSS-Release-Vorbereitung
126
+
127
+ ### Added
128
+ - `references/templates/` mit 11 anonymisierten Snippets:
129
+ - `DSFA-template.md`, `VVT-template.md`, `COMPLIANCE-AUDIT-TRAIL-template.md`
130
+ - `AffiliateDisclaimer.tsx.example`
131
+ - `proxy-strict-dynamic.ts.example`
132
+ - `data-retention-cron.ts.example`, `data-retention-workflow.yml.example`
133
+ - `UmamiScript.tsx.example`, `security.txt.example`
134
+ - `DSE-Section-UGC.md.example`, `LostFoundReportForm-consent.tsx.example`
135
+ - `CHANGELOG.md` (diese Datei)
136
+ - `README.md` mit RDG-Disclaimer + Install-Hinweisen + Contribution-Guidelines
137
+ - `LICENSE` (MIT)
138
+
139
+ ### Changed (Sanitization — brand-agnostisch)
140
+ - `audit-patterns.md`: 11 brand-spezifische Refs auf generic Lessons-Bezeichner umgestellt (`operativ-Audit 2026-04-27`, `V3.1-Audit-Vorfall 2026-04-30`, `UGC-Plattform-Audit 2026-05-01`).
141
+ - `SKILL.md` §5(a) + §5(g): Brand-Refs durch neutrale Beschreibung ersetzt.
142
+ - `dsgvo.md`, `checklisten.md`, `branchenrecht.md`, `bgh-urteile.md`,
143
+ `aegis-integration.md`: alle internen Codenamen entfernt.
144
+ - Lehrbuch-Beispiele auf `references/templates/`-Pfade umgebogen statt direkt
145
+ konkrete Operator-Repos zu zitieren (Strategie: teaching-value erhalten,
146
+ Operator-Identitaet entfernen).
147
+
148
+ ### Migrationspfad fuer abhaengige Skills
149
+ - Wer auf `compliance/DSFA-2026.md` / `compliance/VVT-2026.md` /
150
+ `<operator-customer-build>/src/proxy.ts` o.ae. Pfade in vorherigen
151
+ Skill-Versionen verlinkt hatte: bitte auf
152
+ `references/templates/DSFA-template.md` /
153
+ `references/templates/VVT-template.md` /
154
+ `references/templates/proxy-strict-dynamic.ts.example` umstellen.
155
+
156
+ ---
157
+
158
+ ## [3.1.0] — 2026-05-01 — V3.1-Lessons + UGC-PII-Audit
159
+
160
+ ### Added
161
+ - `audit-patterns.md` Phase 5c — UGC-PUBLIC-PII-AUDIT (post-V3.1-Audit-Lessons): 6-stufige Pflicht-Checks fuer Vermisst-/Marketplace-/Forum-Plattformen.
162
+ - `audit-patterns.md` Phase 5b — BFSG-AUDIT (B2C E-Commerce, BFSG seit 28.06.2025).
163
+ - `audit-patterns.md` Phase 6b — Deployment-Codename-Leak-Check (CSP / Public-Text / Repo-Grep, 3 Surfaces).
164
+ - `audit-patterns.md` Stand-Datum-Hygiene-Check.
165
+ - `dsgvo.md` DSFA-Trigger-Liste + VVT-KMU-Best-Practice.
166
+ - `checklisten.md` Checkliste 3b AGB-B2C Pflicht-Klauseln-Komplettliste + Checkliste 3c Affiliate.
167
+ - `bgh-urteile.md` EuGH C-131/12 Google Spain + BGH I ZR 169/17 (§ 36 VSBG).
168
+
169
+ ### Changed
170
+ - SKILL.md §5(g): V3.1-Lessons (Pre-Deploy-Gate, Verify-Command-Pflicht bei DSE-Aenderungen mit operativer Dimension, Code-Var-Names-Verbot in Public-Text).
171
+
172
+ ---
173
+
174
+ ## [3.0.0] — 2026-04-30 — Az.-Provenance zero-tolerance
175
+
176
+ ### Changed
177
+ - SKILL.md §5: Az.-Provenance-Pflicht eingefuehrt (zero-tolerance fuer halluzinierte Az.).
178
+ - `bgh-urteile.md`: Source-Pflicht — jeder Eintrag braucht Source-URL.
179
+ - 6 halluzinierte Az.-Nummern aus geshipptem Compliance-Doc entfernt + per follow-up-commit nach Primaerquellen-Verifikation korrigiert.
180
+
181
+ ---
182
+
183
+ ## [2.0.0] — 2026-04-29 — V3 mit DSE-Drift-Audit
184
+
185
+ ### Added
186
+ - DSE-Drift-Audit-Matrix (Style 1 Auslassung + Style 2 Falschangabe) in `audit-patterns.md` Phase 4.
187
+ - 8-Phasen-HUNTER-Workflow.
188
+ - Multi-Container-Shared-Host-Risiko-Pattern.
189
+
190
+ ---
191
+
192
+ ## [1.0.0] — 2026-04-27 — Initial brutaler-anwalt
193
+
194
+ ### Added
195
+ - Adversarial Multi-Persona-Modell: HUNTER + CHALLENGER + SYNTHESIZER.
196
+ - 4 Modi: SCAN / HUNT / SIMULATE / CONSULT.
197
+ - Reference-Files: `audit-patterns.md`, `dsgvo.md`, `it-recht.md`,
198
+ `vertragsrecht.md`, `checklisten.md`, `branchenrecht.md`, `bgh-urteile.md`,
199
+ `abmahn-templates.md`, `aegis-integration.md`, `international.md`,
200
+ `strafrecht-steuer.md`.
201
+ - AEGIS-Integration (Mapping AEGIS-Findings → Anwalts-Kritikalitaet).
202
+ - RDG-Disclaimer-Pflicht im Output.
@@ -0,0 +1,43 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 brutaler-anwalt Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ # Hinweis zu Inhalt der References-Files
26
+
27
+ - Auszuege aus deutschen Gesetzen (`references/gesetze/DSGVO/`, `BDSG/`, `BGB/`,
28
+ `UWG/` etc.) sind gemeinfreie Werke nach § 5 UrhG und werden mit
29
+ Quellen-Hinweis auf https://www.gesetze-im-internet.de/ wiedergegeben.
30
+ - Auszuege aus EU-Verordnungen (`DSA-2022-2065`, `AI-Act-2024-1689` etc.) werden
31
+ unter Creative Commons Attribution 4.0 (CC BY 4.0) der Europaeischen Union
32
+ per https://eur-lex.europa.eu/ wiedergegeben.
33
+ - BGH/EuGH/OLG-Entscheidungen in `references/bgh-urteile.md` werden mit Az.
34
+ und Source-URL der jeweiligen Justizportale zitiert. Tenor-Auszuege sind
35
+ Kurz-Zusammenfassungen (kein Volltext).
36
+
37
+ # RDG-Disclaimer
38
+
39
+ Dieser Skill ist eine technisch-indikative Compliance-Pruef-Hilfe. Er stellt
40
+ keine Rechtsdienstleistung im Sinne von § 2 RDG dar (BGH I ZR 113/20 Smartlaw,
41
+ 09.09.2021) und ersetzt nicht die Beratung durch einen zugelassenen
42
+ Rechtsanwalt fuer IT- bzw. Datenschutzrecht. Fuer verbindliche Auskuenfte zu
43
+ konkreten Sachverhalten ist anwaltliche Beratung erforderlich.
@@ -0,0 +1,236 @@
1
+ # brutaler-anwalt
2
+
3
+ > Adversarial DE/EU Compliance-Auditor fuer Web-/SaaS-Projekte.
4
+ > Multi-Persona-Self-Verification (HUNTER + CHALLENGER + SYNTHESIZER + DEVIL'S
5
+ > ADVOCATE + LIVE-PROBE) gegen False-Positives + uebersehene Risiken.
6
+ > Sachlich-praezise Schadens-Diagnose mit %-Wahrscheinlichkeit, €-Range, §-Beleg
7
+ > und Az.-Source-URL.
8
+
9
+ **License:** MIT
10
+ **Version:** 3.4.0 (siehe [`CHANGELOG.md`](./CHANGELOG.md))
11
+ **Status:** lauffaehig + brand-agnostic; Phase 2 Maxout (References-Datenbank) work-in-progress
12
+
13
+ ---
14
+
15
+ ## ⚠️ Disclaimer (RDG)
16
+
17
+ Dieser Skill ist eine **technisch-indikative Compliance-Pruef-Hilfe**.
18
+ Er ist **keine Rechtsdienstleistung** im Sinne von § 2 RDG
19
+ (BGH I ZR 113/20 Smartlaw, 09.09.2021) und ersetzt **nicht** die Beratung
20
+ durch einen zugelassenen Rechtsanwalt fuer IT-/Datenschutzrecht.
21
+
22
+ Fuer verbindliche Auskuenfte zu konkreten Sachverhalten ist anwaltliche
23
+ Beratung erforderlich. Az.-Belege im Output muessen vor Verwendung in
24
+ Schriftsaetzen anwaltlich gepruefte Primaerquellen sein (siehe SKILL.md §5
25
+ Az.-Provenance-Pflicht).
26
+
27
+ ---
28
+
29
+ ## Was der Skill kann
30
+
31
+ ### Pflicht-Audit-Surfaces
32
+
33
+ - **Header-Audit** (HSTS, CSP, Referrer-Policy, Permissions-Policy)
34
+ - **HTML-Live-Probe** (Cookie-Banner, Mixed-Content, Public-Static-Files)
35
+ - **Impressum-Audit** (§ 5 DDG)
36
+ - **DSE-Audit** (DSGVO Art. 13, Drittland, AVV, Drift-Style 1+2)
37
+ - **Cookie-/Consent-Audit** (§ 25 TDDDG)
38
+ - **Branchen-Layer** (BORA, HWG, LMIV, MPDG, GlueStV, JuSchG, FernUSG, ...)
39
+ - **CSP-Code-Cross-Check** (3-Surface-Pattern: Repo + CSP-Header + Public-Text)
40
+ - **UGC-PII-Audit** (Public-Profile, Marketplace, Lost-Found)
41
+ - **AGB B2C** (Pflicht-Klauseln-Komplettliste)
42
+ - **BFSG** (B2C E-Commerce ab 28.06.2025)
43
+ - **GoBD/AO** (Aufbewahrungs-Cron + Compliance-Frist 6/10 Jahre)
44
+ - **Auth-Flow** (bcrypt-cost, MFA, Audit-Log, Session-Cookie-Attribute)
45
+ - **Newsletter-DOI** (Confirmation-Token, Unsubscribe-Link)
46
+
47
+ ### Output
48
+
49
+ - **Konsolidierte Risiko-Bewertung** (% Abmahn-Wahrscheinlichkeit, €-Range)
50
+ - **Findings-Tabelle** (verified / disputed / compounded)
51
+ - **Anwalts-Anhang pro Finding** (HUNTER-Befund + CHALLENGER-Test + Risiko-Vektor + Fix)
52
+ - **Abmahn-Simulation** (bei Wahrsch. > 60% oder Modus SIMULATE)
53
+ - **Audit-Trail** (Doku-Vorlage in `references/templates/COMPLIANCE-AUDIT-TRAIL-template.md`)
54
+
55
+ ### Modi
56
+
57
+ - `SCAN` — Vollscan eines Projekts
58
+ - `HUNT` — Spezifische Luecke / Sachverhalt
59
+ - `SIMULATE` — Abmahn-/Behoerden-Simulation
60
+ - `CONSULT` — Dokument-Pruefung (AGB, AVV, DSE)
61
+
62
+ ---
63
+
64
+ ## Use-Cases
65
+
66
+ - **Pre-Launch-Audit** vor jedem Production-Deploy einer DACH-Site
67
+ - **Quartals-Compliance-Check** fuer bestehende Sites (DSE-Drift, neue Az.)
68
+ - **Pre-Push-Hook** in CI fuer DSE-relevante Aenderungen
69
+ - **Mandanten-Pre-Pruefung** durch Agenturen / Inhouse-Compliance-Officer
70
+ - **Konkurrenz-Recon** (was wuerde ein Abmahn-Anwalt bei mir finden?)
71
+
72
+ ---
73
+
74
+ ## Installation
75
+
76
+ ### Variante 1: als Claude-Code-Skill (lokal)
77
+
78
+ ```bash
79
+ # In ~/.claude/skills/ als Submodule clonen oder direkt kopieren
80
+ cd ~/.claude/skills/
81
+ git clone https://github.com/RideMatch1/a.e.g.i.s.git aegis-skills
82
+ ln -s aegis-skills/skills/brutaler-anwalt brutaler-anwalt
83
+ ```
84
+
85
+ ### Variante 2: als Submodule unter AEGIS
86
+
87
+ ```bash
88
+ # Wenn du AEGIS bereits geklont hast
89
+ cd <aegis-repo>
90
+ git submodule add <skill-repo-url> skills/brutaler-anwalt
91
+ ```
92
+
93
+ ### Aktivierung
94
+
95
+ Nach Installation in einem neuen Conversation-Start:
96
+
97
+ ```
98
+ /anwalt
99
+ ```
100
+
101
+ oder direkt mit Modus + Topic:
102
+
103
+ ```
104
+ /anwalt scan # Default SCAN auf aktuelles Repo
105
+ /anwalt hunt cookie # HUNT auf Cookie-Banner
106
+ /anwalt simulate # Abmahn-Brief-Simulation
107
+ /anwalt consult agb # CONSULT-Modus mit AGB
108
+ ```
109
+
110
+ ### Auto-Trigger (Keywords)
111
+
112
+ Aktiviert automatisch bei diesen Keywords im User-Prompt:
113
+ `dsgvo, datenschutz, impressum, cookie, abmahnung, compliance, agb, avv,
114
+ drittland, einwilligung, ttdsg, tdddg, ddg, tmg, uwg, nis2, ai-act, gobd, dsa,
115
+ urheber, marke, ePrivacy, drittlandtransfer, schrems, eugh, bgh, abmahnanwalt,
116
+ datenpanne, betroffenenrechte, art-13, art-15, art-83, scc, tia, dsfa, vvt,
117
+ dpo, dsb, fashion-id, planet49`
118
+
119
+ ---
120
+
121
+ ## Verzeichnis-Struktur
122
+
123
+ ```
124
+ brutaler-anwalt/
125
+ ├── SKILL.md # Skill-Definition + Personas + Auto-Loading
126
+ ├── README.md # diese Datei
127
+ ├── LICENSE # MIT
128
+ ├── CHANGELOG.md # Versions-Historie
129
+ └── references/
130
+ ├── audit-patterns.md # 8-Phasen-HUNTER + V3.1-Lessons
131
+ ├── dsgvo.md # DSGVO-Auszug + DSFA-Trigger + VVT-KMU
132
+ ├── it-recht.md # DDG/TMG/NIS2/AI-Act/DSA/HinSchG/BFSG
133
+ ├── vertragsrecht.md # AGB / BGB / SaaS / Lizenz
134
+ ├── checklisten.md # Pflicht-Listen pro Surface
135
+ ├── branchenrecht.md # BORA/HWG/LMIV/MPDG/GlueStV/JuSchG/FernUSG/PetCare/...
136
+ ├── bgh-urteile.md # BGH/EuGH/OLG-Beleg-DB mit Source-URL
137
+ ├── abmahn-templates.md # Abmahn-Brief-/Behoerden-Anhoerung-Vorlagen
138
+ ├── aegis-integration.md # AEGIS-Scanner-Findings → Anwalts-Bewertung
139
+ ├── international.md # CCPA / UK-GDPR / DSG / Schrems-II
140
+ ├── strafrecht-steuer.md # StGB §202a/263a/269 + GoBD/AO
141
+ ├── templates/ # 11 anonymisierte Lehrbuch-Snippets
142
+ ├── gesetze/ # Strukturierte Gesetzes-Auszuege (Phase 2 WIP)
143
+ └── stack-patterns/ # Tech-Stack-spezifische Patterns (Phase 2 WIP)
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Provenance-Disziplin
149
+
150
+ Dieser Skill folgt einer **zero-tolerance**-Politik gegen halluzinierte
151
+ Az.-Nummern (siehe SKILL.md §5):
152
+
153
+ 1. Jede Az. im Output muss aus `references/bgh-urteile.md` (mit Source-URL)
154
+ stammen ODER in der aktuellen Session per WebSearch primaer-quellen-verifiziert
155
+ sein.
156
+ 2. Verdaechtige Az.-Pattern (Placeholder-Nummern, Az.-Jahr-Mismatch, frische
157
+ 2024-2026-Az. ohne Source) werden VOR Output mit WebSearch geprueft.
158
+ 3. Wenn nicht verifizierbar → Az. wird entfernt oder als `[ungeprueft]` markiert.
159
+
160
+ Hintergrund: ein halluziniertes Az. in einem Compliance-Doc kann die
161
+ Grundlage einer falschen Mandanten-Entscheidung sein. Als Skill ohne
162
+ RDG-Zulassung ist die einzige ehrliche Position: was nicht beweisbar ist,
163
+ wird nicht ausgegeben.
164
+
165
+ ---
166
+
167
+ ## Contribution-Guidelines
168
+
169
+ ### Was beitragen?
170
+
171
+ - **Neue Az.-Eintraege** in `references/bgh-urteile.md` — mit Source-URL
172
+ zur Primaerquelle (juris.bundesgerichtshof.de, curia.europa.eu, OLG-Portale)
173
+ - **Neue Branchen** in `references/branchenrecht.md` — mit Trigger-Pattern,
174
+ Pflicht-Pruefungen, typischen Verstoessen, Az.-Belegen
175
+ - **Neue Stack-Patterns** in `references/stack-patterns/` — pro Framework /
176
+ Auth-/Payment-/Tracking-/AI-Provider ein File mit Code-Snippet + DPA-Quelle
177
+ + DSE-Wording-Vorlage
178
+ - **Neue Checklisten** in `references/checklisten.md` — fuer neue Compliance-Themen
179
+ - **Bugs in Audit-Pattern** — wenn der Skill ein Pattern uebersieht oder einen
180
+ False-Positive produziert: Issue mit Repro-Beispiel
181
+
182
+ ### Wie beitragen?
183
+
184
+ 1. Pull-Request mit klarem Title (`add: BGH I ZR XXX/YY zu Cookie-Compliance`)
185
+ 2. Pro Az.-Eintrag Pflicht-Felder: Az., Datum, Tenor (1-3 Saetze), Anwendung,
186
+ Source-URL (Primaerquelle bevorzugt)
187
+ 3. Bei Sekundaerquelle (dejure.org, openjur.de, etc.): Tag `[secondary-source-verified]`
188
+ 4. CHANGELOG.md updaten
189
+ 5. CI-Tests pass (Brand-Sanitization-Check, Az.-Provenance-Check)
190
+
191
+ ### Was NICHT beitragen
192
+
193
+ - **Keine halluzinierten Az.** Wenn du eine Quelle nicht primaer auffindbar
194
+ belegen kannst → entweder Sekundaerquelle mit Tag oder weglassen.
195
+ - **Keine Brand-spezifischen Snippets**. Templates muessen anonymisiert sein
196
+ (`<placeholder>`-Pattern). Konkrete Code-Beispiele aus Live-Brands gehoeren
197
+ in dein eigenes Repo, nicht hier.
198
+ - **Keine Rechtsberatung-Aussagen**. Reference-Files dokumentieren Recht,
199
+ geben aber keine Beratungs-Empfehlung — der Skill-Output ist eine
200
+ technisch-indikative Vor-Pruefung, keine Beratung.
201
+ - **Keine PRs ohne Provenance**. Az. + Source-URL ist Pflicht.
202
+
203
+ ---
204
+
205
+ ## Quellen-Acknowledgments
206
+
207
+ - **gesetze-im-internet.de** (Bundesministerium der Justiz) — gemeinfreie
208
+ Werke nach § 5 UrhG, Pflicht-Quelle fuer DE-Gesetze
209
+ - **eur-lex.europa.eu** (Europaeische Union) — Creative Commons Attribution 4.0
210
+ fuer EU-Verordnungen + Richtlinien
211
+ - **juris.bundesgerichtshof.de** — BGH-Entscheidungen-Datenbank
212
+ - **curia.europa.eu** — EuGH-Entscheidungen
213
+ - **edpb.europa.eu** — European Data Protection Board (Guidelines)
214
+ - **bsi.bund.de** — BSI (Mindestanforderungen IT-Sicherheit)
215
+
216
+ Sekundaerquellen (mit Provenance-Tag): dejure.org, openjur.de, rewis.io,
217
+ medien-internet-und-recht.de, IHK-Stellungnahmen, etablierte Anwalts-Blogs.
218
+
219
+ ---
220
+
221
+ ## Roadmap zu v4.0.0
222
+
223
+ Siehe [`CHANGELOG.md`](./CHANGELOG.md) Block `[Unreleased]`. Schwerpunkt:
224
+
225
+ - Maxout `references/gesetze/` (DSGVO, BDSG, TDDDG, BGB, UWG, ...)
226
+ - 100+ Az. in `references/bgh-urteile.md` (alle mit Source-URL)
227
+ - 30+ Stack-Pattern-Files
228
+ - 20+ Branchen in `references/branchenrecht.md`
229
+ - Out-of-Corpus-Validation gegen Live-Brands
230
+ - OSS-Release auf AEGIS-Repo (User-authorized)
231
+
232
+ ---
233
+
234
+ ## License
235
+
236
+ MIT — siehe [`LICENSE`](./LICENSE).