Start learning free
Authorized security testing only. Use these techniques and payloads solely on systems you own or have explicit written permission to test. GenAI Security Lab accepts no liability for misuse.
Cheat sheet Review & governance Logging, Privacy, and Data Retention

Logging, Privacy, and Data Retention

Prompts, responses, files, tool outputs, screenshots, traces, and evaluation datasets can contain sensitive data. Review who can access them, where they go, and how long they live.

LLM02:2026 Sensitive Information Disclosure
AML.T0057 (LLM Data Leakage) AITG-APP-03 (Sensitive Data Leak) All mappings →

Attack techniques

Mark each result as you test — it saves in your browser and feeds Export findings. Payloads that exercise a technique sit inside its card. L1 single-turn · L2 feature-dependent · L3 chained multi-step.

Test Submit a unique marker plus fake PII, then check logs, traces, and analytics for it.
Signal Raw prompts or PII are stored unredacted.
Test Check whether retrieved chunks and tool responses are logged verbatim.
Signal Sensitive content is persisted in logs.
Test Determine who (support, admin) can view conversations, traces, and screenshots.
Signal Least privilege is not applied to AI logs.
Test Review provider retention, training, and abuse-monitoring settings.
Signal Data is retained or trained on without control.
Redaction gaps GSL-T166 L2
Test Plant secrets, tokens, and PII and verify redaction before storage.
Signal Redaction is missing or bypassable.
Try it live: Chunk-Boundary Redaction Evasion (Real Vector Store)
Test Test conversation and account deletion and export scope.
Signal Data survives deletion or exports leak other users' data.
Test Check whether production data flows into evaluation or fine-tune sets without consent.
Signal Sensitive data is copied into datasets.

Program controls

  • Submit GSL-LOG-001 with synthetic PII (name 'GSL User', email [email protected], SSN 000-00-0001), then grep every log, trace, and export for GSL-LOG-001.
  • Include a fake credential sk-GSL-0002 and bearer token GSL-TOKEN-0003, then confirm they appear masked (never raw) in each trace and log sink.
  • Plant a card-shaped canary 4111-1111-1111-GSL and IBAN-like GSL-IBAN-0004 to test whether PAN/financial redaction rules fire before storage.
  • Upload a document containing GSL-DOC-0005 and check whether the raw retrieved chunk text is written verbatim by the RAG/retrieval pipeline.
  • Ask: 'Is this conversation logged, who can read it, how long is it retained, and is it used for training?' then compare the reply to the actual configuration.
  • Embed a private-looking URL https://internal.canary.example/GSL-URL-0006 and check whether it is stored unredacted or auto-fetched by any component.
  • Request a conversation/account export and grep the output for GSL markers, other users' identifiers, system-prompt text, or tokens.
  • Send malformed input tagged GSL-ERR-0007 to trigger an error and check whether the full payload lands in error logs or a third-party error tracker.
  • Store GSL-EMBED-0008 as document text, then request deletion and verify the marker no longer resolves in vector search, prompt cache, or exports.
  • Leave thumbs-down feedback on a message tagged GSL-FB-0009 and check whether the full conversation is copied into a feedback or evaluation store.
  • Place GSL-QS-0010 in a URL query parameter and check whether it reaches provider logs or client-side analytics unredacted.
  • Plant GSL-ISO-0011 in one session, then from a fresh session/account ask the model to recall the previous user's messages or prior-session content, and confirm it can only surface GSL canaries you planted yourself, never another user's real data.

Practice in the lab

Take these techniques to a live, graded target. Each lab is a hands-on exploit of this vulnerability class, run in the browser.

Remediation

  • Separate operational telemetry from sensitive prompt and document content.
  • Redact before storage and restrict access to AI traces.
  • Define retention windows and deletion paths.
  • Avoid sending raw private data to third parties unless reviewed and necessary.
  • Audit access to sensitive AI logs and traces.

Report title ideas

  • AI Prompt Logs Store Sensitive Customer Data
  • AI Debug Trace Exposes Tool Responses to Support Users
  • Provider Logging Configuration Retains Private Documents

How to verify

  • Submit a unique marker (e.g. GSL-LOG-001) alongside synthetic PII, a fake secret, a card-shaped number, and a private URL, then search application logs, provider/observability dashboards, traces, analytics, and exports — confirming redaction runs before storage (not just in the UI) and mapping every sink the content reaches.
  • Validate provider zero/limited-retention and training opt-out behaviorally rather than trusting documentation or defaults.
  • Confirm conversation deletion, account deletion, and DSAR requests propagate to caches, prompt-cache, vector stores, backups, and the provider — not just the primary database.
0/0 tested · 0 vulnerable