Logo von Llm Output Privacy Risk

Llm Output Privacy Risk

Community
mukul975
llm-output-privacy-risk

Assessing privacy risks in large language model outputs including training data memorisation, PII leakage in generated text, prompt injection leading to data extraction, and hallucinated personal data. Covers output filtering, guardrails, and monitoring. Keywords: LLM privacy, output risk, memorisation, PII leakage, prompt injection, hallucinated PII.

Übersicht

Herausgebermukul975
RepositoryPrivacy-Data-Protection-Skills
Skill-Namellm-output-privacy-risk
Sterne
279
Forks
59
Mitgelieferte Dateien
4
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 4

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von mukul975 auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Llm Output Privacy Risk in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/llm-output-privacy-risk
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git /tmp/Privacy-Data-Protection-Skills
mkdir -p .claude/skills
cp -r /tmp/Privacy-Data-Protection-Skills/plugins/ai-privacy-governance-skills/skills/llm-output-privacy-risk .claude/skills/llm-output-privacy-risk
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Llm Output Privacy Risk in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Llm Output Privacy Risk automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Llm Output Privacy Risk nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

LLM Output Privacy Risk Assessment

Overview

Large language models (LLMs) present unique privacy risks that go beyond traditional ML systems. Because LLMs are trained on massive corpora that may contain personal data, they can memorise and reproduce verbatim training data — including names, email addresses, phone numbers, and other PII. Additionally, LLMs can hallucinate plausible but false personal data, creating defamation and accuracy risks. Prompt injection attacks can bypass safety guardrails to extract training data or system prompts containing confidential information. This skill provides a structured framework for assessing, mitigating, and monitoring privacy risks in LLM-generated outputs at Cerebrum AI Labs.

LLM Output Privacy Risk Categories

Risk 1: Training Data Memorisation

LLMs memorise training data, particularly sequences that appear multiple times or are distinctive. Extractable memorisation occurs when a model, given a prefix, completes the text with verbatim training data.

FactorImpact on Memorisation Risk
Model sizeLarger models memorise more (Carlini et al., 2023)
Data duplicationRepeated sequences are memorised at higher rates
Training epochsMore passes over data increase memorisation
Data distinctivenessUnique sequences (names, numbers) are more extractable
Temperature at inferenceLower temperature increases verbatim reproduction

Regulatory concern: If a model reproduces personal data from training, this constitutes processing under GDPR Art. 4(2). The data subject has not consented to this output, and the controller must have a lawful basis for the disclosure.

Risk 2: PII Leakage in Generated Text

Even without verbatim memorisation, models can combine partial information to produce outputs containing personal data — email patterns, phone number formats with real area codes, or names associated with specific contexts.

Leakage TypeExampleDetection Method
Verbatim reproductionModel outputs exact email address from training dataExact match against known training PII
RecombinationModel combines real first name + real surname from different recordsNamed entity recognition + cross-reference
Pattern completionModel generates plausible phone number matching real formatRegex + validation against real registries
Contextual leakageModel associates real person with correct employer when promptedEntity relationship extraction

Risk 3: Prompt Injection and Data Extraction

Adversarial prompts can cause models to bypass safety instructions and output training data, system prompts, or information about other users' conversations.

Attack VectorDescriptionMitigation
Direct prompt injectionUser crafts prompt to extract training data ("Repeat your training data starting with...")Input filtering + output monitoring
Indirect prompt injectionMalicious content in retrieved documents instructs model to leak dataSanitise retrieved content + instruction hierarchy
System prompt extractionPrompts designed to reveal system-level instructionsSystem prompt isolation + extraction detection
Multi-turn extractionGradual extraction across conversation turnsConversation-level monitoring
JailbreakingBypassing safety alignment to disable PII filtersRobust alignment + secondary output filter

Risk 4: Hallucinated Personal Data

LLMs can generate plausible but fabricated personal data — attributing false statements to real people, inventing credentials, or creating fictional but realistic-seeming personal records.

Hallucination TypePrivacy RiskLegal Concern
False attributionModel attributes a statement to a real person who never said itDefamation, Art. 5(1)(d) accuracy principle
Fabricated credentialsModel invents qualifications for a real personAccuracy, potential reputational harm
Fictional PIIModel generates realistic but fake personal details (e.g., social security numbers)May match real individuals by coincidence
Confabulated relationshipsModel invents relationships between real peopleArt. 5(1)(d) accuracy, potential harm

EDPB position: EDPB Guidelines 04/2025 state that generating inaccurate personal data about identifiable individuals violates the accuracy principle (Art. 5(1)(d)) and may require the controller to implement effective rectification mechanisms.

Output Privacy Risk Assessment Framework

Assessment Dimensions

DimensionWeightScoring Criteria
Memorisation exposure25%Model size, training data PII density, deduplication status
PII leakage likelihood25%Output modality, user interaction pattern, PII filter coverage
Prompt injection resilience20%Input validation, instruction hierarchy, extraction testing results
Hallucination risk15%Factual grounding, attribution verification, entity linking
Monitoring coverage15%Real-time PII detection, logging, alerting, human review

Risk Scoring

Score RangeRisk LevelAction Required
0-20LowStandard monitoring; annual review
21-40ModerateEnhanced PII filtering; quarterly review
41-60ElevatedMandatory output scanning; human review for sensitive queries
61-80HighRestrict deployment scope; implement guardrails before production
81-100CriticalDo not deploy; fundamental architecture changes required

Mitigation Measures

Pre-Deployment Mitigations

MeasureDescriptionEffectiveness
Training data deduplicationRemove duplicate sequences to reduce memorisationHigh for verbatim memorisation
PII scrubbing of training dataDetect and remove/mask PII before trainingHigh but incomplete (novel PII patterns missed)
Differential privacy trainingTrain with DP-SGD to bound memorisationHigh theoretical guarantee; accuracy trade-off
RLHF safety alignmentTrain model to refuse PII-generating requestsModerate; can be bypassed by jailbreaking
Instruction tuningFine-tune model to follow safety instructionsModerate; requires robust instruction hierarchy

Runtime Mitigations

MeasureDescriptionEffectiveness
Output PII scannerNER-based scanner detecting PII in outputs before deliveryHigh for known PII patterns
Regex PII filterPattern matching for emails, phones, SSNs, credit cardsHigh for structured PII
Input prompt classifierClassify incoming prompts for injection/extraction attemptsModerate; adversarial prompts evolve
Retrieval groundingGround outputs in retrieved documents to reduce hallucinationModerate; depends on retrieval quality
Rate limitingLimit query volume to slow extraction attacksLow-moderate; raises cost of attack
Conversation monitoringAnalyse multi-turn conversations for progressive extractionModerate; complex to implement

Post-Deployment Monitoring

MonitorMetricAlert Threshold
PII detection rate% of outputs flagged by PII scanner>0.1% of outputs in any 1-hour window
Prompt injection detection% of inputs classified as injection attempts>0.5% of inputs in any 1-hour window
User reports of PII exposureCount of user-reported PII incidentsAny confirmed report
Extraction pattern detectionRepeated similar queries from same user/IP>10 similar extraction-pattern queries per session
Hallucination complaintsReports of false personal informationAny confirmed report about real individuals

Cerebrum AI Labs — LLM Output Privacy Controls

Architecture

User Input → Input Filter → LLM → Output PII Scanner → Delivery
                │                         │
                ▼                         ▼
         Prompt Injection          PII Detected?
         Classifier                  │
                │                YES → Redact + Log + Alert
             Block/Allow         NO  → Deliver + Log

PII Detection Categories for Output Scanning

PII TypeDetection MethodAction on Detection
Email addressesRegex + validationRedact and log
Phone numbersRegex + country format validationRedact and log
National ID numbersCountry-specific regex patternsBlock output + alert
Credit card numbersLuhn algorithm + regexBlock output + alert
Physical addressesNER + geocoding validationRedact and log
Person names + contextNER + co-occurrence with other PIIFlag for review
Medical informationMedical NER + PHI patternsBlock output + alert

Enforcement Relevance

  • EDPB Guidelines 04/2025: Controllers deploying LLMs must assess memorisation risk and implement measures to prevent unlawful disclosure of personal data in outputs.
  • Garante v. OpenAI (2023): Italian DPA ordered temporary ban partly due to lack of age verification and data accuracy concerns in ChatGPT outputs. Required implementation of output filtering.
  • EDPB ChatGPT Taskforce Report (2024): Recommended that LLM providers implement technical measures to minimise inaccurate personal data in outputs and provide effective rectification mechanisms.
  • CNIL AI Action Plan (2024): French DPA guidance emphasises that LLM outputs containing personal data constitute processing, requiring lawful basis and compliance with data quality principles.

Integration Points

  • ai-model-privacy-audit: Memorisation testing is part of the model privacy audit
  • ai-data-subject-rights: Rectification of hallucinated data, erasure requests
  • ai-transparency-reqs: Disclosure that system is AI-generated, accuracy limitations
  • ai-deployment-checklist: Output privacy controls verified before deployment

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Llm Output Privacy Risk?

Assessing privacy risks in large language model outputs including training data memorisation, PII leakage in generated text, prompt injection leading to data extraction, and hallucinated personal data. Covers output filtering, guardrails, and monitoring. Keywords: LLM privacy, output risk, memorisation, PII leakage, prompt injection, hallucinated PII.

Warum Llm Output Privacy Risk in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Llm Output Privacy Risk besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Llm Output Privacy Risk in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/llm-output-privacy-risk ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Llm Output Privacy Risk nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Llm Output Privacy Risk verwenden?

So viele Sie möchten. In TypingMind können Sie Llm Output Privacy Risk mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Llm Output Privacy Risk kostenlos?

Ja. Der Skill wird von mukul975 auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇