Logo: Llm Output Privacy Risk

Llm Output Privacy Risk

Communautéit
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.

Iwwersiicht

Editeurmukul975
RepositoryPrivacy-Data-Protection-Skills
Skill-Nummllm-output-privacy-risk
Stären
279
Forks
59
Matgeliwwert Dateien
4
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    mukul975 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Llm Output Privacy Risk an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/llm-output-privacy-risk
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Llm Output Privacy Risk an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Llm Output Privacy Risk automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Llm Output Privacy Risk net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de 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.

Firwat Llm Output Privacy Risk op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Llm Output Privacy Risk besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Llm Output Privacy Risk an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/ai-privacy-governance-skills/skills/llm-output-privacy-risk an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Llm Output Privacy Risk benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Llm Output Privacy Risk benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Llm Output Privacy Risk domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Llm Output Privacy Risk gratis?

Jo. mukul975 huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇