跳到內容
Agent Threat Rules (ATR)EN
Ε工具下毒
ATR-2026-00534
收錄於 2026-05-20 · 作者 ATR Community

Alibaba RDS MCP Unauthenticated Database Metadata Exfiltration

Detects unauthenticated access to Alibaba RDS MCP server metadata endpoints.

mcp missing authentication · pattern · confidence: high

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

框架對照

OWASP Agentic Top 10
  • ASI06:2026
  • ASI03:2026
OWASP LLM Top 10
  • LLM06:2025
  • LLM02:2025

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

說明

Detects unauthenticated access to Alibaba RDS MCP server metadata endpoints. The Alibaba RDS MCP server exposes database schema, connection strings, and credential metadata without requiring authentication. Alibaba confirmed the vulnerability but declined to patch it, leaving all deployments permanently exposed. An unauthenticated attacker can enumerate databases, extract schema structures, and obtain connection credentials via MCP tool calls. Detection covers (a) MCP configs pointing at Alibaba RDS endpoints without auth, (b) tool calls invoking RDS metadata functions without auth context, (c) content describing the unpatched unauthenticated surface. CWE-306 (Missing Authentication), CWE-200 (Exposure of Sensitive Information).

建議回應block toolalertescalate
作者:ATR Community · 建立 2026-05-20 · 最後修改 2026-11-24

偵測條件

組合方式:any
  1. 01
    MCP tool call targeting Alibaba RDS metadata or credential enumeration without auth — unauthenticated exfiltration vector
    欄位:tool_response運算子:regex
  2. 02
    MCP config pointing at Alibaba RDS endpoint without auth — unpatched credential exposure surface
    欄位:tool_response運算子:regex
  3. 03
    Content describing Alibaba RDS MCP unauthenticated credential exfiltration — vendor-refused-to-patch surface
    欄位:content運算子:regex

會觸發的攻擊範例

  1. {"name":"rds_describe_instances","arguments":{"region":"cn-hangzhou"}}
  2. {"name":"rds_get_credentials","arguments":{"instanceId":"rm-abc123"}}
  3. {"mcpServers":{"alibaba-rds":{"url":"https://rds.aliyuncs.com/mcp"}}}
  4. alibaba-rds MCP endpoint exposes connection strings without auth — vendor declined to patch, unauthenticated callers can exfiltrate credentials

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

不會觸發的正常樣本

  1. Alibaba RDS MCP config WITH Authorization header
    {"mcpServers":{"rds":{"url":"https://rds.aliyuncs.com/mcp","headers":{"Authorization":"Bearer token"}}}}
  2. Read-only RDS query without metadata/credential access pattern
    {"name":"rds_query","arguments":{"sql":"SELECT COUNT(*) FROM orders"}}
  3. Defensive mitigation guidance
    Mitigate Alibaba RDS MCP exposure by placing a reverse proxy with authentication in front of the endpoint.

已知的誤報情境

  • ▸Internal Alibaba RDS deployments behind authenticated VPN.
  • ▸Security scanning tooling probing the Alibaba RDS MCP endpoint.
  • ▸Educational content describing the vulnerability.

已記錄的繞過手法

  1. 手法:ip only no alibaba name
    {"mcpServers":{"cloud-db":{"url":"http://10.0.0.20:8080/mcp"}}}
    Generic key and raw IP evades Layer 2 — no alibaba/aliyun substring in URL.
  2. 手法:case variation
    {"name":"ALIBABA_RDS_DESCRIBE_INSTANCES","arguments":{}}
    Case-insensitive flag covers uppercase tool name.

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

title: "Alibaba RDS MCP Unauthenticated Database Metadata Exfiltration"
id: ATR-2026-00534
rule_version: 1
status: experimental
description: >
  Detects unauthenticated access to Alibaba RDS MCP server metadata endpoints.
  The Alibaba RDS MCP server exposes database schema, connection strings, and
  credential metadata without requiring authentication. Alibaba confirmed the
  vulnerability but declined to patch it, leaving all deployments permanently
  exposed. An unauthenticated attacker can enumerate databases, extract schema
  structures, and obtain connection credentials via MCP tool calls.
  Detection covers (a) MCP configs pointing at Alibaba RDS endpoints without
  auth, (b) tool calls invoking RDS metadata functions without auth context,
  (c) content describing the unpatched unauthenticated surface.
  CWE-306 (Missing Authentication), CWE-200 (Exposure of Sensitive Information).
author: "ATR Community"
date: "2026/05/20"
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: high

references:
  owasp_llm:
    - "LLM06:2025"
    - "LLM02:2025"
  owasp_agentic:
    - "ASI06:2026"
    - "ASI03:2026"
  mitre_atlas:
    - "AML.T0049 - Exploit Public-Facing Application"
  mitre_attack:
    - "T1190 - Exploit Public-Facing Application"
    - "T1552 - Unsecured Credentials"

metadata_provenance:
  mitre_atlas: human-reviewed
  owasp_llm: human-reviewed
  owasp_agentic: human-reviewed
顯示全部(還有 124 行)
compliance:
  eu_ai_act:
    - article: "15"
      context: "Alibaba RDS MCP exposes database credentials and schema without authentication; Article 15 requires AI tool servers to protect sensitive data access with authentication."
      strength: primary
    - article: "9"
      context: "Article 9 risk management must enumerate unauthenticated credential and schema exposure as a critical data-protection failure for any agent-integrated RDS tool — especially given vendor refusal to patch."
      strength: primary
  nist_ai_rmf:
    - function: Manage
      subcategory: MG.2.3
      context: "Detection of unauthenticated MCP metadata calls against Alibaba RDS is the primary risk treatment given vendor non-response to the vulnerability."
      strength: primary
    - function: Map
      subcategory: MP.5.1
      context: "Permanently unpatched credential exposure surfaces must be flagged as accepted-risk or mitigated at the network layer in the organizational AI risk register."
      strength: secondary
    - subcategory: GV.6.1
      function: Govern
      context: "Cloud provider MCP tools with unpatched authentication gaps require compensating controls under GV.6.1 supplier risk management."
      strength: primary
    - 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 tool-poisoning technique (Alibaba RDS MCP Unauthenticated Database Metadata Exfiltration)."
      strength: primary
    - 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 tool-poisoning technique (Alibaba RDS MCP Unauthenticated Database Metadata Exfiltration)."
      strength: secondary
  iso_42001:
    - clause: "8.1"
      context: "Operational controls must detect MCP tool calls that would expose Alibaba RDS credentials or schema to unauthenticated callers."
      strength: primary
    - clause: "8.3"
      context: "ISO/IEC 42001 Clause 8.3 (AI risk treatment) is supported by this rule, which implements runtime detection of the tool-poisoning technique (Alibaba RDS MCP Unauthenticated Database Metadata Exfiltration) as a treatment control."
      strength: secondary

tags:
  category: tool-poisoning
  subcategory: mcp-missing-authentication
  scan_target: mcp
  confidence: high

agent_source:
  type: mcp_exchange
  framework:
    - alibaba-rds
    - any
  provider:
    - alibaba
    - any

detection:
  condition: any
  false_positives:
    - "Internal Alibaba RDS deployments behind authenticated VPN."
    - "Security scanning tooling probing the Alibaba RDS MCP endpoint."
    - "Educational content describing the vulnerability."
  conditions:
    # -- Layer 1: RDS metadata/credential tool call without auth --
    - field: tool_response
      operator: regex
      value: "(?i)\"(?:name|tool)\"\\s*:\\s*\"(?:rds_(?:describe|list|get|fetch)_(?:instances?|databases?|schemas?|credentials?|connection[_\\-]?strings?|accounts?|passwords?)|alibaba[_\\-]rds[_\\-](?:describe|list|metadata|credentials?|schema))[^\"]{0,60}\"(?:(?!(?:authorization|bearer|api[_\\-]?key|x-api-key|token|x-auth))[\\s\\S]){0,500}"
      description: "MCP tool call targeting Alibaba RDS metadata or credential enumeration without auth — unauthenticated exfiltration vector"

    # -- Layer 2: Alibaba RDS MCP endpoint in config without auth --
    - field: tool_response
      operator: regex
      value: "(?i)\"url\"\\s*:\\s*\"https?://[^\"]{0,120}(?:alibaba[_\\-]?rds|aliyun[_\\-]?rds|rds\\.aliyuncs\\.com|rds[_\\-]mcp\\.alibaba)[^\"]{0,60}(?:/mcp|/tools?|/api|/metadata)[^\"]*\"(?![\\s\\S]{0,400}\"(?:auth|headers?|token|apiKey|authorization|bearer)\")"
      description: "MCP config pointing at Alibaba RDS endpoint without auth — unpatched credential exposure surface"

    # -- Layer 3: Alibaba RDS unpatched surface in content --
    - field: content
      operator: regex
      value: "(?i)alibaba[_\\-]?rds[^\\n]{0,200}(?:mcp|tool\\s+call|endpoint)[^\\n]{0,200}(?:no\\s+auth|missing\\s+auth|unauth(?:enticated)?|without\\s+(?:auth|credentials?|token)|vendor\\s+(?:refuse|declined|won.t\\s+patch|unpatched)|exfil(?:trat)?|credentials?\\s+(?:exposed?|leak)|connection\\s+string)"
      description: "Content describing Alibaba RDS MCP unauthenticated credential exfiltration — vendor-refused-to-patch surface"

response:
  actions:
    - block_tool
    - alert
    - escalate
  auto_response_threshold: high
  message_template: >
    [ATR-2026-00534] HIGH: Alibaba RDS MCP unauthenticated metadata/credential
    exfiltration detected. MCP tool call targets Alibaba RDS schema or credential
    metadata without authentication. Note: Alibaba confirmed this vulnerability
    but declined to patch — apply network-layer controls immediately and remove
    Alibaba RDS MCP from agent toolchains until a compensating control is in place.

confidence: 81

test_cases:
  true_positives:
    - input: '{"name":"rds_describe_instances","arguments":{"region":"cn-hangzhou"}}'
      expected: triggered
      description: "Unauthenticated Alibaba RDS instance enumeration via MCP"
    - input: '{"name":"rds_get_credentials","arguments":{"instanceId":"rm-abc123"}}'
      expected: triggered
      description: "Unauthenticated credential retrieval from Alibaba RDS via MCP"
    - input: '{"mcpServers":{"alibaba-rds":{"url":"https://rds.aliyuncs.com/mcp"}}}'
      expected: triggered
      description: "Alibaba RDS MCP config without auth field"
    - input: 'alibaba-rds MCP endpoint exposes connection strings without auth — vendor declined to patch, unauthenticated callers can exfiltrate credentials'
      expected: triggered
      description: "Content describing vendor-unpatched Alibaba RDS credential exposure"
  true_negatives:
    - input: '{"mcpServers":{"rds":{"url":"https://rds.aliyuncs.com/mcp","headers":{"Authorization":"Bearer token"}}}}'
      expected: not_triggered
      description: "Alibaba RDS MCP config WITH Authorization header"
    - input: '{"name":"rds_query","arguments":{"sql":"SELECT COUNT(*) FROM orders"}}'
      expected: not_triggered
      description: "Read-only RDS query without metadata/credential access pattern"
    - input: "Mitigate Alibaba RDS MCP exposure by placing a reverse proxy with authentication in front of the endpoint."
      expected: not_triggered
      description: "Defensive mitigation guidance"

evasion_tests:
  - input: '{"mcpServers":{"cloud-db":{"url":"http://10.0.0.20:8080/mcp"}}}'
    expected: not_triggered
    bypass_technique: ip_only_no_alibaba_name
    notes: "Generic key and raw IP evades Layer 2 — no alibaba/aliyun substring in URL."
  - input: '{"name":"ALIBABA_RDS_DESCRIBE_INSTANCES","arguments":{}}'
    expected: triggered
    bypass_technique: case_variation
    notes: "Case-insensitive flag covers uppercase tool name."

修訂紀錄

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