Back to skill

Security audit

Respiratory Symptom Smart Recognition Tool | 呼吸道症状智能识别工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report unexpected account and credential handling, possible exposure of sensitive health data, and a mismatch between its advertised respiratory analysis and the supplied implementation.

The verdict is suspicious, with high overall confidence, and the scanner recommends not installing. Before considering it, seek clarification about the undeclared account and credential handling, verify where identity and video data are sent and what is retained, and ensure report retrieval and uploads require clear user authorization. Coverage is incomplete: Skillspector marked its scan partial because a referenced local path was missing, and the separate AIG scan completed with no findings; neither result establishes that the skill is safe.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (25)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The visible implementation does not substantiate the declared respiratory-monitoring purpose. It is generic skill scaffolding with an unfinished chat helper, not a symptom-recognition workflow. No subprocess execution actually occurs in this chunk. Imported base classes and API services are not supplied, so their behavior cannot be assessed; the mismatch finding is limited to the visible code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Ordinary formatting, polling, and filesystem helpers could support the declared skill and are not independently grounds for a mismatch. However, this chunk implements an account-management and authenticated API layer with automatic registration and identity transmission, neither of which is represented in the description. It contains none of the advertised respiratory-analysis functionality. This assessment is limited to the supplied chunk; other files could implement the advertised detection.

Content

No source excerpt is available for this finding.

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
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

Scanner excerpt · SKILL.md (reported line 3)May include surrounding context.

md
---
name: "respiratory_symptom_recognition_analysis"
description: "Based on computer vision, automatically detects coughing, phlegm, and wheezing frequency, counts the frequency of episodes, used for early health anomaly alerts, helping to detect respiratory diseases in a timely manner. | 呼吸道症状智能识别技能,基于计算机视觉自动检测咳嗽、咳痰、喘息频率,统计发作频次,用于健康异常早期提醒,帮助及时发现呼吸道疾病"
version: "1.0.28"
license: "MIT-0"
---

# 🫁 Respiratory Symptom Smart Recognition Tool | 呼吸道症状智能识别工具
> **智能分析中枢** · 图片/视频智�

The request helper attaches service credentials and user identity to unrestricted caller-supplied destinations.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically adds access tokens, an API key, authorization credentials, and user identity. A caller-controlled destination can therefore receive service secrets and identifying data, while plain HTTP also exposes them in transit; the health context increases the sensitivity of associated payloads.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Generic history-report requests automatically activate respiratory-report retrieval without requiring respiratory context.

Medium
Category
Trigger Abuse
Confidence
92% confidence
Finding

Generic requests such as querying historical reports automatically trigger retrieval of respiratory-health reports without establishing the intended report category. This can unnecessarily access and display sensitive medical history in an unrelated conversation or shared output channel.

Content

No source excerpt is available for this finding.

The analysis workflow lacks a privacy warning about sending sensitive video to a remote API.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow proceeds from a local video to remote analysis without requiring a user-facing disclosure or informed authorization for the transfer. Health-monitoring footage can expose identifiable patients, bystanders, and private surroundings, making an unexpected upload particularly sensitive.

Content

No source excerpt is available for this finding.

Cloud analysis of sensitive health videos lacks an explicit privacy warning.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The document identifies cloud processing but does not explain the privacy consequences of transmitting identifiable health footage or require informed authorization. Medical disclaimers address diagnostic limitations, not the confidentiality and retention risks of remote processing.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but analysis still runs.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only, but execution never checks the flag and proceeds to analysis when an input is supplied. A user relying on its explicit no-analysis promise can unintentionally upload sensitive health footage; identity initialization also occurs before any such guard.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · skills/smyx_analysis/scripts/skill.py (reported line 28)May include surrounding context.

python
result_json = JsonUtil.parse(result_json_pure_text, result_json_pure_text)

        result_json_common_ai_response = result_json.get("commonAiResponse") if isinstance(result_json,
                                                                                           dict) else result_json
        if result_json_common_ai_response:
            result_json = result_json_common_ai_response

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · skills/smyx_analysis/scripts/skill.py (reported line 33)May include surrounding context.

python
result_json = result_json_common_ai_response

        result_json_health_ai_response = result_json.get("healthAiResponse") if isinstance(result_json,
                                                                                           dict) else result_json
        if result_json_health_ai_response:
            result_json = result_json_health_ai_response

Local input files are passed to the analysis API without disclosing the upload to the user.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The method reads the entire local video and passes its bytes to the analysis API without a visible disclosure or authorization gate. In a respiratory-health workflow, this can transfer identifiable medical footage outside the user's environment without informed approval.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but the code ignores it and proceeds with video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never consulted, so supplying a video still invokes analysis despite the documented promise not to do so. This defeats a user's attempt to avoid processing and can cause unintended remote disclosure of private footage.

Content

No source excerpt is available for this finding.

save() is documented as creating a new record but can overwrite an existing record.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

A method documented as creating a record catches every insertion exception and instead attempts to overwrite an existing record by ID, then by username or realname. This can replace identity fields and stored tokens or corrupt another record when inputs collide, although unauthorized exploitation depends on caller control; identity integrity is particularly important for a health-related skill.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive behavior.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generic open helper always uses mode 'w', which immediately erases an existing file's contents. No docstring, explanatory comment, confirmation, or action log discloses this behavior; the exception handler only reports failures.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote user and persist account credentials, beyond the described symptom-analysis scope.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary HTTP request can implicitly invoke phoneLogin with silent registration enabled, transmit the current identity, and persist returned authentication tokens in SQLite. No explicit enrollment consent or credential-protection mechanism is shown, creating unexpected remote account state and local credential exposure beyond the described symptom-recognition function.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote user registration without disclosure.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The internal login request explicitly sets silent and register to 1, allowing routine request handling to create a remote account without a separate enrollment step. This undisclosed side effect sends an identity to a service and creates persistent account state unrelated to the user's apparent action.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

This POST transmits the selected username as both openId and mobile to the configured health-service login endpoint, with registration enabled. External transmission is not inherently malicious, but here it occurs implicitly without a visible consent check; the value can originate from a local identity file or configured API secret, increasing its sensitivity.

Content

Scanner excerpt · skills/smyx_common/scripts/util.py (reported line 561)May include surrounding context.

python
"source": ConstantEnum.DEFAULT__SKILL_HUB_NAME
            }
            try:
                _response = requests.post(_url, json=_data)
                if _response.status_code == 200:
                    _response_json = _response.json()
                    if _response_json and _response_json.get("success"):

Loading a missing configuration silently creates directories and writes a YAML file.

Low
Category
Output Handling
Confidence
93% confidence
Finding

YamlUtil.load creates parent directories and writes a new configuration file without a log, confirmation, or explanatory comment/docstring. Because BaseEnum.init_subclass invokes this loader (L053 and L058), importing the module can modify the filesystem, an unexpected side effect of loading configuration.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 243)May include surrounding context.

python
username = getattr(model, "username", None)
            if username:
                column_names = self.__model__.__table__.columns.keys()
                update_data = {key: getattr(model, key) for key in column_names if key != "username"}
                return self.update_by_username(username, **update_data)

            return None

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 353)May include surrounding context.

python
column_names = self.__model__.__table__.columns.keys()

            for key in column_names:
                value = getattr(model, key)
                setattr(instance, key, value)

            session.commit()

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 326)May include surrounding context.

python
if filters:
                for key, value in filters.items():
                    query = query.filter(getattr(self.__model__, key) == value)

            if offset:
                query = query.offset(offset)

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 441)May include surrounding context.

python
if filters:
                for key, value in filters.items():
                    query = query.filter(getattr(self.__model__, key) == value)

            return query.scalar()
        finally:

ai_chat documents an agent invocation but never executes it or returns an analysis result.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly claims that this method invokes the openclaw agent through subprocess, and L33-L34 promises an analysis result or session ID. However, the invocation is commented out at L61-L66; the empty dictionary at L68 causes result.stderr at L70 to raise AttributeError, which is caught at L81-L82, leaving the method to return None without performing analysis.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

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

python
elif isinstance(cur, dict):
                        cur = cur.get(part, default)
                    else:
                        cur = getattr(cur, part)
                return cur
            except Exception:
                return default