Compliance Boundary Violation
Agent Outputs Violate Regulatory Data Handling Requirements
8 patterns for this goal
Data loss prevention fails when agents designed to protect sensitive data instead leak, exfiltrate, or expose information to unauthorized parties because safeguards are bypassed, incomplete, or unaware of where sensitive data actually flows. An agent accepts a request to “summarize our customer database” and returns a summary that accidentally includes PII, a prompt-injection attack makes an agent ignore exfiltration-prevention guardrails and email database contents to attacker-controlled addresses, and a system designed to redact sensitive information in logs fails to redact data because sensitive patterns were never identified or the redaction happened after the data already propagated downstream. Data loss prevention failures matter precisely because they occur at the agent boundary with external systems: every time an agent receives untrusted input or produces output to an untrusted destination, data loss risk increases, and most agents lack the fine-grained data-tracking and exfiltration-prevention machinery of traditional DLP systems.
Effective data-loss-prevention in agent systems requires three layers: (1) data classification (tag data sensitive/non-sensitive at ingestion), (2) data-aware reasoning (track sensitive data through agent reasoning, refuse operations on sensitive data without authorization), (3) output-channel validation (redact sensitive data before output, reject output to untrusted channels). The shared lesson is that data-loss-prevention for agents is fundamentally different from DLP for humans: humans are assumed to understand confidentiality; agents require explicit machinery to classify, track, and protect data. Without fine-grained data-tracking, exfiltration gaps are invisible until an attack demonstrates the gap.
By default, logging and error messages capture full request/response/reasoning traces, which include sensitive data. Defense requires: (1) data-aware logging (redact sensitive patterns before log persistence), (2) error-message filtering (construct error messages without leaking internal state or data), (3) audit trail separation (sensitive operations write to secure logs with restricted access, not shared logging infrastructure). Without such controls, sensitive data leaks via normal logging operations.
Guardrails work when agents respect guardrails. Prompt injection can override guardrails by convincing agents to ignore safety constraints. Defense requires: (1) guardrail-enforcement at output layer (technical checks that run regardless of agent reasoning), (2) anomaly detection on agent behavior (detect when agents suddenly attempt exfiltration), (3) output-channel authorization (agents cannot output to arbitrary destinations, only to pre-approved channels). If exfiltration depends only on agent cooperation, prompt injection defeats it.
Data tagging is required: mark sensitive data when ingested, propagate the tag through agent reasoning and inter-agent communication, enforce that downstream agents treat tagged-sensitive data with appropriate restrictions. Without tagging, downstream agents cannot know which data requires protection, leading to accidental exposure. Tagging also enables audit trails: which data went through which agents and left via which output channels.
Conduct a data-flow audit: trace sample sensitive data from ingestion through agent reasoning to output, document every system that processes data and every access control that should protect data. Compare documented flow against actual implementation. Run security audits that attempt to exfiltrate data via common vectors (prompt injection, log access, error messages). Many gaps are discovered only via practical testing, not code review.
| Pattern | Mechanism | Frequency |
|---|---|---|
| Compliance Boundary Violation | Agent action violates regulatory or compliance boundary | Occasional |
| Context Injection Leakage | Injected context contains sensitive data; agent exposes it via output | Occasional |
| Credential Leakage | Credentials leak via logs, error messages, or model outputs | Common |
| Cross Session Bleed | Sensitive data from one session leaks into another session | Occasional |
| PII Exposure | Personally identifiable information exposed without authorization | Common |
| Sensitive Data In Logs | Sensitive data persists in logs without sanitization | Common |
| Tool Based Exfiltration | Agent exfiltrates data via tool invocation to attacker destination | Occasional |
| Training Data Extraction | Attacker extracts training data via inference queries | Occasional |
Total: 8 patterns
Agent Outputs Violate Regulatory Data Handling Requirements
Sensitive Data in RAG Context Exposed Through Agent Responses
Agent Exposes API Keys, Passwords, or Secrets in Output
Data from One User's Session Appears in Another's
Agent Outputs Contain Personally Identifiable Information
PII and Secrets Written to Logs, Traces, and Observability Systems
Agent Uses Tools to Send Sensitive Data to External Systems
Adversaries Extract Sensitive Data from Model Training