BLOG • AI SECURITY • LEAST PRIVILEGE

How Much Trust Should an AI Coding Agent Get?

AI coding agents request access to code, files, and environments. A recent production database deletion shows why that access warrants least privilege, segmentation, and human oversight.

By Terrell Grenyion • 2026 • ~3 min read
← Back to Blog

A close friend recently asked about the AI tools I have been exploring and suggested I try Claude Code, which has grown rapidly in popularity. He was considering installing it on his primary computer and asked whether I would do the same. My answer was immediate: absolutely not.

The problem is trust

When he asked why, my explanation was direct. These tools ask for a great deal of trust. They are powerful, but they also require extensive permissions. They often need visibility into your code, files, working environment, and sometimes production processes. At that point, it is no longer just a tool; you are allowing it to take action and make changes on your behalf.

With that level of access, a great deal can go wrong:

  • Unintended code execution.
  • Data exposure or leakage.
  • Breaches of privacy.
  • Over-permissioned access to sensitive systems.
  • Silent failures or incorrect assumptions.
  • In the worst cases, direct impact to production environments.

That is before accounting for supply chain risk, prompt injection, or compromised dependencies.

A timely example

A couple of hours after that conversation, I began seeing the same story everywhere: an AI coding agent, Cursor running Anthropic's Claude Opus 4.6, had deleted a company's entire production database, along with its backups, in seconds. I sent it to my friend with a short message: "See what I'm saying?"

Recommendations

I understand and see the value in AI, but I am cautious about how much authority I give these systems. Anyone using AI agents, particularly with administrative permissions, should treat security as a requirement:

  • Apply least privilege. Grant no more permission than the agent absolutely needs.
  • Practice segmentation. Keep agents away from production and other sensitive environments.
  • Protect backups. Maintain off-site backups that the agent cannot reach.
  • Keep a human in the loop. Review prompts and code before execution.
  • Monitor and log. Know what the agent is doing and when.

Conclusion

These are still machines. With technology, the question is not whether something will break, but when.

Originally posted on LinkedIn.

← Back to Blog Home