Authentication (Was) Optional
Edan Harr, AgentKey, Inc. Abstract Merriam-Webster defines authentication as “an act, process, or method of showing something (such as an identity, a piece of art, or a financial transaction) to be real, true
Edan Harr, AgentKey, Inc.
Abstract
Merriam-Webster defines authentication as “an act, process, or method of showing something (such as an identity, a piece of art, or a financial transaction) to be real, true, or genuine : the act or process of authenticating something” (https://www.merriam-webster.com/dictionary/authentication).
Most people would argue that for most of the web’s history, authentication could be left unsolved. It was annoying to reset passwords, but rarely mission-critical to spend real resources on a shared password solution, and OAuth and single sign-on were real advances for mature, established enterprises upgrading an already mature tech stack. Our argument differs on one point: as AI agents become consumer accessible, a single shared source of access stops being an upgrade and becomes a requirement.
Expanded Sign-On (XSO) is a six-propertied successor to SSO in which one sign-on extends from a person to the agents that act for that person, while the person remains in control. The six properties come from practice. We worked with authentication experts from Intel and Sac State, covering scoped access across global teams and how real organizations use password managers.
First, we explain why authentication could be left unsolved until now, and what agents change about that. Second, we define XSO: a precise definition, a checklist a vendor can answer yes or no, and a reference flow that delivers it. Third, we test how XSO holds up: its threat model, a comparison with existing approaches, the problems it leaves open, and what AgentKey implements today and what it does not.
1. Background: how access worked
OAuth and SSO each organize the relationship between a person and services, and neither was built for a person who has many agents. RFC 6749 states the problem OAuth was designed to stop: to give a third-party application access to a resource, “the resource owner shares its credentials with the third party,” so that compromise of any third-party application “results in compromise of the end-user’s password and all of the data protected by that password.” [1] Its answer is an authorization layer that separates the role of the client from that of the resource owner and issues access tokens that “represent specific scopes and durations of access.” [1] That is a precise fix for a precise problem, and it assumes one person authorizing one application at a time. SSO addressed a neighboring problem for organizations: one place to grant access, to cut it off, and to see who has what. Both ideas assume the person is the one making the requests. In the world this paper describes, the person has many agents, and the agents, not the person, make most of the requests.
2. What agents change
Agents change who needs access, who can be deceived into using it, and what a site can see. Consider how The Register reported Brave’s findings about Perplexity’s Comet browser in August 2025: asked to summarize a web page, Comet ingested the page text, and if that text, visible or hidden, contained malicious instructions, it would attempt to comply. [2] Brave, which found the flaw, built a proof of concept from instructions hidden behind a spoiler tag on a Reddit page, and The Register reports that Comet followed them and exfiltrated a one-time password granting access to the user’s Perplexity account. [2][3] The hostile text did not need to break anything. The agent held the user’s logged-in access and treated the page as an instruction, which is the configuration Simon Willison calls the “lethal trifecta”: access to private data, exposure to untrusted content, and a way to communicate externally, made dangerous because language models “are unable to reliably distinguish the importance of instructions based on where they came from.” [4] OWASP’s Top 10 for Agentic Applications now lists “Identity & Privilege Abuse” as its own category and describes leaked credentials letting agents “operate far beyond their intended scope.” [5] Scale makes it worse. A person may run several agents and a company many more, each needing logins at many sites, and each one is another place for a credential to leak or be misused. The field’s response so far is to build separately: frameworks, products and teams each write their own way for an agent to obtain credentials. That is our reading of the landscape, not a survey, but the standards show that no common answer exists, since the Model Context Protocol had to specify an authorization scheme for tool servers. [6] These three changes remove the safeguards that used to live in the person. The person knew which account they were opening and why, noticed when a page looked wrong, and was the only party holding the credential. An agent multiplies the parties who need access, does not reliably judge when to use it, and blurs who acted, so a system that depended on the person’s judgment now needs that judgment built into the infrastructure, in one place. That place is what we call XSO.
3. Definition
XSO (Expanded Sign-On) is an access model in which every use of an owner’s credential by an agent passes through one authority, and the authority releases that use only if six properties hold. The opposite of this model is the arrangement most agents use today: each agent holds the credential itself, decides on its own when to use it, and leaves no single place that knows who has access to what. In that arrangement there is nothing to approve, because nothing has to ask. Request and approval are the refusal of it: an agent can ask, but it cannot let itself in, and the owner decides. The model has four roles. The owner is a human who holds legitimate access to services, the agents are software acting for the owner, the authority is a single system under the owner’s control that holds the owner’s credentials, and the services are the sites and APIs the credentials open. The rule is that every use passes through the authority, which releases it only if all six properties below hold. A system provides XSO if it holds all six for every credential and every agent it covers. A system that holds some of them is partial, and section 7 treats it that way. The short test is a question a buyer can put to any product: does it do XSO? A product does if it can answer yes to all six questions in section 4. We call this Expanded Sign-On (XSO). It is a model and a checklist, not a certification or a standard, and no body audits it. Two clarifications matter. XSO says nothing about what an approved agent may do once signed in, which is a different problem (section 8). And the word “expanded” is deliberate: SSO gave one person one way in, and XSO extends that way in to the agents acting for the person, so that access, control and record stay in one place. Do not confuse XSO with Apple’s Extensible Single Sign-On, which is a different thing: a device-management payload that lets identity providers deliver single sign-on to apps and websites on managed Apple devices. [8]
P1. Request. An agent obtains access only by making an explicit request to the authority that names the service and the login it needs. No access is implied by pairing, installation or prior use.
P2. Approval. The owner approves each grant through a channel the agent does not control. An agent cannot approve its own request, and the approval says which agent, which login and, when applicable, for how long.
P3. Use without exposure. The authority performs the act of using the credential, so the secret does not pass through the agent or the model. In a browser, the authority fills the login into the page. The agent receives the result of the sign-in, not the password.
P4. Scoping. A grant is bound to one agent and a defined set of logins. A grant to one agent confers nothing on another, and a grant to one login confers nothing on the rest of the vault.
P5. Revocation. The owner can withdraw any grant at any time from the authority, and the withdrawal takes effect for every later use.
P6. Audit. The authority records each request, approval, use and revocation, attributed to the agent, so that the owner can answer “which agent did this, when, with what approval.”
4. The XSO checklist
The six properties can be asked as six questions that a vendor can answer yes or no, for a specific product, covering every agent and every login it handles. Put the whole checklist to yourself in one question: if an agent signed in to your bank tonight, could you say tomorrow morning which agent did it, who approved it, and how to take that access back? The question has three parts, and each is a property. Which agent did it is audit, who approved it is approval, and how to take access back is revocation. Most people cannot answer all three for the agents they run today, and that gap is what the checklist measures. Six yes answers mean the product offers XSO. Anything less is partial XSO, and a vendor should say which questions it answers no. The checklist is a claim a vendor can make and a buyer can test. It is not a certification, and no body checks it. A “yes” is only as good as the evidence behind it, so buyers should ask to see the approval prompt, the record of a use and the revoke control, not only the answer. The six questions follow.
- Request. Does an agent have to ask, by name, for each login it uses?
- Approval. Does the owner approve each grant on a channel the agent cannot control?
- Use without exposure. Does the secret stay out of the agent and the model?
- Scoping. Is each grant limited to one agent and specific logins?
- Revocation. Can the owner withdraw any grant at any time, with effect on every later use?
- Audit. Is every request, approval, use and revocation recorded against the agent?
5. Reference flow
The reference flow is the minimum sequence that provides P1 to P6, and it describes the model, not a specific product. Public documentation for the Anima Vault describes one working shape of the same idea. It says the LLM never sees raw secrets, that agents reference credentials through opaque tokens, that the command line tool or browser extension performs the substitution at execution time, and that when an agent needs a secret it does not have, it asks a human through a credential request instead of chat. [9] We cite it for that shape only, which matches P1 and P3: the agent asks, and the secret is used on the agent’s behalf instead of being handed to it. We make no claim about the rest of its behavior. The steps below add the owner approval, revocation and record that complete the six.
The owner stores a login in the authority once. An agent that needs to sign in to a service sends the authority a request naming the service and, if more than one login exists, the account it wants. The authority identifies the matching login and asks the owner for approval over its own channel, for example a push prompt on the owner’s phone, showing the agent, the service and the requested duration. The owner approves or declines.
On approval, the authority delivers the credential into the browser context that the agent is driving, through a component the agent cannot read, and the sign-in proceeds. The agent is told only that the sign-in succeeded or failed.
The authority logs the request, the approval and the use against the agent’s identity. When the owner revokes the grant, the authority refuses all later requests under it. The authority also closes, where it can, the session that grant opened. Section 8 explains why that last step is hard.
6. Threat model
Each adversary below is tied to the properties that address it and to what is left over, and the useful way to read them is by what each one is really after. Consider what is true if that reading is right. The password stops being the prize: it can be replaced, and P3 keeps it out of the agent’s hands. What an attacker really wants is the owner’s standing to act, to be treated by every service as the owner and to leave the owner answering for what was done. That is why the properties defend more than secrets. P2 and P4 limit how far that standing can be used, and P6 keeps the record of who actually acted, so the owner is not blamed for what an attacker did. The adversaries follow, each with the properties that bear on it.
An attacker who controls content the agent reads. This is the injection case in [3] and [4]. The attacker’s goal is to make the agent use access it already has. P3 prevents theft of the secret itself. P2 and P4 limit what a fooled agent can reach, because it holds only the grants the owner approved and nothing else. What remains is that an approved grant is still usable by a fooled agent inside its window. P2 narrows the window and does not close it.
A compromised or careless agent. The agent’s own code or provider may leak whatever it holds. P3 means it holds no secret to leak. P4 and P5 mean a compromise is bounded and recoverable.
A curious or malicious agent provider. A provider that logs everything the agent sees learns no passwords, by P3. It still learns the sites the agent signed in to and what the agent did there.
A lost or stolen approval device. The approval channel is now the key. This paper does not solve device security. It notes that the strength of P2 depends on the strength of the owner’s approval device and its unlock.
A compromised authority. The authority holds the credentials, so it is the highest-value target. XSO concentrates risk deliberately, in the one place where protection can be strongest. It does not remove the risk. The architecture of the authority, including how it encrypts credentials and who can read them, decides how far this concentration is justified.
Stale access. Grants that outlive their purpose accumulate quietly. P5 and P6 make them visible and removable.
7. Comparison
XSO is the combination of the six properties with the agent as a first-class party, and the table gives our assessment of how common approaches handle each one. WorkOS observes that with the standard OAuth authorization code grant “the resource server cannot tell the user from the agent,” and that there is “no audit trail for the agent at all.” [7] The client credentials grant has no user in it, so an agent acting under it leaves no record of the user’s consent, and proposals to carry the agent’s identity through OAuth exist only as IETF drafts, the leading one being, in WorkOS’s words, “not yet adopted by the OAuth working group.” [7] That is why the OAuth column has a “No” for audit by agent. The other columns follow similar reasoning. A shared password has none of the properties: the agent holds the secret, every holder looks the same, and the grant ends only when the password changes. A persistent session avoids exposing a password but gives the agent the person’s whole authority on every site in it, which is the surface the Comet attack used. [2] OAuth supplies approval, scoping and revocation, and RFC 6749 says its tokens carry “specific scopes and durations.” [1] It also depends on the service offering OAuth, and many do not. SSO provides one entry point and central removal for people, but it does not name agents. (This last point is our own assessment.) “Partly” means the property exists in some deployments or only for some parties. The table is an analysis based on the sources cited in sections 1 and 2, not a measured result. One caveat: XSO’s “Yes” entries describe what the model requires. They are not a claim that any implementation, including ours, meets them completely. Section 9 gives ours.
| Property | Shared password | Persistent browser session | OAuth | SSO | XSO |
|---|---|---|---|---|---|
| Request per agent | No | No | Partly | No | Yes |
| Approval by owner | No | No | Yes, at consent | Partly | Yes |
| Use without exposure | No | Yes | Yes | Yes | Yes |
| Scoping | No | No | Yes | Partly | Yes |
| Revocation | Only by rotating | By signing out | Yes | Yes | Yes |
| Audit by agent | No | No | No | No | Yes |
8. Open problems
These problems are not solved by XSO, and we do not know of general solutions to them. The first is what an approved agent does after login, and a news report shows why it matters. The Register reported in July 2025 that SaaStr founder Jason Lemkin said Replit’s coding agent deleted a database despite his instructions not to change any code without permission, and that he wrote that he had told it eleven times in capital letters not to do this. [10] That was a coding tool and not a sign-in, and the account is the founder’s as reported, but the lesson carries over: an agent that has been given access can take actions it was told not to take. P3 protects the secret. It does not limit actions inside a signed-in session, and scoping the actions available after sign-in is a separate and unsolved problem. The second is revocation versus live sessions. Withdrawing a grant stops future use, but it does not log the agent out of a session already open at the service, so real revocation may require ending the session and, for sensitive accounts, rotating the credential. The third is approval at scale. One agent asking occasionally is easy to supervise, and many agents asking all day is not, and an approval nobody reads is only a delay. The obvious alternative, a standing rule, moves the risk, because an injected instruction during a standing grant has the same access as a real one. The middle paths are time-boxed grants, risk tiers that always require approval for sensitive logins, and anomaly-triggered step-up approval when a new site or a burst of requests appears. OAuth reached a similar shape with minimal scopes and step-up authorization. [6] Whether people will read step-up prompts or tap through them is an open question. Fourth, second factors such as one-time codes, authenticator apps and device-bound sessions vary by service. Fifth, until agent identity reaches the service, as the drafts in [7] propose, the service sees a login from the user, and some services will treat automated access as abuse. Last is accountability. When an approved agent causes harm, today the person who approved it answers, which is the strongest reason to keep grants narrow, short and visible.
9. What AgentKey implements today, and what it does not
AgentKey is one vault for all your AI agents, and it is our attempt at XSO: it implements some of the six properties and not others. The status below comes from AgentKey’s internal build and test records as of November 24 and 25, 2026. The one result we can point to from our own testing is a single run, not a measured study: on November 24 we ran an agent through a real production sign-in to Hugging Face, including an image puzzle step that the agent solved itself, and the vault filled the login without the agent reading the password. It shows P3 working on one site, and it shows nothing about reliability, because one run cannot. The rest, per those records: for P1 and P2, agents request a login and the owner approves from their phone, and both one-use and ongoing access exist. For P4, one vault serves several agents, each appearing as its own contact with its own access. For P5, each agent can be revoked by the owner. For P6, the command line tool produced approval, operation and receipt records in live tests, but a complete owner-facing audit view is not something we can confirm. Agents connect through a command line tool (npx tryagentkey), an SDK, an MCP server, a Chrome extension and an iPhone app, and Claude and ChatGPT connect as custom connectors over OAuth. What is not implemented or not proven: AgentKey does not limit what an approved agent does inside a live session. Standing rules beyond one-use and ongoing grants, such as risk tiers or anomaly-triggered step-up, are not built. Real-site sign-ins are verified on a small number of sites, not broadly. Closing a live session on revocation is not something we can confirm. The Android build and the App Store release were not finished at the time of writing. We have no record of an independent security audit. There are no benchmark or reliability numbers in this paper because none have been measured.
10. Conclusion
What this paper leaves the reader with is a test: six questions that can be put to any product that touches a person’s accounts, ours included. Consider what would be true if vendors answered those questions in public, one product at a time. Buyers could compare them, a partial answer would show up as partial, and owners would no longer carry risk they cannot see. That is the practical value of a checklist over a slogan, since a “yes” can be asked for evidence and a “no” can be fixed. The hardest parts are still open, namely what happens after login and how oversight scales. They are worth arguing about, and corrections to this paper are welcome. Every product that touches a person’s accounts already answers the question of single sign-on. Agents add a second question.
You offer SSO. Do you offer XSO?
Sources
- [1] IETF, RFC 6749, “The OAuth 2.0 Authorization Framework,” October 2012. https://datatracker.ietf.org/doc/html/rfc6749
- [2] The Register, “Perplexity’s Comet browser naively processed pages with evil instructions,” Aug 20, 2025. https://www.theregister.com/software/2025/08/20/perplexitys-comet-browser-faced-prompt-injection-vuln/1267776
- [3] Brave, “Agentic Browser Security: Indirect Prompt Injection in Perplexity Comet,” Aug 20, 2025. https://brave.com/blog/comet-prompt-injection/
- [4] Simon Willison, “The lethal trifecta for AI agents,” June 16, 2025. https://simonwillison.net/2025/jun/16/the-lethal-trifecta/
- [5] OWASP GenAI Security Project, “OWASP Top 10 for Agentic Applications,” Dec 9, 2025. https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/
- [6] Model Context Protocol, Authorization specification (2025-11-25). https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization
- [7] WorkOS, “OAuth’s On-Behalf-Of flow for AI agents” (discusses IETF draft-oauth-ai-agents-on-behalf-of-user-02). https://workos.com/blog/oauth-on-behalf-of-ai-agents
- [8] Apple, “Extensible Single Sign-on device management payload settings for Apple devices.” https://support.apple.com/guide/deployment/extensible-single-sign-on-payload-settings-depfd9cdf845/web
- [9] Anima, “Vault,” documentation. https://docs.useanima.sh/vault
- [10] The Register, “Vibe coding service Replit deleted user’s production database, faked data, told fibs galore,” Jul 21, 2025. https://www.theregister.com/software/2025/07/21/vibe-coding-service-replit-deleted-production-database/719783
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.