Skip to content

detection: nothing looks for concealed Unicode in tool descriptions, which is the one poisoning visible on first sight #152

Closed

Description

@blitzcrieg1

The gap

Grep for Unicode concealment awareness anywhere in mcp_schema.py or detection/:

none

Nothing checks a tool description for TAG-block characters (U+E0000 to U+E007F), zero-width joiners, bidi overrides or homoglyphs.

Why this one matters more than it looks

The MCP fingerprint answers "did this server change what it advertises". It cannot answer "did it arrive poisoned". A server hostile from the first observation writes a clean-looking baseline and stays quiet forever, which is the trust-on-first-use limitation already noted in #146 and raised twice in review.

Concealed Unicode is the exception. It is detectable on a single observation, with no baseline and no history, because invisible control characters in a tool description are essentially never legitimate. There is no benign reason for a description to carry TAG-block text.

Measured on master:

clean description length          14
TAG-concealed description length  37   (renders identically to a human)
fingerprint differs               True

So a change into concealed Unicode is caught by the existing digest. A tool that ships that way is not.

The published shape

Research describes this as an approval-view fidelity gap: the human approving a tool sees one string, the model receives another. That gap is the attack. The operator consents to something they were never shown.

That framing sits squarely in what this project claims to do. Recording what the model was handed, rather than what a human was shown, is the entire premise, and here the two demonstrably differ.

Proposal

A trait or a schema-time check over every model-visible string in a listing: tool description, title, and every description/title inside input and output schemas. Flag the presence of:

  • Unicode TAG block, U+E0000 to U+E007F
  • Zero-width characters: U+200B, U+200C, U+200D, U+FEFF
  • Bidi controls: U+202A to U+202E, U+2066 to U+2069
  • Private use area, arguably, though that one may be noisier

Report the category and count, never the text, for the same reason the fingerprint is a hash: a finding that carries the payload has stored the payload.

This composes with #103. Once the high-severity digest is defined over model-visible strings, this check runs over exactly the same set, so the two should be built together rather than separately.

Not a severity question

Unlike most of the MCP backlog this is not tuning. It is a signal that does not exist, and it is the only one identified so far that fires without a prior baseline.

Blocked by the freeze if it lands as a trait

traits.py is hashed into the ruleset fingerprint. As a check inside mcp_schema.py it is not, since core/diagnostics sits outside the fingerprint. Worth deciding which, because it changes when this can ship.

Activity

  1. added a commit that references this issue on Sep 4, 2026
    5f588cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions