Back to skill

Security audit

禾连健康-体检预约助手

Security checks for vulnerabilities and agentic risk

Overview

This health-booking skill is purpose-aligned overall, but it tells the agent to store full patient, identity, and bank-card details in hidden plaintext files and prints payment secrets in logs.

Review before installing. The skill can book health-check appointments and process payments, but it may leave highly sensitive identity and financial information in ordinary local markdown files and logs. Do not use it with real patient or bank-card data unless storage is removed or replaced with encrypted, consented, minimal retention and payment secrets are fully redacted from output and logs.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (6)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:274
Finding

Plaintext persistence of sensitive patient identity and health-booking data

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:718
Finding

Plaintext persistence of complete bank-card and cardholder identity data

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:433
Finding

Skill instruction encourages disclosure of the complete authentication token

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/mcp_payment_tools.py:153
Finding

MCP payment client logs payment credentials, one-time codes, session identifiers, and raw protocol messages

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/pay_sign_service.py:33
Finding

Payment-sign service logs complete financial request data and raw credential responses

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/generate_qrcode.py:26
Finding

Caller-controlled QR-code filename permits path traversal and arbitrary file overwrite

Content
View full analysis
str: helian_dir = get_helian_info_dir() os.makedirs(helian_dir, exist_ok=True) qr = qrcode.QRCode( version=1, error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=10, border=4 ) qr.add_data(url) qr.make(fit=True) img = qr.make_image(fill_color="black", back_color="white") file_path = os.path.join(helian_dir, filename) img.save(file_path, format="PNG") return file_path ``` The command-line entry point passes the second argument directly as the filename: ```python filename = sys.argv[2] if len(sys.argv) > 2 else "payment_qrcode.png" file_path = generate_qrcode_file(url, filename) ``` ### Technical Analysis The caller controls `filename`, which is joined with the intended directory without validation. In Python, an absolute second path can replace the earlier path component, and relative components such as `../` can escape the `.helian_info` directory after path normalization. The image library writes PNG content to the resolved path without checking whether the destination already exists. Consequently, the process can overwrite any file writable by the current user. The attacker does not control arbitrary file content because the output remains a PNG image, but overwriting a sensitive or operational file can still cause corruption or denial of service. ### Attack Path 1. An attacker influences the optional filename argument passed to the script or function. 2. The attacker supplies an absolute path or a traversal path such as `../../target`. 3. `os.path.join` constructs a path outside the intended `.helian_info` directory. 4. `img.save` creates or overwrites the attacker-selected writable ...[truncated 534 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (38)

Context-Inappropriate Capability

Critical
Category
Not specified by scanner
Confidence
100% confidence
Finding

The skill directs the agent to store full bank-card details, cardholder identity numbers, and reserved phone numbers in a hidden desktop markdown file. This is extremely dangerous because it creates a plaintext local cache of financial credentials that can be stolen by other users, malware, backup systems, or accidental file sharing, enabling fraud and identity theft.

Content

No source excerpt is available for this finding.

Ssd 3

Critical
Category
Not specified by scanner
Confidence
100% confidence
Finding

The payment flow tells the agent to store complete bank-card records, ID numbers, and phone numbers in a hidden local file, which is a severe security flaw. In context, this is more dangerous because the skill is a conversational assistant rather than a hardened payment application, so the surrounding controls, auditability, and compliance expectations are likely weaker.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description emphasizes booking assistance but the workflow also performs external payment orchestration, status querying, and bank-card payment confirmation. Payment handling is a materially different and higher-risk capability than informational booking, so under-describing it can mislead users and reviewers about exposure to fraud and sensitive-data processing.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill description emphasizes booking assistance but the workflow also performs external payment orchestration, status querying, and bank-card payment confirmation. Payment handling is a materially different and higher-risk capability than informational booking, so under-describing it can mislead users and reviewers about exposure to fraud and sensitive-data processing.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill description emphasizes booking assistance but the workflow also performs external payment orchestration, status querying, and bank-card payment confirmation. Payment handling is a materially different and higher-risk capability than informational booking, so under-describing it can mislead users and reviewers about exposure to fraud and sensitive-data processing.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill instructs the agent to create a hidden desktop directory and persist sensitive identity and contact data locally. Storing medical-booking personal data in plaintext markdown outside a protected secrets store creates obvious risks of local compromise, accidental disclosure, malware harvesting, and unauthorized reuse across sessions.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill describes persisting sensitive personal data locally without any clear user-facing privacy warning, consent step, or retention notice. Hidden storage of health-booking identity data is especially problematic because users are unlikely to discover or manage what has been retained on their device.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The instructions explicitly direct the agent to persist highly sensitive personal data in a hidden local folder, which is a dangerous design pattern independent of whether the directory is hidden. Hidden placement reduces user awareness while doing nothing to protect confidentiality, making silent long-term accumulation of sensitive data more likely.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Appending patient identity data such as ID numbers, phone numbers, sex, and marital status to a reusable local markdown file introduces unnecessary retention of highly sensitive PII. Because the file is intended for later reuse, compromise of the host or shared workstation would expose multiple users' records over time.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The workflow instructs the agent to append identity records with ID numbers and phone numbers to a reusable markdown file, creating a plain-text dossier of users. This is dangerous because it centralizes sensitive PII in an easily readable format that can be copied, synced, or exfiltrated without specialized access.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The unauthenticated login branch repeats the same unsafe persistence pattern by saving newly collected patient data during login. Doing this before or as part of authentication broadens exposure because even partial or abandoned login attempts can leave sensitive identity data behind on disk.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The login branch also mandates saving newly collected identity details to a hidden desktop file, compounding the exposure. Because login workflows often involve hurried user interaction, this creates a significant risk of silently retaining sensitive PII without meaningful informed consent.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill stores bank-card and identity information locally without explicit warning or consent, which is unacceptable for financial data. Users would reasonably expect payment to be handled transiently by a payment processor, not copied into hidden desktop files for later reuse.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

Binding and retaining payment agreement identifiers alongside saved bank records turns the skill into a local payment-instrument manager, increasing the value of the stored data to an attacker. Agreement tokens can facilitate future charges or payment workflow abuse even when raw card data is not re-entered.

Content

No source excerpt is available for this finding.

Ssd 3

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

Retaining payment agreement identifiers together with local bank records extends the impact of compromise from data exposure to possible payment authorization abuse. For a health-booking assistant, that capability is unnecessary at the local file level and creates disproportionate risk relative to the stated purpose.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The tool sends payment-related arguments to an external payment service and logs full request/response details, including headers and payloads. Even if the credential is described as encrypted, verbose logs can expose payment credentials, session identifiers, URLs, and other sensitive transaction metadata to operators, log processors, or compromised observability systems.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The bank-card confirmation flow transmits an SMS verification code to a remote service and the convenience wrapper logs the SMS code in plaintext. SMS OTPs are authentication secrets; exposing them in logs or relaying them without strong consent and handling controls can enable account or payment compromise.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill clearly performs network operations against health-booking and payment services, yet it declares no explicit tool scope or permissions. That omission weakens operator visibility and policy enforcement, making it easier for a host agent to grant broader-than-expected network access without informed review.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger conditions are broad enough to activate on general health-related booking or consultation requests, which may pull users into a high-risk workflow involving identity collection and payment before they understand the scope. Overbroad activation increases the chance of unintentional collection of sensitive data in contexts where the user only wanted basic information.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/healthcheck_service.py (reported line 455)May include surrounding context.

python
branch_id=branch_id
            )
            if date_result.success and date_result.result:
                date_list = date_result.result.get("dateStampList") or []
                return pkg, date_list[:max_dates]
            return pkg, []

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/healthcheck_service.py (reported line 587)May include surrounding context.

python
branch_id=branch_id
            )
            if date_result.success and date_result.result:
                date_list = date_result.result.get("dateStampList") or []
                return pkg, date_list[:max_dates]
            return pkg, []

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/healthcheck_service.py (reported line 823)May include surrounding context.

python
branch_id=branch_id
            )
            if date_result.success and date_result.result:
                date_list = date_result.result.get("dateStampList") or []
                return pkg, date_list[:max_dates]
            return pkg, []

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/healthcheck_service.py (reported line 1070)May include surrounding context.

python
branch_id=branch_id
            )
            if date_result.success and date_result.result:
                date_list = date_result.result.get("dateStampList") or []
                return pkg, date_list[:max_dates]
            return pkg, []

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/healthcheck_service.py (reported line 1071)May include surrounding context.

python
branch_id=branch_id
            )
            if date_result.success and date_result.result:
                date_list = date_result.result.get("dateStampList") or []
                return pkg, date_list[:max_dates]
            return pkg, []

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The login flow sends a phone number, CAPTCHA-related identifier, and SMS verification code to external endpoints, yet the module contains no explicit privacy disclosure, security warning, or anti-phishing guidance for the user. While common in authentication flows, this is still sensitive credential handling, and agent-mediated collection can make users less aware that their authentication secrets are being relayed to a third-party service.

Content

No source excerpt is available for this finding.