Skip to content

MCP: run SkillShield's text rules on decoded tool descriptions #134

Open

Description

@obielin

Starts after #133 (reading MCP tool listings) is merged. You are welcome to claim it now and read up while you wait.

What is missing

SkillShield already reads a .json tool listing as plain text, so a plain "ignore all previous instructions" in a tool description is caught. But JSON can hide text behind escape codes, and those are read as-is:

  • "Ig\u200bnore all previous instructions" (an escaped zero-width character) is missed.
  • Unicode tag characters written as JSON escapes (\udb40\udc69…) are flagged only as "obfuscation", and the hidden instruction is never decoded or shown.

This replaces mcpscan's MR-001 (tool poisoning) and MR-008 (suspicious URLs), and covers mcpscan's open issue obielin/mcpscan#9 (hidden instructions in tool descriptions). It gives MCP the detection SkillShield already has for skills, including hidden-Unicode and Chinese and Japanese detection.

What done looks like

  • For a tool listing, the existing text rules (SG-001 to SG-015) run on each tool's decoded name, description and the text inside its inputSchema (property descriptions, titles, defaults, enum values), as well as on the raw file.
  • Findings name the tool and point at its line, and the same finding is not reported twice for the raw and decoded text.
  • Tests: the two examples above, a plain injection, a suspicious URL (https://abc123.ngrok.io/collect) in a property description, and a safe listing with ordinary descriptions.

Before you start, read CONTRIBUTING.md, especially "Adding or changing a detection rule" and "Test samples must be safe". Comment /assign here to claim the issue.


Activity

  1. added
    good first issue
    detection-gap
    on Nov 13, 2026
  2. added
    help wanted
    on Nov 16, 2026
  3. github-actions commented on Nov 21, 2026

    @github-actions

    @cardtable GitHub didn't accept the assignment. A maintainer will assign it to you by hand.

  4. cardtable commented on Nov 21, 2026

    @cardtable
    Contributor

    /assign

  5. github-actions commented on Nov 21, 2026

    @github-actions

    @cardtable it's yours, thanks for picking this up! Please read CONTRIBUTING.md before you start.

    If there is no activity from you for 10 days you'll get a reminder, and after 14 days the issue is released for someone else. Any comment from you counts as activity, and an open pull request that mentions this issue pauses the clock. Comment /extend if you need more time, or /unassign to let it go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

detection-gapgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions