By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: CycodePublished August 26, 2025

TL;DR: AI applications introduce prompt injection, data poisoning, adversarial inputs, and supply-chain risk across models, data pipelines, and runtime behaviour, according to Cycode’s guide. Traditional AppSec controls still matter, but they are no longer sufficient on their own because AI systems are probabilistic, adaptive, and harder to validate consistently.


At a glance

What this is: This guide argues that AI application security must extend AppSec into model, data, pipeline, and runtime controls because AI systems fail differently from traditional software.

Why it matters: It matters to IAM practitioners because AI workflows, service accounts, and delegated access patterns create new governance pressure points across identity, privilege, and lifecycle control.

By the numbers:

👉 Read Cycode's guide on AI application security testing and best practices


Context

AI application security is now a governance problem as much as a technical one. AI systems are probabilistic, depend on external data and model supply chains, and can be manipulated through prompts, poisoned inputs, or runtime abuse. For identity teams, the important shift is that access, secrets, and delegated permissions now influence model behaviour, not just system entry.

Traditional AppSec assumes stable code paths and deterministic outcomes. That assumption breaks when an AI application can change its response based on prompt content, retrieved context, or model updates. The article’s baseline position is typical of organisations moving into AI quickly: the security model lags the deployment model.

Where AI apps connect to enterprise data, APIs, and automation, NHI governance becomes part of the control plane. Service accounts, tokens, model-scoped credentials, and pipeline permissions can all widen the blast radius if lifecycle controls are weak.


Key questions

Q: How should security teams govern AI models that can call tools and access data?

A: Security teams should govern AI models as non-human identities with named owners, limited scope, short-lived credentials, and continuous authorization. The critical shift is to treat every tool call, data read, and update path as a privileged action that can be logged, revalidated, and revoked. Without that discipline, model risk becomes identity risk.

Q: When does AI create more governance risk than traditional data systems?

A: AI creates more governance risk when systems can consume sensitive data, generate outputs, and trigger actions without strong identity controls. The risk rises further when access is broad, permissions are inherited, or logs do not show which identity touched which data. In those cases, the blast radius is larger than in static data workflows.

Q: How can organisations tell whether their AI security model is actually working?

A: They should test whether the control stack can explain who acted, what data was touched, and what purpose the action served. If those three signals cannot be correlated in one incident view, the model is likely monitoring access without governing behaviour. That is a visibility gap, not a complete AI security posture.

Q: What should teams do first when AI connectors access sensitive business data?

A: They should scope the connector layer before they try to enforce policy. That means identifying which connectors can read, write, or execute against business systems, then mapping those permissions to the devices and users operating them. Without that step, incident scoping and blast-radius analysis will be unreliable.


Technical breakdown

Why AI application security differs from traditional AppSec

Traditional AppSec focuses on code flaws that behave predictably under repeatable inputs. AI applications are different because the same prompt, dataset, or API call can produce different outputs as models, context windows, or retrieval sources change. That means prompt injection, adversarial inputs, and model drift are not edge cases, but core security conditions. Security teams must treat the model and its surrounding data flows as part of the attack surface, not just the application code.

Practical implication: move testing and governance from code-only reviews to model, data, and runtime controls.

How AI supply chains create new trust dependencies

AI systems often rely on pre-trained models, datasets, vector stores, and third-party APIs. Each dependency can introduce poisoned data, hidden backdoors, malicious retrieval content, or exfiltration paths. This is similar to software supply chain risk, but the downstream effect is broader because compromised inputs can influence decisions without leaving obvious code artifacts. Identity and access control matter here because the permissions around dataset ingestion, model deployment, and API consumption determine how far the compromise can travel.

Practical implication: govern model, dataset, and API access with the same scrutiny applied to production secrets and privileged infrastructure.

Why runtime monitoring matters for AI apps

AI security cannot stop at deployment. Runtime is where prompt injection, unsafe outputs, drift, and manipulation attempts surface, especially in systems connected to business workflows or customer data. Continuous monitoring gives teams visibility into abnormal behaviour, but only if they know what to look for across input patterns, response quality, and access paths. For organisations using AI agents or tool-using workflows, runtime controls also need to track which credentials and permissions were exercised during each execution.

Practical implication: monitor both model behaviour and the credentials used by connected workflows, agents, and service accounts.


Threat narrative

Attacker objective: The attacker aims to manipulate AI behaviour, extract sensitive data, or cause unsafe business decisions at scale.

  1. Entry occurs when attackers exploit prompt injection, poisoned training data, or a compromised third-party dependency to influence the AI application.
  2. Escalation follows when the manipulated model or workflow accesses sensitive context, approves unsafe actions, or exposes secrets through connected tools and APIs.
  3. Impact is achieved through data leakage, corrupted decisions, regulatory exposure, or unsafe automated actions that degrade trust in the AI system.

NHI Mgmt Group analysis

AI application security is becoming an identity problem as much as an application problem. AI systems do not only consume data, they also consume credentials, tokens, and delegated access to APIs, storage, and workflows. That means the governance boundary now includes the identities that feed, deploy, and operate models. Teams that treat AI security as a model-only issue will miss the control point that actually determines blast radius.

Lifecycle-wide control is the right response to probabilistic systems. Traditional AppSec assumes repeatable behaviour, but AI systems can change with context, retrieval, and updates. That makes point-in-time testing insufficient on its own. A stronger governance model is continuous: validate training inputs, control deployment access, observe runtime behaviour, and review how permissions are exercised across the AI lifecycle. Practitioners should align AI governance with lifecycle assurance rather than one-off assurance.

Supply chain trust now extends into model inputs and retrieval layers. Pre-trained models, datasets, and third-party APIs can all inject risk without a conventional code exploit. The important shift is that compromise can arrive through trusted content, not just hostile traffic. This creates a named failure mode we can call AI trust-path exposure: security fails when organisations trust upstream model and data dependencies without validating integrity at each handoff. Practitioners should treat provenance as a control, not a documentation exercise.

Runtime observability is the missing control in many AI deployments. Organisations often invest in pre-deployment testing but leave production behaviour under-monitored. That gap matters because AI misuse frequently appears only after real prompts, real data, and real integrations are in play. For identity leaders, the lesson is clear: if a model, agent, or pipeline can act through a credential, then runtime telemetry and access review must cover that credential’s use, not just its existence.

What this signals

AI trust-path exposure: the real control question is no longer whether the model is accurate, but whether every upstream dependency, credential, and retrieval source is trustworthy. That requires a governance model that joins application security, identity, and data control into one review cycle, with provenance and runtime telemetry treated as first-class signals.

AI security programmes should expect the same fragmentation that secrets management already shows across enterprises. Once models, datasets, APIs, and pipeline credentials are owned by different teams, visibility weakens quickly, and the organisation loses the ability to explain who can change model behaviour or access sensitive context.

For identity teams, the next step is to extend lifecycle controls into AI operations without treating every AI tool as autonomous. Service accounts, tokens, and delegated access still need ownership, rotation, and revocation. Where those controls are absent, the AI layer simply becomes a faster route to the same old privilege problem.


For practitioners

  • Classify AI workflows by trust zone Map training, retrieval, inference, and orchestration components to separate trust zones, then assign owners for each zone. This helps expose where secrets, service accounts, and third-party APIs create hidden privilege paths.
  • Control access to models and datasets as production assets Apply least privilege to model registries, training data stores, vector databases, and CI/CD systems that move AI artefacts into production. Review who can upload, retrain, promote, or connect data sources.
  • Test for prompt injection and data leakage together Extend security testing to include prompt injection, unsafe output handling, retrieval abuse, and secret leakage through generated responses. AI systems often fail at the boundary between user input and trusted context.
  • Monitor runtime credential use in AI integrations Track which service accounts, API keys, and tokens each AI workflow uses at runtime, then alert on unusual access patterns or privilege escalation. This is essential where AI agents or automated workflows can call tools on demand.

Key takeaways

  • AI application security must cover models, data pipelines, third-party dependencies, and runtime behaviour, not just code flaws.
  • Identity and secrets governance are now part of AI risk management because credentials determine what models can reach and change.
  • Continuous monitoring and lifecycle controls are more effective than one-off testing when AI systems behave probabilistically.

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 and MITRE ATT&CK address 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.

FrameworkControl / ReferenceRelevance
NIST AI RMFGOVERNThe article centres on governance for AI lifecycle risk and accountability.
OWASP Agentic AI Top 10The article covers prompt injection and agentic-style AI workflow abuse.
NIST SP 800-53 Rev 5IA-5Secrets, tokens, and API keys are central to AI application access and runtime control.
NIST CSF 2.0PR.AC-4Least-privilege access to AI assets is a core control theme in the guide.
MITRE ATT&CKTA0006 , Credential Access; TA0010 , ExfiltrationThe threat pattern includes secret theft and data leakage through AI workflows.

Map AI application testing to OWASP agentic risks and validate tool-use boundaries before release.


Key terms

  • AI Application Security: AI application security is the discipline of protecting software that uses AI to make decisions, generate code, or interact with data and services. It goes beyond model safety to cover prompts, APIs, generated logic, runtime behaviour, and the permissions those components use in production.
  • 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.
  • Model Supply Chain: The model supply chain is the set of external and internal components that shape an LLM application, including data sources, plugins, embeddings, APIs, and third-party services. Security teams must govern it as a trust surface because compromise can alter behaviour without changing the core model.
  • Runtime Monitoring: The practice of observing identity activity while it is happening, not after the fact. For agents and NHIs, it means tracking tool calls, credential use, and resource access in real time so deviations from approved scope can be detected before damage compounds.

What's in the full article

Cycode's full guide covers the operational detail this post intentionally leaves for the source:

  • Step-by-step testing guidance for prompt injection, data poisoning, and adversarial input scenarios across AI applications.
  • Practical deployment considerations for scanning, runtime monitoring, and CI/CD integration in AI-native environments.
  • Framework-by-framework compliance detail for NIST AI RMF, ISO/IEC 42001, OWASP Top 10 for LLM/GenAI, and EU AI Act alignment.
  • Examples of how to evaluate AI security tools for model, data, and pipeline coverage in real deployments.

👉 Cycode's full guide covers testing patterns, deployment controls, and AI security practices in more operational detail.

Deepen your knowledge

Our NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners connect identity controls to the broader security programmes that now include AI workflows and automation.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 21, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org