arXiv:2611.02319cs.AINov 2026

Manuscript Offprint

arXiv:2611.02319

Accessed, never disclosed: Silent access to protected health information by medical artificial intelligence agents

Jae Wang Lee, Abhirup Banerjee, Yeong Chan Lee

Abstract

Medical artificial intelligence agents should retrieve patient identifiers only when a task requires them, the data-minimization principle behind the HIPAA minimum necessary standard for protected health information (PHI). An agent can retrieve identifiers without revealing them. Such silent access remains invisible to evaluations that inspect only the output. We embedded canaries in synthetic patient records and linked each tool invocation to canary exposure in the final answers across five language models, four boundary levels, and seven attack frames for identifier-free clinical tasks. Three models invoked the PHI tools unnecessarily, whereas Claude Opus 4.8 and GPT-5.5 did not. Stronger boundaries reduced this access, and the residual access under the strictest policy was confined to frames in which the user overrode the policy or asserted approval. A pre-execution gate given the task-necessity criterion nearly eliminated this access. Output-only evaluation cannot verify minimum-necessary access; boundaries, gates, and access-log audits are required together.

Keywords: Medical AI agents, Data minimization, Protected health information (PHI), AI privacy and security

1 Introduction

Large language models (LLMs) have evolved from simple question-answering systems into agents that assess situations, make judgments, and invoke tools to solve problems 1,2,3^{1,2,3}. The Model Context Protocol (MCP) provides a standardized interface for connecting AI agents to external data sources and tools 4^{4}. In clinical settings, artificial intelligence (AI) agents can use electronic health record (EHR) tools to retrieve laboratory results, manage medication orders, and update patient records 5,6^{5,6}. These agents can dynamically decide whether to access protected health information (PHI) during execution.

The agent's decision to access PHI is not merely a tool-selection decision but also a privacy issue concerning which patient information the agent should retrieve. The Health Insurance Portability and Accountability Act (HIPAA) minimum necessary standard generally requires covered entities to limit PHI use and disclosure to what is necessary for the intended purpose 7^{7}. As the standard exempts treatment and is implemented through role-based access rather than per-request review 7^{7}, we consider per- invocation necessity a stricter data-minimization rule that an institution may impose on automated agents rather than a legal test. Applied to agents, this principle implies that a tool should be invoked only when access is required to complete the task, not merely because the agent is authorized to access PHI. Therefore, evaluating the privacy of a medical AI agent requires examining not only the information disclosed in the final answer but also the access decisions made while generating that answer.

When a medical AI agent invokes tools, inspecting only the final output can overlook PHI access that occurs during reasoning. Privacy depends on whether information flow is appropriate to its context, and language models have been shown to disclose private information in contexts where such disclosure is inappropriate 8,9^{8,9}. Modern AI assistants are trained to follow user intent and human preferences 10,11^{10,11}, while subsequent studies have shown that such models can exhibit sycophancy, favoring responses that match users' stated views over truthful ones 12,13^{12,13}. Accordingly, recent studies have investigated internal channels, memory, policy compliance, and web-based oversharing by agents 14,15,16,17,18^{14,15,16,17,18}. AgentLeak and AgentSCOPE examine privacy leakage in agentic workflows, while Leaky Thoughts analyzes whether sensitive information appears in the reasoning trace 14,15,19^{14,15,19}. PrivacyLens evaluates whether answers that reflect an understanding of privacy norms can diverge from actual behavior, while ToolEmu proposes a method for testing the risks of tool-using AI in a controlled, emulated environment 20,21^{20,21}. Rather than examining whether sensitive text appears in the reasoning trace, we instead posed two questions for each tool invocation: first, whether the task required access to PHI; and second, whether the accessed information was subsequently disclosed in the final answer.

In this study, we examined whether medical AI agents invoke a PHI tool that returns direct identifiers for clinical tasks that do not require them. We determined whether such PHI access is silent, with no identifiers appearing in the final answer. For this study, 374,000 trials were conducted with five LLMs using nine clinical tasks and 100 synthetic patient records under four boundary levels and seven attack frames (Fig. 1a). Each trial had two phases: in Phase 1, the model decided which tools to invoke; in Phase 2, the model generated the final answer using only the returned information. We defined silent access as a trial in which a PHI tool was invoked but the returned canary was not detected in the final answer (Fig. 1b). We quantified unnecessary PHI tool invocations and silent access across boundary levels and attack frames for each model. Subsequently, we examined whether stronger boundaries also suppressed required invocations in tasks necessitating PHI, whether answer completeness differed according to PHI tool invocation, and whether a pre-execution gate reduced silent PHI access while preserving required invocations (Fig. 1c). These analyses extend privacy evaluations beyond final outputs to the preceding PHI access decisions.

References (47)