π§ RAG Traversal Templates
(Query-Safe Paths)
Below is a formal set of RAG traversal templates designed to be query-safe, non-hallucinatory, and ontology-governed, explicitly aligned with:
- Core Ontology v1.0
- Asset Extension v1.0 (implemented)
- Incident Extension (planned)
- Risk Extension (planned)
- ThreatActor Extension (planned)
These templates are not examples β they are approved traversal contracts that an LLM (or agent) is allowed to follow.
Implementation rule: templates requiring planned extensions MUST be treated as unavailable until the corresponding extension OWL and shapes are present.
0. Why Traversal Templates Exist (Non-Negotiable)
RAG systems must not βreason freelyβ over graphs They must follow pre-approved paths to avoid:
- invented causality
- probabilistic leakage
- attribution hallucination
- business logic pollution
A Traversal Template defines:
- allowed start nodes
- allowed edge sequence
- allowed end nodes
- forbidden shortcuts
1. Core Traversal Invariants (Global Rules)
These apply to all templates:
- β Never skip layers (e.g. CVE β Technique directly)
- β Never cross extensions unless explicitly allowed
- β Traverse from extension nodes into Core only through explicitly declared mapping edges
- β Never infer βusedβ, βcausedβ, or βexploitedβ unless edge exists
- β Always terminate on authoritative Core nodes for explanations
2. Core + Asset Baseline Traversal Templates
T-CORE-01 β Vulnerability β Defensive Options
Question answered
βHow can this vulnerability be mitigated or detected?β
Traversal
Vulnerability
β Weakness
β AttackPattern
β Technique
β (DefensiveTechnique | DetectionAnalytic | DeceptionTechnique)
Why safe
- Follows the causal backbone
- No incident or attribution inference
T-CORE-02 β Asset Exposure Analysis
Question answered
βWhat attack techniques are relevant to this asset?β
Traversal
Asset
β PlatformConfiguration
β Vulnerability
β Weakness
β AttackPattern
β Technique
Forbidden
- β Asset β Technique (direct)
T-CORE-03 β Technique Context
Question answered
βWhat is this technique, and how is it usually handled?β
Traversal
Technique
β Tactic
β DefensiveTechnique
β DetectionAnalytic
β DeceptionTechnique
3. Incident Extension Traversal Templates
Status: planned (activate only when Incident extension artifacts are available).
T-INC-01 β Incident β What Happened
Question answered
βWhat techniques were observed in this incident?β
Traversal
Incident
β ObservedTechnique
β Technique
Rule
ObservedTechniqueis mandatory (no abstraction jumps)
4. ThreatActor Extension Traversal Templates
Status: planned (activate only when ThreatActor extension artifacts are available).
T-TA-01 β Attribution Reasoning
Question answered
βWho might be responsible for this incident?β
Traversal
Incident
β AttributionClaim
β ThreatActor
Hard rule
- β Incident β ThreatActor (direct) is illegal
5. Risk Extension Traversal Templates
Status: planned (activate only when Risk extension artifacts are available).
T-RISK-01 β Risk Prioritization
Question answered
βWhich vulnerabilities should we fix first?β
Traversal
Asset
β Vulnerability
β RiskScenario
β RiskScore
Rule
- CVSS is referenced, never overridden
6. Cross-Extension (Explicitly Allowed) Templates
Status: planned (requires Incident + Risk extensions).
T-X-01 β Incident β Risk Escalation
Question answered
βHow does this incident affect our risk posture?β
Traversal
Incident
β ObservedTechnique
β Technique
β RiskScenario
β RiskScore
7. Forbidden Traversals (Global Blacklist)
These must be hard-blocked in RAG:
β CVE β ThreatActor β Incident β Vulnerability β ThreatActor β Weakness β RiskScore β Technique β Detection β ThreatActor β Incident β Decision
If a user asks a question that requires one of these paths β the system must answer with uncertainty.
8. How to Enforce This in Practice
Option A β Static Path Registry
- Encode templates as allowed edge sequences
- Reject queries outside registry
Option B β Query Planner + Validator
- LLM proposes traversal
- Validator checks against template list
- Only then execute graph query
Option C β Prompt-Bound RAG
Inject templates directly into system prompt:
βYou may only answer by following one of the approved traversal templatesβ¦β