Back to skill

Security audit

medical-triage-booking

Security checks for vulnerabilities and agentic risk

Overview

This medical triage skill mostly matches its stated purpose, but its route-planning flow handles sensitive location data too loosely and includes insecure Baidu Maps behavior that should be reviewed before use.

Install only after reviewing the route-planning behavior. The triage and matching scripts are local aids and are not a medical diagnosis, but directions may reveal sensitive location and hospital-intent data to Baidu or an unspecified IP-geolocation provider. Prefer requiring the user to enter an origin, asking consent before any location lookup, changing generated map links to HTTPS, removing or rotating the hard-coded Baidu key, and documenting that the skill is Chinese/Beijing-focused.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/baidu_route_link.py:75
Finding

Precise Location Data Exposed Through a Plaintext HTTP Route URL

Content
View full analysis
str: if origin_name: origin = f"name:{origin_name}|latlng:{origin_lat},{origin_lng}" else: origin = f"{origin_lat},{origin_lng}" if dest_name: destination = f"name:{dest_name}|latlng:{dest_lat},{dest_lng}" else: destination = f"{dest_lat},{dest_lng}" params: Dict[str, str] = { "origin": origin, "destination": destination, "mode": mode, "coord_type": coord_type, "output": "html", "src": self.src, } if region: params["region"] = region return "http://api.map.baidu.com/direction?" + urlencode(params) ``` ### Technical Analysis The generated route URL uses plaintext HTTP while embedding exact origin and destination coordinates. Optional human-readable origin and destination names are also included in the query string. Although the preceding route-calculation API call uses HTTPS, the link returned to the user does not. When the link is opened, its query string may be visible to network intermediaries such as public Wi-Fi operators, proxies, gateways, or other on-path observers. An active intermediary could also modify the response or redirect the user to a malicious destination. URLs may additionally be retained in browser history, proxy logs, analytics systems, and referrer data. In the context of a medical triage Skill, the destination may reveal an intended hospital or medical specialty, making the exposed route data more ...[truncated 1201 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/baidu_route_link.py:142
Finding

Hard-Coded Baidu Maps API Credential in Distributed Source Code

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:118
Finding

User IP Geolocation Is Requested Without an Explicit Consent or Least-Privilege Boundary

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (24)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The documented behavior claims broad medical-triage functionality but the analyzed implementation apparently performs only a narrow routing-related function while making undisclosed external API calls. In a medical context, hidden divergence plus third-party transmission is more dangerous because users may disclose sensitive health data under the assumption of local triage assistance.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The documented behavior claims broad medical-triage functionality but the analyzed implementation apparently performs only a narrow routing-related function while making undisclosed external API calls. In a medical context, hidden divergence plus third-party transmission is more dangerous because users may disclose sensitive health data under the assumption of local triage assistance.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The documented behavior claims broad medical-triage functionality but the analyzed implementation apparently performs only a narrow routing-related function while making undisclosed external API calls. In a medical context, hidden divergence plus third-party transmission is more dangerous because users may disclose sensitive health data under the assumption of local triage assistance.

Content

No source excerpt is available for this finding.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · assets/hospital_extracted_final.csv (reported line 1)May include surrounding context.

text
"hospital_name","hospital_intro","department_name","department_intro","doctor_name","doctor_department","doctor_intro","doctor_schedule"
"中日友好医院","","呼吸与危重症医学科","","王辰","呼吸与危重症医学科","",""
"中日友好医院","","中医妇科","","许润三","中医妇科","",""
"中日友好医院","","呼吸与危重症医学科","","曹彬","呼吸与危重症医学科","",""

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill declares executable scripts, file access, environment-variable dependence, and external network-related behavior, but does not declare any tool scope or permissions. This weakens sandboxing and review controls, making it harder to constrain what the skill can access if executed in a broader-capability runtime.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

技能描述声称提供“基于百度地图的到院路线规划链接”,且内置资源列出百度路线与地理编码脚本。然而后续操作说明要求“用 amap-jsapi-skill 技能生成推荐路线”,这不是信息缺失,而是对实际实现的直接矛盾描述。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill metadata and description are entirely framed for Chinese-speaking end users and specific Beijing services, but the file does not state that the skill is region/language-specific or provide a user language choice. Under the policy, forcing a specific language or locale without opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Manifest 描述与资源清单将路线规划定义为“基于百度地图”的能力,并列出 baidu_route_link.py 与 baidu_geocode.py 作为实现资源。但工作流程第 7.3 步明确要求使用 “amap-jsapi-skill” 生成路线并给出链接,这与技能宣称的地图平台和实现方式不一致。

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs using the user's IP to infer location for route planning without any notice, consent, or less-invasive default. Inferring location from IP constitutes collection of sensitive contextual data, and in a medical skill it can reveal where a user is seeking care and create unnecessary privacy exposure.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The instruction to infer user location from IP lacks a necessity justification and consent handling, resulting in unnecessary processing of personal data. In the medical context, combining approximate location with healthcare-seeking activity increases privacy risk and could expose sensitive behavioral information if logged or shared.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

This CSV row embeds website text that explicitly presents an English mode alongside other site content, but the extracted dataset itself is overwhelmingly Chinese and provides no indication of user language choice or localization handling. For a skill consuming this file, the natural-language content reflects a fixed locale presentation rather than an explicit opt-in language policy.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This row contains mixed-language site navigation text including "ENGLISH/英文" and fixed Chinese content, but the dataset itself does not offer any user-selectable locale mechanism. That creates a locale-policy concern if a skill relies on this file as authoritative output content and serves it without user choice.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The row includes explicit references to audience-specific language editions such as "大众版 专业版 English," but the file as stored is a fixed-language extract with no accompanying opt-in or selection instructions. In an AI skill context, this can result in users being served a predetermined locale without consent.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The entire skill guidance is written only in Chinese and does not indicate that users may choose another language or locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is explicitly documented and justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The script transmits user-supplied address and city values to Baidu's external geocoding API, which is a real privacy issue in a medical-triage skill because destination searches may reveal sensitive health-related intent such as a specific hospital or specialty clinic. There is no in-code consent, minimization, or disclosure mechanism, so potentially sensitive user data is sent to a third party without an explicit trust boundary being surfaced.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

This code makes an outbound request to an external service, carrying user-controlled location data in the query string. In the context of medical triage and hospital booking, even seemingly simple address or hospital-name lookups can expose sensitive health-related information to a third party, so the external transmission is security-relevant rather than a harmless implementation detail.

Content

Scanner excerpt · scripts/baidu_geocode.py (reported line 21)May include surrounding context.

python
def geocode(address: str, city: str, ak: str, timeout: int) -> Dict[str, Any]:
    url = "https://api.map.baidu.com/geocoding/v3/"
    params = {
        "address": address,
        "city": city,

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/baidu_route_link.py (reported line 30)May include surrounding context.

python
alternatives: int = 1,
    ) -> Dict[str, Any]:
        endpoint_map = {
            "driving": "https://api.map.baidu.com/directionlite/v1/driving",
            "walking": "https://api.map.baidu.com/directionlite/v1/walking",
            "riding": "https://api.map.baidu.com/directionlite/v1/riding",
        }

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/baidu_route_link.py (reported line 31)May include surrounding context.

python
alternatives: int = 1,
    ) -> Dict[str, Any]:
        endpoint_map = {
            "driving": "https://api.map.baidu.com/directionlite/v1/driving",
            "walking": "https://api.map.baidu.com/directionlite/v1/walking",
            "riding": "https://api.map.baidu.com/directionlite/v1/riding",
        }

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/baidu_route_link.py (reported line 32)May include surrounding context.

python
alternatives: int = 1,
    ) -> Dict[str, Any]:
        endpoint_map = {
            "driving": "https://api.map.baidu.com/directionlite/v1/driving",
            "walking": "https://api.map.baidu.com/directionlite/v1/walking",
            "riding": "https://api.map.baidu.com/directionlite/v1/riding",
        }

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script transmits precise origin/destination coordinates and the API key to Baidu's external routing service without any visible consent, minimization, or disclosure mechanism. In a medical-triage context, location data can be sensitive because it may reveal care-seeking behavior and proximity to specific hospitals, increasing privacy risk even though the transmission is functionally necessary.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
99% confidence
Finding

The generated Baidu map link uses plain HTTP, which exposes precise origin/destination coordinates, place names, and routing context to interception or modification by network attackers. In this medical booking skill, such leakage can reveal highly sensitive healthcare-related travel patterns and enable tampering with the destination link shown to users.

Content

Scanner excerpt · scripts/baidu_route_link.py (reported line 101)May include surrounding context.

python
if region:
            params["region"] = region

        return "http://api.map.baidu.com/direction?" + urlencode(params)


def format_distance(distance_m: Optional[int]) -> str:

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This code emits a natural-language note in Chinese ("默认输出提前半天内的3次提醒:12小时、6小时、2小时。") while the rest of the CLI interface and error text are in English. That creates a locale-policy concern because the skill forces a specific language for part of the user-visible output without any opt-in or documented locale constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The argument parser defaults --city to 北京, which imposes a specific locale/language assumption on users without opt-in. This can violate language/locale policy expectations unless the tool is explicitly documented as China-specific or offers a neutral default.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The helper functions return Chinese-only strings such as 未知, 小时, and 分钟, which fixes the output language regardless of user preference. This is a natural-language locale policy concern because the skill does not offer opt-in or configuration for language selection.

Content

No source excerpt is available for this finding.