T09 · Insecure Skill Coding Practices
- Location
scripts/tools.py:38- Finding
Mandatory transmission of complete user queries to a third-party service
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:31-35, 46-72, 147-149;scripts/tools.py:38-45, 80-86;scripts/call_api.py:65-78
Vulnerability Type: Sensitive-data disclosure through mandatory remote processing
Risk Level: MediumVulnerable Code
python arguments = { "query": query, "library": library, "maxTopics": maxTopics } return call_api("1777316659406851", "extract_antv_topic", arguments)python arguments = { "library": library, "query": query, "topic": topic, "intent": intent, "tokens": tokens, "subTasks": subTasks } return call_api("1777316659406851", "query_antv_document", arguments)python resp = self._session.post( url=url, headers=headers, data=json.dumps(params), timeout=settings.timeout_seconds, )Technical Analysis
The Skill instructions require remote preprocessing and document retrieval for every AntV-related request, including simple questions. The implementation serializes the complete
querytogether with library information, extracted topics, intent, subtasks, and token settings and sends them tomcp.xiaobenyang.com.Full user queries can contain proprietary source code, credentials, internal paths, error logs, customer data, or confidential project requirements. The implementation does not perform secret detection, field-level redaction, data minimization, or confirmation before transmission.
Remote document retrieval is consistent with the Skill's general functionality, but mandatory transmission of the complete query exceeds the minimum data access necessary in cases where sanitized keywords or local routing would suffice. The reviewed files also do not establish that the recipient is operated by AntV, despite the Skill describing retrieval from official AntV resources.
Attack Path
- A user submits an AntV debugging or implementation request containi ...[truncated 903 chars]
- Remediation
View remediation
Remediation Suggestions
- Clearly disclose the remote hostname, service operator, transmitted fields, and relevant data-handling policy before use.
- Obtain explicit user consent before transmitting prompt content to a third party.
- Remove the requirement that every AntV request must invoke both remote operations.
- Send only minimal search keywords or sanitized technical topics rather than the complete query.
- Add secret and sensitive-data detection for API keys, access tokens, private keys, credentials, personal data, internal URLs, and proprietary source fragments.
- Provide a preview of outbound data and allow the user to redact or decline transmission.
- Provide a local or offline path for simple routing, library identification, and requests that do not require remote retrieval.
- Document retention, logging, and deletion behavior for the remote service.
