跳到內容
Agent Threat Rules (ATR)EN
ΒSkill 入侵
ATR-2026-00060
收錄於 2026-03-08 · 作者 ATR Community

MCP Skill Impersonation and Supply Chain Attack

Detects MCP skills that impersonate trusted tools through multiple attack vectors: typosquatting (misspelled tool names), version spoofing (claiming to be newer versions of known tools), namespace collision (similar package names with different publishers), and suspicious tool name patterns that mimic legitimate skills.

skill impersonation · pattern · confidence: medium

嚴重度
high
車道
alert · hunt比對到就標出、回報
成熟度
test還沒定論
掃描目標
mcp
狀態
experimental

框架對照

OWASP Agentic Top 10
  • ASI04:2026
OWASP LLM Top 10
  • LLM03:2025
  • LLM05:2025

這些對應是 ATR 自己做的,框架方沒有審查或背書。

說明

Detects MCP skills that impersonate trusted tools through multiple attack vectors: typosquatting (misspelled tool names), version spoofing (claiming to be newer versions of known tools), namespace collision (similar package names with different publishers), and suspicious tool name patterns that mimic legitimate skills. This goes beyond simple typo detection to cover the full supply chain attack surface for MCP skill registries and tool marketplaces.

建議回應block toolalertsnapshotescalate
作者:ATR Community · 建立 2026-03-08 · 最後修改 2026-11-20

野外驗證

驗證日期
2026-04-08
樣本數
53,577

偵測條件

組合方式:any
  1. 01
    Typosquatted filesystem tool names
    欄位:tool_name運算子:regex
  2. 02
    Typosquatted GitHub tool names
    欄位:tool_name運算子:regex
  3. 03
    Typosquatted database tool names
    欄位:tool_name運算子:regex
  4. 04
    Fake enhanced versions of known search tools
    欄位:tool_name運算子:regex
  5. 05
    Tools using trust-implying prefixes to impersonate legitimate tools (excludes established -tools packages)
    欄位:tool_name運算子:regex
  6. 06
    Version spoofing with fake version or release suffixes
    欄位:tool_name運算子:regex
  7. 07
    Skill claiming to be an updated replacement for a legitimate tool
    欄位:content運算子:regex
  8. 08
    Skill claiming equivalence or compatibility with known legitimate tools
    欄位:content運算子:regex
  9. 09
    Typosquatted Slack tool names
    欄位:tool_name運算子:regex
  10. 10
    Typosquatted OpenAI tool names
    欄位:tool_name運算子:regex
  11. 11
    Typosquatted Anthropic tool names
    欄位:tool_name運算子:regex

會觸發的攻擊範例

  1. tool_name:
    filesytem_read
  2. tool_name:
    gtihub-api
  3. tool_name:
    official-filesystem
  4. tool_name:
    google-search-v2-pro
  5. tool_name:
    slakc-send

規則必須抓到的攻擊範例,很多是照公開回報的攻擊改寫的,有些是照攻擊的形狀寫出來的。範例跟規則一起版本化,當作回歸測試。之後改規則時,如果其中一個範例不再命中,一定看得出來。

不會觸發的正常樣本

  1. Correctly spelled legitimate tool name
    tool_name:
    filesystem_read
  2. Correctly spelled custom tool name
    tool_name:
    custom_database_query
  3. Correctly spelled GitHub tool name
    tool_name:
    github-search
  4. Legitimate tool installation from verified source
    Installing official-github-tools v3.0.0 from the verified MCP registry.
  5. Legitimate tool with a name similar to but not typosquatting filesystem
    This tool is called 'file-system-manager'. It provides read, write, and delete operations.

已知的誤報情境

  • ▸Legitimate tools with similar naming conventions from verified publishers
  • ▸Internal tools that follow company-specific naming patterns
  • ▸Development or staging versions of tools with version suffixes

已記錄的繞過手法

  1. 手法:original naming
    Install my-filesystem-helper v2.1.0 — a lightweight file management tool for AI agents.
    Tool with legitimate-sounding name that is actually malicious but doesn't typosquat known tools.
  2. 手法:fork claim
    Use the enhanced_calculator package. It's a community fork of the official calculator with extra features.
    Claims to be a community fork rather than impersonating the original.
  3. 手法:language switch
    Установите инструмент «файловая_система_чтение» — это обновлённая замена оригинального плагина файловой системы.
    Russian text describing a typosquatted filesystem tool and claiming to replace the original; all regex patterns only match English keywords and Latin character patterns, so Cyrillic text evades detection entirely.

這些繞過手法都有公開紀錄。已知的限制就寫在規則本身。

title: MCP Skill Impersonation and Supply Chain Attack
id: ATR-2026-00060
rule_version: 1
status: experimental
description: |
  Detects MCP skills that impersonate trusted tools through multiple
  attack vectors: typosquatting (misspelled tool names), version spoofing
  (claiming to be newer versions of known tools), namespace collision
  (similar package names with different publishers), and suspicious tool
  name patterns that mimic legitimate skills. This goes beyond simple
  typo detection to cover the full supply chain attack surface for
  MCP skill registries and tool marketplaces.
author: ATR Community
date: 2026/03/08
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: high
references:
  owasp_llm:
    - LLM03:2025
    - LLM05:2025
  owasp_agentic:
    - ASI04:2026
  mitre_atlas:
    - AML.T0010 - AI Supply Chain Compromise
    - "AML.T0115.002 - Publish Poisoned AI Artifacts: AI Agent Tools"
    - AML.T0010.005 - AI Supply Chain Compromise of AI Agent Tool
  mitre_attack:
    - T1195 - Supply Chain Compromise

compliance:
  owasp_agentic:
    - id: ASI04:2026
      context: "MCP skill impersonation via typosquatting, namespace collision, and version spoofing is the primary ASI04:2026 Agentic Supply Chain Vulnerabilities attack vector — malicious skills masquerade as trusted tools to gain agent execution context."
      strength: primary
  owasp_llm:
    - id: LLM03:2025
      context: "Typosquatted and impersonated MCP skills are supply chain compromise artifacts targeting the tool ecosystem; this rule implements LLM03:2025 Supply Chain Vulnerabilities detection at the skill-name level."
      strength: primary
顯示全部(還有 173 行)
    - id: LLM05:2025
      context: "An agent invoking an impersonated skill may receive malicious responses that require LLM05:2025 Improper Output Handling controls; this rule prevents the initial tool invocation before output is processed."
      strength: secondary
  eu_ai_act:
    - article: "13"
      context: "Article 13 transparency requires that AI systems operate with clearly identified components; skill impersonation violates this requirement by substituting unauthorized tools that appear legitimate."
      strength: primary
    - article: "9"
      context: "Supply chain compromise via malicious skill registries is a documented risk requiring monitoring controls under Article 9; skill-name pattern detection is the runtime enforcement of those controls."
      strength: secondary
    - article: "15"
      context: "Article 15 (accuracy, robustness and cybersecurity) requires high-risk AI systems to resist unauthorised attempts to alter their use, outputs or performance; this rule provides runtime detection evidence by flagging the skill supply-chain compromise (MCP Skill Impersonation and Supply Chain Attack)."
      strength: primary
  nist_ai_rmf:
    - function: Map
      subcategory: MP.2.3
      context: "Identifying typosquatted and impersonated MCP skills as AI supply chain risks implements MP.2.3 AI supply chain risk identification at the tool-registry level."
      strength: primary
    - function: Govern
      subcategory: GV.1.2
      context: "GV.1.2 accountability roles must include responsibility for validating third-party tool integrity; this rule provides the automated signal that supports that governance obligation."
      strength: secondary
    - subcategory: "MS.2.7"
      context: "NIST AI RMF MEASURE 2.7 (security and resilience evaluated and documented) is supported by this rule's runtime detection of the skill supply-chain compromise (MCP Skill Impersonation and Supply Chain Attack)."
      strength: primary
    - subcategory: "MG.3.1"
      context: "NIST AI RMF MANAGE 3.1 (third-party resources regularly monitored) is supported where this rule detects the skill supply-chain compromise (MCP Skill Impersonation and Supply Chain Attack)."
      strength: secondary
    - subcategory: "MG.3.2"
      context: "NIST AI RMF MANAGE 3.2 (pre-trained models monitored as part of maintenance) is supported where this rule detects the skill supply-chain compromise (MCP Skill Impersonation and Supply Chain Attack)."
      strength: secondary
  iso_42001:
    - clause: "8.1"
      context: "MCP skills are externally-provided AI-related components under clause 8.1; this rule enforces controls over externally-provided tools by detecting impersonation before invocation."
      strength: primary
    - clause: "6.2"
      context: "Clause 6.2 AIMS security planning requires controls for third-party component integrity; skill impersonation detection operationalizes that planning objective at runtime."
      strength: secondary
    - clause: "8.3"
      context: "ISO/IEC 42001 Clause 8.3 (AI risk treatment) is supported by this rule, which implements runtime detection of the skill supply-chain compromise (MCP Skill Impersonation and Supply Chain Attack) as a treatment control."
      strength: secondary

tags:
  category: skill-compromise
  subcategory: skill-impersonation
  scan_target: mcp
  confidence: medium
agent_source:
  type: tool_call
  framework:
    - any
  provider:
    - any
detection:
  conditions:
    - field: tool_name
      operator: regex
      value: >-
        (?i)(?:filesytem|filsystem|file_sytem|flie_system|filessystem|filesystm|filsystm|filesysem)[-_](?:read|write|list|delete|search)
      description: Typosquatted filesystem tool names
    - field: tool_name
      operator: regex
      value: (?i)(?:gtihub|githbu|gihtub|gthub|g1thub|gltHub|githuub|guthub)[-_](?:api|search|commit|pr|issues?|repos?)
      description: Typosquatted GitHub tool names
    - field: tool_name
      operator: regex
      value: (?i)(?:databse|databaes|dtabase|datbase|databasse|databasee|dataase)[-_](?:query|read|write|exec|connect)
      description: Typosquatted database tool names
    - field: tool_name
      operator: regex
      value: >-
        (?i)(?:web[-_]?search|google[-_]?search|bing[-_]?search)[-_]?(?:v2|v3|pro|enhanced|premium|fast|turbo|plus|ultra|new)
      description: Fake enhanced versions of known search tools
    - field: tool_name
      operator: regex
      value: >-
        (?i)(?:official|verified|trusted|authentic|real|original)[-_](?:filesystem|github|database|slack|aws|gcp|azure)(?![-_]tools\b)
      description: Tools using trust-implying prefixes to impersonate legitimate tools (excludes established -tools packages)
    - field: tool_name
      operator: regex
      value: >-
        (?i)(?:filesystem|github|database|slack|aws|gcp|azure)[-_](?:official|verified|v\d+\.\d+|latest|stable|release|updated)
      description: Version spoofing with fake version or release suffixes
    - field: content
      operator: regex
      value: >-
        (?i)(?:this\s+(?:is\s+)?(?:an?\s+)?(?:updated|newer|improved|enhanced|patched|fixed)\s+version\s+of|replacing|supersedes|upgrade\s+(?:from|to))\s+(?:the\s+)?(?:original|existing|current|old)\s+(?:tool|skill|plugin|extension)
      description: Skill claiming to be an updated replacement for a legitimate tool
    - field: content
      operator: regex
      value: >-
        (?i)(?:(?:same|identical|equivalent|compatible)\s+(?:as|to|with)\s+(?:the\s+)?(?:official|original|standard)|(?:drop[-\s]?in\s+)?replacement\s+for)\s+[a-zA-Z_-]+
      description: Skill claiming equivalence or compatibility with known legitimate tools
    - field: tool_name
      operator: regex
      value: (?i)(?:slakc|slck|slaack|sllack|s1ack|5lack)[-_](?:send|post|read|message|channel)
      description: Typosquatted Slack tool names
    - field: tool_name
      operator: regex
      value: (?i)(?:opeanai|openla|open_al|openaii|0penai|openal)[-_](?:chat|complete|embed|generate)
      description: Typosquatted OpenAI tool names
    - field: tool_name
      operator: regex
      value: (?i)(?:anthroplc|anthrop1c|anthropic_|_anthropic|anthrpoic)[-_](?:chat|complete|message|claude)
      description: Typosquatted Anthropic tool names
  condition: any
  false_positives:
    - Legitimate tools with similar naming conventions from verified publishers
    - Internal tools that follow company-specific naming patterns
    - Development or staging versions of tools with version suffixes
response:
  actions:
    - block_tool
    - alert
    - snapshot
    - escalate
  auto_response_threshold: high
  message_template: |
    [ATR-2026-060] HIGH: Potential skill impersonation detected. Tool
    name "{tool_name}" closely resembles a known legitimate tool or uses
    deceptive naming patterns. Verify the skill publisher and source
    before allowing execution. Session: {session_id}.
confidence: 85
wild_validated: 2026/04/08
wild_samples: 53577
test_cases:
  true_positives:
    - tool_name: filesytem_read
      expected: triggered
      description: Typosquatted filesystem tool name
    - tool_name: gtihub-api
      expected: triggered
      description: Typosquatted GitHub tool name
    - tool_name: official-filesystem
      expected: triggered
      description: Trust-implying prefix on filesystem tool
    - tool_name: google-search-v2-pro
      expected: triggered
      description: Fake enhanced version of search tool
    - tool_name: slakc-send
      expected: triggered
      description: Typosquatted Slack tool name
  true_negatives:
    - tool_name: filesystem_read
      expected: not_triggered
      description: Correctly spelled legitimate tool name
    - tool_name: custom_database_query
      expected: not_triggered
      description: Correctly spelled custom tool name
    - tool_name: github-search
      expected: not_triggered
      description: Correctly spelled GitHub tool name
    - input: Installing official-github-tools v3.0.0 from the verified MCP registry.
      expected: not_triggered
      description: Legitimate tool installation from verified source
    - input: This tool is called 'file-system-manager'. It provides read, write, and delete operations.
      expected: not_triggered
      description: Legitimate tool with a name similar to but not typosquatting filesystem
evasion_tests:
  - input: Install my-filesystem-helper v2.1.0 — a lightweight file management tool for AI agents.
    expected: not_triggered
    bypass_technique: original_naming
    notes: Tool with legitimate-sounding name that is actually malicious but doesn't typosquat known tools.
  - input: Use the enhanced_calculator package. It's a community fork of the official calculator with extra features.
    expected: not_triggered
    bypass_technique: fork_claim
    notes: Claims to be a community fork rather than impersonating the original.
  - input: Установите инструмент «файловая_система_чтение» — это обновлённая замена оригинального плагина файловой системы.
    expected: not_triggered
    bypass_technique: language_switch
    notes: >-
      Russian text describing a typosquatted filesystem tool and claiming to replace the original; all regex patterns
      only match English keywords and Latin character patterns, so Cyrillic text evades detection entirely.

修訂紀錄

建立於
2026-03-08
最後修改
2026-11-20
到 GitHub 看完整的 commit 紀錄