AI benefits/risks, AI/ML, Generative AI

Risk advisory: AI security programs fail when they do not control the system

AI security programs often fail because they govern the wrong components. Programs that focus on model alignment, output filtering, and API access controls miss the system behaviors that create security consequences. The gap emerges when programs assume model safety equals system security, leaving prompt injection, data exfiltration through retrieval, and unscoped tool access outside governance.

The model vs system gap

AI systems operate through four components that security programs must control: prompts that direct behavior, context that shapes responses, retrieval paths that access data, and tool integrations that take actions. Programs that govern only the model itself — through safety training, output moderation, or API access — leave the system components that determine actual behavior uncontrolled.

The operational consequence is security programs that report compliance while AI systems execute unauthorized instructions, access restricted data, and invoke tools beyond intended scope. What changes the outcome: extending governance to cover system components, not just model endpoints.

The tradeoff is program complexity versus control completeness. Programs can maintain simpler governance by focusing on model controls, but they cannot prevent system-level security failures without governing the components that direct system behavior.

Failure pattern 1: prompt and context as uncontrolled input

Prompt injection attacks manipulate AI system behavior by embedding adversarial instructions in user input or document context. Security programs that treat prompts as application data rather than system instructions create an uncontrolled input path that bypasses model safety controls.

The attack pattern involves injecting instructions that redirect AI behavior — extracting training data, impersonating system roles, or generating prohibited content. These instructions arrive through document uploads, web content retrieval, or multi-turn conversations that gradually shift system behavior outside safety boundaries.

Programs fail when they assume model safety training prevents instruction manipulation. Because safety filters typically operate on final outputs, an injected prompt can force the system to silently execute a backend tool, manipulate internal state, or exfiltrate data before the final text output is generated and the filter engages.

What changes the outcome: input validation at the prompt and context layer, treating user-controlled text as potentially adversarial instruction rather than benign data.

Implementation guidance:
- Enforce strict API message boundaries to ensure the architecture prioritizes developer instructions over untrusted user input, as recommended by OWASP LLM01 mitigations
- Implement robust data-instruction separation using strict structural delimiters around document inputs, rather than relying on fragile keyword sanitization that attackers can easily bypass using semantic variations or encoded text
- Monitor for prompt patterns that attempt system role elevation or safety boundary testing
- Log prompt modifications and context injections for behavioral analysis

The verification step: can your program demonstrate that user-provided text undergoes instruction filtering before reaching the AI system?

Failure pattern 2: retrieval paths outside data governance

Retrieval-augmented generation allows AI systems to access documents and databases to enhance responses. Programs that apply existing data access controls to human users but not AI retrieval create a gap where sensitive data reaches AI outputs without explicit access decisions.

The failure occurs when AI systems retrieve across data classification boundaries that human users cannot cross directly. Vector databases and semantic search can surface sensitive documents based on conceptual similarity rather than explicit authorization, bypassing data governance designed for structured queries.

Programs assume existing data access controls sufficiently govern AI data access. Data governance frameworks designed for direct human access do not account for AI retrieval behavior — semantic search, cross-document synthesis, and context window assembly that combines data beyond intended scope.

What changes the outcome: data scope mapping for AI retrieval paths, ensuring AI systems cannot access data collections that exceed their intended scope.

The operational challenge is that AI retrieval operates through embedding similarity rather than explicit queries. Traditional data access controls cannot govern semantic retrieval without additional controls that map AI system capability to authorized data scope.

Implementation guidance:
- Map AI retrieval paths to specific data collections and classification levels
- Configure vector databases with access boundaries that respect data classification
- Implement retrieval monitoring to detect access patterns outside intended scope
- Require explicit data scope review when AI systems gain new retrieval capabilities

Failure pattern 3: tool and API access without scope control

AI agents and tool-calling models can invoke external APIs, execute code, and interact with systems based on generated instructions. Programs that govern model API access but not tool invocation scope create uncontrolled system access through AI-generated tool calls.

The security consequence is AI systems that invoke tools and APIs beyond their intended scope based on adversarial instructions or emergent behavior. Tool calls execute with AI system credentials rather than human user attribution, making it difficult to trace unauthorized actions to responsible parties.

Programs fail when they assume API access controls on the model endpoint govern all AI system actions. AI systems that call tools and APIs operate with broader system access than the humans who interact with them, creating privilege escalation through AI-mediated actions.

What changes the outcome: tool and API scope definition and enforcement, ensuring AI systems cannot invoke capabilities outside their intended function.

The attribution challenge is that AI tool calls may result from instruction injection rather than legitimate user intent. Programs must distinguish between authorized AI actions and adversarial instruction execution to maintain accountability.

Implementation guidance:
- Define explicit tool and API scope for each AI system deployment
- Implement tool call authorization that validates scope before execution
- Require Human-in-the-Loop (HITL) approval or explicit user confirmation for high-privilege or state-changing tool executions to prevent autonomous execution of injected instructions
- Configure agent actions to be attributable to governed identities
- Monitor for tool invocations outside defined scope or normal usage patterns
- Review tool and API scope when AI system capabilities change

The verification step: can your program produce a list of tools and APIs each AI system can invoke, and evidence that this scope is actively enforced?

Failure pattern 4: output handling without consequence review

AI system outputs can contain instructions for human action, generated code, configuration changes, or decisions that affect business operations. Programs that filter outputs for safety and content policy but not operational consequence create uncontrolled decision paths through AI-generated instructions.

The failure pattern involves AI systems that generate outputs with operational consequences — approving transactions, modifying access controls, or providing instructions for system changes — without governance over those consequential decisions.

Programs assume output content filtering addresses security risks. Content moderation focuses on prohibited information rather than operational authority, allowing AI systems to generate consequential instructions that humans follow without additional authorization.

What changes the outcome: consequence review for AI outputs that can affect systems, data, or business operations, ensuring consequential decisions remain under human governance.

The operational challenge is distinguishing between informational AI outputs and consequential instructions. Programs must identify AI outputs that warrant additional review based on potential impact rather than content classification alone.

Implementation guidance:
- Classify AI system outputs by operational consequence rather than content sensitivity alone
- Implement approval workflows for AI outputs that contain system instructions or business decisions
- Monitor for AI outputs that humans action without verification
- Configure behavioral monitoring to detect when AI-generated instructions exceed normal operational patterns
- Enforce strict output encoding and validation for any AI-generated data consumed directly by downstream automated systems to prevent execution of malicious payloads, such as cross-site scripting or unauthorized script execution, in alignment with OWASP LLM Top 10 guidance on insecure output handling

AI security program failure patterns

Security program assumptionWhat the AI system does insteadSecurity consequenceControl requirement
Model safety controls protect the system (the program focuses on model alignment, safety filters, and output moderation)Accepts adversarial prompts, manipulated context, and poisoned retrieval inputs that redirect its behavior without triggering safety filtersModel outputs controlled by input the security program never governed; data exfiltration, unauthorized instructions, and impersonation bypass output controlsStrict API message boundaries; data-instruction separation; retrieval path governance; behavioral monitoring for out-of-scope output
Access controls on the model API are sufficient (the program governs who can call the model endpoint)Acts on tool calls, retrieval requests, and context injections that arrive through application logic, not the API directlyTool invocations reach systems and data the API access control was never designed to cover; agent actions are attributed to the AI system rather than the human who injected the instructionTool and API scope defined and enforced; Human-in-the-Loop (HITL) for high-impact actions; agent actions attributable to governed identities; scope reviewed on change
Data governance covers AI data access (the program applies existing data classification to AI system deployments)Retrieval-augmented generation pulls documents across classification levels; context windows assemble data the human user was not authorized to see; outputs derive from data outside the intended access scopeData governance designed for direct human access does not apply to AI retrieval behavior; sensitive data surfaces in AI outputs without explicit access decisionData scope mapping for AI retrieval paths; access reviewed against AI system capability, not just user role
Application security testing covers AI-enabled applications (the program tests AI-enabled applications with standard web application and API testing methods)Responds to prompt injection that web application scanners do not generate; accepts context manipulation through document inputs, system prompt overrides, and multi-turn instruction sequencesAI-specific attack surface remains untested; prompt injection, jailbreaking, and instruction hijacking go undetected until exploitationAI application security testing must cover AI OWASP Top 10 attack patterns in addition to standard web and API testing

Diagnostic questions

  • Does your security program enforce strict API message boundaries and data-instruction separation at the prompt and context layer to treat user-provided text as potentially adversarial instructions?

  • Are AI system retrieval paths explicitly mapped to authorized data collections with scope boundaries that respect data classification levels?

  • Can your program produce evidence that tool and API scope is defined, actively enforced, and requires explicit human authorization for high-impact actions for each AI system deployment?

  • Has application security testing for AI-enabled applications covered AI-specific attack patterns, including prompt injection and context manipulation?

  • Does behavioral monitoring cover consequential AI decisions and outputs that can affect systems, data, business operations, or downstream automated pipelines?

  • Can your program produce evidence of AI system scope and access controls for audit or incident review that demonstrates governance over system components beyond model API access?

An In-Depth Guide to AI

Get essential knowledge and practical strategies to use AI to better your security program.
SC Media Editorial Intelligence, reviewed by Aaron Daniel

Aaron Daniel, CISSP, is a senior cybersecurity leader, enterprise security strategist, and U.S. Army veteran with more than 25 years of experience protecting critical infrastructure and managing cyber risk across healthcare, financial services, pharmaceutical, and government environments.

As Manager of Cyber Protection Services for Franciscan Alliance, Aaron leads enterprise defensive security capabilities across a multi-ministry regional healthcare network. He is responsible for advancing security strategy, overseeing operational security architecture, and implementing technical controls that protect critical clinical systems and sensitive patient data.

Aaron serves as an Advisor to the Indiana Civilian Cyber Corps and previously served as an Advisor to the Indiana Executive Council on Cybersecurity (IECC), where he collaborated with government, healthcare, and private-sector stakeholders to strengthen cyber readiness and infrastructure resilience across Indiana.

His expertise spans security operations, governance, risk management, vulnerability management, incident response, and regulatory compliance. Aaron holds the Certified Information Systems Security Professional (CISSP) credential and remains actively engaged in advancing cybersecurity preparedness within the healthcare and critical infrastructure sectors.

Get daily email updates

SC Media's daily must-read of the most current and pressing daily news

By clicking the Subscribe button below, you agree to SC Media Terms of Use and Privacy Policy.

Related Terms

Algorithm

You can skip this ad in 5 seconds