AI Safety Learning Path

About this knowledge base

AI safety examines whether a system continues to protect confidentiality, integrity, availability, and human safety and autonomy during ordinary use, failure, misuse, and attack. Once an Agent connects a probabilistic model to private data, identities, and tools, a mistaken string of text can become a real-world side effect. This course follows a path from assets and trust boundaries, through injection and tool risks, to identity and supply chain controls, defense in depth, and red teaming and incident response.

This course does not treat a model refusal, a system prompt, or a single filter as a complete defense. Its central principle is that external content and model output are untrusted proposals; permissions, authorization, destinations, approval, and execution must be determined at testable boundaries outside the model.

Where this course fits in the overall route

This course belongs to the Safety and Governance knowledge domain and is a core course near the production-release gate in four role tracks. Earlier practice should still complete the overall route’s minimum security milestone. When studying the full course, apply the concrete system boundaries from Tool Calling, Agent Core, Workflow Automation, and Runtime Monitoring, together with Privacy Computing, Evaluation Framework, and AI Governance.

Terminology boundaries

  • AI security: resisting attacks, misuse, and failures in order to protect systems and assets.
  • AI safety: the broader effort to prevent a system’s behavior from harming people and society, including but not limited to security attacks.
  • privacy: whether data collection, use, sharing, and data-subject rights are protected.
  • governance: how accountability, policy, risk acceptance, oversight, and responsibility are organized.

The four areas support one another but are not substitutes. This is engineering education material; it is not legal, compliance, penetration-testing, or risk-acceptance advice.

Learning objectives

  • Identify assets, attackers, data flows, and trust boundaries from an intended use and unacceptable outcomes.
  • Distinguish direct and indirect prompt injection, jailbreaks, and memory/context poisoning, and limit their maximum impact.
  • Apply least functionality, least privilege, object-level authorization, destination controls, and egress controls to tools.
  • Establish supply-chain evidence for identities, models, data, prompts, MCP servers, Skills, dependencies, and deployment artifacts.
  • Combine guardrails, deterministic policy, sandboxes, parameter-bound approvals, audit, and emergency shutdown correctly.
  • Derive red-team sets, release gates, monitoring signals, and incident-response runbooks from a threat model.
  • Run a strict-contract, regression-tested, appropriately scoped offline threat-review project.

Prerequisites

  • Basic concepts in HTTP, JSON, Python, and identity authentication.
  • An understanding that Tool Calling generates candidate calls; it does not itself provide authorization.
  • An understanding that model output is probabilistic and that web pages, email, RAG, tool results, and other Agents may be untrusted.

01 Foundations and risks

  1. Assets, trust boundaries, and threat modeling — build verifiable risk records from losses, assets, and data flows.
  2. Prompt injection and indirect injection — understand why untrusted text cannot share control authority.
  3. Tool overreach and data exfiltration — turn security boundaries into authorization, destination, and side-effect controls.

02 Controls and governance

  1. Identity, least privilege, and the supply chain — constrain execution identities and trace every Agent component.
  2. Guardrails, sandboxes, and human approval — use controls outside the model to limit the blast radius of failures.
  3. Red teaming, monitoring, and incident response — continuously validate, detect, contain, recover, and learn.

03 Project and self-assessment

  1. Project: Offline Agent Threat Review — run a strict JSON contract, eleven teaching rules, and eighty tests.

Coverage of the 2026 Agentic Top 10

The OWASP Agentic Top 10 for 2026 can help identify omissions, but it does not replace a system-specific view of assets, attack paths, authorization boundaries, and validation evidence. The table only shows where this course enters each risk; reading a section does not mean the risk has been eliminated.

OWASP categoryMain entry points in this courseRequired end state to verify
ASI01 Agent Goal Hijack; ASI06 Memory & Context PoisoningPrompt injection and indirect injection, Red teaming and incident responseUntrusted content cannot expand capability; poisoned state can be isolated, removed, and rolled back.
ASI02 Tool Misuse & Exploitation; ASI05 Unexpected Code ExecutionTool overreach and data exfiltration, Sandboxes and approvalUnauthorized side effects are denied; code execution is constrained by explicit file, network, and resource boundaries.
ASI03 Identity & Privilege Abuse; ASI04 Agentic Supply Chain VulnerabilitiesIdentity, least privilege, and the supply chainEvery call is reauthorized using the actual subject, object, and state; runtime components can be traced, disabled, and rolled back.
ASI07 Insecure Inter-Agent Communication; ASI08 Cascading FailuresThreat modeling, Red teaming and incident responseInter-Agent messages have identity, integrity, and permission boundaries; errors do not amplify across workflows without a budget.
ASI09 Human-Agent Trust Exploitation; ASI10 Rogue AgentsSandboxes and approval, Red teaming and incident responsePeople can see and reject the real action; runtime boundary violations can be detected, disabled, and recovered.

An attack often spans several categories: for example, a malicious document can hijack a goal, misuse an overprivileged tool, spread through collaborating Agents, and induce human approval. Keep the full chain in the review instead of splitting it into ten disconnected checks merely to align with the Top 10.

For ASI07, continue with Identity, authorization, and cross-boundary trust for multi-Agent systems for protocol-level contracts and cross-boundary authorization. This course connects those failures back to threat modeling, red teaming, release gates, and incident response.

Suggested study rhythm

On the first pass, complete each exercise and draw a system diagram of your own. On the second, enter the real tools, identities, data, and dependencies of an existing Agent into the project contract. On the third, turn high-risk findings into negative tests, monitoring alerts, and incident runbooks. Do not only memorize OWASP category names.

Hands-on project

Start with Offline Agent Threat Review. The project is entirely offline. It provides vulnerable, hardened, and contract-error paths; exit codes distinguish a blocked business decision, a pass, and invalid input. Its tests cover strict parsing, complete references, eleven findings, decisions, evidence fingerprints, and the CLI.

Mastery checklist

  • Can derive the minimum capability from an intended use and draw identities, policies, tools, and data boundaries outside the model.
  • Can write an attack path with preconditions, steps, assets, impact, and an end state.
  • Can prevent external content from expanding tools, permissions, destinations, or approval.
  • Can distinguish the responsibilities of schema validation, authentication, authorization, approval, sandboxing, and guardrails.
  • Can trace and disable or roll back models, data, prompts, Skills/MCP, dependencies, and deployments.
  • Can create security regression gates from malicious inputs, tool end states, and data-flow assertions.
  • Can revoke access, isolate, preserve the minimum evidence, recover safely, and create a lasting regression during an incident.
  • Can explain the evidence boundary of a project PASS without claiming it equals a penetration test or absolute system security.

Relationship to other knowledge bases

  • Privacy Computing focuses on data use and privacy protection, but cannot replace authorization, supply-chain security, or incident response.
  • AI Governance determines risk responsibility, approval, oversight, and accountability; this course supplies verifiable technical evidence.
  • Evaluation Framework and Benchmark Design turn red-team paths into version gates and comparable experiments.
  • Runtime Monitoring carries signals for tool denials, identities, versions, unusual destinations, and emergency controls.
  • Multi-Agent Collaboration handles delegation, messaging, and cross-boundary identity contracts; this course closes the safety-control loop around their attack paths, end states, and incident evidence.

Primary references

Dynamic-fact boundary

OWASP, MITRE ATLAS, models, frameworks, and attack techniques continue to change. Versions and publication dates were checked against official material accessible on 2026-07-22. Before deployment, recheck the current versions, vendor documentation, applicable regional law, and organizational policy.