YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]
- Category
- YARA Match
- Confidence
- 80% confidence
- Finding
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
- Content
md from skills.base import BaseSkill import requests from typing import Dict, Any class WeatherAdvancedSkill(BaseSkill): # 技能唯一标识,和基础版区分,平台不冲突 name = "weather_advanced_query" # 大模型触发专用描述,精准匹配用户意图,自动调用率高 description = "专业级全国城市天气查询,包含实时天气、未来7天预报、空气质量、生活指数、紫外线、穿衣建议、感冒风险等全维度信息" def execute(self, params: Dict[str, Any]) -> str: """技能执行入口,标配参数校验和异常捕获""" # 校验必填参数 city = params.get("city", "").strip() if not city: return "🙋♂️ 请告诉我需要查询的城市名称,比如北京、杭州、成都哦~" try: # 调用优化版稳定接口,超时短、容错
