Guide2 min read

AI Agent Security Checklist: 15 Controls

An AI agent is a new kind of user in your systems — one that can be talked into things. These are the fifteen controls we apply before any agent touches production data.

TrueCodeAI Engineering
Agents, Voice & ML practice
Published
SecurityAI agentsChecklist
Dual monitors and a laptop showing code

Access

  1. Least privilege: each tool gets only the permissions its job needs.
  2. Act as the user: agent actions use the requesting user’s rights, not a super-user.
  3. Scoped, short-lived credentials — never long-lived keys in prompts.
  4. Separate read and write tools; start read-only.
  5. Human approval for irreversible or high-value actions.

Inputs and outputs

  1. Treat all retrieved content, emails and web pages as untrusted — they can carry injected instructions.
  2. Validate tool arguments against schemas and business rules in code.
  3. Redact secrets and personal data from outputs and logs.
  4. Block the agent from sending data to arbitrary external destinations.
  5. Limit output channels: the agent should not email or post outside approved flows.

Operations

  1. Full trace logging of prompts, tool calls and results, access-controlled.
  2. Rate limits and step limits per task and per user.
  3. Spend caps and alerts.
  4. Anomaly alerts on unusual actions or volumes.
  5. Regular red-team tests, with findings added to the eval suite.

Frequently asked questions

Is prompt injection solvable?

Not fully at the model level. Least privilege and approvals make successful injections low-impact.

Should agents have database access?

Through narrow, purpose-built tools — not raw SQL on production data.

Do you run security reviews?

Yes, our cybersecurity division reviews every agent before production launch.

Tell us what you want to exist.

We reply within 24 hours at hello@truecodeai.com with how we would build it.

Get a fixed price WhatsApp