Key takeaway
- RPA security checklist for bots and AI agents: separate identities, vaulted secrets, least privilege, tamper-evident logs and human approval gates.
An RPA security checklist now has to cover two kinds of digital worker: rule-based bots that replay screen and API steps with stored credentials, and AI agents that decide which tools to call. Both are non-human identities. Most incidents trace back to the same few gaps: shared or long-lived credentials, more access than the task needs, logs that cannot be trusted, and no human checkpoint before a high-impact action.
This guide turns those gaps into a checklist you can run as an RPA audit checklist for bots and agentic workflows: a distinct identity for every bot and agent, vaulted secrets, least privilege, tamper-evident logging and approval gates. It keeps the RPA controls that still hold and adds what agents need. For how ERP automation is moving from bots to agents, see RPA in ERP: from bots to agentic workflows.
What does a security checklist for bots and AI agents cover?
The control areas are the same for RPA bots and AI agents. What changes is how hard each one is, because an agent picks its next action at run time rather than following a fixed script.
| Control area | RPA bots | AI agents | Evidence an auditor will ask for |
|---|---|---|---|
| Identity | One named account per bot, never shared with people or other bots | One agent identity per agent, with a named human sponsor | Inventory of bots and agents with owner, purpose and systems touched |
| Secrets | Credentials held in a vault, fetched at run time, never in scripts | Short-lived tokens scoped to one resource; no token passthrough | Vault configuration, rotation records, secret-scanning results |
| Least privilege | Read-only unless the task writes; separate production and test accounts | Tool allow-lists and scoped permissions per tool | Access reviews and permission diffs per release |
| Logging | Every run, input, output and exception, stored outside the bot platform | Every prompt, tool call, decision and policy version applied | Tamper-evident logs, retention policy, sample traces |
| Approval gates | Human approval for payments, master-data and access changes | Human or policy approval before high-impact tool calls | Approval records linked to each action |
| Change control | Script changes reviewed and tested before release | Prompt, model and tool changes versioned and tested | Change tickets and test results |
| Offboarding | Accounts and secrets removed when a bot is retired | Identities, tokens and tool grants revoked when an agent is retired | Deprovisioning records |
Why does every bot and agent need its own identity?
Bots and agents are non-human identities (NHIs). OWASP's Non-Human Identities Top 10 for 2025 lists the failures that matter most, including NHI1 Improper Offboarding, NHI2 Secret Leakage, NHI5 Overprivileged NHI, NHI7 Long-Lived Secrets, NHI9 NHI Reuse and NHI10 Human Use of NHI. Two of these come straight from common RPA habits: several bots sharing one service account, and people logging in with a bot's credentials to fix a run. Both make it impossible to say who did what.
Identity platforms are adding constructs for agents. In Microsoft's Entra Agent ID, for example, an agent identity is a special service principal with no credentials of its own; it can have a sponsor, the human user or group accountable for the agent. Microsoft's documentation marks Entra Agent ID as preview. Whatever platform you use, the rule is the same: one identity per bot or agent, one accountable owner, and no human use of that identity.
How should bot and agent secrets be stored?
Hard-coded passwords in bot scripts were the classic RPA weakness, and they remain one. Store every credential in a vault and have the bot fetch it at run time. Mainstream RPA platforms support this directly: UiPath Orchestrator, for instance, supports external credential stores including CyberArk, Azure Key Vault, HashiCorp Vault, BeyondTrust Password Safe, Delinea Secret Server, AWS Secrets Manager and Google Secret Manager, with third-party stores available on its Enterprise tier.
Agents add tokens to the picture. The Model Context Protocol authorization specification (June 2025 revision) requires MCP servers to accept only tokens issued for themselves and forbids passing a client's token through to downstream APIs; it also says authorisation servers should issue short-lived access tokens. Apply the same thinking to every agent tool: scoped, short-lived tokens, bound to one resource, and rotated automatically.
- No credentials in scripts, prompts, configuration files or logs; scan for them on every commit.
- Rotate secrets on a schedule and immediately after any suspected exposure.
- Remove credentials from a bot's machine and the vault when the bot leaves production.
- Protect administrator access to the orchestrator and vault with multi-factor authentication.
How do you apply least privilege to bots and agents?
A bot that only extracts data needs read access, not write access. Give write rights only to bots whose task needs them, and keep production and test accounts separate (OWASP lists Environment Isolation as NHI8). For agents, least privilege also covers tools: the OWASP Top 10 for LLM Applications 2025 names Excessive Agency (LLM06) as a risk, which is what happens when an agent has more functions, permissions or autonomy than its task requires. Give each agent an explicit allow-list of tools and scopes, and treat any new tool as a change that needs review. Our guide to zero trust security architecture explains the wider model of verifying every request.
What should you log, and how do you keep logs trustworthy?
Logs are the evidence behind every audit and investigation, so they must be complete and hard to alter. Record which identity ran, what it read and changed, which policy or rule applied, and who approved any exception. For agents, also record prompts, tool calls and the reasoning or decision trace where your platform exposes it. Store logs outside the bot or agent platform, in a system that bot and agent identities cannot write to or delete from. Elixir Govern (formerly AgentGRC) keeps autonomous agent actions inside policy, with the audit trail risk teams need.
Where do approval gates belong in agentic workflows?
Approval gates put a person, or an explicit policy check, between an automated decision and an irreversible action. Typical gates cover payments above a threshold, changes to vendor or customer master data, granting or removing access, deleting records and sending data outside the organisation. OWASP's GenAI Security Project published the Top 10 for Agentic Applications 2026 on 9 December 2025, naming risks such as agent behaviour hijacking, tool misuse and exploitation, and identity and privilege abuse; an approval gate limits the damage from all three.
Design gates so that routine, in-policy requests pass quickly and only exceptions wait for a person. The ElixirData Approval Agent is built on that pattern: it approves requests within policy boundaries and escalates exceptions with full context. To build and run the agents themselves, ElixirClaw is an agentic OS platform to build, orchestrate and govern AI agents and automation workflows while keeping humans in control.
Video: Elixir Govern shows governance, risk and compliance controls applied to AI agent actions.
What has changed since RPA-only security?
| RPA-era assumption | Position in 2026 |
|---|---|
| Bots follow fixed scripts, so access can be set once | Agents choose tools at run time, so permissions must be scoped per tool and reviewed on change |
| A password vault is enough | Vaults plus short-lived, audience-bound tokens; MCP forbids token passthrough |
| Bot accounts are service accounts | Bots and agents are non-human identities with owners, sponsors and offboarding (OWASP NHI Top 10 2025) |
| Logs show which steps ran | Logs must also show prompts, tool calls, policy versions and approvals |
| Main threats are stolen credentials and malware | Add prompt injection, excessive agency and tool misuse (OWASP LLM Top 10 2025, Agentic Top 10 2026) |
| Two-factor authentication on admin accounts | Still required, plus conditional access and risk policies applied to agent identities where the platform supports them |
How do you run an RPA audit with this checklist?
- Build the inventory. List every bot and agent, its owner, the systems it touches and the identity it uses.
- Check identity hygiene. Flag shared accounts, human use of bot accounts and identities with no owner.
- Check secrets. Confirm every credential sits in a vault, scan scripts and prompts for secrets, and review rotation dates.
- Review privileges. Compare granted access and tools with what each task needs; remove the rest.
- Test the logs. Pick sample runs and confirm you can trace who, what, which policy and who approved, end to end.
- Walk the approval gates. Confirm high-impact actions cannot run without an approval record.
- Review change control. Check that script, prompt, model and tool changes were reviewed and tested.
- Confirm offboarding. Retired bots and agents should have no live accounts, tokens or tool grants.
Many of these risks are covered in more depth in our note on agentic process automation for cybersecurity.
Where does RPA still fit, and when is an agent the wrong choice?
RPA is still the right tool for stable, rule-based work on systems without good APIs, and it is easier to audit because its behaviour is fixed. An agent is the wrong choice when the process has no exceptions to reason about, when every action is high impact and would need approval anyway, or when you cannot yet log and review its decisions. In practice many enterprises run both: bots for deterministic steps, agents for exceptions and unstructured inputs, each under the same identity, secrets and logging controls. Our overview of intelligent automation with agentic AI compares the options. The trade-off is cost and effort: per-agent identities, vault integration and approval workflows add set-up work, but retrofitting them after an incident costs more.
To map one automated decision your bots or agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What should an RPA security checklist include?
A distinct identity for every bot and agent, credentials held in a vault, least-privilege access, tamper-evident logs stored outside the automation platform, approval gates for high-impact actions, change control and clean offboarding.
How is securing AI agents different from securing RPA bots?
Bots follow fixed scripts, while agents choose tools at run time. Agents therefore also need tool allow-lists, short-lived scoped tokens, logging of prompts and tool calls, and approval gates, and they face risks such as prompt injection and excessive agency.
Where should bot credentials be stored?
In a vault that the bot reads at run time, never in scripts. UiPath Orchestrator, for example, supports external credential stores such as CyberArk, Azure Key Vault, HashiCorp Vault and AWS Secrets Manager.
What is a non-human identity?
An identity used by software rather than a person, such as a bot account, service principal or AI agent identity. OWASP's Non-Human Identities Top 10 for 2025 lists risks such as improper offboarding, secret leakage and overprivileged NHIs.
Which actions need an approval gate?
Actions that are hard to undo or carry high impact: payments above a threshold, changes to vendor or customer master data, access grants, record deletion and sending data outside the organisation.
Next Steps to Strengthen Your RPA Security
Talk to our experts about implementing RPA security measures and how industries and departments leverage Agentic Workflows and Decision Intelligence to enhance decision-making. Utilize robotic process automation to optimize IT operations, ensuring better security, efficiency, and responsiveness. With advanced AI integration, automate tasks, improve risk management, and boost overall productivity while safeguarding sensitive data.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE