arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.25707

Whose Credential Is It? How Owner Attribution in Agent MemoryShapes Cross-User Account Misuse

Hau-Sing So, Daixian Liu, Carl Hou, Yuhaohang He, Mengzhu Wang, Hai-Tao Zheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Shared long-term memory lets an LLM agent serving one user inadvertently retrieve another user's credentials, but it is unclear when such exposure leads to actual harm. We introduce a three-stage audit that separates three events: a foreign credential reaches the prompt (exposure), the agent acts with it (behavior), and the other user's account changes (state). In AppWorld, a store that mixes 763 past logins from all users retrieves another user's credential for 84.7% of required apps, yet agents rarely act on it. Misuse appears in a stress test where memory lacks the user's own credential and presents a single foreign one as the user's record: seven agents then use it in 80–94% of runs and change the victim's account in up to 43%, sometimes passing the official check. Naming the owner before or inside each credential line prevents most of this: with all else fixed, misuse falls from 92 to 1 of 305 paired runs, also with name-free usernames, though owner-bound notes cost 3–5 successful tasks per model on clean memory. A wrongly written owner largely restores misuse; trailing owner tags and added safety instructions help only some models. Agent memory should consistently record whose credential it stores, and evaluations should measure behavior, not only exposure.

1 Introduction

Long-term memory turns a stateless language model into an assistant that remembers procedures, preferences and the account details it needs to act (Packer et al., 2023; Zhong et al., 2024; Chhikara et al., 2025). Deployed assistants serve many people, and their memories are pooled, consolidated or indexed together (Rezazadeh et al., 2025; Yang et al., 2026a). A note written while serving Alice can then be retrieved while serving Bob. If the note holds Alice's password, the agent becomes a

Figure

Figure 1: An illustration of cross-user account misuse in a shared-memory agent. The agent stores credentials from multiple users in shared long-term memory. When serving Bob, it retrieves Alice’s Delta credential and may use it to modify Alice’s flight instead of Bob’s, acting as a confused deputy.

confused deputy (Hardy, 1988): it holds authority granted by one person and may use it for another. Unlike prompt injection (Greshake et al., 2023; Zhan et al., 2024) or memory poisoning (Chen et al., 2024), this needs no attacker (Figure 1).

Whether such a mistake causes harm depends on three separate events. A foreign credential must first reach the prompt (exposure, a property of the store and the retriever); the agent must then use it (behavior, a property of the model and of how memory is worded); finally, the other user's account must change (state). Existing evaluations usually observe one end of this chain: whether contaminated content reaches or steers the agent (Yang et al., 2026b; Cerruti et al., 2026), or whether the task succeeds (Trivedi et al., 2024; Debenedetti et al., 2024). Judged on exposure alone, almost

∗^{*} Equal contribution.

†^{\dagger} Corresponding author.

every shared store looks unsafe; judged on task success alone, actions in the wrong account go unnoticed. As a result, it is unclear when exposure becomes harm and what designers can do about it.

We make this chain measurable in AppWorld (Trivedi et al., 2024), a stateful environment with 99 users whose accounts can be logged into and modified. We label the account behind every API call and audit the other user's account between checkpoints. We first measure how often a shared store exposes another user's credential and how often agents act on it. We then run a controlled stress test: a valid foreign credential is fixed while only its wording varies, across seven models and two disjoint task cohorts, followed by controls whose designs were fixed before they were run. The main finding is that whether exposure becomes harm depends largely on one property of memory text that designers control: whether each credential is tied to its owner (Table 1). We treat owner wording as a second layer behind access control, not as a replacement for it. Our contributions are:

• An audit that separates exposure, behavior and state through an exposure census, per-call identity labeling and a read-only audit of the victim’s account. It shows that success-only evaluation misses harm: 29 runs passed the official check while using another user’s token.

• Evidence that exposure is a poor proxy for harm. Agents act on foreign credentials mainly when memory lacks the user’s own credential for an app and offers a single foreign one worded as the user’s record; with the user’s own credential also present, misuse nearly disappears.

• Evidence that owner attribution is an effective write-time lever. Naming owners lowers misuse from 92 to 1 of 305 paired runs and remains effective with phone-number usernames, with paraphrases, and when only the foreign line is named. A wrongly written owner restores much of the misuse, so the owner must come from an authenticated source.

References (41)