◇ OpenCyber Academy
Rapid course · Chapter 1 · English

Chapter 1 — AI and machine-learning security: foundations and decisions

Open, free learning for anyone who wants to protect people and technology. No account is required to read this text or its worked answers.

Chapter 1 — AI and machine-learning security: foundations and decisions

Lesson map

Lesson 01 published. Map, example, EX001.

flowchart TD
  N0["Learning outcomes"]
  N1["1.1 How AI systems work, briefly"]
  N2["1.2 How they fail or are attacked"]
  N3["1.3 Organising the decision"]
  N4["1.4 Options"]
  N5["1.5 Recording the decision"]
  N6["Synthesis"]
  N0 --> N1 --> N2 --> N3 --> N4 --> N5 --> N6
  N6 --> EX["Worked example"]
  EX --> Q["Exercise EX001"]

Logical drawing

flowchart LR
  N0["Learning outcomes"]
  N1["1.1 How AI systems work, briefly"]
  N2["1.2 How they fail or are attacked"]
  N3["1.3 Organising the decision"]
  N4["1.4 Options"]
  N5["1.5 Recording the decision"]
  N6["Synthesis"]
  N0 --> N1 --> N2 --> N3 --> N4 --> N5 --> N6 --> Q["EX001"]
[Learning outcomes]
    |
    v
[1.1 How AI systems work, briefly]
    |
    v
[1.2 How they fail or are attacked]
    |
    v
[1.3 Organising the decision]
    |
    v
[1.4 Options]
    |
    v
[1.5 Recording the decision]
    |
    v
[Synthesis]
    |
    v
[Worked example] --> [Exercise EX001]

Learning outcomes

You will (1) explain in plain terms how AI systems work and fail; (2) name the main attack types and the OWASP LLM Top 10 2025 risks; (3) use the NIST AI RMF functions to organise a decision; (4) compare adoption options including "not now"; and (5) record a decision with owners and review triggers.

1.1 How AI systems work, briefly

A machine-learning model learns patterns from examples and then makes predictions — ReceiptSort learns which receipts are travel, meals or supplies. A language model predicts text; an AI assistant wraps a language model with instructions (a system prompt), access to data (emails, documents) and tools (send email, create events). The assistant's behaviour depends on everything in its input, not only on your instructions.

For Tallis & Co this matters because InboxAide reads email written by people outside the firm. Any of that text becomes part of the assistant's input, alongside Omar's instructions and the firm's documents.

1.2 How they fail or are attacked

The OWASP Top 10 for LLM Applications 2025 names these risks: LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure, LLM03 Supply Chain, LLM04 Data and Model Poisoning, LLM05 Improper Output Handling, LLM06 Excessive Agency, LLM07 System Prompt Leakage, LLM08 Vector and Embedding Weaknesses, LLM09 Misinformation, LLM10 Unbounded Consumption.

1.3 Organising the decision

NIST AI 100-1 (AI RMF) gives four functions. Govern: who owns the decision and the risk? Map: what is the system for, who is affected, what data and tools does it touch? Measure: what evidence do we have about the risks? Manage: what controls, monitoring and plans for when things go wrong? The Generative AI Profile (NIST AI 600-1) lists risks specific to generative systems to include in the Map step.

Omar used the four functions as headings for his first page of notes on InboxAide.

1.4 Options

Always compare more than "yes or no": (a) not now; (b) limited pilot — read and draft only, a few volunteers, no client data; (c) wider use with controls — sending requires a human click, shared documents limited; (d) full use. Prefer reversible options and expand with evidence.

For InboxAide, option (b) can be stopped at any time and teaches the firm something either way, while option (d) would expose shared client folders from the first day. For ReceiptSort the options are narrower, because it has no tools and reads no outside text. Write each option with its main risk and what it would cost to reverse.

1.5 Recording the decision

Write: the question, options, evidence, risks to clients and staff, chosen option, owner, conditions and review triggers (date, incident, vendor change).

Omar's record for InboxAide fits on one page: the question was whether to adopt the assistant, the chosen option was a four-week draft-only pilot, the owner is the managing partner, and the triggers are the end of the pilot, any incident or a vendor feature change. Keep the record where the owner and IT can both find it, and update it when a trigger fires rather than writing a new one.

1.6 Worked example (synthetic Tallis & Co case)

Omar maps InboxAide. It reads all email — including emails from outsiders, which can contain injected text — and can send email and access shared client folders. The worst plausible harm: client tax files sent to an attacker. He compares options and recommends (b): a four-week pilot with ten staff, draft-only (no sending), access to their own mailboxes only, no shared client folders. Owner: managing partner. Review triggers: end of pilot, any incident, or vendor feature change. ReceiptSort is lower risk (no tools, no outside text input to a language model) and goes to a normal software evaluation.

1.7 Errors and limits

Each error leads to a weak decision. A vendor demo shows the product at its best, with friendly inputs and no outside text, so it says little about prompt injection in real email. Only yes or no hides cheaper, reversible options such as Omar's draft-only pilot. Without an owner and review triggers, nobody notices when the vendor changes a feature or an incident occurs. Check your own decision record for all three.

Exercises

Synthesis

AI systems are models wrapped with instructions, data and tools; they can be steered, leak or overreach. Organise decisions with Govern, Map, Measure and Manage, compare reversible options and record owners and triggers.

Continue studying — chapter 01 of 04

← Course home · Course chapter index · Chapter 02 (draft) →