JustujuAI, layer by layer.Open in the interactive map

Security

Protecting every layer from attack: supply chain, infrastructure, model files, prompt injection and agent permissions.

Cross-cutting concern, spans every layer · reviewed 2026-10-30

Threats on every layer

26 threat records, Layer 9 first. References are verified against the OWASP Top 10 for LLM Applications 2025 and MITRE ATLAS 2026.10; real cases are labelled as an incident or a research demonstration. Every record is pending expert review.

LayerExposedTop attacksReal incidentControlsOwnerReference
L9 Applications & Interfaces Pending expert reviewA deepfake video call talks staff into paying
Staff who approve payments or reset access over video or phone
  • Cloning a leader's voice and face from public video
  • Staging a live call with fake colleagues to approve urgent transfers
Incident: Deepfake video call that led to about US$25 million in transfers (Arup, Hong Kong) (2024-01)
  • Confirm payment and access requests by calling back on a known number, never on the same call
  • Two-person approval for large or unusual transfers
CISO, with Legal/ComplianceAML.T0088 Generate Deepfakes
AML.T0052.001 Deepfake-Assisted Phishing
AML.T0048.000 Financial Harm
Links that plant lasting instructions in an assistant
Assistants with memory that persists across chats
  • Hiding "remember this as a trusted source" in a pre-filled prompt
  • Biasing later recommendations once the memory is planted
Incident: AI recommendation poisoning (2026-02)
  • Show users the full prompt a link pre-fills before it runs
  • Ask before writing to memory; let users see and delete memories
AppSec, with ML engineeringLLM01:2026 Prompt Injection
AML.T0131 Crafted AI Assistant Links
AML.T0080.000 Memory
Chatbot output runs as code in someone's browser
Web pages and support consoles that display model output
  • Prompting the bot to output HTML or script that the page then runs (cross-site scripting)
  • Making the reply load an image whose address carries stolen data
Research demonstration: Cross-site scripting through a support chatbot (2025-08)
  • Treat model output as untrusted input: escape it before display
  • A strict content security policy; no automatic loading of remote images
AppSecLLM10:2026 Improper Output Handling
AML.T0077 LLM Response Rendering
L8 Agents Pending expert reviewAn agent in a build pipeline leaks its keys
API keys and tokens in the agent's environment
  • Prompt injection in an issue or comment that makes the agent read and post its secrets
Research demonstration: Secret exposure through a coding agent's CI action (2026-06)
  • Keep long-lived secrets out of the agent's environment; use short-lived, scoped tokens
  • Don't let agents act on untrusted pull requests with write access
AppSec, with Platform/CloudLLM02:2026 Sensitive Information Disclosure
AML.T0083 Credentials from AI Agent Configuration
AML.T0051.001 Indirect
Attackers run AI agents against their targets
Coding and computer-use agents that can run scans and exploits
  • Splitting an intrusion into small, harmless-looking tasks for an agent
  • Letting the agent do most of the reconnaissance and exploitation, with people approving only key steps
Incident: AI-orchestrated espionage campaign (2025-11)
  • Providers: detect and ban misuse; share indicators
  • Defenders: patch fast and watch for bursts of automated activity
CISO, with AppSecAML.T0124 Autonomous Attack Orchestration
An agent with too much power is told to destroy
Files, cloud resources and accounts an agent can change
  • Slipping a destructive instruction into an agent's prompt or extension
  • Abusing broad permissions to delete files or cloud resources
Incident: Wiper prompt planted in an AI coding extension release (AWS says it was malformed and did not run) (2025-07)
  • Least privilege: give the agent only the tools and scopes this task needs
  • Ask a person before deleting or changing anything important
AppSec, with Platform/CloudLLM03:2026 Excessive Agency
AML.T0101 Data Destruction via AI Agent Tool Invocation
AI suggests a package that doesn't exist, and an attacker registers it
Code and install commands written by AI assistants and coding agents
  • Collecting package names that models invent again and again
  • Publishing malware under those names on public package indexes (slopsquatting)
Research demonstration: huggingface-cli: an invented package name, registered as a harmless test, downloaded tens of thousands of times (2024-03)
  • Install only from an internal mirror or allow-list; don't let agents add dependencies without review
  • Check that a suggested package is real, established and from the expected publisher
AppSec, with Platform/CloudLLM07:2026 Misinformation
AML.T0060 Publish Hallucinated Entities
AML.T0062 Discover LLM Hallucinations
AML.T0011.001 Malicious Package
L7 Orchestration & Tooling Pending expert reviewHidden instructions in content the AI reads
Emails, web pages, documents and tool results that enter the model's context
  • Planting instructions in content the assistant will read (indirect prompt injection)
  • Leaking data through links or images the app loads automatically
Research demonstration: EchoLeak (zero-click exfiltration from an office assistant) (2025-06)
  • Break the lethal trifecta: never combine private data, untrusted content and a way out in one agent
  • Allow-list where outputs may send data; don't auto-load links and images
AppSec, with ML engineeringLLM01:2026 Prompt Injection
AML.T0051.001 Indirect
A tool server that turns on its users
Tool servers and packages that agents install and trust
  • Hiding instructions in a tool's description (tool poisoning)
  • Publishing a look-alike package that quietly copies data out
Incident: Malicious postmark-mcp package (2025-09)
  • Install tool servers only from their real publisher; pin versions and review changes
  • Show users full tool descriptions and changes to them
AppSec, with Platform/CloudLLM04:2026 Supply Chain
AML.T0110 AI Agent Tool Poisoning
AML.T0010.005 AI Agent Tool
Planted documents steer retrieval-based answers
The document store a retrieval system searches
  • Adding a few crafted texts so they are retrieved for target questions
  • Steering the answer or slipping instructions into the context
Research demonstration: PoisonedRAG (2024-02)
  • Control who can write to the index; record where each document came from
  • Show sources with answers so people can check them
Data, with AppSecLLM09:2026 Vector and Embedding Weaknesses
AML.T0070 RAG Poisoning
L6 Inference & Optimization Pending expert reviewSelf-hosted model servers left open to anyone
Model servers run on workstations and cloud machines, listening on all network interfaces
  • Scanning the internet for open model-server ports
  • Using someone else's server for free, or reselling its compute
Research demonstration: Over 1,100 exposed Ollama servers found with Shodan (Cisco Talos) (2025-09)
  • Bind model servers to localhost or a private network; never open them to the internet
  • Put an authenticating proxy or VPN in front of any shared model server
Platform/Cloud, with ML engineeringLLM06:2026 Unbounded Consumption
AML.T0132 Misconfigured or Publicly Exposed AI Services
AML.T0006.002 Scan for Exposed AI Infrastructure
AML.T0034 Cost Harvesting
Model files that run code when you load them
Machines that download and load third-party model files
  • Hiding commands in pickle-based model files that run on load
  • Compressing or breaking the file in unusual ways so model-hub scanners miss the payload
Incident: Malicious models on Hugging Face (nullifAI) (2025-02)
  • Load weights only in formats that cannot run code, such as safetensors
  • Pin models by hash or signature, not by name alone
ML engineering, with AppSecLLM04:2026 Supply Chain
AML.T0011.000 Unsafe AI Artifacts
AML.T0010.003 Model Repository
Encrypted chat traffic still reveals the topic
Streamed responses, sent token by token over encrypted connections
  • Training a classifier on packet sizes and timing to guess what a conversation is about
Research demonstration: Whisper Leak (2025-11)
  • Pad streamed chunks with random-length filler
  • Batch several tokens per packet
Platform/Cloud, with ML engineeringNone verified
L5 Foundation Models Pending expert reviewJailbreaks that get past safety training and reveal hidden instructions
A model's safety training and the app's content rules
  • Wording or optimised gibberish that talks a model out of refusing (jailbreak)
  • Asking the assistant to repeat or summarise its hidden instructions
Research demonstration: Universal adversarial suffixes that jailbreak several aligned models (2023-07)
  • Assume hidden instructions will leak: keep keys, secrets and access rules out of prompts
  • Enforce permissions in code outside the model, not in its instructions
AppSec, with ML engineeringLLM08:2026 Hidden Context Exposure
AML.T0054 LLM Jailbreak
AML.T0069.002 System Prompt
AML.T0085.003 System Instructions
A hidden backdoor that survives safety training
Model weights from training runs or third parties
  • Training a model to behave badly only when a trigger appears
  • Hiding the trigger well enough that testing does not find it
Research demonstration: Sleeper Agents (2024-01)
  • Get models from sources you can verify; check signatures and hashes
  • Control who can change training data, code and checkpoints
ML engineering, with CISOLLM05:2026 Data and Model Poisoning
AML.T0018.000 Poison AI Model
Copying a model by harvesting its answers
A model's capabilities, reachable through its public API or app
  • Running many fake accounts to collect answers at scale
  • Training a cheaper model on the collected answers (distillation)
Incident: Distillation campaigns against a frontier model provider (2026-02)
  • Detect coordinated accounts and unusual query patterns
  • Rate limits and identity checks matched to the risk of each tier
CISO, with Legal/ComplianceAML.T0005 Replicate AI Model Behavior
AML.T0048.004 AI Intellectual Property Theft
L4 Data Pending expert reviewModels repeat private training data word for word
Personal data, secrets and copyrighted text that ended up in training data
  • Prompting a model until it diverges and recites memorised text
  • Asking for specific records to see whether they were in the training set
Research demonstration: Scalable extraction of training data (2023-11)
  • Remove personal data and secrets before training; deduplicate
  • Filter outputs for long verbatim matches with training data
Data, with Legal/ComplianceLLM02:2026 Sensitive Information Disclosure
AML.T0137.003 Extract Memorized Data
Poisoned training data plants bad behaviour
Web-scale datasets that point to pages and images anyone can change
  • Buying expired domains that a dataset still links to and serving poisoned content (split-view poisoning)
  • Timing edits to land just before a snapshot is taken (front-running)
Research demonstration: Poisoning web-scale training datasets (2023-02)
  • Store hashes of the content a dataset was built from and check them at download
  • Track where every dataset came from (provenance) and who can change it
Data, with ML engineeringLLM05:2026 Data and Model Poisoning
AML.T0020 Training Data Poisoning
L3 Cloud & Infrastructure Pending expert reviewAI compute clusters left open to the internet
Job and dashboard APIs of training and serving frameworks
  • Running jobs through an unauthenticated cluster API
  • Stealing cloud keys and tokens stored on the cluster
Incident: ShadowRay (2024-03)
  • Never expose cluster control APIs to the internet; put them behind authentication
  • Keep secrets out of cluster environments; use short-lived, scoped credentials
Platform/Cloud, with CISOAML.T0049 Exploit Public-Facing Application
AML.T0132 Misconfigured or Publicly Exposed AI Services
Stolen cloud keys used to run someone else's AI bill
Cloud accounts with access to hosted model services
  • Using leaked keys to call expensive models (LLMjacking)
  • Reselling access to the stolen model quota
Incident: LLMjacking (2024-05)
  • Least-privilege roles: only the accounts that need model access get it
  • Short-lived credentials instead of long-lived keys; secret scanning in repositories
Platform/Cloud, with CISOLLM06:2026 Unbounded Consumption
AML.T0012 Valid Accounts
AML.T0034 Cost Harvesting
One customer's training job reaches another's data
Shared managed training and serving platforms
  • Running code in a training job that escapes its container
  • Using over-broad platform credentials to read other tenants' storage
Research demonstration: SAPwned (SAP AI Core) (2024-07)
  • Treat every training job as untrusted code: strong sandboxing per tenant
  • Separate networks and credentials per tenant; nothing shared by default
Platform/Cloud, with ML engineeringAML.T0105 Escape to Host
L2 Compute Hardware Pending expert reviewLeftover GPU memory leaks one user's data to another
GPU memory shared over time by different programs or tenants
  • Reading memory another program left behind without clearing it
Research demonstration: LeftoverLocals (2024-01)
  • Apply the vendor's driver and firmware fixes (the flaw hit some GPU makers and not others; check your vendor's advisory)
  • Do not share a GPU between tenants who don't trust each other; use whole-GPU or hardware-partitioned allocation
Platform/Cloud, with CISONone verified
Bit flips in GPU memory corrupt a running model
Model weights held in GPU memory without error correction
  • Hammering memory rows to flip bits in a neighbour's data (Rowhammer)
  • Flipping a few bits in weights to wreck a model's accuracy
Research demonstration: GPUHammer (2025-07)
  • Turn on error-correcting memory (ECC) where the GPU supports it
  • Avoid sharing one GPU between untrusted tenants
Platform/Cloud, with ML engineeringAML.T0031 Erode AI Model Integrity
L1 Physical & Energy Pending expert reviewHardware tampered with before it arrives
Servers, network gear and accelerators in transit or at repair
  • Swapping or modifying components before delivery
  • Malicious firmware that survives reinstalls
No documented public incident yet
  • Buy through vetted channels and check delivery seals
  • Measured boot and firmware attestation before a server joins a cluster
Platform/Cloud, with CISOAML.T0010.000 Hardware
Model weights copied out by insiders or intruders
Weight files on servers and storage in data centres and labs
  • An insider or trusted recipient copying weights and sharing them
  • An intruder using stolen credentials to download weights from storage
Incident: Restricted research model weights leaked publicly a week after release (LLaMA) (2023-03)
  • Give as few people and systems as possible read access to weights; two-person rules for bulk copies
  • Encrypt weights at rest with keys held in hardware security modules
CISO, with ML engineeringAML.T0035 AI Artifact Collection
AML.T0025 Exfiltration via Cyber Means
AML.T0048.004 AI Intellectual Property Theft
Break-ins and tampering at data-centre sites
Buildings, cages and racks that hold servers and model weights
  • Unauthorised entry to rooms that hold weight-bearing servers
  • Planting devices on racks or networks
No documented public incident yet
  • Layered physical access with logging and escorts
  • Two-person rules for racks that hold model weights
CISO, with Platform/CloudNone verified

SimpleA plain explanation, one diagram and an analogy, with where the analogy breaks.

Guess first: Guess: where could a thief sneak in, at the bottom or the top?

Show the answerBoth. Every layer has doors, from buildings and chips at the bottom to the words the AI reads.

Security means keeping bad people out. An AI has many doors: the buildings, the chips, the files that hold what it learned, and the words it reads.

Some attacks are old, like breaking into a building. Some are new, like hiding secret orders inside a web page and hoping the AI will obey them.

Builders lock every door, and give the AI only the keys it really needs.

Each layer has its own attack surface. Sites and hardware can be broken into or tampered with. Chips shared between users can leak data. Training data can be poisoned. Model files can carry hidden code. And text the model reads can carry instructions.

Prompt injection comes in two kinds. Direct: a user types instructions that try to override the app's rules. Indirect: the instructions hide in something the model reads, such as a web page, an email, a file or a tool's description (tool poisoning). Jailbreaks are related but different: the user attacks the model's own safety training, with role-play, odd encodings or many fake examples.

The prize is often the model weights: whoever copies them has the model. A 2024 RAND study counted 38 distinct ways to steal them and found no single fix.

Supply-chain security means checking what you didn't make yourself: datasets, pretrained models, libraries, plugins and tool servers. Prefer weight formats that can't run code when loaded, and check file hashes or signatures.

Agents raise the stakes. The lethal trifecta is an agent that can read private data, sees untrusted content and can send data out: injected text can make it leak that data. Remove one leg, run the agent in a sandbox with limited files and network, give it the fewest tools it needs, and ask a person before risky actions.

Like: A house with many doors and windows: one open window is enough.
Where it breaks: A burglar must come to the house. With AI the attack can arrive as ordinary text in an email or web page that the system reads on its own.

ResearchWhere the simple picture breaks, open problems and primary sources.

A model reads instructions and data as one stream of text, so most defences limit damage rather than close the hole.

Indirect prompt injection. Hidden instructions in pages, emails or tool output steer the model. Filters are models too: adaptive attacks beat 12 published defences, most of them over 90% of the time (Nasr et al., 2025). Mitigations are architectural: least privilege, sandboxes, approvals, and keeping untrusted data out of control flow (CaMeL, 2025).

Tool poisoning. Hidden instructions in MCP tool descriptions reach the model, not the user, and can change after approval (Invariant Labs, 2025).

Model supply chain. Pickle files can run code on load; safetensors stores only numbers (safetensors). Signing ties a file to its producer (model-signing 1.0, 2025).

Jailbreaks. Classes: competing objectives such as prefix injection, mismatched generalisation such as Base64 (Wei et al., 2023), optimised suffixes that transfer (Zou et al., 2023) and many-shot prompts (Anthropic, 2024).

Data poisoning. About 250 documents backdoored models of 600 million to 13 billion parameters alike (Souly et al., 2025).

Evaluating defences. Static attack sets overstate safety; benchmarks such as AgentDojo help only if attacks adapt.

On every layer

Examples as of 2026-10-14

Sources

  1. Securing AI Model Weights: Preventing Theft and Misuse of Frontier Models (RAND) (2024-05-30)
  2. OWASP Top 10 for LLM Applications 2025 (2025)
  3. Poisoning Web-Scale Training Datasets is Practical (2023)
  4. Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training (2024)
  5. Extracting Training Data from Large Language Models (2020)
  6. The lethal trifecta for AI agents: private data, untrusted content, and external communication (Simon Willison) (2025-06-16)
  7. Guidelines for secure AI system development: secure deployment (UK NCSC) (2023-11-27)
  8. The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses against LLM Jailbreaks and Prompt Injections (2025-10-10)
  9. Defeating Prompt Injections by Design (CaMeL) (2025-03-24)
  10. MCP Security Notification: Tool Poisoning Attacks (Invariant Labs) (2025-04-01)
  11. Safetensors (Hugging Face documentation) (ongoing)
  12. Taming the Wild West of ML: Practical Model Signing with Sigstore (Sigstore blog) (2025-04-04)
  13. Jailbroken: How Does LLM Safety Training Fail? (2023-07-05)
  14. Universal and Transferable Adversarial Attacks on Aligned Language Models (2023-07-27)
  15. Many-shot jailbreaking (Anthropic) (2024-04-02)
  16. Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples (2025-10-08)
  17. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents (2024-06-19)
  18. Beyond permission prompts: making Claude Code more secure and autonomous (Anthropic engineering blog) (2025-10-20)