Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The usual precursor is oversharing. Shared drives, public channels and legacy pe
- **Opportunistic users:** people who use high-recall prompts and enumeration to pull out personal data, credentials or proprietary text.
- **Targeted attackers:** those who run systematic extraction against fine-tuned models and adapters, or plant instructions in content the assistant reads so that it sends data to an external address.

Preconditions: query access to the model or assistant; unredacted data in training sets or indexes; retrieval without per-document access control; output filtering that is missing or inconsistent.
Preconditions: query access to the model or assistant; unredacted data in training sets or indexes; retrieval without per-document access control; output filtering that is missing, inconsistent, or applied to each chunk of a streamed reply on its own.

## Scenarios

Expand Down Expand Up @@ -77,7 +77,7 @@ Preconditions: query access to the model or assistant; unredacted data in traini
| GDS01-T1-01 | **Oversharing reduction:** find and remove over-broad or inherited access in the systems that feed RAG. | Both | Security | Access review of every RAG source, repeated quarterly |
| GDS01-T1-02 | **Data minimization:** redact or tokenize sensitive fields before training or indexing. | Build | Data and ML engineering | Scan of the index and training set finds no unmasked identifiers or secrets |
| GDS01-T1-03 | **Retrieval access control:** enforce per-document permissions at query time and abstain when the user lacks access. | Both | Data and ML engineering | A test user without access cannot retrieve a restricted test document |
| GDS01-T1-04 | **Output controls:** run personal data and secret detectors on generated output; regex alone fails when the reply is in another language or encoded. | Both | Security | Seeded test strings are blocked, including translated and encoded variants |
| GDS01-T1-04 | **Output controls:** run personal data and secret detectors on generated output before it is released, holding back streamed text until no match can still extend into it; regex alone fails when the reply is in another language or encoded. | Both | Security | Seeded test strings are blocked, including translated and encoded variants and, when the reply is streamed, with the string split between chunks at every position |
| GDS01-T1-05 | **No-train, no-retain policy:** exclude user uploads from training and retention unless explicitly approved. | Both | Privacy and legal | Provider contract terms and configuration settings on file |

### Tier 2 (Hardening)
Expand Down Expand Up @@ -112,6 +112,7 @@ Preconditions: query access to the model or assistant; unredacted data in traini
|---|---|---|---|---|
| Markdown injection in Copilot Chat and Gemini | Research | 2025 | Rendered images can carry context data to an attacker's server | https://checkmarx.com/zero-post/exploiting-markdown-injection-in-ai-agents-microsoft-copilot-chat-and-google-gemini/ |
| Image-rendering exfiltration in Sourcegraph Amp | Research | 2025 | The same channel in a coding agent; fixed by the vendor | https://embracethered.com/blog/posts/2025/amp-code-fixed-data-exfiltration-via-images |
| Split-value leak in a streaming PII redactor (Mastra `PIIDetector`) | Research | 2026 | A redactor that checked streamed text with a fixed carry-over logged a redaction after the first part of the value had been sent; the fix holds text back | https://github.com/mastra-ai/mastra/issues/23783 |

## Mappings

Expand All @@ -131,6 +132,7 @@ Preconditions: query access to the model or assistant; unredacted data in traini
5. Checkmarx, "Exploiting Markdown Injection in AI agents: Microsoft Copilot Chat and Google Gemini", 2025. https://checkmarx.com/zero-post/exploiting-markdown-injection-in-ai-agents-microsoft-copilot-chat-and-google-gemini/
6. Johann Rehberger, "Data Exfiltration via Image Rendering Fixed in Amp Code", 2025. https://embracethered.com/blog/posts/2025/amp-code-fixed-data-exfiltration-via-images
7. NeuralTrust, "Why Your AI Model Might Be Leaking Sensitive Data", undated. https://neuraltrust.ai/blog/ai-model-data-leakage-prevention
8. OWASP AI Exchange, "Sensitive output handling", 2026. https://owaspai.org/go/sensitiveoutputhandling/

---

Expand Down