Blog/AI Security

Securing AI agents that can take actions in your business systems

Put permissions, approval gates, limits and audit trails around AI agents that update records, send messages or trigger workflows.

By Sagar Makker · 5 min read · October 2026
In short
An agent that can act in your CRM, ERP or email can make mistakes at machine speed.
Give each agent its own identity, narrow permissions, spending and volume limits, and a kill switch.
Require human approval for irreversible or external actions, and log every step for review.
The problem

A chatbot that only answers questions can embarrass you. An agent that can update the CRM, issue credit notes in Tally, email customers or create purchase orders can cost you money. Once AI moves from talking to doing, a wrong reading of an instruction or a manipulated input turns into a real transaction.

Many pilots connect agents with an admin API key because it is quick. The agent then has more access than any single employee, no spending limit and no clear record of what it did. When something odd happens, nobody can tell whether the agent, a user or an integration made the change, or how to undo it.

Why it happens
01Agents run on shared admin keys instead of their own scoped identity
02No difference between read, draft and execute permissions
03No limits on volume, value or frequency of actions
04Actions are not logged with the input, reasoning and approver attached
How to fix it
1
Give each agent an identity
Create a dedicated service account per agent with scoped permissions, stored secrets and rotation. Never reuse a human's login or an admin key, and act within the requesting user's rights.
2
Separate read, draft and execute
Let agents read and draft freely within scope, but treat executing as a higher privilege. Start new agents in draft-only mode and grant execution action by action.
3
Set limits and approval gates
Cap transaction value, records changed and messages sent per hour. Require human approval for payments, deletions, external emails and anything irreversible, and keep a kill switch.
4
Log and review every action
Record the trigger, data used, proposed action, approver and result in a tamper-resistant audit log. Review samples weekly and alert on unusual volumes or failed attempts.
Where an AI agent helps
Input
Business events and requests that need action in CRM, ERP or email
Agent does
An agent on XDQ AgentOS acts under a scoped identity, within limits, logging each step
Human gate
A person approves payments, deletions and external messages
Outcome
Faster operations with every action traceable and reversible
What to measure
Actions executed vs held for approvalAgents with scoped identitiesLimit breaches and blocked actionsMean time to stop a misbehaving agent
Questions
Which agent actions should always need human approval?

Anything irreversible, external or financial: payments, refunds, deletions, contract changes and messages to customers or regulators. As confidence grows you can relax low-risk actions, but keep these behind a person by default.

How do we stop an agent quickly if it misbehaves?

Build a kill switch that revokes the agent's credentials or pauses its queue in one step, and make sure named people can use it. Test it before launch, the same way you test backups.

Do AI agents need separate audit logs from users?

Yes. Agent actions should be clearly attributed to the agent's own identity, with the triggering request and approver recorded. That makes investigation, undo and compliance review possible when something goes wrong.

Keep reading
All posts →
AI Security
Prompt injection explained for business leaders, and how to reduce risk
5 min readRead →
AI Security
Keeping private documents private in RAG and AI search tools
5 min readRead →
AI Security
A practical AI security checklist before you launch an AI feature
5 min readRead →

Want this fixed in your business?

Send the workflow. We reply with a scope and a fixed price in two working days.
Send a brief →