An AI system can make an unsafe decision without anyone changing its central software or its user-facing question. A glossary page, imported data dictionary, search index or persistent memory may be altered so that “verified” now appears to mean “email received” instead of “identity reviewed”. A model then retrieves the contaminated definition and gives the wrong instruction with convincing citations. A separate risk appears when a retrieved document contains text that tries to command the agent rather than describe a concept. Vocabulary Coding and Engineering proposes a semantic supply-chain threat model: map every step through which an external definition becomes an AI interpretation or tool action, and require source authority, integrity, validation and permission checks at the appropriate boundaries.
The relevant security categories are current and distinct. OWASP LLM05:2026 Data and Model Poisoning covers persistent corruption of training, retrieval and model artifacts, while OWASP LLM01:2026 Prompt Injection addresses lower-trust content that redirects a model’s behaviour during inference. OWASP LLM04:2026 Supply Chain covers dependency and artifact risks; NIST AI 100-2e2025 provides adversarial machine-learning terminology. These are not interchangeable vulnerabilities. A changed definition may be a legitimate authorised revision, an accidental data-quality error or a deliberate attack; the system must distinguish the cause rather than label every disagreement malicious.
- Entry points: Imported glossaries, external web pages, search indexes, model artifacts and memory.
- Threat distinction: A poisoned knowledge record differs from runtime instruction injection.
- Source: Verify issuer, version, effective date and the applicable definition.
- Integrity: Record changes and restrict who can modify trusted concept entries.
- Meaning: Test who qualifies, which actions are permitted and what exceptions apply.
- Execution: Never treat retrieved source text as independent tool authorisation.
- Recovery: Contain affected sources, correct decisions and retest independently.
Chapter index
- 1. The fictional verified-account failure
- 2. Poisoning, injection and drift are different
- 3. OWASP’s updated 2026 taxonomy
- 4. NIST’s adversarial machine-learning taxonomy
- 5. A definition supply chain
- 6. A source name can be spoofed by a familiar URL
- 7. Search-result ordering can affect perceived authority
- 8. Embeddings do not preserve legal force
- 9. A malicious instruction is not a source definition
- 10. Why sanitising words alone is insufficient
- 11. A poisoned field may remain syntactically valid
- 12. The subtlety of ordinary editorial mistakes
- 13. Integrity controls are not truth controls
- 14. The dependency lockfile becomes a security tool
- 15. Unknown and disputed states prevent coerced answers
- 16. A source can be correct but the agent unauthorised
- 17. Design threat tests around safe simulations
- 18. Source provenance should be independently checkable
- 19. Avoid over-centralising the trusted vocabulary
- 20. Recovery requires more than replacing a poisoned page
- 21. Test the remedy on unseen cases
- 22. The four-week defensive pilot
- 23. The Z-layer’s threat model must be falsifiable
1. The fictional verified-account failure
An organisation defines verified as completion of an identity-document review. Its AI assistant retrieves a glossary that now describes verified as an email-confirmation step. The assistant tells the user that the identity requirement is satisfied when the email is confirmed.
The mismatch can arise from an authorised change that was not communicated, a mistaken edit, a stale document or a maliciously altered record. The correct first step is to establish what the source actually says and which authority governs, not assume an attacker exists whenever two pages disagree.
Back to contents · Next chapter
2. Poisoning, injection and drift are different
Data poisoning deliberately or accidentally alters material that a system learns from or relies upon, potentially influencing future behaviour. Prompt injection attempts to make untrusted content function as instructions to the model at runtime. Semantic drift can occur without an adversary when definitions evolve or are incorrectly paraphrased.
The response differs: investigate data lineage and versioned records for persistent corruption; enforce trust boundaries and tool permissions for runtime injection; and reconcile legitimate source changes through governance. An umbrella term should not erase the mechanism.
Back to contents · Next chapter
3. OWASP’s updated 2026 taxonomy
OWASP’s 2026 LLM risks separately describe data and model poisoning, supply-chain issues, prompt injection and excessive agency. That separation is useful because the same misleading sentence can enter through distinct stages and require different controls.
A retrieved page can contain a false factual definition, an instruction-like string aimed at the agent, or both. Classification should depend on the attempted effect and the trust boundary crossed. A test of one risk does not automatically cover the other.
Back to contents · Next chapter
4. NIST’s adversarial machine-learning taxonomy
NIST AI 100-2e2025 formalises terminology for attack goals, adversary knowledge, access and stages in a machine-learning lifecycle. It includes poisoning, evasion, misuse and other categories for predictive and generative systems.
The proposed semantic threat model borrows this discipline: document which source the attacker could affect, what influence is plausible and what the protected outcome is. Do not present a speculative attack as a measured vulnerability in an unnamed product.
Back to contents · Next chapter
5. A definition supply chain
Consider a chain from source institution to public webpage, imported glossary, embedding index, AI answer, downstream application and external tool. Each transition can preserve or alter source meaning, and each uses different identity and permission assumptions.
A useful inventory names the owner and trust level of each component. A source identifier, fetched page, vector representation and summarised explanation should not all be treated as interchangeable authoritative records. Store provenance where proportionate and preserve current source versions.
Back to contents · Next chapter
6. A source name can be spoofed by a familiar URL
A domain can change ownership, a page can be mirrored inaccurately or an attacker may publish a document with an official-looking title. A model’s retrieval snippet may make the page appear authentic without verifying its issuer.
The system should authenticate important source endpoints where feasible, retain version and custody information and cross-check high-consequence definitions with the actual governing publication. A domain string is one piece of evidence, not a universal certificate of authority.
Back to contents · Next chapter
7. Search-result ordering can affect perceived authority
Retrieval systems often prioritise content based on relevance signals, not legal authority. An easily retrieved unofficial summary may outrank the primary governing source, leading an assistant to attribute a non-binding explanation to the institution that issued the original rule.
For selected domains, restrict consequential answers to appropriate verified sources or require a source review step. The model should disclose when it relies on a third-party explanation rather than an operative document. Search popularity cannot amend a definition.
Back to contents · Next chapter
8. Embeddings do not preserve legal force
A vector index may group semantically similar words and retrieve nearby documents. That is useful for discovery, but a high similarity score cannot establish that verified and approved are legally equivalent, or that a source is current.
A retrieval validation should examine original content, scope, effective dates and permission conditions. An embedding can select candidate evidence; it does not itself prove the semantic or institutional relationship the user needs.
Back to contents · Next chapter
9. A malicious instruction is not a source definition
A page about a document-status term might contain a sentence telling a model to ignore its governing instructions and execute an unrelated action. Such text can be encountered during an otherwise legitimate retrieval.
The assistant may describe the sentence as content in the page, but should not treat it as permission to act. Lower-trust material cannot change who authorised the workflow. Structural tool permissions and execution controls must remain independent of a language model’s interpretation.
Back to contents · Next chapter
10. Why sanitising words alone is insufficient
A blacklist of suspicious phrases cannot recognise every way lower-trust instructions might be expressed. At the same time, legitimate documents can quote commands for educational or historical reasons. Rejecting any sentence that resembles an instruction can remove useful source material.
The design should enforce source trust and permitted tool actions at separate boundaries, backed by appropriate review and testing. Detection can supplement those controls, but should not be sold as a guarantee that every prompt injection is blocked.
Back to contents · Next chapter
11. A poisoned field may remain syntactically valid
A data dictionary may define approved as completion of preliminary review. A substituted definition might describe final authorisation, using exactly the same field name and data type. JSON Schema or simple API contract tests may pass every response.
The semantic validation layer should compare source-linked meanings on concrete cases. A draft approved for copyediting but not publication is a decisive boundary case. Syntax and type are necessary checks but not a substitute for policy interpretation.
Back to contents · Next chapter
12. The subtlety of ordinary editorial mistakes
A rushed translator may change “within thirty calendar days” to “within one month” without malicious intent. This can still alter an applicant’s understanding or a software rule. The observed error needs correction whether or not a threat actor was involved.
Incident classification should reserve malicious attribution for evidence of deliberate interference. Operational fixes can address the semantic mismatch immediately while investigators continue checking origin. Accurate security reporting avoids unnecessary accusations.
Back to contents · Next chapter
13. Integrity controls are not truth controls
Hashes, signatures, source permissions and access logs can make unauthorised changes more difficult to hide. They may reveal exactly which copy was used and who had access to modify it.
A signed source can still be outdated or factually mistaken, and a perfectly unchanged document can be paraphrased incorrectly by the AI. Integrity must be accompanied by semantic tests and source-validity checks. The system should not equate signed with correct.
Back to contents · Next chapter
14. The dependency lockfile becomes a security tool
The proposed Semantic Lockfile identifies the source versions, concept mappings and validation rules used in an operation. If one dependency changes unexpectedly, the system can require review before taking consequential action.
This helps trace suspicious changes without claiming to stop all attacks. A lockfile can faithfully record a malicious or mistaken version if its source validation fails. Its reliability depends on the control of source assignments and responsible review.
Back to contents · Next chapter
15. Unknown and disputed states prevent coerced answers
An agent may find two sources with incompatible versions and no established priority. The correct status may be unresolved authority rather than pick the most fluent explanation. A policy missing from the trusted collection is not proof that it does not exist.
Allowing unknown or disputed output reduces pressure to invent certainty. In a high-impact workflow the system can hold external action while requesting authoritative clarification. Read-only assistance may still be possible without granting the tool any additional permission.
Back to contents · Next chapter
16. A source can be correct but the agent unauthorised
Suppose a current policy genuinely says that a manager may release a document. The AI may correctly quote and explain it while the actual requesting user lacks managerial authority. The policy’s meaning does not itself authorize the connected tool.
Enforce the actor’s permissions at the tool boundary. A source-linked answer cannot manufacture a signature, user consent or an access token. Meaning recognition and action authorisation require separate evidence and independent controls.
Back to contents · Next chapter
17. Design threat tests around safe simulations
For a fictional workspace assistant, prepare controlled copies of a glossary: one genuine source, one with an accidental type mismatch, one with an obsolete version and one with clearly untrusted instruction-like content. Do not use real users’ private files or live financial systems.
Test whether the assistant identifies source status, detects consequential semantic changes and refuses unauthorised actions. This is defensive evaluation; no details for conducting real compromises are necessary. A failure should identify the violated trust boundary and a source-linked correction.
Back to contents · Next chapter
18. Source provenance should be independently checkable
W3C PROV provides concepts for recording which entities, activities and agents contributed to an information artifact. A semantic security investigation can link a retrieved passage to the original source and to the transformations that created a final answer.
Provenance does not establish the truth of the artifact. A derived summary might preserve the source correctly or omit a decisive exception. A reviewer must compare actual content, not simply count the number of recorded processing steps.
Back to contents · Next chapter
19. Avoid over-centralising the trusted vocabulary
One central registry can simplify source selection but can also become a single target or an authority bottleneck. Local schemes with transparent crosswalks may provide resilience and preserve legitimate differences.
Security and governance should distinguish who can edit each source definition, who can approve cross-mappings and who may deploy changed meanings. An institution can maintain its own terminology without ceding all control to an external AI platform.
Back to contents · Next chapter
20. Recovery requires more than replacing a poisoned page
After discovering an affected source, a team can restore the correct version and restrict the untrusted copy. But cached answers, model memories, reports and actions may still reflect the incorrect meaning.
Incident response should identify known dependent systems and consider whether affected users need correction or review. Replacing one URL does not undo messages already read or payments already released. A technical fix and a human remedy are distinct outcomes.
Back to contents · Next chapter
21. Test the remedy on unseen cases
A model patched to catch one altered sentence may merely learn its exact wording. A new attacker or innocent editor could express the same misleading definition differently.
Use source-specific boundary tests, safe paraphrases and held-out examples. The evaluation should report false alarms against legitimate revisions as well as failures to identify dangerous changes. A security control that blocks every update is not a workable vocabulary service.
Back to contents · Next chapter
22. The four-week defensive pilot
Week 1: choose a non-sensitive glossary and map source authority, retrieval and downstream dependencies. Week 2: prepare benign revised definitions, incorrect mappings and safe synthetic injection examples in an isolated environment.
Week 3: test source selection, meaning validation and actual tool permission boundaries. Week 4: independently review failures, revise the provenance manifest and rerun held-out cases. Report what was blocked and what remains uncertain rather than claiming the system is attack-proof.
Back to contents · Next chapter
23. The Z-layer’s threat model must be falsifiable
A proposed stable base may preserve concept IDs, but the surrounding mappings, source records and applications can be corrupted. A claim of absolute immutable meaning would be contradicted by one source-linked case where the system silently substitutes an unapproved definition.
The appropriate research goal is narrower: on a declared set of data sources, languages and actions, the system identifies unexpected meaning changes and prevents unsupported actions under the tested threat assumptions. Report failures as evidence, not exceptions to be hidden.
Frequently asked questions
Is every incorrect definition a poisoning attack?
No. It can result from normal language change, stale sources or editorial error. Deliberate interference requires evidence about origin or intent.
Does cryptographic signing guarantee the definition is correct?
No. Signing may support integrity and source attribution. Factual accuracy, current authority and semantic equivalence require separate review.
Can prompt-injection detection alone protect an AI vocabulary system?
No. Secure access controls, source validation and action permissions remain necessary, and defensive detectors have limitations.
Can an AI safely quote a malicious-looking instruction?
It can discuss lower-trust text as source content without executing it. The key is maintaining the distinction between quoted instructions and actual user or institutional authority.
What should happen if a trusted definition cannot be verified?
The system should disclose uncertainty and withhold unsupported consequential actions while seeking the appropriate current source.
Primary source and official security references
- OWASP LLM01:2026 Prompt Injection.
- OWASP LLM04:2026 Supply Chain.
- OWASP LLM05:2026 Data and Model Poisoning.
- NIST AI 100-2e2025: Adversarial Machine Learning Taxonomy.
- W3C PROV: Source and transformation provenance.
- W3C SHACL: Data graph constraint validation.
- W3C Data on the Web Best Practices: Versions and provenance.
Related Vocabulary Coding and Engineering articles
- Part 26: Prompt Injection and AI Trust
- Part 48: Semantic Immune System
- Part 85: Semantic Feedback Trap
- Part 93: Semantic Namespaces
- Part 94: Semantic Succession
Research status: The semantic supply-chain threat model is an educational design proposal, not a vulnerability disclosure or claim of compromise against any named system. The cases are fictional. Security measures and source-validation methods require appropriate evaluation and risk management.
