TL;DR: Traditional AppSec still covers the code around AI applications, but it misses prompts, models, agents, and runtime tool use, according to AccuKnox. Once an LLM becomes a live system that can read data or trigger actions, AI-native inventory, guardrails, and least-privilege controls become operationally necessary.
At a glance
What this is: AccuKnox argues that traditional AppSec secures the code around AI systems but leaves the model, prompt, agent, and runtime layers largely uncovered.
Why it matters: This matters because teams treating AI features like ordinary web apps will miss the controls needed for AI inventory, tool governance, and runtime enforcement when models start reading data or taking actions.
Context
Application security and AI security are related but not interchangeable. Traditional AppSec is built to protect code, dependencies, and exposed interfaces, while AI systems introduce prompts, model behaviour, tool calls, and runtime decisions that are not visible in build-time scanning alone.
The governance gap appears when an LLM or agent stops behaving like a static endpoint and starts acting like a workload. That creates an identity and access problem as much as a code-security problem, because the AI system now needs inventory, permissions, and monitoring in the same way other non-human identities do.
Key questions
Q: What breaks when AI security is limited to AppSec scanning?
A: Static scanning misses emergent behaviour, so the organisation can approve code that later behaves outside policy in production. The failure is a mismatch between what was reviewed and what actually runs. Teams end up with technical assurance on the build, but no visibility into runtime drift, tool misuse, or overreach.
Q: Why do AI agents complicate least-privilege access?
A: AI agents can change their path to a goal, so a role that looks narrow at provisioning time may still be too broad at runtime. Least privilege for agents has to be action-aware, not just role-aware. That means teams need to control not only which systems an agent can reach, but also which actions it can chain together.
Q: What are the signs that AI security controls are lagging behind AI deployment?
A: Common warning signs include broad AI use with limited governance, unclear ownership for risk decisions, weak visibility into model usage, and inconsistent security testing before deployment. Another indicator is when organisations can describe AI innovation goals but cannot explain how they monitor data exposure, trust boundaries, or misuse in production. That gap usually means controls are trailing adoption, not shaping it.
Q: How should security teams govern agent actions when prompts can be manipulated?
A: Treat the prompt as untrusted input and govern the action, not the language. Put an independent policy layer in the request path, enforce least privilege on each tool call, and deny anything that cannot be clearly authorised in context. The goal is to make a successful injection produce a denied request, not a compromised workflow.
Technical breakdown
Why AppSec stops at the AI runtime boundary
AppSec tools such as SAST, DAST, SCA, IaC scanning, secrets scanning, and WAFs are designed to examine code, dependencies, and request traffic. They can confirm whether the surrounding application is built securely, but they do not understand prompt context, model selection, retrieval context, or tool invocation at inference time. That matters because AI behaviour is not fully determined at build time. Once the model is asked to reason over live data or call external tools, the security question shifts from code integrity to runtime governance.
Practical implication: Treat AppSec as the baseline, then add AI-specific controls wherever the system can act beyond a static request-response path.
Why prompts, models, and agents need separate controls
Prompts are an input surface, models are managed assets, and agents behave like workloads. Each one creates a different failure mode. Prompt injection and indirect instruction conflicts can steer outputs or actions. Model sprawl creates unknown dependencies and shadow AI. Agents introduce tool use, file access, ticket creation, and API actions that need permission boundaries. In identity terms, the agent is not just a user interface layer. It is a non-human identity that may need inventory, authentication, authorization, and auditability before it is allowed to interact with enterprise systems.
Practical implication: Inventory AI assets, assign owners, and apply least privilege to agents before allowing them to use tools or touch sensitive data.
Why runtime guardrails matter more than pre-deploy scans
A pre-deploy scan can only assess what exists in the repository or pipeline. It cannot see whether an agent will call the wrong API, expose data through a tool chain, or escalate from harmless chat to unsafe operational action. Runtime controls close that gap by monitoring prompts, responses, and tool calls, then enforcing policy when the model starts crossing approved boundaries. This is where AI security overlaps with identity governance: control has to move from code review to issuance, authorization, and observation of live non-human behaviour.
Practical implication: Monitor first to establish baseline behaviour, then enforce guardrails where the runtime proves the AI system can affect data or operations.
Threat narrative
Attacker objective: Use the AI runtime itself as the path to data exposure or unsafe actions by exploiting controls that stop at the application layer.
- Initial exposure begins when teams ship an AI feature and secure only the surrounding repository and API surface, leaving prompts, models, and tool use outside the control model.
- Credentialed runtime access follows when the AI system is allowed to read files, query knowledge bases, or call operational tools without non-human identity governance or scoped permissions.
- Impact occurs when a prompt injection, unsafe retrieval, or overly broad tool grant causes data exposure or an unintended action in production.
Breaches seen in the wild
- DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
- Langflow Flodrix botnet 2025: Attackers used Langflow's unauthenticated code endpoint to dump AI servers' environment variables and enlist them in the Flodrix botnet.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
AppSec-only thinking fails once an AI feature becomes an operational system. The control model changes as soon as prompts, model outputs, and tool calls can influence real data or real workflows. Traditional security teams often certify the repository and the endpoint, then assume the runtime will behave like any other web service. It will not, and that is why AI governance has to extend beyond build-time assurance.
AI agents should be treated as non-human identities, not just application components. Once an agent can call tools or access enterprise resources, it needs the same kind of inventory, authorisation, and audit trail expected for other machine identities. The governance mistake is assuming the agent is merely logic inside the app. In practice, it is a workload with agency, and that requires explicit ownership and permission scoping.
AI inventory is the new control plane for shadow AI. Teams cannot govern what they cannot name, and AI sprawl grows quickly when models, datasets, assistants, and agents are adopted by different functions without central oversight. This is not only a compliance issue. It is a boundary-setting problem for security architecture, because untracked AI assets cannot be risk-ranked, constrained, or monitored effectively.
Runtime guardrails are the decisive control layer for prompt injection and agent misuse. Build-time checks can reduce obvious defects, but they do not stop a model from being steered in production. That shifts the focus from code validation to execution control, policy enforcement, and observable evidence. Practitioners should view AI-SPM and runtime monitoring as the point where AI security becomes enforceable rather than theoretical.
From our research library:
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
- Only 23% of IT leaders were very confident in their organisation's ability to manage security and governance for GenAI deployments, according to a 2025 Gartner survey of 360 IT leaders.
- Read next: Agentic AI Security Guide
What this signals
AI runtime governance is becoming the real control boundary. Once a model can read enterprise data or act through tools, the question is no longer whether the application was scanned. The question is whether the non-human identity behind that system can be discovered, scoped, observed, and constrained before it reaches production.
Shadow AI will continue to outpace static AppSec programmes. The fastest-growing risk is not the code around the model, but the surrounding AI infrastructure that leaks credentials, over-privileges agents, and expands without ownership. According to the State of Secrets Sprawl 2026, AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers. Practitioners should expect inventory and runtime control to become the deciding factors in whether AI governance is enforceable.
Named concept: AI runtime boundary. This is the point where traditional AppSec stops being sufficient because the security problem shifts from protected code to governed execution. Teams that define this boundary clearly can decide where model inventory, guardrails, and least privilege must replace scan-only thinking.
For practitioners
- Map every AI asset to an owner and a purpose Create an inventory of models, agents, datasets, and AI-facing integrations, then assign explicit business and technical ownership for each one.
- Scope non-human identity permissions for AI agents Give agents only the tools, files, and APIs they need for a specific task, and separate those permissions from human user accounts.
- Turn on runtime logging before enforcement Capture prompts, responses, model usage, and tool calls long enough to establish normal behaviour before blocking policy violations.
- Add guardrails at the inference layer Use prompt injection detection, model access governance, and sandboxed agent execution where the AI system can touch sensitive data or trigger actions.
- Wire AI alerts into existing SOC workflows Send AI-SPM findings and runtime policy violations into established incident handling so AI misuse is triaged alongside other security events.
Key takeaways
- AppSec remains necessary for AI applications, but it does not govern prompts, models, agents, or the runtime behaviour that creates most AI-specific exposure.
- AI agents behave like non-human identities, so inventory, authorisation, and runtime monitoring are now part of AI security governance.
- The practical control shift is from scanning code before release to observing and constraining AI actions while the system is live.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 addresses the attack and risk surface, while NIST AI RMF, NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI02 — Tool Misuse | The article centres on agents calling tools and crossing runtime boundaries. |
| ASI03 — Identity & Privilege Abuse | It explicitly calls for least-privilege AI identities and scoped agent permissions. | |
| ASI10 — Rogue Agents | The article addresses shadow AI and unmanaged agents without central inventory. | |
| Recommendation — Apply ASI02 to constrain agent tool use to approved actions and monitor every tool call. Use ASI03 to scope agent privileges, separate them from human access, and log delegated actions. Map unmanaged AI systems to ASI10 and require discovery, ownership, and policy before production use. | ||
| NIST AI RMF | GOVERN — AI Governance and Accountability | Governance and accountability are central to extending control beyond AppSec. |
| MANAGE — AI Risk Management | The article recommends monitor, guardrail, and enforce as a risk-management progression. | |
| Recommendation — Use GOVERN to assign accountability for models, agents, and runtime controls across the AI programme. Apply MANAGE to move from observation to enforcement for AI systems that touch data or actions. | ||
| NIST SP 800-53 Rev 5 | IA-9 — Identification and Authentication (Service, System, and Application Accounts) | AI agents and models are treated as non-human workloads needing governed machine identity. |
| Recommendation — Apply IA-9 to authenticate AI workloads and separate them from human user accounts. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The piece focuses on rights management for AI tools, data, and runtime actions. |
| Recommendation — Use PR.AA-05 to limit AI runtime permissions to the minimum required for each task. | ||
Key terms
- AI Security Posture Management: A governance approach for discovering and tracking AI assets such as models, agents, datasets, vector stores, and related infrastructure. It becomes useful only when inventory is connected to runtime exposure and the identity that can actually reach the data.
- Agentic workflow: An agentic workflow is a sequence of tasks executed by an AI agent with some level of tool access and decision authority. In security terms, the workflow matters because it can span multiple systems, identities, and permissions, which makes attribution and revocation harder than with ordinary automation.
- Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
- AI-BOM: An AI bill of materials is a structured inventory of the components that define an AI agent, including the model, prompt, tools, retrieval sources, and dependencies. In practice, it is the evidence base for review, change control, and risk assessment when the agent evolves after deployment.
Deepen your knowledge
NHI Mgmt Group’s NHI Foundation Level course covers NHI governance, workload identity, and the access controls that make machine and agent behaviour auditable. It is designed for practitioners who need to connect identity governance to AI systems, service accounts, and operational risk.
Published by the NHIMG editorial team on August 21, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org