Join our Newsletter — 33% off our NHI Course

Agentic AI code execution risk: are runtime controls keeping up?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16521
Topic starter  

TL;DR: Agentic AI is shifting code execution from reviewed pipelines into runtime workflows, where agents generate logic, select tools, and act with broad permissions, according to Apiiro. That makes execution risk less about developer-written code alone and more about autonomy, context, and control of live execution paths.

Editorial analysis by NHI Mgmt Group, based on content published by Apiiro: “The Top Code Execution Risks in Agentic AI Systems in 2026”.

By the numbers:

  • 33% of enterprise software applications will use agentic AI by 2028, according to Gartner cited by Apiiro.
  • roughly 15% of day-to-day work decisions made autonomously, according to Gartner cited by Apiiro.

Key questions

Q: What breaks when agentic AI can generate and run code at runtime?

A: The main failure is the loss of a clean separation between development review and execution.

Q: Why do broad agent permissions increase security risk?

A: Broad permissions increase risk because one compromise or misconfiguration can expose many systems at once.

Q: What do security teams get wrong about agentic code scanning?

A: The common mistake is treating the model as the control, when the harness is what actually drives precision, scope and budget.

Practitioner guidance

  • Define execution boundaries for every agent Separate agents that can only recommend actions from those that can invoke interpreters, shells, or cloud APIs.
  • Restrict context sources before execution Block untrusted documents, logs, and retrieved memory from reaching code-generation or tool-invocation steps unless they are explicitly validated.
  • Review service-level permissions for agent workflows Inventory every agent that runs with service-level credentials and map the exact systems it can touch during a task.

Bottom line: Agentic AI shifts code execution from reviewed pipelines into live workflows, where context and tool choice become security controls.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17012
 

Runtime execution is now an identity problem as much as an application problem: once agents can generate and run code inside production workflows, the decisive control becomes who or what is allowed to execute at that moment. Static review still matters, but it no longer defines the full attack surface. Practitioners need to govern execution authority, not just code provenance.

A few things that frame the scale:

A question worth separating out:

Q: How should organisations govern agentic AI when it makes judgment calls, not just automated actions?

A: Organisations should govern the decisions agentic AI is permitted to make, not only the data it can access. That means defining escalation thresholds, preserving human decision rights for ambiguous cases, and logging the signals that explain why the agent chose a path. If the decision itself is unreviewable, policy drift can occur without a visible breach.

👉 Read our full editorial: Agentic AI code execution risk is moving into runtime workflows



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.