AI security glossary

Plain-English definitions of 64 AI security and AI governance terms, from prompt injection and data poisoning to the EU AI Act and ISO/IEC 42001. Each one links to the hands-on lesson where you see it in action.

🛗 Security Tower

F1 · Direct Prompt Injection: The Gatekeeper

Prompt Injection
Attacker-supplied text that changes an LLM's behaviour, overriding the developer's intent. OWASP LLM01.
Instruction/Data Mixing
LLMs read the system prompt, user input and retrieved documents as one token stream, with no hard boundary between "code" and "data".
Secrets in System Prompts
Anything in a prompt can be extracted. Never put credentials, keys or private data where the model can repeat them.
Instruction Override
"Ignore previous instructions…" The simplest injection: newer, more specific instructions often win.
Authority Impersonation
Claiming to be an admin, developer or auditor so the model relaxes its rules. Models can't verify identity.
Role-play Injection
Wrapping a forbidden request in fiction or a persona ("pretend you are…") so it gets past the rules.
Completion Trick
Starting a sentence like "The passphrase is" and letting the model's autocomplete instinct finish it.
Encoding Smuggling
Asking for output in base64, hex or ciphers. Filters looking for exact strings won't recognise encoded secrets.
Output Transformation
Spelling, reversing or spacing out a secret so string-matching output filters miss it.
Translation Attack
Asking for a translation. To the model, translating is not "telling", so rules about telling don't apply.
Creative Framing
Poems, stories and acrostics that embed the secret. A creative framing can carry a payload while hiding its intent.
Partial Leakage
Extracting a secret a piece at a time (first letter, length, rhymes) until the whole thing is known.
Defense in Depth
Stacking independent controls so that one failure doesn't mean a breach. No single AI guardrail is perfect.
Least Privilege
Give a system only the data and powers it strictly needs. A model that never sees a secret can't leak it.

F2 · Indirect Prompt Injection: The Poisoned Inbox

Indirect Prompt Injection
Malicious instructions hidden in content the AI reads (emails, web pages, documents) rather than typed by the user.
Hidden Text Payloads
White-on-white text, zero-size fonts and HTML comments are invisible to humans but fully visible to an LLM.
Data Exfiltration via Tools
An injected assistant uses its own tools (send email, fetch URL) to leak data to an attacker.
Spotlighting / Delimiting
Marking untrusted content (delimiters, encoding, datamarking) so the model treats it as data. Helps, but can be escaped.
Human-in-the-Loop
Requiring a person to confirm high-impact actions. Strong, but too many prompts cause approval fatigue.
Output-Channel Exfiltration
Leaking data through URLs in images or links that the client loads automatically. No "send" tool needed.
Confused Deputy
A trusted component (the assistant) is tricked into misusing its privileges on an attacker's behalf.

F3 · Training Data Poisoning: The Corrupted Harvest

Training Data Poisoning
Manipulating training data to degrade a model or plant hidden behaviour. OWASP LLM04.
Backdoor Trigger
A small pattern (a sticker, a phrase) that makes a poisoned model produce the attacker's chosen output while behaving normally otherwise.
Data Provenance
Knowing where every training sample came from, who supplied it and when. It's the foundation of a trusted data supply chain.
Why Accuracy Hides Backdoors
A backdoored model can score 99% on normal test data. You need trigger-specific tests to find it.

F4 · Adversarial Examples: Blind Spot

Adversarial Examples
Inputs changed slightly (often imperceptibly) so that a model misclassifies them. MITRE ATLAS: Craft Adversarial Data.
Saliency / Gradients
Which input features most affect a prediction. Attackers use them to find the cheapest pixels to change.
Adversarial Training
Training on attacked examples labelled correctly, so the model learns to ignore small perturbations.
Gradient Masking
A defense that only breaks the attacker's tools (e.g. smoothing) and gives a false sense of security against adaptive attackers.

F5 · Excessive Agency: The Overpowered Intern

Excessive Agency
An LLM agent with more functionality, permissions or autonomy than its task needs. OWASP LLM06.
Tool Permission Scoping
Each tool an agent can call should be limited to the narrowest scope (read-only, per-customer, capped amounts).
Approval Fatigue
When humans are asked to approve everything, they stop reading. Reserve approvals for high-impact actions.
Blast Radius
How much damage a compromised component can do. Least privilege keeps it small.

⚖️ Compliance Wing

G1 · Shadow AI & AI Inventory: The Ghost Tool

Shadow AI
AI tools used without the organisation knowing or approving them: personal chatbot accounts, browser extensions, AI features vendors switch on by default.
AI Inventory
A living register of every AI system in use (built, bought or embedded), each with an owner, purpose, data and risk tier. You can't govern what you can't see.
AI Acceptable-Use Policy
Plain rules for staff: which AI tools are approved, which data may go into them, and what needs a human check. It reaches places technical controls can't, like a phone camera.
Sanctioned AI (the paved road)
Give people an approved tool that actually does the job, with enterprise terms. Most shadow AI is people solving real problems with no safe option.
AI-aware DLP
Data-loss prevention that inspects what is sent to any AI endpoint or extension by content, not just a blocklist of famous domains that is out of date by next week.

G2 · EU AI Act Risk Tiers: Mislabeled

EU AI Act
Regulation (EU) 2024/1689. A risk-based law: obligations scale with what an AI system is used for, from banned practices down to no obligations.
Prohibited Practices (Art. 5)
Banned uses such as social scoring, manipulative techniques causing harm, untargeted facial-image scraping and emotion recognition at work or school.
High-risk Areas (Annex III)
Uses like recruitment, creditworthiness, education, essential services, biometrics and law enforcement. They need risk management, data governance, logging, human oversight and conformity assessment.
Transparency Duties (Art. 50)
Tell people when they are talking to an AI, and mark AI-generated or deepfake content.
Classify by Intended Purpose
Risk tier comes from what a system does and to whom, not from how its owner describes it. Self-attestation forms are easy to game.

G3 · Bias & Impact Assessment: The Fair Shortlist

Algorithmic Bias
Systematically worse outcomes for some groups, often learned from historical decisions or introduced through features that stand in for protected characteristics.
Proxy Discrimination
Removing a protected attribute doesn't remove bias: postcode, career gaps or school names can encode it. "Fairness through unawareness" fails.
Disparate Impact & the Four-fifths Rule
Compare selection rates between groups. A ratio below 0.8 is the US EEOC rule of thumb for possible adverse impact. Measure outcomes, not intentions.
AI Impact Assessment
A structured look at who a system can harm and how, done before launch and after material changes, with mitigations and sign-off.
Contestability
People affected by an automated decision can get an explanation, a human review and a route to appeal.

G4 · Accountability & Documentation: Nobody's Model

Model Registry
The single source of truth for which model version is approved for which use. Production should only serve registered, signed artefacts, with no side doors.
Accountable Owner (RACI)
Every AI system has a named person accountable for it, plus a deputy, and ownership is reassigned when people leave. "The ML team" is not an owner.
Model Card
Documentation of a model's intended use, limits, evaluation results and fairness metrics. It must be generated per version, never copied forward.
Risk-tiered Change Control
Low-risk changes ship fast. High-risk models need independent review before promotion. One process for everything is either too slow or too weak.

G5 · Third-Party AI Risk: The Fine Print

Third-party AI Risk
Buying AI moves the model off your servers, but not the accountability. Vendor models, data use and subprocessors become your risk.
Data-use & No-training Terms
Read the definitions: a "no training on Customer Data" promise means nothing if transcripts are defined as "Usage Data".
Subprocessor Control
A list, advance notice of changes, and a right to object. Otherwise your data can end up anywhere.
Terms "as updated from time to time"
Online terms pulled into a contract by URL can change unilaterally. Pin the version, or require notice and consent for material changes.

G6 · Monitoring & AI Incident Response: Silent Drift

Model Drift
A model's behaviour or accuracy changes over time as data, users or the world shift, often slowly enough that nobody notices.
Segment-level Monitoring
Averages hide harm. Monitor outcomes per segment against a fixed baseline, so slow cumulative drift shows up, not just weekly jumps.
Kill Switch & Rollback
A tested, fast way to stop a model or return to the last approved version. You need it before the incident, not during.
AI Incident Response
Defined AI incident types, a severity matrix, owners, and notification timelines. Under the EU AI Act, providers of high-risk systems must report serious incidents to authorities.

G7 · ISO/IEC 42001 & NIST AI RMF: The Auditor Cometh

ISO/IEC 42001 (AIMS)
The certifiable AI management system standard: policy, roles, risk and impact assessment, operation, internal audit, management review and continual improvement, plus Annex A controls.
NIST AI RMF
A voluntary US framework with four functions: Govern (culture and accountability), Map (context and risks), Measure (assess and track) and Manage (treat and respond).
Statement of Applicability
The list of controls you claim to apply, and justified exclusions. Auditors test it against reality.
Paper Controls
Policies, committees and controls that exist in documents but not in practice. The most common audit finding, and why evidence beats intent.