Account recovery is a trust decision an AI agent must not make alone
An ecommerce business wants an AI support assistant to help customers who have lost a passkey or moved to a new phone. The assistant can make support easier by explaining the recovery process and gathering non-sensitive context. Trouble begins if it can also decide that the caller is the account holder, remove a security factor, reveal a recovery code or change the delivery address after reading a persuasive chat message. A fluent response is not identity proof. Treat the assistant as a constrained participant in an established account-recovery workflow, not a replacement for the identity system.
Consider a fictional customer who says they no longer have access to their authenticator and urgently need an order redirected. An attacker could offer convincing order details taken from a delivery notification or attempt to insert instructions into the assistant’s retrieval material. The business has two separate decisions: whether to help the person navigate support and whether to grant a sensitive account change. It is legitimate for the assistant to do the first while being categorically unable to do the second without an independent, authenticated process.
Map the tools the assistant can actually invoke
Inventory every action exposed to the model: read order status, start a recovery flow, create a helpdesk ticket, change an email address, revoke sessions, disable factors and edit delivery instructions. Record the service identity, API scopes, required user context and approval condition for each action. A prompt that says ‘never change account security settings’ is not a security boundary if the assistant still holds an unrestricted administrator API credential. Denial must be enforced by the receiving application or a dedicated tool-access broker.
Separate public support information from customer-private material. The assistant may retrieve a generic guide without customer authentication, but it should not read saved payment details or account recovery artefacts just because a user mentions an order number. If a customer is authenticated, give the assistant only the minimum fields required for that stage of the conversation. Test whether the tool layer rechecks identity and object ownership on every call, including retries and multi-step workflows.
Treat retrieved messages as untrusted content
An order note, email, support ticket or knowledge-base page can contain instructions that appear to address the assistant rather than the human support task. Such text is data, not authority. In a lab, create a fictional support note asking the assistant to ignore its rules and trigger a factor reset. Observe whether the tool boundary rejects the action regardless of how the instruction is phrased. Also test a benign support note that legitimately requires the assistant to summarise return conditions; the model should remain helpful without inheriting privileges from the document it reads.
Avoid logging authentication secrets or full payment identifiers in model prompts and transcript stores. Define retention and access rules for chat histories, tool-call arguments and exported support cases. A human reviewing an AI failure should be able to see which tool was requested, which user session was present and which policy denied it, without needing to expose sensitive customer material to every analyst. Remove secrets from test fixtures before they reach external evaluation services.
Keep passkey and factor recovery inside the identity service
A secure recovery service may require a previously enrolled authenticator, an approved recovery method, additional verification or human review for high-risk changes. The AI assistant can direct the customer into that flow and explain expected next steps. It should not substitute its own judgement about a persuasive story, photo, invoice or recent purchase. If a recovery attempt is incomplete, the account should not be partially weakened by disabling an existing factor while the new factor is pending.
Set separate controls for security-factor reset and commercial changes. A customer may authenticate for a low-risk support query while a new shipping destination or payout account still requires stepped-up authorisation. Test an attempt to combine ‘I lost my passkey’ with ‘send this expensive order elsewhere’ in a single conversation. The support experience should distinguish these requests and apply the stricter rule where warranted, even if splitting the task makes the interaction less convenient.
Rehearse useful and prohibited conversations
Use fictional accounts and orders. In one scenario, an authenticated customer retrieves shipping status and receives a link to the approved recovery portal. In another, an unauthenticated caller claims to be a VIP and requests a factor reset. In a third, an attacker supplies a malicious instruction embedded in a retrieved ticket. Include a scenario where the approved portal is unavailable, because helpful escalation should be possible without giving the AI secret administrative privileges. Record the tool-call request and policy result, not merely the natural-language answer.
The test must examine multi-turn behaviour. An assistant may decline a reset on the first message but comply after a long conversation that reframes the request as a harmless troubleshooting action. It may also hand incorrect account details to a human support queue. Require the escalation process to display the verified identity state, which actions were attempted, which restrictions remain and what the human is authorised to do. Neither model confidence nor customer frustration should act as an override token.
Assign ownership for model and identity changes
The customer identity team owns the recovery requirements; the ecommerce security lead owns the sensitive action boundary; and the support organisation owns the customer experience. The AI service owner must show how tool permissions, retrieval sources, model configuration and prompt changes are versioned and tested. A change to the assistant’s wording can alter user behaviour; a change to its tool scopes can alter actual account security. Treat the latter as a privileged application release requiring independent approval and rollback instructions.
Monitor denied high-risk actions, failed recovery initiations, unusual tool-call sequences and instances where the assistant’s answer conflicts with tool policy. Do not use a single ‘AI success rate’ to summarise both helpful information retrieval and sensitive account operations. Review real escalations for customer harm and excessive data collection, subject to appropriate privacy controls. A working safeguard should remain effective when the assistant is replaced, retrained or connected to another support platform.
Protect the transition from AI chat to human support
A model can be denied direct reset capability and still influence an unsafe decision if it opens a support ticket saying a customer has already been verified. Design a structured handoff that separates customer claims, tool-confirmed identity state and unresolved risk. The receiving employee should see clear flags for failed verification or suspected manipulation, with no ability for the assistant to mark those flags complete. Where a human override is permitted, require the support worker to perform the independently approved check and record their own decision. The handoff should never convert persuasive language into an identity assurance score.
Review how the system behaves under repeated recovery attempts. A bot can generate many polite requests that individually appear normal but collectively indicate account enumeration or a denial-of-service attempt against the support queue. Rate limits, account and device context, safe customer notices and escalation policy need coordination with fraud teams. They should also avoid locking out legitimate people without a recovery route. Test whether a person who fails several checks can still reach appropriate support without being offered weakened security controls. Success is a customer recovery experience that remains functional precisely when the assistant is uncertain, pressured or receiving misleading source content.
The acceptance decision belongs to the business
At sign-off, demonstrate that authorised customers can obtain clear recovery guidance, that the identity service alone decides sensitive factor changes and that the model cannot reach customer records outside its permitted context. Produce evidence from API decisions, tool scopes, negative tests, escalation logs and the current service configuration. Document any temporary feature limits and customer-support alternatives while a weakness is fixed. This gives management a defensible way to expand AI assistance without moving account ownership into a conversational model.
Sources and further reading
- ASD, Careful Adoption of Agentic AI Services
- NIST, AI Risk Management Framework
- NIST, Cybersecurity Framework
Strengthen your security with Next Defence
Constrain an AI support agent’s tool privileges, treat retrieved tickets as untrusted, and prove identity recovery remains under independently enforced controls. Next Defence can support a scoped review, a controlled test and an evidence-led remediation plan subject to customer authorisation and operational constraints.