EdgeNext
2026-09-29 • by EdgeNext

Agentic AI Security: How to Control Autonomous Agents, Tool Calls, and Non-Human Identities

CDN14 min read

Direct Answer

Agentic AI security is the practice of controlling what autonomous or semi-autonomous AI agents can access, decide, and execute. Production controls should treat each agent as a distinct software actor with its own identity, permissions, tools, data scope, rate limits, audit trail, and failure boundaries. NIST's 2026 work on software and AI agent identity and authorization reflects the same shift: once agents can operate across enterprise systems, identity and authorization become first-class security concerns, not optional application features.

Table of Contents

  1. Why Agentic AI Changes the Security Model
  2. From Model Risk to Action Risk
  3. Give Every Agent a Verifiable Non-Human Identity
  4. Authorization Must Be Scoped to the Task
  5. Secure Tool Calls Like Production API Transactions
  6. Prompt Injection Becomes an Execution Risk
  7. Protect Secrets, Tokens, and Delegated Credentials
  8. Treat APIs as the Agent Execution Surface
  9. Control Autonomy with Approval and Policy Gates
  10. Multi-Agent Systems Expand the Trust Graph
  11. Logging, Traceability, and Non-Repudiation
  12. Runtime Containment, Egress, and Kill Switches
  13. Build a Security Test Plan for Agentic Workflows
  14. A Practical Agentic AI Security Checklist
  15. Where EdgeNext Fits
  16. Conclusion
  17. Frequently Asked Questions

1. Why Agentic AI Changes the Security Model

Traditional generative AI security often focuses on the model output: whether a response is inaccurate, unsafe, sensitive, or manipulated. Agentic systems add a second layer of risk because the output may become an instruction that triggers an external action.

An enterprise agent may search internal knowledge, call APIs, query databases, create tickets, update a CRM record, send a message, execute code, or coordinate another agent. The security question is therefore no longer only “Can the model produce a bad answer?” It is also “What can the system do after the model produces that answer?”

NIST describes AI agent systems as software systems that can plan and take autonomous actions that affect real-world systems or environments. Its 2026 security work emphasizes the new risks created when model outputs are connected to software functionality. See NIST's AI agent security RFI for the current federal framing of this problem.

This makes agentic AI security a layered problem involving model behavior, identity, API security, authorization, secrets, tool execution, data access, network controls, runtime observability, and human governance.

2. From Model Risk to Action Risk

A chatbot can be wrong. An agent can be wrong and act on it. That distinction changes the threat model.

A Model Output Is Not a Trusted Command

Model-generated instructions should be treated as untrusted input until they pass deterministic controls. The model may misunderstand the user, follow injected content, use stale context, select the wrong tool, or construct parameters that are syntactically valid but operationally dangerous.

Actions Have Different Risk Levels

  • Read-only actions: search documentation, retrieve records, inspect status.
  • Low-impact writes: create a draft, add a note, prepare a report for review.
  • Business-changing actions: update a customer record, submit a request, modify workflow state.
  • High-impact actions: move funds, delete data, change permissions, publish externally, rotate credentials, or execute privileged administrative operations.

Security policy should become stricter as the consequence of an action increases. A workflow that is safe for information retrieval may be unacceptable for irreversible write operations.

3. Give Every Agent a Verifiable Non-Human Identity

One of the most important design changes for agentic AI is to stop treating “the AI” as an anonymous layer behind a shared service account. If multiple agents perform different jobs, they should be distinguishable in the identity system and in audit logs.

The NIST concept paper on software and AI agent identity and authorization explicitly highlights identification, authorization, auditing, non-repudiation, and controls for prompt-injection-related risks. That framing is useful for enterprise architecture because an agent is effectively a non-human actor that can request access to resources.

An Agent Identity Should Answer Four Questions

  1. Which agent is making the request?
  2. Which user, workflow, or service is it acting for?
  3. What permissions have been delegated to it?
  4. How long is that authority valid?

A shared credential that makes every agent look identical weakens accountability and makes revocation harder. Short-lived, workload-specific identities are generally easier to constrain and investigate than long-lived shared secrets.

4. Authorization Must Be Scoped to the Task

Authentication establishes who the software actor is. Authorization decides what that actor can do. In agentic systems, the second question is often more important.

NIST Zero Trust guidance emphasizes removing implicit trust and enforcing access based on identities, resources, and policy. NIST SP 800-207A extends that principle to application and service identities, which maps naturally to agentic workflows.

Use Least Privilege at Several Layers

  • Data scope: restrict which records, tenants, folders, databases, or knowledge bases the agent can access.
  • Tool scope: expose only the tools required for the agent's purpose.
  • Operation scope: separate read, create, update, delete, approve, and administrative operations.
  • Parameter scope: constrain values such as amount, destination, file type, record range, or geographic region.
  • Time scope: use temporary authorization for sensitive or delegated actions.
  • User scope: prevent an agent from acquiring more authority than the user or service it represents.

The goal is not to give the agent enough access to handle every future scenario. The goal is to give it the minimum authority required for the current workflow, with a controlled path for escalation.

5. Secure Tool Calls Like Production API Transactions

Tool calling is the point where language-model reasoning becomes software execution. Every tool call should therefore cross a deterministic security boundary.

Validate Tool Selection

The orchestrator should maintain an explicit allowlist of tools for each agent and task. A model should not gain access to a newly discovered tool merely because its description appears in context.

Validate Parameters

Schemas should define types, required fields, ranges, formats, and allowable values. The system should reject malformed or unexpected parameters before they reach the downstream API.

Separate Planning from Execution

For higher-risk workflows, the model can generate a proposed action while a separate policy engine decides whether execution is allowed. This reduces reliance on the model to enforce its own boundaries.

Make Retries Safe

Agent workflows frequently retry after timeouts. Write operations should use idempotency, transaction identifiers, or deduplication controls so a retry does not create duplicate payments, tickets, messages, or updates.

6. Prompt Injection Becomes an Execution Risk

Prompt injection becomes more serious when the model has tools. A malicious instruction hidden in a webpage, document, email, or retrieved record can attempt to influence the agent into taking an action the user never requested.

The NIST Generative AI Profile recommends adversarial testing and risk-management practices for generative AI systems. Agentic systems should extend that mindset from output testing to action testing.

Treat Retrieved Content as Data, Not Authority

Instructions embedded inside external content should not automatically override system policy. Tool permissions and execution constraints should live outside the prompt so an attacker cannot rewrite them simply by controlling text the model reads.

Protect High-Risk Functions with Independent Checks

  • Require explicit policy approval before privileged tools are invoked.
  • Use human approval for irreversible or unusually high-impact actions.
  • Block tool requests that conflict with the authenticated user's permissions.
  • Validate destinations, recipients, domains, resource IDs, and transaction values independently of the model.
  • Log the evidence and policy decision that allowed an action to proceed.

7. Protect Secrets, Tokens, and Delegated Credentials

Agents often need credentials to access APIs and enterprise systems. Placing reusable secrets directly in prompts, memory, or model-visible context creates unnecessary exposure.

  • Keep secrets in a dedicated secrets-management layer rather than prompt text.
  • Use short-lived tokens when supported.
  • Limit scopes to specific APIs and operations.
  • Do not return credentials to the model unless absolutely necessary.
  • Rotate and revoke credentials independently from the agent definition.
  • Record which identity and delegated user context were used for each sensitive action.

A useful design principle is that the model can request an operation, but it should not automatically receive the raw credential used to perform it.

8. Treat APIs as the Agent Execution Surface

For many enterprises, APIs are where agents become operational. API security therefore becomes a core part of AI agent security rather than a separate infrastructure topic.

EdgeNext discusses this transition in How AI Agents Are Changing API and Application Security, including the need to combine authentication, authorization, WAF, API protection, bot management, rate limiting, DDoS mitigation, and behavioral controls.

Control Volume as Well as Permission

An authorized agent can still create operational problems if it sends requests too quickly, enters a loop, or repeatedly retries a failing dependency. Rate limits, quotas, concurrency controls, and circuit breakers should therefore apply to machine actors as well as human users.

Distinguish Legitimate Automation from Abuse

At the application-delivery layer, EdgeNext Security CDN provides capabilities such as WAF, DDoS mitigation, bot defense, rate limiting, and access controls. These controls can protect the API and web surface around agentic applications, but they complement rather than replace identity and authorization controls inside the agent platform.

9. Control Autonomy with Approval and Policy Gates

The safest level of autonomy depends on the action. Full manual approval for every read-only lookup defeats much of the value of agents; full autonomy for every privileged action creates unnecessary risk.

A Practical Autonomy Ladder

  1. Observe: the agent can analyze information but cannot execute actions.
  2. Recommend: the agent proposes an action for a human to approve.
  3. Execute within limits: the agent can perform bounded actions that meet policy.
  4. Execute with exception approval: routine actions are automatic; unusual cases require review.
  5. High autonomy: the agent can complete complex workflows independently, with monitoring, rollback, and emergency shutdown controls.

Organizations should choose the level by business impact, reversibility, regulatory requirements, and the quality of available monitoring and recovery controls.

10. Multi-Agent Systems Expand the Trust Graph

Multi-agent workflows introduce delegation. Agent A may call Agent B, which uses Tool C and Data Source D. If permissions are inherited casually, a low-privilege entry point can become a path to a higher-privilege capability.

EdgeNext's AI Solutions include AI application and agent development, multi-agent and workflow orchestration, enterprise knowledge components, model routing, tenant isolation, and security auditing. For security design, the important principle is to preserve identity and policy context across each handoff rather than flattening the workflow into one shared permission set.

  • Track the initiating user or service throughout the workflow.
  • Record which agent delegated to which downstream agent.
  • Do not allow delegation to increase privilege unless a separate policy explicitly grants it.
  • Validate the output of one agent before using it as privileged input to another.
  • Keep tenant boundaries intact during cross-agent retrieval and tool execution.

11. Logging, Traceability, and Non-Repudiation

When an agent changes a business system, teams should be able to reconstruct how the action happened.

Useful Audit Fields Include

  • User or service that initiated the workflow.
  • Agent identity and version.
  • Model and route used for each reasoning step.
  • Tools requested and tools actually executed.
  • Authorization decision and policy version.
  • Resource IDs and operation type.
  • Human approvals or overrides.
  • Errors, retries, fallbacks, and final outcome.
  • Timestamp and correlation ID across the entire workflow.

Auditability should not mean storing every sensitive prompt forever. Logs should capture enough evidence for security and operations while following privacy, retention, and data-minimization requirements.

12. Runtime Containment, Egress, and Kill Switches

Security should assume that an agent can eventually behave unexpectedly. Runtime containment limits the blast radius when it does.

  • Restrict outbound network destinations for agents that do not need unrestricted internet access.
  • Sandbox code execution and separate it from production credentials.
  • Set tool-specific quotas and transaction limits.
  • Use circuit breakers when error or retry rates spike.
  • Provide a fast way to disable an agent, tool, credential, or workflow without taking down the entire application.
  • Design compensating or rollback actions for reversible business operations.

For externally exposed applications, EdgeNext Granular Access Control can apply policies using dimensions such as IP address, geography, request path, user agent, and request rate. These controls are useful at the delivery layer, while agent-specific authorization still needs to be enforced closer to the application and tool.

13. Build a Security Test Plan for Agentic Workflows

Agent security cannot be validated with normal happy-path functional testing alone. The test plan should deliberately challenge boundaries.

  • Attempt direct and indirect prompt injection through documents, websites, tickets, and retrieved content.
  • Ask the agent to call tools outside its permitted set.
  • Try to access another user or tenant's data.
  • Send malformed and extreme tool parameters.
  • Trigger duplicate requests and timeout retries.
  • Test whether one agent can escalate privilege through another agent.
  • Revoke a credential during a running workflow.
  • Simulate downstream API failure and partial completion.
  • Test high request rates and runaway loops.
  • Verify kill switches, human escalation, and audit reconstruction.

14. A Practical Agentic AI Security Checklist

AreaQuestionMinimum control
IdentityCan every production agent be uniquely identified?Distinct workload identity and owner.
DelegationCan the system show who the agent is acting for?Preserve user/service context.
AuthorizationCan an agent use only the resources required for the task?Least privilege and scoped permissions.
ToolsCan the model invoke arbitrary functions?Allowlisted tools and schema validation.
SecretsAre reusable credentials visible to the model?External secret storage and short-lived tokens.
ActionsAre high-impact actions automatically executed?Policy gates and human approval where needed.
APIsCan automation overload or abuse downstream services?Rate limits, quotas, circuit breakers.
AuditCan a sensitive action be reconstructed later?Correlated identity, policy, tool, and outcome logs.
ContainmentCan one failure spread across systems?Sandboxing, egress controls, kill switches.
TestingAre adversarial workflows tested before production?Prompt-injection, privilege, retry, and failure tests.

15. Where EdgeNext Fits

Agentic AI security spans several layers, and no CDN, WAF, or AI platform control should be treated as a complete identity-security solution by itself.

EdgeNext can support parts of the architecture at two different layers:

  • AI application and agent infrastructure: agent development, multi-agent orchestration, enterprise knowledge integration, tenant isolation, and security auditing through EdgeNext AI Solutions.
  • Application-facing security: WAF, DDoS protection, bot defense, rate limiting, access control, and HTTPS protection through EdgeNext Security CDN.
  • API and traffic security guidance: architecture considerations for autonomous software actors in How AI Agents Are Changing API and Application Security.

Identity issuance, delegated authorization, enterprise IAM policy, secrets management, and transaction approval still need to be designed as explicit components of the application architecture. The strongest design combines those identity controls with application and edge-layer protections rather than relying on either layer alone.

16. Conclusion

Agentic AI changes security because software can now interpret a goal, choose a tool, and initiate an action. That creates a chain of trust extending from the user to the agent, model, orchestrator, tool, API, data source, and downstream system.

The practical response is not to eliminate autonomy. It is to make autonomy bounded and observable. Give agents distinct identities. Limit permissions. Validate tool calls. Keep secrets outside prompts. Protect APIs from abuse. Require approval for high-impact actions. Preserve audit context across multi-agent handoffs. Build containment and emergency shutdown into the runtime.

An agent should never receive authority simply because the model asked for it. Authority should come from an explicit, testable, revocable policy.

17. Frequently Asked Questions

What is agentic AI security?

Agentic AI security focuses on protecting AI systems that can use tools, access data, call APIs, coordinate workflows, and perform actions. It combines AI risk management with identity, authorization, API security, secrets management, runtime controls, observability, and governance.

What is a non-human identity for an AI agent?

A non-human identity is a machine or workload identity assigned to software rather than a person. For an AI agent, it allows systems to authenticate the agent, define its permissions, revoke access, and attribute actions to a specific software actor.

Should an AI agent use the same permissions as the user?

Not automatically. The agent should generally be limited to the intersection of the user's delegated authority and the permissions required for the specific workflow. High-risk operations may require additional approval.

How do you secure AI tool calls?

Use tool allowlists, strict schemas, deterministic parameter validation, scoped authorization, rate limits, idempotency for write actions, and policy or human approval for high-impact operations.

Can WAF and bot management secure AI agents?

They can protect the application and API surface from malicious or abusive traffic, but they do not replace agent identity, delegated authorization, secrets management, or workflow policy.

Why is prompt injection more dangerous for agents?

Because injected instructions may influence not only the text an agent generates but also the tools it selects and actions it attempts. Tool permissions and security policy should therefore be enforced outside the model prompt.

What should be logged for an AI agent?

Log the initiating identity, agent identity and version, model route, tool requests, authorization decisions, resource and operation details, approvals, retries, errors, and final outcome using a shared correlation identifier.

References

Need protection against DDoS attacks?

Explore EdgeNext's security solutions and protect your business from cyber threats.

Contact Us