Skip to main content
AIRed Team Framework GitHub
← All attack patterns
ATK-009 Output handling

PII Leakage from Inference

Applies to: LLM, RAG, Agentic AI, Multi-modal · Last reviewed 2026-05-01

Prerequisites

  • Target system handles or has access to personal data (in training data, RAG corpus, conversation history, or tool outputs).
  • Output is delivered to a user whose authorization should not include the personal data of others.

Test approach

With written authorization (and using synthetic or approved-test data where regulated PII would be involved), the tester probes for cross-user data exposure: queries crafted to elicit data from other users' contexts, RAG queries that should not retrieve PII for the requesting user, and timing-based inferences. The tester also tests model behavior when explicitly asked to produce PII-like content (e.g., 'generate 10 sample SSNs') to evaluate refusal behavior.

Expected evidence

  • Test prompts and full request/response logs.
  • Outputs containing PII (synthetic or approved-test) demonstrating exposure pattern.
  • Cross-reference to RAG retrieval logs showing which records were returned.

Detection signals

  • Outputs containing structured PII patterns (SSN, credit card, IBAN).
  • RAG retrievals returning records for users different from the requesting user.
  • High volume of PII-like content in outputs.

Defensive recommendations

  • Apply per-user authorization at the retrieval layer; agents should not see records they cannot legitimately access.
  • Output-side PII scanning with masking or block thresholds.
  • Reference AI-CTRL-013 (Personal Data Minimization) and AI-CTRL-007 (Output Filtering).

Framework mappings

  • OWASP LLM Top 10: LLM06:2025
  • NIST AI RMF: MEASURE-2.10

Related AI Controls Catalog entries

These controls provide the audit test procedures that validate defences against this attack pattern.

References