{
  "route": "/ai-security/",
  "issued": "2026-10-13",
  "taxonomies": [
    "OWASP Top 10 for LLM Applications 2025",
    "OWASP Top 10 for Agentic Applications 2026",
    "OWASP AI Testing Guide v1",
    "MITRE ATLAS v2026.09"
  ],
  "axes": {
    "shape": [
      {
        "id": "assistant",
        "label": "Assistant over approved material"
      },
      {
        "id": "agent",
        "label": "Agent with tools"
      },
      {
        "id": "document",
        "label": "Document pipeline"
      },
      {
        "id": "voice",
        "label": "Voice assistant"
      },
      {
        "id": "model",
        "label": "Model you train and serve"
      }
    ],
    "deployment": [
      {
        "id": "eea-managed",
        "label": "YPAI-managed, EEA"
      },
      {
        "id": "customer-cloud",
        "label": "Your cloud tenant"
      },
      {
        "id": "air-gapped",
        "label": "Air-gapped, your hardware"
      }
    ],
    "data": [
      {
        "id": "public",
        "label": "Public and internal data"
      },
      {
        "id": "personal",
        "label": "Personal data"
      },
      {
        "id": "special",
        "label": "Special-category data"
      }
    ],
    "sector": [
      {
        "id": "general",
        "label": "General"
      },
      {
        "id": "financial",
        "label": "Financial services"
      },
      {
        "id": "health",
        "label": "Health"
      },
      {
        "id": "public",
        "label": "Public sector"
      },
      {
        "id": "product",
        "label": "Shipped as a product"
      }
    ]
  },
  "threats": [
    {
      "id": "TH-01",
      "name": "Prompt injection, direct and indirect",
      "refs": [
        "LLM01:2025",
        "ASI01:2026",
        "AML.T0051",
        "AML.T0093"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice",
        "model"
      ],
      "line": "Instructions arrive inside the content the system reads, a message, a retrieved page, a document, a tool result, and the model follows them.",
      "controls": [
        "C-APP-01",
        "C-MOD-04",
        "C-AGT-02",
        "C-OPS-01"
      ],
      "tests": [
        "TF-01",
        "TF-02"
      ]
    },
    {
      "id": "TH-02",
      "name": "Sensitive information disclosure",
      "refs": [
        "LLM02:2025",
        "AML.T0057",
        "AML.T0024"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice",
        "model"
      ],
      "line": "Personal data, secrets or another tenant’s records leave through an answer, a citation, a log or a rendered link.",
      "controls": [
        "C-DAT-01",
        "C-APP-02",
        "C-RUN-02",
        "C-MOD-04"
      ],
      "tests": [
        "TF-03",
        "TF-04"
      ]
    },
    {
      "id": "TH-03",
      "name": "Supply chain compromise",
      "refs": [
        "LLM03:2025",
        "ASI04:2026",
        "AML.T0010",
        "AML.T0109",
        "AML.T0115"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice",
        "model"
      ],
      "line": "A model file, a dataset, a dependency, an MCP server or a tool description carries code or instructions that run when loaded.",
      "controls": [
        "C-MOD-01",
        "C-AGT-05",
        "C-MOD-02"
      ],
      "tests": [
        "TF-09"
      ]
    },
    {
      "id": "TH-04",
      "name": "Data and model poisoning",
      "refs": [
        "LLM04:2025",
        "AML.T0020",
        "AML.T0070",
        "AML.T0071"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "model"
      ],
      "line": "Planted documents in the retrieval corpus, or a few hundred poisoned training samples, install a trigger the system obeys later.",
      "controls": [
        "C-DAT-02",
        "C-DAT-03",
        "C-OPS-03"
      ],
      "tests": [
        "TF-08",
        "TF-10"
      ]
    },
    {
      "id": "TH-05",
      "name": "Improper output handling",
      "refs": [
        "LLM05:2025",
        "ASI05:2026",
        "AML.T0053"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice",
        "model"
      ],
      "line": "Model output reaches a shell, a database, a browser or a tool without being treated as untrusted input.",
      "controls": [
        "C-APP-02",
        "C-RUN-01",
        "C-AGT-01"
      ],
      "tests": [
        "TF-05"
      ]
    },
    {
      "id": "TH-06",
      "name": "Excessive agency and tool misuse",
      "refs": [
        "LLM06:2025",
        "ASI02:2026",
        "AML.T0053",
        "AML.T0086",
        "AML.T0101"
      ],
      "shapes": [
        "agent",
        "voice"
      ],
      "line": "The agent holds more tools, scope or autonomy than the task needs, and one hijacked step sends, pays, deletes or exfiltrates.",
      "controls": [
        "C-AGT-01",
        "C-AGT-02",
        "C-AGT-04",
        "C-AGT-07"
      ],
      "tests": [
        "TF-06",
        "TF-02"
      ]
    },
    {
      "id": "TH-07",
      "name": "System prompt and configuration disclosure",
      "refs": [
        "LLM07:2025",
        "AML.T0056",
        "AML.T0084",
        "AML.T0133"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice",
        "model"
      ],
      "line": "The system prompt, the tool list or the agent configuration is extracted and used to plan the next attack.",
      "controls": [
        "C-APP-03",
        "C-RUN-05",
        "C-MOD-04"
      ],
      "tests": [
        "TF-04"
      ]
    },
    {
      "id": "TH-08",
      "name": "Retrieval and embedding weaknesses",
      "refs": [
        "LLM08:2025",
        "AML.T0070",
        "AML.T0082"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document"
      ],
      "line": "The vector store returns another user’s documents, a planted entry or an embedded credential because access control stopped at the application.",
      "controls": [
        "C-DAT-02",
        "C-DAT-01",
        "C-APP-04"
      ],
      "tests": [
        "TF-08",
        "TF-03"
      ]
    },
    {
      "id": "TH-09",
      "name": "Misinformation and ungrounded answers",
      "refs": [
        "LLM09:2025",
        "AML.T0130"
      ],
      "shapes": [
        "assistant",
        "document",
        "voice"
      ],
      "line": "The system states something its sources do not say, or an adversary biases what it recommends, and a person acts on it.",
      "controls": [
        "C-APP-04",
        "C-OPS-03"
      ],
      "tests": [
        "TF-07"
      ]
    },
    {
      "id": "TH-10",
      "name": "Unbounded consumption",
      "refs": [
        "LLM10:2025",
        "AML.T0029",
        "AML.T0034"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice",
        "model"
      ],
      "line": "Requests sized to exhaust context, reasoning time, tokens or budget take the service down or run up the bill.",
      "controls": [
        "C-APP-05",
        "C-OPS-02"
      ],
      "tests": [
        "TF-11"
      ]
    },
    {
      "id": "TH-11",
      "name": "Memory and context poisoning",
      "refs": [
        "ASI06:2026",
        "AML.T0080"
      ],
      "shapes": [
        "agent",
        "assistant"
      ],
      "line": "An instruction planted in one session is written to memory and shapes every later session.",
      "controls": [
        "C-APP-06",
        "C-APP-01"
      ],
      "tests": [
        "TF-02",
        "TF-06"
      ]
    },
    {
      "id": "TH-12",
      "name": "Identity and privilege abuse",
      "refs": [
        "ASI03:2026",
        "AML.T0055",
        "AML.T0083",
        "AML.T0098"
      ],
      "shapes": [
        "agent",
        "voice"
      ],
      "line": "The agent runs with a shared or over-broad credential, a token is passed through to a tool, or a tool harvests the credentials it is handed.",
      "controls": [
        "C-AGT-03",
        "C-RUN-05",
        "C-RUN-01"
      ],
      "tests": [
        "TF-06",
        "TF-12"
      ]
    },
    {
      "id": "TH-13",
      "name": "Tool and MCP poisoning",
      "refs": [
        "ASI04:2026",
        "ASI02:2026",
        "AML.T0110",
        "AML.T0099"
      ],
      "shapes": [
        "agent"
      ],
      "line": "A tool description, a tool result or an MCP server changes after approval and carries instructions the model obeys.",
      "controls": [
        "C-AGT-05",
        "C-APP-01",
        "C-AGT-01"
      ],
      "tests": [
        "TF-09",
        "TF-02"
      ]
    },
    {
      "id": "TH-14",
      "name": "Insecure inter-agent communication",
      "refs": [
        "ASI07:2026",
        "ASI08:2026",
        "AML.T0118"
      ],
      "shapes": [
        "agent"
      ],
      "line": "One agent trusts another agent’s output as an instruction, and a failure or a hijack cascades across the chain.",
      "controls": [
        "C-AGT-06",
        "C-AGT-07",
        "C-APP-01"
      ],
      "tests": [
        "TF-06"
      ]
    },
    {
      "id": "TH-15",
      "name": "Human trust exploitation",
      "refs": [
        "ASI09:2026",
        "ASI10:2026",
        "AML.T0131",
        "AML.T0100"
      ],
      "shapes": [
        "assistant",
        "agent",
        "voice"
      ],
      "line": "The system is made to present a crafted link, a false confirmation or a confident instruction that a person follows.",
      "controls": [
        "C-APP-02",
        "C-AGT-04",
        "C-APP-04"
      ],
      "tests": [
        "TF-05",
        "TF-07"
      ]
    },
    {
      "id": "TH-16",
      "name": "Model extraction and evasion",
      "refs": [
        "AML.T0024",
        "AML.T0015",
        "AML.T0043"
      ],
      "shapes": [
        "model"
      ],
      "line": "Query patterns reconstruct the model or its training data, or crafted inputs make it misclassify on demand.",
      "controls": [
        "C-MOD-03",
        "C-APP-05",
        "C-OPS-02"
      ],
      "tests": [
        "TF-10",
        "TF-12"
      ]
    },
    {
      "id": "TH-17",
      "name": "Audio-channel injection and recording exposure",
      "refs": [
        "AML.T0129",
        "LLM01:2025",
        "LLM02:2025"
      ],
      "shapes": [
        "voice"
      ],
      "line": "Instructions hidden in audio or in a transcript steer the assistant, and recordings become a retention and access liability.",
      "controls": [
        "C-APP-07",
        "C-APP-01",
        "C-DAT-01"
      ],
      "tests": [
        "TF-01",
        "TF-03"
      ]
    }
  ],
  "controls": [
    {
      "id": "C-DAT-01",
      "layer": "data",
      "name": "Classification and minimisation at ingest",
      "mechanism": "Every field that can reach a model is classified (public, personal, special) and reduced to what the purpose needs before the model sees it. Pseudonymisation runs where the purpose allows; tenant and user scope travel with each record into retrieval.",
      "spec": "Each data flow into the system has a named purpose, a legal basis where personal data is involved and a retention period, recorded before the first run.",
      "evidence": "Data map with purpose, basis and retention per flow; DPIA input where Article 35 applies.",
      "refs": [
        "GDPR Art 5(1)(c)",
        "GDPR Art 25",
        "GDPR Art 35",
        "EU AI Act Art 10",
        "AITG-DAT-05"
      ]
    },
    {
      "id": "C-DAT-02",
      "layer": "data",
      "name": "Retrieval corpus provenance and poisoning screen",
      "mechanism": "Every document entering retrieval carries a source, a content hash and the identity that admitted it. Corpus changes are diffed and screened for instruction-shaped content; canary entries detect unexpected reads; access filters are applied at query time from the user’s own permissions, never from the model.",
      "spec": "Zero documents in the corpus without source and hash; permission-aware retrieval verified on the acceptance set with cross-tenant queries.",
      "evidence": "Corpus manifest (source, hash, admitter, date) and the cross-tenant retrieval test record.",
      "refs": [
        "LLM04:2025",
        "LLM08:2025",
        "AML.T0070",
        "AML.T0071",
        "AITG-APP-08",
        "AITG-DAT-03"
      ],
      "shapes": [
        "assistant",
        "agent",
        "document"
      ]
    },
    {
      "id": "C-DAT-03",
      "layer": "data",
      "name": "Training data lineage and poisoning screen",
      "mechanism": "Datasets used for fine-tuning or training ship with a machine-readable manifest (Croissant 1.1 or SPDX 3.0 data profile), a licence record per source and a poisoning screen that samples for trigger patterns at a fixed sample count. A held-out trigger set is run against the trained model before release.",
      "spec": "Every training set has a manifest and a licence record; the trigger set runs on every trained version and the result is recorded.",
      "evidence": "Dataset manifest, licence register, poisoning screen report and the trigger-set run per model version.",
      "refs": [
        "EU AI Act Art 10",
        "AML.T0020",
        "AITG-MOD-03",
        "AITG-INF-05",
        "AITG-DAT-01"
      ],
      "shapes": [
        "model"
      ]
    },
    {
      "id": "C-DAT-04",
      "layer": "data",
      "name": "Zero retention and residency at the model endpoint",
      "mechanism": "Model endpoints run with retention set to none and abuse logging off, enforced by organisation policy rather than by request flags, inside an EEA data zone. Where an endpoint cannot meet that, it is not in the allowlist.",
      "spec": "Retention mode and region are read back from the provider’s own configuration API and recorded per endpoint.",
      "evidence": "Endpoint register with provider, region, retention mode and the policy that enforces it.",
      "refs": [
        "GDPR Art 28",
        "GDPR Art 44",
        "AITG-DAT-05"
      ],
      "deployments": [
        "eea-managed",
        "customer-cloud"
      ]
    },
    {
      "id": "C-MOD-01",
      "layer": "model",
      "name": "Artefact scanning and signature verification before load",
      "mechanism": "Model files are scanned for deserialisation payloads (pickle, Keras, TensorFlow, GGUF templates, ONNX custom ops) and architectural backdoors, with unparseable files failing closed. Artefacts are signed at publish (OpenSSF Model Signing, Sigstore) and verified at load; an ML-BOM (CycloneDX 1.7) lists every model, dataset and dependency.",
      "spec": "No model artefact loads without a passing scan and a verified signature; the ML-BOM is regenerated on every change.",
      "evidence": "Scan verdicts, signature bundles, ML-BOM per release.",
      "refs": [
        "LLM03:2025",
        "AML.T0010",
        "AML.T0115",
        "AITG-INF-01"
      ]
    },
    {
      "id": "C-MOD-02",
      "layer": "model",
      "name": "Pinned versions and change control",
      "mechanism": "Model, system prompt, tool set, retrieval index, policy set and classifier thresholds are versioned together as one configuration. A change to any of them produces a new version, and the release gate runs against it before it serves traffic.",
      "spec": "Every served request is attributable to one configuration version; every version has a gate record.",
      "evidence": "Configuration ledger with version, change, author and gate result.",
      "refs": [
        "ISO/IEC 42001:2023 A.6",
        "EU AI Act Art 9",
        "EU AI Act Art 12"
      ]
    },
    {
      "id": "C-MOD-03",
      "layer": "model",
      "name": "Extraction and evasion resistance",
      "mechanism": "The inference API carries per-identity rate and query-pattern limits, output precision controls and an extraction detector on query sequences. Adversarial robustness is measured on a held-out evasion set per model version; where the model class allows it, outputs carry a fingerprint.",
      "spec": "Evasion rate and extraction detector recall measured and recorded per version against the acceptance set.",
      "evidence": "Robustness report per version; API limit configuration; detector alert record.",
      "refs": [
        "AML.T0024",
        "AML.T0015",
        "AML.T0043",
        "EU AI Act Art 15(5)",
        "AITG-APP-09",
        "AITG-MOD-01",
        "AITG-MOD-04"
      ],
      "shapes": [
        "model"
      ]
    },
    {
      "id": "C-MOD-04",
      "layer": "model",
      "name": "Classifier stack, measured per language",
      "mechanism": "Input and output classifiers for injection, jailbreak, harmful content, personal data, secrets, system-prompt leakage and unknown links run in a monitor-then-block rollout. Thresholds are set per deployment from measured precision and recall, and the measurement is repeated per language the system serves, Norwegian included, rather than assumed from English figures.",
      "spec": "Precision and recall per detector and per language recorded on the acceptance set before blocking is switched on; thresholds versioned.",
      "evidence": "Detector measurement sheet per language; threshold configuration version; block and monitor logs.",
      "refs": [
        "LLM01:2025",
        "LLM02:2025",
        "LLM07:2025",
        "AITG-APP-01",
        "AITG-APP-03",
        "AITG-APP-12"
      ]
    },
    {
      "id": "C-APP-01",
      "layer": "application",
      "name": "Trust-boundary marking of every span",
      "mechanism": "Every span the model reads is marked with its provenance: user, retrieved document, tool result, peer agent, email, transcript. Untrusted spans are delimited so the model and the policy evaluator both see them as data. The marks travel with the span into every later step, so a value derived from an untrusted span stays untrusted.",
      "spec": "Zero unmarked spans in any model context on the acceptance set, verified by trace inspection.",
      "evidence": "Context assembly specification; trace lines with span provenance per request.",
      "refs": [
        "LLM01:2025",
        "ASI01:2026",
        "ASI06:2026",
        "AITG-APP-02"
      ]
    },
    {
      "id": "C-APP-02",
      "layer": "application",
      "name": "Output handling by sink",
      "mechanism": "Model output is untrusted input to whatever consumes it. Rendering encodes by sink; links and images render only for allowlisted domains; generated SQL, shell and code never execute outside a sandbox; structured outputs are schema-validated before use.",
      "spec": "Every output sink has a named handler; link rendering outside the allowlist is zero on the acceptance set.",
      "evidence": "Sink register; rendering policy; test record for link and code sinks.",
      "refs": [
        "LLM05:2025",
        "ASI05:2026",
        "LLM02:2025",
        "AITG-APP-05"
      ]
    },
    {
      "id": "C-APP-03",
      "layer": "application",
      "name": "Prompt and secret separation",
      "mechanism": "No credential, key or internal hostname lives in a prompt. The system prompt is treated as disclosable and holds nothing whose disclosure would matter; a leakage detector on output catches verbatim prompt contents.",
      "spec": "Zero secrets in prompt material, checked by a secret scanner on every prompt version.",
      "evidence": "Prompt version register with scanner result; leakage detector configuration.",
      "refs": [
        "LLM07:2025",
        "AML.T0056",
        "AITG-APP-07"
      ]
    },
    {
      "id": "C-APP-04",
      "layer": "application",
      "name": "Grounding and citation",
      "mechanism": "Answers carry the source spans they rest on; an ungrounded-claim detector scores each answer against its sources; empty retrieval produces a stated non-answer and a handoff rather than an invention.",
      "spec": "Grounding score threshold and the share of answers with a citation measured per release.",
      "evidence": "Grounding measurement per release; citation coverage report.",
      "refs": [
        "LLM09:2025",
        "AITG-APP-11",
        "AITG-APP-13"
      ],
      "shapes": [
        "assistant",
        "document",
        "voice",
        "agent"
      ]
    },
    {
      "id": "C-APP-05",
      "layer": "application",
      "name": "Consumption limits",
      "mechanism": "Per-identity budgets for requests, tokens, reasoning time and cost; context-size caps; queue backpressure; a kill switch per tenant. Spend is read from the provider meter, not estimated.",
      "spec": "Every identity has a budget; budget exhaustion is a logged event, not an outage.",
      "evidence": "Budget configuration per identity; consumption dashboard; exhaustion event log.",
      "refs": [
        "LLM10:2025",
        "AML.T0029",
        "AML.T0034",
        "AITG-INF-02"
      ]
    },
    {
      "id": "C-APP-06",
      "layer": "application",
      "name": "Session and memory governance",
      "mechanism": "Memory writes are validated against a schema, scoped to one identity and given an expiry. Nothing read from an untrusted span is written to long-term memory without a human or a policy decision. Cross-session isolation is a test, not an assumption.",
      "spec": "Cross-session leakage is zero on the acceptance set; every memory write has an identity scope and an expiry.",
      "evidence": "Memory schema; isolation test record; memory write log.",
      "refs": [
        "ASI06:2026",
        "AML.T0080"
      ],
      "shapes": [
        "agent",
        "assistant"
      ]
    },
    {
      "id": "C-APP-07",
      "layer": "application",
      "name": "Voice channel controls",
      "mechanism": "Speaker identity is never the sole authentication for an action. Audio passes an injection classifier and the transcript is marked as an untrusted span. Recording, retention and access follow the sector rule for the deployment, written into the architecture rather than left to configuration.",
      "spec": "Every recording has a retention period and an access list recorded with it; every action keeps its own authentication step.",
      "evidence": "Recording retention register; channel authentication design; transcript provenance in traces.",
      "refs": [
        "AML.T0129",
        "LLM01:2025",
        "AITG-APP-02"
      ],
      "shapes": [
        "voice"
      ]
    },
    {
      "id": "C-AGT-01",
      "layer": "agent",
      "name": "Default-deny tool policy at the gateway",
      "mechanism": "Every tool call passes a policy gateway that denies by default. Policies are written in a policy language with formal semantics (Cedar class), where a forbid overrides any permit and the policy set can be analysed for what it allows before it is deployed. The model never sees a tool that the policy would not permit.",
      "spec": "Zero tool executions outside the policy on the acceptance set; policy set versioned and analysed before each release.",
      "evidence": "Policy set per version with the analysis result; gateway decision log.",
      "refs": [
        "LLM06:2025",
        "ASI02:2026",
        "AML.T0053",
        "AITG-APP-06",
        "AITG-INF-03"
      ],
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "C-AGT-02",
      "layer": "agent",
      "name": "Argument provenance and flow control",
      "mechanism": "Arguments carry the provenance of the span they came from. A recipient, a destination, an amount or a path that derives from an untrusted span cannot reach a tool that sends, pays, deletes or exfiltrates (CaMeL and FIDES class information-flow control). The Rule of Two is checked per session: untrusted input, sensitive data and external effect never meet without a human.",
      "spec": "Zero high-impact tool executions with untrusted-derived arguments on the acceptance set.",
      "evidence": "Flow policy; per-request taint trace; acceptance set run record.",
      "refs": [
        "ASI01:2026",
        "AML.T0086",
        "AML.T0101",
        "AITG-APP-06"
      ],
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "C-AGT-03",
      "layer": "agent",
      "name": "Per-agent identity and least privilege",
      "mechanism": "Each agent is its own principal with its own credentials. Calls on behalf of a person carry both the person and the agent in the token; tokens are audience-bound (RFC 8707), short-lived and proof-of-possession where the resource supports it. Tokens are never passed through to a downstream tool. MCP servers follow the 2026-07-28 authorisation specification.",
      "spec": "No shared credentials; every token has an audience, a lifetime and a logged issuer; passthrough is impossible by construction.",
      "evidence": "Identity register per agent; token policy; authorisation server configuration.",
      "refs": [
        "ASI03:2026",
        "AML.T0055",
        "AML.T0083",
        "AML.T0098",
        "MCP authorization 2026-07-28"
      ],
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "C-AGT-04",
      "layer": "agent",
      "name": "Approval bound to the request",
      "mechanism": "High-impact actions pause for a human approval that is bound to the pending request id and session, so a replayed or forged approval is ignored. Destructive paths are never auto-approved. The approver sees the arguments, their provenance and the policy result before deciding.",
      "spec": "Every high-impact execution has an approval record naming request id, approver and time.",
      "evidence": "Approval log; request binding design; replayed-approval test record.",
      "refs": [
        "ASI09:2026",
        "LLM06:2025",
        "AITG-APP-06"
      ],
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "C-AGT-05",
      "layer": "agent",
      "name": "Tool and MCP server control",
      "mechanism": "MCP servers run from signed images pinned by digest. Tool descriptions are hashed and pinned at approval; a changed description, a new tool or a changed schema is a blocked event until re-approved. Descriptions and tool results are scanned for instruction-shaped content before they reach the model.",
      "spec": "Zero tools serving without a pinned description hash; every change is a logged re-approval.",
      "evidence": "Tool register with description hashes; image digests; change log.",
      "refs": [
        "ASI04:2026",
        "AML.T0110",
        "AML.T0109",
        "AML.T0099",
        "AITG-INF-01"
      ],
      "shapes": [
        "agent"
      ]
    },
    {
      "id": "C-AGT-06",
      "layer": "agent",
      "name": "Inter-agent trust",
      "mechanism": "Agents authenticate to each other with signed agent cards and mutual TLS. A peer agent’s output enters the context as an untrusted span, never as an instruction. Delegation depth and fan-out are capped per session.",
      "spec": "Every inter-agent message has a verified sender; delegation depth cap enforced and logged.",
      "evidence": "Agent card register; channel configuration; delegation trace.",
      "refs": [
        "ASI07:2026",
        "ASI08:2026",
        "AML.T0118"
      ],
      "shapes": [
        "agent"
      ]
    },
    {
      "id": "C-AGT-07",
      "layer": "agent",
      "name": "Cross-call flow rules, tripwires and limits",
      "mechanism": "Policies read the session history, not only the call: a read of sensitive data followed by an external send is a rule, not a hope. Canary records and tokens raise an alarm when touched. Sessions have lifetime caps, step caps and a kill switch.",
      "spec": "Flow rules cover every pair of sensitive read and external effect in the tool set; canaries verified live per release.",
      "evidence": "Flow rule set; canary register; session limit configuration.",
      "refs": [
        "ASI08:2026",
        "ASI10:2026",
        "AML.T0086"
      ],
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "C-RUN-01",
      "layer": "runtime",
      "name": "Execution sandbox per session",
      "mechanism": "Anything the model can make run, code, browsers, tools, runs in a per-session sandbox (microVM, gVisor or OS sandbox class) with default-deny egress, no credentials inside, memory sanitised at teardown and a lifetime cap. Credentials are injected by a broker outside the sandbox.",
      "spec": "No credential readable from inside the sandbox; egress outside the allowlist is zero on the acceptance set.",
      "evidence": "Sandbox profile; egress allowlist; credential broker design; escape test record.",
      "refs": [
        "ASI05:2026",
        "AML.T0098",
        "AITG-INF-04"
      ],
      "shapes": [
        "agent",
        "document",
        "assistant"
      ]
    },
    {
      "id": "C-RUN-02",
      "layer": "runtime",
      "name": "Egress and link control",
      "mechanism": "Outbound connections resolve against an allowlist with checks that resist DNS rebinding; metadata, loopback and link-local addresses are blocked. Links in output outside the allowlist are flagged or removed before rendering.",
      "spec": "Egress allowlist versioned; zero unlisted outbound connections on the acceptance set.",
      "evidence": "Egress policy; proxy decision log; link rendering test record.",
      "refs": [
        "AML.T0025",
        "AML.T0086",
        "LLM02:2025",
        "AITG-DAT-02"
      ]
    },
    {
      "id": "C-RUN-03",
      "layer": "runtime",
      "name": "Key custody and confidential inference",
      "mechanism": "Encryption keys are customer-managed in an HSM. Where the case requires it, inference runs in a confidential environment (CPU trusted execution plus GPU confidential computing) and keys are released only after attestation against the reference measurements.",
      "spec": "Key custody named per deployment; attestation evidence retained per node where confidential inference is in scope.",
      "evidence": "Key custody record; attestation reports where applicable.",
      "refs": [
        "GDPR Art 32",
        "ISO/IEC 27001:2022 A.8.24"
      ]
    },
    {
      "id": "C-RUN-04",
      "layer": "runtime",
      "name": "Residency enforcement",
      "mechanism": "Organisation policy denies deployments that route outside the agreed region; the EEA data zone is the default and the air-gapped mode has no outbound path at all. Human review of any logged content happens inside the EEA.",
      "spec": "Region and routing read from the provider’s configuration and recorded; deny policy in place before the first request.",
      "evidence": "Residency policy; region readback; sub-processor register on request.",
      "refs": [
        "GDPR Chapter V",
        "GDPR Art 28"
      ]
    },
    {
      "id": "C-RUN-05",
      "layer": "runtime",
      "name": "Secrets and configuration protection",
      "mechanism": "Agent configuration is not readable by the model or from inside the sandbox. Secrets live in a vault and are brokered per call; configuration changes are signed, versioned and logged.",
      "spec": "Zero secrets in configuration files or prompts; every configuration change has an author and a signature.",
      "evidence": "Vault policy; configuration change log; secret scanner results.",
      "refs": [
        "AML.T0081",
        "AML.T0083",
        "AML.T0084",
        "AML.T0133"
      ]
    },
    {
      "id": "C-OPS-01",
      "layer": "operations",
      "name": "Hash-chained trace",
      "mechanism": "Every model call, retrieval, tool call, policy decision and approval is logged with its span provenance, configuration version and a chained SHA-256 digest, so a line cannot be removed or reordered without breaking every later digest. Traces follow the OpenTelemetry GenAI conventions at a pinned version and export to the customer’s SIEM.",
      "spec": "Chain verifies on 100% of acceptance runs; retention at least six months where EU AI Act Article 19 applies, and per the customer’s policy otherwise.",
      "evidence": "Trace schema; chain verification record; SIEM export configuration.",
      "refs": [
        "EU AI Act Art 12",
        "EU AI Act Art 19",
        "GDPR Art 30",
        "ISO/IEC 42001:2023 A.6.2.8"
      ]
    },
    {
      "id": "C-OPS-02",
      "layer": "operations",
      "name": "Detection and response for AI failure modes",
      "mechanism": "Detections on injection attempts, policy denials, anomalous tool sequences, extraction patterns, cost spikes and canary hits feed the customer’s SIEM. Runbooks exist for each AI-specific incident class, with the legal clocks that apply to the case written in.",
      "spec": "Each detection has a runbook, an owner and a tested notification path; notification inside the legal clocks of the case.",
      "evidence": "Detection rule set; runbooks; tabletop record.",
      "refs": [
        "GDPR Art 33",
        "EU AI Act Art 73",
        "OWASP ASI08:2026"
      ]
    },
    {
      "id": "C-OPS-03",
      "layer": "operations",
      "name": "Release gate and regression suite",
      "mechanism": "The customer owns an evaluation suite in CI that runs the attack families of the case against every configuration version. Attack success rate per family is reported with sample size and interval, against a floor set in the acceptance criteria before the first run.",
      "spec": "The gate runs on every change; a floor is never moved downward after it is set.",
      "evidence": "Suite repository; gate run records per version; floor history.",
      "refs": [
        "EU AI Act Art 9",
        "EU AI Act Art 15",
        "ISO/IEC 42001:2023 A.6.2.4",
        "AITG-APP-01"
      ]
    },
    {
      "id": "C-OPS-04",
      "layer": "operations",
      "name": "Continuous red teaming",
      "mechanism": "Adaptive multi-turn campaigns run against the live configuration on a quarterly cadence and after any material change, with the attack corpus maintained in every language the system serves, Norwegian included. Findings ship as reproducible traces with model version, configuration version, run count and success rate; a retest is part of every campaign.",
      "spec": "Campaign cadence and languages named in the acceptance criteria; every finding reproducible from its trace.",
      "evidence": "Campaign reports with traces; retest records; corpus register per language.",
      "refs": [
        "NIST AI 600-1 MS-2.7",
        "EU AI Act Art 15",
        "AITG-APP-01",
        "AITG-APP-02"
      ]
    },
    {
      "id": "C-OPS-05",
      "layer": "operations",
      "name": "Evidence pack with a manifest",
      "mechanism": "The threat register, control status, test records, configuration ledger, trace schema, incident runbooks and the regulatory documentation of the case (technical documentation under Annex IV where high-risk, fundamental-rights and data-protection impact inputs, system card, control mapping to ISO/IEC 42001 and 27001, AI-CAIQ answers) ship as one pack with a manifest of SHA-256 digests.",
      "spec": "Every artefact in the pack is in the manifest; the manifest digest is quoted in the acceptance record.",
      "evidence": "The pack and its manifest.",
      "refs": [
        "EU AI Act Annex IV",
        "EU AI Act Art 27",
        "GDPR Art 35",
        "ISO/IEC 42001:2023",
        "CSA AICM v1.1"
      ]
    }
  ],
  "tests": [
    {
      "id": "TF-01",
      "name": "Direct injection and jailbreak",
      "aitg": [
        "AITG-APP-01"
      ],
      "method": "Template, encoded and optimised attacks, single and multi-turn, in every language served; attack success rate per strategy with run count."
    },
    {
      "id": "TF-02",
      "name": "Indirect injection through content and tools",
      "aitg": [
        "AITG-APP-02",
        "AITG-APP-06"
      ],
      "method": "Instructions planted in retrieved documents, tool results, emails, transcripts and peer-agent output; measured as high-impact executions reached.",
      "shapes": [
        "assistant",
        "agent",
        "document",
        "voice"
      ]
    },
    {
      "id": "TF-03",
      "name": "Sensitive data and cross-tenant leakage",
      "aitg": [
        "AITG-APP-03",
        "AITG-DAT-02"
      ],
      "method": "Extraction prompts, cross-tenant retrieval queries, link and image exfiltration attempts; measured as records returned that the identity may not see."
    },
    {
      "id": "TF-04",
      "name": "System prompt and configuration disclosure",
      "aitg": [
        "AITG-APP-07",
        "AITG-APP-04"
      ],
      "method": "Extraction set against prompt, tool list and configuration; measured as verbatim or paraphrased contents returned."
    },
    {
      "id": "TF-05",
      "name": "Unsafe output and sink handling",
      "aitg": [
        "AITG-APP-05"
      ],
      "method": "Outputs aimed at each sink: rendered links, code, SQL, structured fields; measured as sink executions outside policy."
    },
    {
      "id": "TF-06",
      "name": "Agent behaviour limits and privilege",
      "aitg": [
        "AITG-APP-06",
        "AITG-INF-03",
        "AITG-INF-04"
      ],
      "method": "Goal hijack, tool misuse, scope escalation, replayed approvals, inter-agent compromise in a mock-tool environment; measured as policy-breaking executions.",
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "TF-07",
      "name": "Grounding, hallucination and over-reliance",
      "aitg": [
        "AITG-APP-11",
        "AITG-APP-13",
        "AITG-APP-10"
      ],
      "method": "Questions with and without a source in the corpus; measured as ungrounded claims and the share of answers with citations.",
      "shapes": [
        "assistant",
        "document",
        "voice",
        "agent"
      ]
    },
    {
      "id": "TF-08",
      "name": "Retrieval and embedding manipulation",
      "aitg": [
        "AITG-APP-08",
        "AITG-DAT-03"
      ],
      "method": "Planted entries, near-duplicate collisions and embedded credentials in the corpus; measured as poisoned entries that reach an answer.",
      "shapes": [
        "assistant",
        "agent",
        "document"
      ]
    },
    {
      "id": "TF-09",
      "name": "Supply chain and tool integrity",
      "aitg": [
        "AITG-INF-01"
      ],
      "method": "Malicious model files, changed tool descriptions, unsigned images, hallucinated package names; measured as artefacts that load or tools that serve without verification."
    },
    {
      "id": "TF-10",
      "name": "Training data poisoning and model backdoors",
      "aitg": [
        "AITG-MOD-03",
        "AITG-INF-05",
        "AITG-DAT-01"
      ],
      "method": "Trigger-set runs against each trained version and membership inference on the training set; measured as triggers that fire and records that can be inferred.",
      "shapes": [
        "model"
      ]
    },
    {
      "id": "TF-11",
      "name": "Resource exhaustion",
      "aitg": [
        "AITG-INF-02"
      ],
      "method": "Oversized contexts, reasoning loops, parallel floods; measured as budget events and service degradation per identity."
    },
    {
      "id": "TF-12",
      "name": "Extraction, evasion and credential exposure",
      "aitg": [
        "AITG-APP-09",
        "AITG-MOD-01",
        "AITG-MOD-04",
        "AITG-INF-06"
      ],
      "method": "Query-sequence extraction, adversarial evasion sets and credential-reach attempts from inside the sandbox; measured per model version.",
      "shapes": [
        "model",
        "agent"
      ]
    }
  ],
  "gate": [
    {
      "id": "G-01",
      "text": "Zero high-impact tool executions from injected instructions on the acceptance set.",
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "G-02",
      "text": "Zero secrets and zero system-prompt contents returned on the extraction set."
    },
    {
      "id": "G-03",
      "text": "Attack success rate per family reported with sample size and interval. The floor is set in the acceptance criteria before the first run and is never moved downward."
    },
    {
      "id": "G-04",
      "text": "Every model artefact scanned and signature-verified before load; an unparseable file fails closed."
    },
    {
      "id": "G-05",
      "text": "The trace chain verifies on 100% of acceptance runs."
    },
    {
      "id": "G-06",
      "text": "The gate reruns on every model, prompt, tool, retrieval or policy change before the version serves traffic."
    }
  ],
  "obligations": [
    {
      "id": "OB-01",
      "name": "EU AI Act, Regulation (EU) 2024/1689 as amended by (EU) 2026/1744",
      "applies": "Role mapping (provider or deployer) and the articles that follow from the system’s classification.",
      "control": "Risk management (Art 9), data governance (Art 10), logging (Art 12), human oversight (Art 14), accuracy and robustness including the attacks named in Art 15(5), deployer duties (Art 26), transparency (Art 50) and the serious-incident process (Art 73) are mapped to the controls above. Technical documentation follows Annex IV where the system is high-risk.",
      "evidence": "Role and obligation map; Annex IV documentation where high-risk; incident procedure with the Art 73 clocks.",
      "clocks": [
        "Art 50 and general application from 2 Aug 2026",
        "Annex III high-risk obligations from 2 Dec 2027",
        "Annex I high-risk obligations from 2 Aug 2028",
        "Art 73 serious incident: 15 days, 10 days on death, 2 days on widespread harm or critical infrastructure",
        "Norway: incorporation pending, bill to the Storting spring 2027"
      ]
    },
    {
      "id": "OB-02",
      "name": "GDPR",
      "applies": "Personal data reaches the system.",
      "control": "Minimisation and protection by design (Art 5, 25), processor terms (Art 28), security of processing mapped per control (Art 32), breach notification (Art 33), impact assessment where required (Art 35), automated decisions (Art 22) and transfers (Chapter V, SCCs for any customer-directed transfer outside the EEA).",
      "evidence": "Article 28 DPA ready for countersignature; Article 32 control mapping; DPIA inputs; sub-processor register on request.",
      "clocks": [
        "Art 33 breach notification: 72 hours from awareness",
        "Hard deletion within 30 days of contract end"
      ],
      "data": [
        "personal",
        "special"
      ]
    },
    {
      "id": "OB-03",
      "name": "GDPR Article 9, special categories",
      "applies": "Health, biometric or other special-category data reaches the system.",
      "control": "An explicit Article 9 basis is recorded per flow before any processing; retrieval and logs are scoped so special-category records are never in a model context without that basis.",
      "evidence": "Legal basis register per flow; DPIA.",
      "data": [
        "special"
      ]
    },
    {
      "id": "OB-04",
      "name": "DORA, Regulation (EU) 2022/2554",
      "applies": "The system is part of a financial entity’s ICT.",
      "control": "ICT risk management, ICT-related incident classification and reporting, and the register of ICT third-party providers cover the AI system and its model endpoints as ICT services.",
      "evidence": "Third-party register entry; incident classification mapping; testing records.",
      "clocks": [
        "In force in the EU since 17 Jan 2025",
        "In force in Norway since 1 Jul 2025 (Finanstilsynet)"
      ],
      "sectors": [
        "financial"
      ]
    },
    {
      "id": "OB-05",
      "name": "Digitalsikkerhetsloven and NSM grunnprinsipper v2.1",
      "applies": "A Norwegian public body, financial entity or health provider operates the system.",
      "control": "Controls are mapped to the four categories and 21 principles of NSM’s grunnprinsipper for IKT-sikkerhet; the mapping is the reading a Norwegian public buyer expects. NIS2 is not Norwegian law; digitalsikkerhetsloven is.",
      "evidence": "NSM principle mapping; digitalsikkerhetsloven applicability note.",
      "clocks": [
        "Digitalsikkerhetsloven in force since 1 Oct 2025"
      ],
      "sectors": [
        "public",
        "financial",
        "health"
      ]
    },
    {
      "id": "OB-06",
      "name": "Cyber Resilience Act, Regulation (EU) 2024/2847",
      "applies": "The system ships inside a product with digital elements.",
      "control": "Vulnerability handling, SBOM and ML-BOM, security-by-design documentation and the reporting duties are part of the release pack.",
      "evidence": "SBOM and ML-BOM; vulnerability handling process; reporting runbook.",
      "clocks": [
        "Reporting obligations since 11 Sep 2026: early warning 24 hours, notification 72 hours, final report 14 days",
        "Full application 11 Dec 2027"
      ],
      "sectors": [
        "product"
      ]
    },
    {
      "id": "OB-07",
      "name": "MiFID II recording retention",
      "applies": "Voice interactions with clients in a financial entity.",
      "control": "Five-year recording retention built into the architecture, with retention metadata per recording.",
      "evidence": "Recording retention register; system provenance.",
      "sectors": [
        "financial"
      ],
      "shapes": [
        "voice"
      ]
    },
    {
      "id": "OB-08",
      "name": "HIPAA, limited to consent language and contract review",
      "applies": "Health data of US persons is in scope through a customer’s own obligations.",
      "control": "Consent wording and a contract review scoped to the project; no certification is claimed or implied.",
      "evidence": "Reviewed consent wording; documented data-handling terms.",
      "sectors": [
        "health"
      ]
    },
    {
      "id": "OB-09",
      "name": "ISO/IEC 42001:2023 and ISO/IEC 27001:2022 alignment",
      "applies": "Every case. Alignment, not certification.",
      "control": "Each control above is mapped to the Annex A controls of ISO/IEC 42001 and ISO/IEC 27001 and to the CSA AI Controls Matrix v1.1, so an auditor reads the case in the vocabulary they already use. YPAI states alignment; certification of a customer system is the customer’s own process.",
      "evidence": "Control mapping sheet; AI-CAIQ answers for the case."
    },
    {
      "id": "OB-10",
      "name": "Taxonomies the case is written in",
      "applies": "Every case.",
      "control": "OWASP Top 10 for LLM Applications 2025, OWASP Top 10 for Agentic Applications 2026, OWASP AI Testing Guide v1, MITRE ATLAS v2026.09 and NIST AI 100-2 E2025 supply the ids used in the threat register, the test plan and the findings.",
      "evidence": "Every finding and test carries its taxonomy ids."
    }
  ],
  "deploymentModes": [
    {
      "id": "eea-managed",
      "name": "YPAI-managed in the EEA",
      "inference": "EEA data-zone endpoints or EEA-hosted open-weight models, with retention set to none by organisation policy.",
      "crosses": "Prompts, retrieved spans and tool results reach the model endpoint under the endpoint’s zero-retention terms. Nothing else leaves the environment.",
      "keys": "Customer-managed keys where the endpoint offers them; otherwise per-tenant keys held in an HSM in the EEA.",
      "logs": "Hash-chained traces stored in the EEA and exported to your SIEM.",
      "access": "Named YPAI engineers, logged per session, under the Article 28 DPA."
    },
    {
      "id": "customer-cloud",
      "name": "In your cloud tenant",
      "inference": "Your tenant’s model endpoints in your region, with a policy that denies global routing.",
      "crosses": "Nothing leaves your tenant beyond what your own endpoint terms state.",
      "keys": "Your HSM. YPAI never holds a key.",
      "logs": "Your logging stack; the trace schema and chain verification are installed there.",
      "access": "On-behalf roles with an expiry, every session logged in your audit trail."
    },
    {
      "id": "air-gapped",
      "name": "Air-gapped on your hardware",
      "inference": "Self-hosted open-weight models on your GPUs; confidential inference with attestation where the hardware supports it.",
      "crosses": "Nothing. Model artefacts enter signed, through a verified transfer, and are scanned before load.",
      "keys": "Yours, on site.",
      "logs": "Local, hash-chained, verified on site.",
      "access": "On site, or through a jump host you control."
    }
  ],
  "artefacts": [
    {
      "id": "A-01",
      "name": "Threat register",
      "from": "the threats of this case with their taxonomy ids"
    },
    {
      "id": "A-02",
      "name": "Control status by layer",
      "from": "every control, its mechanism, its spec and its evidence"
    },
    {
      "id": "A-03",
      "name": "Test plan and gate record",
      "from": "the test families, the floors and every gate run"
    },
    {
      "id": "A-04",
      "name": "Red-team campaign reports with traces",
      "from": "each campaign, reproducible per finding"
    },
    {
      "id": "A-05",
      "name": "Configuration ledger",
      "from": "every served version of model, prompt, tools, index and policy"
    },
    {
      "id": "A-06",
      "name": "Trace schema and chain verification",
      "from": "the hash-chained log and its verification runs"
    },
    {
      "id": "A-07",
      "name": "Policy set and analysis",
      "from": "the tool policy, the flow rules and what they permit",
      "shapes": [
        "agent",
        "voice"
      ]
    },
    {
      "id": "A-08",
      "name": "Tool and model artefact register",
      "from": "description hashes, image digests, scan verdicts, signatures"
    },
    {
      "id": "A-09",
      "name": "Incident runbooks and tabletop record",
      "from": "each AI-specific incident class with its clocks"
    },
    {
      "id": "A-10",
      "name": "Regulatory documentation",
      "from": "role map, Annex IV documentation where high-risk, impact-assessment inputs, control mapping to ISO/IEC 42001 and 27001, AI-CAIQ answers"
    },
    {
      "id": "A-11",
      "name": "Data map and legal basis register",
      "from": "every flow with purpose, basis and retention",
      "data": [
        "personal",
        "special"
      ]
    },
    {
      "id": "A-12",
      "name": "Dataset manifests and poisoning screen",
      "from": "each training set with lineage, licence and screen result",
      "shapes": [
        "model"
      ]
    },
    {
      "id": "A-13",
      "name": "Recording retention register",
      "from": "each recording with retention period and access list",
      "shapes": [
        "voice"
      ]
    },
    {
      "id": "A-14",
      "name": "SBOM and ML-BOM",
      "from": "every software and model component of the shipped product",
      "sectors": [
        "product"
      ]
    }
  ],
  "note": "Catalogue of the YPAI security case. Items carry scope fields (shapes, deployments, data, sectors); an item with no scope field applies to every case."
}