Security Framework Mapping

May 16, 2026 ยท View on GitHub

This document maps the Weaver invariants I-01 through I-07 (defined in docs/INVARIANTS.md) to three external security frameworks:

  1. OWASP Top 10 for LLM Applications (2025)
  2. MITRE ATLAS
  3. NIST AI Risk Management Framework 1.0

This is an alignment map, not a certification claim. Each row uses the wording "aligned with" only. weaver-spec is documentation and contracts โ€” enforcement happens in the sibling runtimes. Adopters who wish to claim compliance with any of the frameworks below must perform their own conformance work in their implementation.

For the underlying invariants themselves, docs/INVARIANTS.md is authoritative.


Alignment with OWASP LLM Top 10 (2025)

InvariantAligned withRationale
I-01 LLM never sees raw tool output by defaultLLM02:2025 Sensitive Information Disclosure, LLM05:2025 Improper Output Handling, LLM01:2025 Prompt InjectionThe Frame boundary forces every tool result through the firewall before any LLM-visible representation is produced. This is aligned with disclosure prevention (LLM02), output handling (LLM05), and indirect prompt-injection blocking when tool output is itself untrusted (LLM01).
I-02 Every execution authorized and auditableLLM06:2025 Excessive AgencyPairing every execution with a PolicyDecision and a TraceEvent is aligned with the LLM06 controls that require auditable authorization for any tool action an agent can invoke.
I-03 Routing without full tool schema injectionLLM01:2025 Prompt Injection, LLM10:2025 Unbounded ConsumptionBounded ChoiceCards reduce the attack surface that prompt injection can pivot through (LLM01) and bound per-turn token consumption (LLM10).
I-04 Contracts minimal and stableLLM05:2025 Improper Output Handling, LLM03:2025 Supply ChainA minimal Core surface reduces the number of fields any consumer must sanitize (LLM05) and makes the supply-chain promise verifiable across sibling repos (LLM03).
I-05 contextweaver receives Frames, not raw outputLLM02:2025 Sensitive Information Disclosure, LLM05:2025 Improper Output HandlingRestating I-01 at the ingestion boundary; aligned with the same disclosure and output-handling categories.
I-06 CapabilityTokens are single-use or scopedLLM06:2025 Excessive AgencyScope-bounded, time-bounded, or single-use tokens are the canonical LLM06 mitigation for limiting agent authority.
I-07 ChainWeaver delegates execution to the kernelLLM06:2025 Excessive AgencyRouting every tool invocation through the authorized execution layer is aligned with LLM06's "minimum-privilege execution path" principle.

Alignment with MITRE ATLAS

ATLAS technique URLs follow the pattern https://atlas.mitre.org/techniques/<technique-id>.

InvariantAligned withRationale
I-01 LLM never sees raw tool output by defaultAML.T0051 LLM Prompt Injection (indirect variant)Filtering raw tool output through the firewall before LLM consumption is aligned with mitigations for indirect prompt injection delivered through untrusted tool results.
I-02 Every execution authorized and auditableAML.T0040 AI Model Inference API AccessAuthorized-and-audited execution is aligned with the detection and response controls that bound and log inference-API access.
I-03 Routing without full tool schema injectionAML.T0051 LLM Prompt InjectionA smaller per-turn context surface is aligned with reducing the prompt-injection attack surface.
I-04 Contracts minimal and stableAML.T0051 LLM Prompt InjectionStable, minimal contracts reduce the number of structurally-distinct inputs an adversary can manipulate downstream.
I-05 contextweaver receives Frames, not raw outputAML.T0051 LLM Prompt Injection (indirect variant)Restating I-01 at the ingestion boundary.
I-06 CapabilityTokens are single-use or scopedAML.T0024 Exfiltration via AI Inference API, AML.T0040 AI Model Inference API AccessScoped, time-bounded tokens are aligned with mitigations that limit blast radius once an inference API is reached.
I-07 ChainWeaver delegates execution to the kernelAML.T0040 AI Model Inference API AccessFunnelling all tool invocations through one authorized path is aligned with bounding the inference-API access surface.

Alignment with NIST AI RMF 1.0

The NIST AI RMF 1.0 defines four core functions: Govern, Map, Measure, and Manage.

InvariantAligned with functionRationale
I-01 LLM never sees raw tool output by defaultManageA persistent firewall control aligned with the Manage function's risk-response responsibilities for in-production AI systems.
I-02 Every execution authorized and auditableGovern, MeasureAuthorization policies are aligned with Govern; the auditable TraceEvent log is aligned with Measure (monitoring and assessment).
I-03 Routing without full tool schema injectionMapBounding the prompt surface is aligned with Map (context and risk identification for the specific AI system).
I-04 Contracts minimal and stableGovernMinimal, stable interface surfaces are aligned with the Govern function's policy and accountability responsibilities.
I-05 contextweaver receives Frames, not raw outputManageRestating I-01 at the ingestion boundary.
I-06 CapabilityTokens are single-use or scopedGovern, ManageScope and lifetime policies are aligned with Govern; per-execution issuance and revocation are aligned with Manage.
I-07 ChainWeaver delegates execution to the kernelGovernA single authorized execution path is aligned with Govern's accountability and oversight role.

Wording rule

This document uses "aligned with" exclusively. The Weaver spec does not certify any implementation against any framework, and no implementation should claim compliance with a framework based on this alignment table alone.

See AGENTS.md "Forbidden behaviors" for the underlying rule against aspirational language in this repository.


Update triggers

Update this file when:

  • A new invariant is added to docs/INVARIANTS.md.
  • Any of the three external frameworks publishes a new major version (OWASP LLM Top 10, MITRE ATLAS, NIST AI RMF).
  • A row's rationale becomes outdated because a Core contract changed.