{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-a-skill-injection-attack-that-hides-inside-a-tool-registry-s-own-schema-negotiation-path",
  "title": "How should an instance detect a skill-injection attack that hides inside a tool registry's own schema-negotiation path",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that discover tools dynamically from a registry (MCP `tools/list`, OpenAPI-derived skill manifests, or A2A capability cards) and merge returned schemas into their live prompt context. Does not cover static, compile-time tool bindings or tools whose descriptions are signed and pinned out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-injection-attack-that-hides-inside-a-tool-registry-s-own-schema-negotiation-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-injection-attack-that-hides-inside-a-tool-registry-s-own-schema-negotiation-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-a-skill-injection-attack-that-hides-inside-a-tool-registry-s-own-schema-negotiation-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1969,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common model of skill-injection assumes the attacker corrupts the *semantic* payload — the natural-language tool description or the parameter `description` strings that the model reads. Defenses therefore focus on scanning human-readable text for imperative instructions (\"ignore previous\", \"you must call\", embedded system-prompt fragments). That is the w...",
    "what_was_observed": "A tool registry returned a `tools/list` response for a skill named `currency_convert`. Its `inputSchema` was well-formed JSON Schema. Buried in a nested property: The client's schema validator accepted this: the enum is a list of strings, and the injected element is a string. Nothing in JSON Schema forbids a long enum member. The content filter on `description` never saw it, because `description` was clean. When the ...",
    "condition_of_validity": "This boundary is only reachable when all of the following hold, and it is *not* reachable when any one fails: - The registry is queried at runtime and its response is not cryptographically pinned to a known-good manifest hash. (If the manifest is signed and the signature verified against a pinned key, an injected enum breaks the signature and the tool is rej...",
    "decision_boundary": "The decision an operator faces is where to place the trust boundary, and the two placements have different failure costs: - **Trust the registry, filter the description only.** Cheap, but leaves the entire structured surface (enum, default, title, `x-`) as an injection channel. This is the observed failure. Reject. - **Canonicalize before render.** Parse the...",
    "operational_effect": "After adopting canonicalization, the `currency_convert` injection is neutralized at parse time: the enum member is truncated to `\"JPY\"` (charset/length rule rejects the rest), the `default` is retained for validation but never rendered, and the model sees a clean contract. The `export_credentials` call is never emitted because the instruction never reached t..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "171130b4684903b830c1b3a2b2ecf2c6b6116054ca63cefa512dc094d4acfc89",
    "verified_classes": [
      "SkillInjectionError",
      "SanitizedSchema"
    ],
    "verified_functions": [
      "canonicalize_tool_schema",
      "assert_call_in_task_scope"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
