SHADOW AI

A secure AI platform cannot rely only on vulnerability scanning, logging, monitoring, and incident response. Security teams also need to understand what can attack the platform, how attacks could occur, which assets are most valuable, and which defensive controls should receive priority.
This is the role of threat intelligence and threat modeling.
Threat modeling asks:
What could go wrong, how could it happen, what would be affected, and how can we reduce the risk?
Threat intelligence asks:
What threats are actually appearing in the environment or ecosystem, how are attackers behaving, and what defensive decisions should change as a result?
For AI systems, these disciplines become more complex because the attack surface includes not only traditional software and infrastructure but also:
Models
Prompts
RAG pipelines
Vector databases
Agent tools
Memory
Training data
Evaluation datasets
Model providers
AI-generated outputs
Multimodal inputs
Tool permissions
AI-specific runtime behavior
A mature security program therefore combines:
Threat intelligence + threat modeling + detection engineering + vulnerability management + security architecture + incident response.
The objective is not to predict every possible attack.
The objective is to build a continuously updated understanding of risk so that security controls are applied where they provide the greatest defensive value.
These concepts are related but different.
Threat modeling is primarily a forward-looking analysis.
It examines the system and asks:
What are our assets?
Who could attack them?
What trust boundaries exist?
What attack paths are possible?
What controls prevent or limit those attacks?
Threat intelligence is primarily an evidence-driven intelligence process.
It examines information about:
Threat actors
Campaigns
Vulnerabilities
Exploitation patterns
Malicious infrastructure
Attack techniques
Security incidents
Industry trends
Defensive observations
Threat intelligence helps answer:
What is happening?
Threat modeling helps answer:
What could happen to our architecture?
Together they create a stronger security decision process.
A traditional web application may primarily focus on:
Authentication
Authorization
APIs
Databases
Servers
Networks
Files
Browsers
An AI platform contains all of these plus additional attack surfaces.
A simplified AI threat landscape is:
User
|
v
Frontend
|
v
API Gateway
|
+---- Authentication
|
+---- Policy Engine
|
v
AI Orchestrator
|
+---- Model Provider
|
+---- RAG
|
+---- Memory
|
+---- Tools
|
+---- Agents
|
+---- Media Processing
|
v
Databases / Storage / Queues
|
v
Infrastructure
Every boundary represents a potential security concern.
Threat modeling begins with identifying assets.
Important AI assets may include:
User accounts
Sessions
Service identities
API credentials
Administrative accounts
Workload identities
User documents
Images
Videos
Audio
Prompts
Conversation history
RAG documents
Vector embeddings
Memory
Training datasets
Model weights
Model configurations
System prompts
Safety policies
Routing policies
Evaluation datasets
Fine-tuned models
Tokenizers
Guardrail configurations
Kubernetes clusters
Containers
Databases
Object storage
Queues
Caches
CI/CD systems
Secrets managers
Network infrastructure
Subscription information
Usage quotas
Billing records
Intellectual property
Customer relationships
Reputation
Threat modeling should prioritize assets based on impact, not merely technical complexity.
A practical classification is:
| Level | Meaning |
|---|---|
| Critical | Compromise could cause catastrophic security or business impact |
| High | Significant confidentiality, integrity, availability, or financial impact |
| Medium | Limited but meaningful impact |
| Low | Minor impact |
For example:
Model weights
Potential impact:
Intellectual property loss
Model tampering
Competitive damage
RAG database
Potential impact:
Sensitive information exposure
Cross-tenant leakage
Incorrect AI responses
Agent tool credentials
Potential impact:
Unauthorized external actions
Data modification
Account compromise
Criticality should therefore consider both the asset itself and what an attacker could do through that asset.
Threat intelligence should maintain a broad threat-actor model.
Potential categories include:
They target exposed systems with automated scanning and common attack techniques.
Their goals may include:
Fraud
Credential theft
Resource abuse
Account takeover
Cryptomining
API abuse
Their objective is unauthorized access to:
Customer data
Documents
Personal information
Proprietary AI data
Potential sources include:
Malicious insiders
Compromised employees
Excessively privileged administrators
Accidental misuse
They may target:
Dependencies
Packages
Model repositories
Containers
Plugins
Build systems
CI/CD pipelines
These attackers may deliberately target:
Prompt handling
Model behavior
Agent planning
Tool execution
RAG retrieval
Memory
AI safety mechanisms
Threat models should not assume that attackers interact only through the normal user interface.
Threat actors can also be classified by capability.
Uses:
Public tools
Automated scanners
Known exploits
Basic credential attacks
Can perform:
Custom automation
Application-specific reconnaissance
API abuse
Prompt manipulation
Data extraction attempts
May possess:
Significant technical expertise
Custom tooling
Specialized infrastructure
Advanced persistence techniques
Supply-chain capabilities
The purpose of capability modeling is not to stereotype attackers.
It is to determine whether the security architecture can withstand increasingly capable adversaries.
AI systems introduce several important threat categories.
Untrusted content attempts to influence the model's instructions.
Sources can include:
User input
Retrieved documents
Web pages
Uploaded files
Images
Tool responses
The primary security concern is not merely undesirable text.
The deeper concern is whether untrusted content can influence privileged operations.
An especially important scenario occurs when malicious instructions are embedded inside external content.
Example:
User
|
| "Summarize this document"
v
Document
|
+-- malicious embedded instruction
|
v
RAG / AI system
If the model treats the document as an instruction rather than data, the attacker may influence downstream behavior.
Therefore:
Retrieved content must not automatically become trusted instructions.
Agents require special attention because they can potentially take actions.
A useful threat model separates:
What information can the agent observe?
How does the agent decide what to do?
What sequence of actions can it construct?
Which tools can it call?
What changes can those tools make?
For example:
Prompt
|
v
Agent
|
v
Plan
|
+---- Search
|
+---- Database
|
+---- Email
|
+---- File system
|
+---- Payment
Each tool should have an explicit permission boundary.
Threat modeling should examine chains such as:
Untrusted Input
|
v
Prompt Injection
|
v
Agent Misinterpretation
|
v
Unauthorized Tool Selection
|
v
Sensitive Resource Access
|
v
Data Exposure
The most important lesson is:
AI security must analyze attack chains, not isolated prompts.
A prompt injection that cannot influence any privileged operation may have limited impact.
A prompt injection that can control a highly privileged tool represents a much greater risk.
RAG introduces several attack surfaces.
Threats include:
Malicious documents
Hidden instructions
Unsupported formats
Parser vulnerabilities
Malware
Poisoned information
Potential issues include:
Context manipulation
Metadata loss
Tenant mixing
Potential concerns include:
Incorrect ownership
Unauthorized retrieval
Metadata leakage
Threats include:
Cross-tenant retrieval
Unauthorized search
Data deletion
Poisoned records
Threats include:
Malicious documents ranking highly
Retrieval manipulation
Sensitive document exposure
Threats include:
Untrusted content being interpreted as instruction
Hallucination
Citation manipulation
Sensitive information disclosure
RAG therefore needs its own threat model rather than being treated as merely a database feature.
Long-term AI memory creates another important security boundary.
Potential threats include:
Memory poisoning
Incorrect user association
Cross-user memory access
Sensitive information retention
Unauthorized memory modification
Malicious persistent instructions
Failure to delete memory
A memory system should therefore record:
Memory ID
Tenant ID
User ID
Source
Creation time
Classification
Purpose
Retention policy
Authorization policy
Integrity metadata
Memory must remain subject to normal data-governance and authorization controls.
Models are security-sensitive artifacts.
Potential threats include:
Tampered weights
Malicious model files
Unauthorized fine-tuning
Unapproved model replacement
Configuration manipulation
Backdoored artifacts
Unverified external models
A secure model lifecycle should therefore maintain:
Model
|
+-- Identity
+-- Version
+-- Source
+-- Hash
+-- Provenance
+-- Evaluation status
+-- Approval status
+-- Deployment status
No production model should be trusted merely because it has a familiar filename.
AI supply chains can contain:
Open-source packages
Model repositories
Dataset repositories
Container images
Plugins
Tokenizers
Evaluation libraries
External APIs
Cloud services
A supply-chain threat model should ask:
Who produced the component?
Where did it originate?
Was it modified?
How was it verified?
What permissions does it receive?
What happens if it becomes malicious?
Can it be replaced quickly?
This connects threat intelligence directly to supply-chain security.
A mature threat intelligence lifecycle can be represented as:
Requirements
|
v
Collection
|
v
Processing
|
v
Analysis
|
v
Production
|
v
Dissemination
|
v
Feedback
|
+-------> Requirements
The lifecycle is continuous.
Threat intelligence should not become a static report stored in a folder.
Security teams should define what information they actually need.
Examples:
Which vulnerabilities affect our infrastructure?
Which attack techniques target AI applications?
Are our exposed services being actively targeted?
Which model supply-chain risks are emerging?
Are attackers abusing AI agents?
Which indicators should detection engineering monitor?
Which attack patterns should be included in red-team testing?
Without clear requirements, intelligence collection can become excessive but strategically useless.
Potential sources include:
Security incidents
SOC alerts
Authentication telemetry
Application logs
Vulnerability reports
Threat hunts
Red-team exercises
Abuse reports
Government advisories
Security research
Vendor advisories
Vulnerability databases
Industry information-sharing organizations
Academic research
Security conferences
Trusted threat-intelligence providers
External information should be evaluated for reliability before being treated as authoritative.
Not every threat report is equally trustworthy.
A simple model can evaluate:
How consistently has the source produced accurate information?
How strongly is the specific claim supported?
Does it apply to our environment?
Is the information current?
Can defenders actually use it?
This prevents security teams from reacting to every rumor or sensational security headline.
Raw indicators often have limited value.
Example:
IP address
By itself, it may not explain much.
Enrichment could provide:
IP
|
+-- Reputation
+-- Hosting provider
+-- Geography
+-- Historical activity
+-- Related domains
+-- Related campaigns
+-- Internal observations
The same principle applies to:
Domains
File hashes
User accounts
Model versions
API clients
Kubernetes workloads
AI providers
Context makes intelligence useful.
AI security intelligence should monitor developments involving:
Prompt injection
Jailbreak techniques
Agent manipulation
RAG poisoning
Model extraction
Model integrity
Training-data poisoning
AI supply-chain attacks
Multimodal attacks
AI-generated phishing
Automated abuse
AI resource exhaustion
Safety-control bypasses
The purpose is defensive awareness.
Threat intelligence should feed:
Threat models
Security testing
Detection rules
SOC playbooks
Architecture decisions
Security policies
A repeatable threat-modeling process should include:
Identify:
System
Components
Users
Data
Trust boundaries
External dependencies
Determine what must be protected.
Document:
Input
|
v
API
|
v
Service
|
+---- Database
|
+---- AI model
|
+---- Storage
|
v
Output
Consider:
Spoofing
Tampering
Repudiation
Information disclosure
Denial of service
Elevation of privilege
Then add AI-specific categories.
Determine how multiple weaknesses could combine.
Evaluate:
Likelihood × Impact
Choose preventive, detective, and corrective controls.
Test whether controls actually work.
Update the threat model as the architecture changes.
Trust boundaries are among the most important parts of an AI threat model.
Typical boundaries include:
Internet
|
| Untrusted
v
Frontend
|
| Authenticated
v
API
|
| Authorized
v
AI Orchestrator
|
+---- Model Provider
|
+---- RAG
|
+---- Tools
Every boundary should define:
Authentication
Authorization
Validation
Logging
Rate limiting
Data classification
Trust assumptions
Data-flow diagrams should identify:
Inputs
Outputs
Processing components
Storage
Trust boundaries
External systems
For AI platforms, also identify:
Prompt flow
Context flow
Retrieval flow
Tool-call flow
Model routing
Memory flow
Output flow
A threat model that ignores these flows may miss the most important AI-specific risks.
Attack trees provide a structured way to analyze attack goals.
Example:
Goal:
Obtain another user's private document
OR
+--------+--------+
| |
Compromise API Abuse RAG
| |
+----+----+ +---+---+
| | | |
Auth flaw IDOR Poison Retrieval
data weakness
Attack trees help security teams identify multiple routes to the same business-impacting objective.
Attack graphs extend this concept into connected system paths.
For example:
Compromised Account
|
v
API Access
|
v
Weak Authorization
|
v
RAG Query
|
v
Cross-Tenant Retrieval
|
v
Sensitive Data Exposure
This demonstrates why individual controls should not be evaluated in isolation.
A seemingly low-risk weakness may become severe when combined with other weaknesses.
Not every threat deserves equal engineering effort.
A practical risk model considers:
Risk =
Likelihood
× Impact
× Exposure
× Exploitability
× Business Criticality
Organizations can adapt the exact model to their environment.
The important principle is consistency.
AI-specific risk assessment can additionally consider:
What happens if the model behaves incorrectly?
Can the system take actions without human confirmation?
What information can the model access?
What capabilities are exposed through tools?
Can the system interact with external services?
Can malicious state survive across sessions?
Can one attack affect thousands of users?
How easily can abuse be detected?
These dimensions help distinguish a harmless model-quality issue from a serious security vulnerability.
A powerful security principle is:
Agent capability should never exceed the minimum capability required for the task.
For example:
Agent A
|
+-- Read public documents
Agent B
|
+-- Read user's documents
Agent C
|
+-- Modify user's project
Agent D
|
+-- External communication
These agents should not automatically share identical permissions.
Tool permissions should be explicit and enforceable outside the model.
High-impact actions should often require human approval.
Examples include:
Permanent deletion
Financial actions
External publication
High-volume messaging
Security configuration changes
Administrative changes
Cross-tenant operations
A secure architecture can use:
Agent
|
v
Proposed Action
|
v
Policy Engine
|
+---- Low Risk ---> Execute
|
+---- High Risk --> Human Approval
|
v
Execute
The model should not be the final authority over its own privileges.
Threat intelligence becomes operationally valuable when translated into detections.
Example:
Threat Intelligence
|
v
Attack Technique
|
v
Detection Hypothesis
|
v
Telemetry Requirement
|
v
Detection Rule
|
v
SOC Alert
This creates a feedback loop between research and operations.
Intelligence should also influence security testing.
If new research identifies a threat against:
RAG systems
Agents
Multimodal models
Model supply chains
the security testing program should consider whether equivalent scenarios should be tested in the organization's environment.
This creates:
Intelligence → Test Case → Evaluation → Control Improvement
Threat intelligence may also trigger architectural changes.
For example:
New Threat
|
v
Threat Assessment
|
v
Architecture Review
|
+---- Existing controls sufficient
|
+---- New control required
|
v
Engineering Change
|
v
Validation
Security intelligence should therefore reach architects and developers, not only SOC analysts.
Threat modeling should occur before production.
Useful stages include:
Identify fundamental risks.
Review implementation-specific threats.
Validate controls.
Monitor for changes in threat conditions.
Rebuild the relevant threat model.
This is much more effective than creating one threat model once and never updating it.
AI systems change rapidly.
A platform may add:
New models
New providers
New tools
New datasets
New RAG sources
New integrations
New autonomous capabilities
Each change can modify the threat landscape.
Therefore:
Architecture Change
|
v
Threat Model Update
|
v
Risk Reassessment
|
v
Security Testing
|
v
Release Decision
Threat modeling should become part of engineering workflow.
Threat models should be version controlled.
Each version can contain:
Threat Model ID
System Version
Architecture Version
Date
Owner
Assets
Trust Boundaries
Threats
Risk Ratings
Controls
Open Risks
Approval Status
This provides historical traceability.
It also helps investigators determine which security assumptions existed when an incident occurred.
Threat modeling should have clear ownership.
Potential roles:
Security architect
Application security engineer
AI security engineer
Platform engineer
Data protection specialist
Product owner
SOC representative
No single person needs to understand every component.
Cross-functional threat modeling is usually stronger.
Threat intelligence should have:
Defined sources
Source reliability ratings
Collection rules
Data handling rules
Classification
Retention
Ownership
Review schedules
Dissemination controls
Sensitive intelligence may itself contain information that requires protection.
Threat-intelligence systems can become targets.
An attacker might attempt to:
Poison intelligence
Insert false indicators
Manipulate risk scores
Cause false alerts
Hide real threats
Access confidential reports
Therefore intelligence repositories require:
Authentication
Authorization
Integrity protection
Audit logging
Source provenance
Change tracking
Threat intelligence must itself be treated as security-sensitive data.
Security teams should distinguish between:
Known evidence
and:
Unverified claims.
An intelligence pipeline should preserve:
Source
Timestamp
Evidence
Confidence
Analysis
Attribution status
Related observations
This prevents unsupported conclusions from becoming operational facts.
Threat attribution is difficult.
A defensive program should avoid automatically claiming:
"Actor X definitely performed this attack."
unless sufficient evidence exists.
Instead, it may be more appropriate to state:
Observed technique
Observed infrastructure
Confidence level
Supporting evidence
Alternative explanations
This makes intelligence more defensible.
Threat intelligence can produce hunting hypotheses.
Example:
Intelligence:
Attackers increasingly abuse unusual API behavior.
|
v
Hunting hypothesis:
Find sessions with abnormal API sequencing.
|
v
Search telemetry
|
v
Validate findings
|
v
Create detection if useful
This transforms intelligence into operational discovery.
AI platforms should monitor for abuse patterns such as:
Unusual request volume
Rapid account creation
Credential reuse
Abnormal model switching
Excessive generation
Repeated policy-boundary testing
Unusual tool invocation
Abnormal document retrieval
Large-scale extraction behavior
Suspicious automation
These signals should be evaluated in context rather than relying on a single threshold.
Threat intelligence can enrich security analytics.
For example:
Authentication Event
|
+---- User risk
|
+---- Device context
|
+---- Threat intelligence
|
+---- Historical behavior
|
v
Risk Engine
|
v
Security Decision
This creates better detection than relying on isolated indicators.
Security systems should distinguish:
Severity
from:
Confidence.
Example:
| Finding | Severity | Confidence |
|---|---|---|
| Possible abuse | High | Low |
| Confirmed exploit | High | High |
| Suspicious behavior | Medium | Medium |
| Known malicious artifact | High | High |
This prevents uncertain information from automatically triggering extreme responses.
A practical matrix can classify threats:
| Likelihood | Impact | Priority |
|---|---|---|
| Low | Low | Low |
| High | Low | Medium |
| Low | High | Medium |
| High | High | Critical |
AI-specific factors can further increase priority:
High privilege
High scale
Sensitive data
Autonomous action
Difficult detection
External exposure
Security teams should create realistic scenarios.
Example:
Attacker:
Obtains a valid account.
Manipulates retrieval queries.
Attempts to retrieve another tenant's information.
Exploits an authorization weakness.
Controls:
Tenant-aware authorization
Row-level security
Retrieval filtering
Security telemetry
Detection rules
Attacker:
Provides malicious input.
Attempts prompt manipulation.
Agent selects a privileged tool.
Policy engine blocks unauthorized action.
Controls:
Tool permissions
Policy enforcement
Human approval
Audit logging
Runtime monitoring
These scenarios can be turned into repeatable security tests.
A mature AI platform should maintain a threat-scenario library.
Categories may include:
Identity
API
Database
Storage
RAG
Memory
Models
Agents
Tools
Media
Supply Chain
Infrastructure
Payments
Administration
Insider
Availability
Privacy
Each scenario should include:
Threat description
Preconditions
Assets affected
Attack path
Expected controls
Detection signals
Response
Test status
Owner
A threat model should be reviewed for:
Were all important assets included?
Does the model represent the real architecture?
Are trust assumptions still correct?
Does every important threat have appropriate controls?
Were multi-step attacks considered?
Were model, prompt, RAG, memory, and agent risks considered?
Can SOC teams detect and respond to the scenario?
A threat model is created once and forgotten.
Integrate threat modeling with architecture and release processes.
Teams model:
Servers
Networks
Databases
but ignore:
Prompts
Models
RAG
Agents
Memory
Include AI-specific data and control flows.
The model is allowed to decide what it is authorized to do.
Enforce permissions outside the model.
Teams collect thousands of indicators without understanding relevance.
Prioritize intelligence that supports decisions.
Threats are evaluated independently.
Use attack trees and attack graphs.
Controls exist on paper but are never tested.
Connect threat models to security testing and detection validation.
System scope defined
Data flows documented
Trust boundaries identified
External dependencies identified
User data identified
Models identified
Prompts identified
RAG data identified
Memory identified
Tool credentials identified
Prompt injection considered
Indirect injection considered
Agent abuse considered
Tool misuse considered
RAG poisoning considered
Memory poisoning considered
Model integrity considered
Identity threats considered
API threats considered
Database threats considered
Storage threats considered
Network threats considered
Supply-chain threats considered
Detection signals defined
SOC response defined
Threat scenarios tested
Risks assigned to owners
Threat model versioned
Intelligence requirements defined
Sources documented
Source reliability assessed
Confidence tracked
Intelligence enriched
Threat reports reviewed
Indicators validated
Threat techniques mapped
Detection rules updated
Security tests updated
SOC informed
Architecture informed
Intelligence changes audited
Useful metrics include:
Percentage of relevant threat areas monitored.
How much useful intelligence becomes operational detection.
How quickly new information reaches defenders.
How quickly intelligence produces a defensive change.
Whether intelligence actually improves detection.
Percentage of critical systems with current threat models.
Average age of active threat models.
Percentage of important threats represented by tested scenarios.
Metrics should measure security outcomes, not simply document volume.
Ad hoc research
Manual reports
Limited threat modeling
Defined intelligence sources
Basic threat scenarios
Documented threat models
Intelligence feeds detection engineering
Threat models influence architecture
Security testing uses threat scenarios
Continuous intelligence
Automated enrichment
Dynamic risk prioritization
Continuous threat-model updates
Intelligence, detection, architecture, testing, and response operate as a continuous security feedback loop.
A mature architecture can be represented as:
External Intelligence
|
v
+------------------+
| Intelligence |
| Processing |
+------------------+
|
v
+------------------+
| Threat Knowledge |
| Repository |
+------------------+
/ | \
/ | \
v v v
Threat Model Detection Hunting
| | |
v v v
Architecture SOC Security Tests
| | |
+----------+----------+
|
v
Risk Decisions
|
v
Security Controls
|
v
Production AI
|
v
Telemetry
|
+-----------> Intelligence
This creates a continuous defensive loop.
Threat modeling should become part of the secure development lifecycle.
A practical process is:
Idea
|
v
Architecture
|
v
Threat Model
|
v
Security Requirements
|
v
Implementation
|
v
Security Testing
|
v
Release
|
v
Monitoring
|
v
Threat Intelligence
|
+----> Updated Threat Model
This means security is continuously informed by real-world evidence.
The most mature architecture creates a feedback loop:
Threat Intelligence
|
v
Threat Modeling
|
v
Security Requirements
|
v
Engineering Controls
|
v
Security Testing
|
v
Production
|
v
Telemetry
|
v
Detection
|
v
Incidents / Findings
|
+-----------> Threat Intelligence
This transforms security from a static checklist into an adaptive system.
Several principles should guide AI threat intelligence and modeling.
Model the whole system, not only the model.
Treat untrusted AI input as untrusted data.
Never let model output directly define authorization.
Analyze attack chains, not isolated weaknesses.
Connect intelligence to actual defensive decisions.
Track confidence separately from severity.
Continuously update threat models as architecture changes.
Prioritize high-impact, high-privilege attack paths.
Make security scenarios testable.
Use production telemetry to improve future threat models.
A complete mature model can be summarized as:
THREAT INTELLIGENCE
|
v
Threat Knowledge
|
v
THREAT MODEL
|
+-----------+-----------+
| | |
v v v
Assets Attack Trust
Paths Boundaries
| | |
+-----------+-----------+
|
v
RISK ANALYSIS
|
v
SECURITY CONTROLS
|
+----------------+----------------+
| | |
v v v
Prevention Detection Response
| | |
+----------------+----------------+
|
v
PRODUCTION
|
v
TELEMETRY
|
v
SECURITY ANALYTICS
|
v
NEW THREAT EVIDENCE
|
+-----> INTELLIGENCE
This architecture provides a continuous security-learning loop.
Threat intelligence and threat modeling provide the strategic layer that connects the individual security controls of an AI platform.
Threat modeling identifies:
Assets
Trust boundaries
Threats
Attack paths
Security assumptions
Required controls
Threat intelligence provides:
Current threat knowledge
Attack patterns
Vulnerability information
Security research
Defensive indicators
Operational context
For AI platforms, the scope must extend beyond traditional infrastructure.
Security teams must consider:
Models
Prompts
RAG
Memory
Agents
Tools
Data
Supply chains
Multimodal inputs
Autonomous actions
The most important architectural principle is:
A secure AI platform should continuously convert threat intelligence into threat models, threat models into security controls, security controls into tested defenses, and production evidence back into improved intelligence.
That continuous feedback loop is what allows an AI security program to evolve as both the technology and threat landscape change.
Comments
Post a Comment