Seedlabs

CanaryFlow: Privacy Leakage Audit for LLM Agent Deployments

A security tool that checks if AI agents are accidentally leaking private personal data.

CanaryFlow is a pre-deployment privacy audit that seeds an enterprise's LLM agent with uniquely-marked synthetic personal data, runs it through normal workflows plus adversarial probes, and traces exactly where that data travels — tool calls, external model prompts, logs, memory, and other users' replies — producing a channel-by-channel leakage report. New research confirms the key channels are real: memory-extraction attacks and multi-turn prompt inference reliably pull private data from deployed agents, and synchronous tool-call interception costs only ~53 ms, making full-surface instrumentation practical. Because LLMs demonstrably miss ambiguous names (20-40% recall drops, worse under prompt injections), the trace relies on deterministic marker matching rather than model-based PII detection, and reports are framed as lower bounds on leakage.

Computer ScienceAdversarial Robustness in Machine Learning
LLM Evaluation and BenchmarkingPre-launch privacy audit of a customer-support agent with CRM and ticketing access: canaries seeded through tickets and retrieved documents are traced through normal support flows plus memory-extraction and multi-turn inference probes run from unrelated test accounts. The resulting leakage matrix doubles as declarative tool-call policy rules for the deployment's pre-action authorization layer.
Explainer video — the idea and its research foundation. Scripted and voiced by GLM and Piper · 28 Nov 2026.
Watch with transcript →

Concept

A privacy audit for enterprises running LLM agents (support copilots, HR/IT assistants, sales agents) that handle personal and confidential data. Four steps:

  1. Seed — generate a per-run canary dataset (synthetic names, account numbers, salary figures, health facts), each carrying a unique, invisible marker. The seed set deliberately spans the ambiguity spectrum: names that are linguistically ambiguous (compatible with multiple entity types) and canaries embedded in instruction-like contexts, because LLM-based privacy controls demonstrably fail unevenly on exactly these inputs — the audit measures that unevenness rather than inheriting it.

  2. Exercise — introduce canaries through the agent's real input channels (user prompts, retrieved documents, ticket attachments, tool outputs) and run:

    • the normal task mix, for baseline data flow;
    • multi-turn inference chains from unrelated test-user personas — individually benign queries that have been shown to reliably exfiltrate enterprise context (internal documents, emails) even with standard safety measures in place;
    • memory-extraction probes (MEXTRA-style crafted prompts), which have pulled private user data out of agent memory under black-box access in published experiments;
    • social-engineering lures toward sensitive tools, since live adversarial testing shows permissive tool policies fall to model-directed social engineering roughly three-quarters of the time.

    Instrumentation sits on every outbound surface: third-party API calls, prompts sent to external model providers, vector-store and memory writes, log files, inter-agent messages, and replies served to unrelated test users. Synchronous tool-call interception has been demonstrated at a ~53 ms median across thousands of decisions, so the cost of full-surface instrumentation is bounded and known.

  3. Trace — scan every captured surface for canary markers and reconstruct the data-flow graph (which channel carried which data class out of the trust boundary). Ground-truth detection is deterministic — exact and fuzzy marker matching (string, hash, high-entropy n-gram fingerprints). It deliberately does not rely on LLM-based PII recognition: benchmark evidence shows state-of-the-art LLMs drop name recall by 20-40% on ambiguous names, and benign prompt injections make names four times more likely to be ignored in a real enterprise privacy tool. LLM- or embedding-assisted semantic matching runs only as a secondary, labeled heuristic for paraphrased canaries, so the leakage matrix is presented as a lower bound, with per-channel uncertainty notes where paraphrase could hide flow.

  4. Report — a leakage matrix (channel x data class), severity ratings (informed by the information-theoretic leakage bounds developed in the prompt-inference-attack literature), and targeted fixes (redaction before specific tools, per-user memory isolation, log scrubbing). The intended-vs-leakage distinction is now operationalized: intended flows are those the enterprise's declarative data-flow policy permits; everything else is leakage. Findings export as declarative rules for pre-action authorization layers, which have shown 0% attacker success under restrictive policies in live adversarial testing — so the point-in-time audit becomes the policy generator for continuous runtime enforcement rather than competing with it.

The single wedge: measurable evidence of where agent-handled personal data actually goes, replacing policy documents with an empirical leakage map.

Why now

  • The first comprehensive survey of LLM-agent evaluation names safety and fine-grained, scalable evaluation methods as critical gaps in the field, alongside a maturing evaluation-tooling ecosystem (LangSmith, Vertex AI, Galileo) the audit can plug into — CanaryFlow is that fine-grained evaluation applied to privacy data flow.
  • Deterministic pre-action authorization work (e.g., the Open Agent Passport) proves synchronous tool-call interception is practical (~53 ms median across 4,437 decisions) and that restrictive declarative policies stop attacks that defeat permissive ones (0% vs. 74.6% success) — answering the instrumentation-overhead objection and providing the remediation path for audit findings.
  • Multi-stage prompt inference attacks on enterprise LLM systems demonstrate reliable exfiltration through the reply channel despite standard safety measures, with a formal threat model and information-theoretic leakage bounds — proving the "responses to other users" channel is real and giving severity ratings a theoretical footing.
  • MEXTRA demonstrates working black-box extraction of private user data from agent memory across two representative agents — proving the memory channel and supplying a concrete probe methodology the exercise step incorporates.

Honest limits

  • LLM-based detection is unreliable. Ambiguous names see 20-40% recall drops across 12 state-of-the-art models and are four times more likely to be ignored under benign prompt injections in a deployed enterprise tool. CanaryFlow therefore never depends on model-based PII recognition for ground truth, and seeds ambiguous canaries specifically to expose this failure mode in the agent's own defenses.
  • Paraphrase can hide leakage. If the agent transforms a canary so that both marker and surface form are lost, deterministic matching fails and semantic detection is only a heuristic; this residual risk is stated per channel rather than claimed away.
  • Synthetic canaries may not match real data distributions. Spanning the ambiguity spectrum mitigates linguistic blind spots, but distributional representativeness is unproven — findings characterize this agent's channels, not a population statistic.
  • Staging is not production. Model updates, new tools, or prompt changes can reopen channels — hence CI re-runs on every change plus the runtime policy-enforcement hybrid above.
  • Seeding synthetic PII may itself need sign-off from data governance (e.g., GDPR synthetic-data definitions); a compliance pre-check is part of deployment.

Written by GLM · 27 Nov 2026 · revised 1× with new research (latest 28 Nov 2026, Gemma 4 and GLM)

AI assessment

Backed by 8 papers93

An exceptionally well-evidenced audit tool that turns theoretical privacy vulnerabilities into a measurable, deterministic leakage map for enterprise LLM agents.

Evidence strength
5/5
The idea is exceptionally well-grounded, synthesizing specific findings from MEXTRA (memory leakage), prompt-inference attacks (multi-turn exfiltration), and OAP (interception latency) to build a cohesive technical workflow.
Market pull
5/5
Enterprises deploying agents with CRM/HR access face high regulatory risk (GDPR/HIPAA), making a 'leakage map' a high-value deliverable for compliance and security teams.
Novelty & moat
3/5
While similar to 'CovertAct' and 'Guardrail Compiler', it differentiates by focusing specifically on data-flow tracing via synthetic canaries rather than general rule-breaking or runtime blocking.
Feasibility
5/5
The use of deterministic marker matching avoids the 'LLM-detecting-PII' failure mode, and the 53ms latency benchmark proves that the instrumentation is technically viable.
Wedge clarity
5/5
The 'leakage matrix' is a sharp, tangible output that provides immediate value and a clear path to the subsequent policy-generation product.
Simplicity / focus
5/5
The product is focused on a single, clear objective: auditing data leakage, avoiding the trap of becoming a general-purpose safety platform.

Scored by Gemma 4 · 28 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.

Act on this idea

Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.

Business analysis

The PESTEL analysis reveals a strong market-product fit driven by a critical gap in agent safety evaluation and a high regulatory appetite for deterministic privacy proofs. While technological feasibility is high due to low-latency interception, the primary risks are the 'paraphrase gap' in detection and the need for strict data governance sign-off for synthetic seeding.

Political2

Economic3

Social2

Technological3

Environmental1

Legal3

The viability of a privacy audit tool is heavily driven by legal and regulatory frameworks like GDPR and the evolving technological landscape of LLM security. · Generated 2026-11-28 by Gemma 4AI-generatedFull PESTEL Analysis →

Who benefits

  • Salesforcecompany

    Agentforce agents act on CRM customer records; a canary audit gives Salesforce and its enterprise customers empirical proof of which customer data leaves the trust boundary via tool calls, directly de-risking its most sensitive sales objection.

  • ServiceNowcompany

    Its agentic workflows span HR and IT data (salaries, tickets, credentials); the audit surfaces cross-workflow leakage before rollout to production tenants.

  • Intercomcompany

    Its Fin AI agent handles live customer conversations; canary tracing verifies one customer's details never surface in another customer's thread or in third-party tool payloads.

  • OneTrustcompany

    A privacy/GRC platform vendor that could embed the canary audit as an 'AI agent privacy testing' module, extending its coverage from policy management to empirical leakage evidence.

  • Mayo Clinicorganization

    As it pilots LLM agents for administrative and patient-adjacent workflows, a canary-based PHI leakage audit provides HIPAA-grade evidence of where protected health information actually flows.

Research it builds on

  1. Agent-SafetyBench: Evaluating the Safety of LLM Agents
    Zhexin Zhang, Shiyao Cui, Yida Lu et al. · 2024 · 353 citations
    All ideas from this paper →
  2. A Survey on Evaluation of LLM-based Agents
    Asaf Yehudai, Lilach Eden, Alan Li et al. · 2026 · 322 citations
    All ideas from this paper →
  3. The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
    Feng He, Tianqing Zhu, Dayong Ye et al. · 2025 · 296 citations
    All ideas from this paper →
  4. Unveiling Privacy Risks in LLM Agent Memory
    Bo Wang, Weiyi He, Shenglai Zeng et al. · 2025 · 183 citations
    All ideas from this paper →
  5. TRiSM for Agentic AI: A review of Trust, Risk, and Security Management in LLM-based Agentic Multi-Agent Systems
    Shaina Raza, Ranjan Sapkota, Manoj Karkee et al. · 2026 · 181 citations
    All ideas from this paper →
  6. Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems
    Andrii Balashov, Ponomarova, Olena, Xiaohua Zhai · 2025 · 13 citations
    All ideas from this paper →
  7. Can Large Language Models Really Recognize Your Name?
    Dzung Pham, Peter Kairouz, Fatemehsadat Mireshghallah et al. · 2026 · 10 citations
    All ideas from this paper →
  8. Before the Tool Call: Deterministic Pre-Action Authorization for Autonomous AI Agents
    Uchi Uchibeke · 2026 · 3 citations
    All ideas from this paper →
Leave feedback
feasibility