AI Agents & Orchestration

AI Agent Security

Last updated 2026-07-28

What's new

2026-07-28
  • Google launched Gemini 3.6 Flash, a cheaper AI model (a computer program that mimics human intelligence) for routine tasks, reducing costs by 17% for repeated work.
  • This new model is part of a portfolio, including Gemini 3.5 Flash Light for high-volume, low-cost tasks, and Gemini 3.5 Flash Cyber, a restricted model for government and trusted partners.
  • The models are designed for specific jobs, like processing documents or running familiar tasks, with the more expensive models reserved for complex, open-ended work.
  • Despite the cost savings and efficiency improvements, some users were disappointed as they were expecting the release of Gemini 3.5 Pro, a more advanced model.
2026-07-25
  • "Loop engineering" (using AI to automate repetitive tasks) is a hot new trend, with people creating "loops" (automated processes) to handle most of their work.
  • A new tool called the "fin loop" (a specific type of automated process) can automate 95% of coding tasks, freeing up your time and letting the AI work even when you're not around.
  • The fin loop uses three main skills: "spec" (planning), "build" (creating), and "review" (testing) to continuously improve and test code without constant human input.
  • Additional free tools and the Claude Code Playbook (a guide to making AI more reliable) can help you set up and manage these loops, making your AI assistant even more effective.

Key points

What it is

  • AI Agent Security is about protecting AI agents (autonomous AI that acts on your behalf) from generating, using, or doing harmful things with little human oversight.
  • AI agents can break tasks into steps, call external services, and write scripts, which creates real risks that security teams may not detect or stop in time.
  • The best AI agent will be the one that can reason over the right information safely, reliably, and in a way a business can trust.
  • AI agents are unpredictable, but the infrastructure they run on must be deterministic (giving the same output from the same input every time).

How to use it

  • Start by recognizing that an agent is simply an LLM (large language model) that runs tools in a loop, taking in goals and context to produce actions.
  • Add security checks before the agent processes any input to guard against malicious instructions hidden in the input.
  • Use a tool like Snyk (a security scanning tool) to scan your agent’s code and dependencies for known vulnerabilities and ensure your agent’s tools and shared memory are not exploitable.
  • Follow a step-by-step approach: set clear instructions, give only specific tools, teach with safe examples, add regulatory checks, and use durable execution (a method to resume after failures).

Watch out for

  • Giving agents too much freedom without guardrails can lead to unintended actions and security risks.
  • Trusting agent output without verification can result in consistency failures, such as stale reads, conflicting updates, and context drifts.
  • Letting agents access real passwords or API keys directly is a common mistake; always scope permissions narrowly.
  • AI agents can be manipulated through prompt injection (a malicious instruction hidden in the input), so always validate inputs and restrict tool access.

Tools named

  • Snyk (a security scanning tool)

Lesson 1: What is AI Agent Security and why it matters

AI Agent Security is about protecting what AI agents generate, what they use, and what they do as they operate with less human oversight. As AI moves from simple chat boxes into tools, files, code execution, browsers, and APIs, an agent can break a task into steps, call external services, and write scripts on its own. That power creates real risk: automated AI agent activity can happen so fast that most security teams cannot detect or stop it before the agent acts. A Darktrace survey found 92% of security leaders are concerned about AI-driven threats, and most admit they lack the tools to respond in time.

This matters for AI development because the best AI agent won't just be the smartest model—it will be the one that can reason over the right information safely, reliably, and in a way a business can actually trust. Treating AI agents as distributed systems is key. Models are stochastic (unpredictable), but infrastructure must be deterministic (giving the same output from the same input every time). Observability (the ability to monitor what the system is doing) is mandatory, and control planes (the layer that manages permissions and access policies) are emerging as a foundation layer. The future of AI won't be won by better prompts; it will be won by better systems. Developers must secure agent outputs and actions from the start, not as an afterthought.

Sources

Lesson 2: How to use AI Agent Security: step-by-step

To secure an AI agent, start by recognizing that an agent is simply an LLM (large language model) that runs tools in a loop, taking in goals and context to produce actions. This loop creates security risks because agents can be unpredictable or manipulated. For example, without guardrails, a user input might cause a prompt injection (a malicious instruction hidden in the input) that makes your agent take unintended actions.

To guard against this, add security checks before the agent processes any input. Using a tool like Snyk, you can scan your agent’s code and dependencies for known vulnerabilities. Snyk helps you identify weak points in the agentic loop (the cycle of observation, decision, and action) and ensures your agent’s tools and shared memory are not exploitable. For instance, if your agent has access to a CLI (command-line interface) or a database, Snyk can check for unsafe configurations.

When building, follow a step-by-step approach: first, set clear instructions for your agent. Second, give it only the specific tools it needs, limiting access to reduce risk. Third, teach your agent by testing with safe examples. If your agent needs to handle sensitive data, add regulatory checks to your guardrails to comply with laws. For advanced scenarios, use durable execution (a method to resume after failures) so the agent can recover gracefully without exposing security gaps. By layering these steps — input validation, tool restrictions, and vulnerability scanning with Snyk — you create a secure agentic system that remains controllable even as it automates tasks.

Sources

Lesson 3: Best practices and pitfalls

AI agent security mistakes often come from giving agents too much freedom without guardrails. An agent (autonomous AI that acts on your behalf) can break tasks into steps, use software, call external services, and write scripts with less human oversight. This is powerful, but risky when the system does things you didn't intend.

The biggest pitfall is trusting agent output without verification. A Snyk expert explains that agentic development security rests on three pillars: trusted output, governing agent behavior, and secure tool permissions. Many failures are actually consistency failures—stale reads, conflicting updates, context drifts—masquerading as reasoning problems. You need defense in depth: prompt level controls, tool permissions, policy validations, human approvals, and audit systems. Each layer catches different failures.

Another common mistake is letting agents access real passwords or API keys directly. Most AI agents remain toys because they cannot safely use credentials without human supervision. Always scope permissions narrowly—only give an agent the minimum access needed for its task.

Best practices include having the agent review its own work before acting. Guide it toward outcomes rather than telling it how to do tasks—let it surprise you with faster methods. Use evaluation suits (test systems) to run agents against known failure modes and track accuracy over time. Finally, govern behavior with skills, commands, and hooks (scripts that run on events) that enforce security policies automatically.

Sources