Back to skill

Security audit

Stroke Risk Screening Analysis Skill | 脑卒中风险筛查分析技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report that it may send sensitive health information without adequate disclosure, perform account and data actions beyond its stated screening purpose, and continue analysis when asked only to export settings.

Consider avoiding installation until the skill’s handling of health data, account registration, credential storage, shared-workspace identity, and export-only behavior is clarified. The skillspector scan is marked partial because a local reference was missing, so the evidence is incomplete even though all 29 listed components were scanned.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/stroke_risk_screening_analysis.py
Finding

CLI initialization discards the trusted sender identity and authenticates with a workspace-wide fallback account

Content
View full analysis

Impact

In the stated shared-workspace deployment, a requester can receive sensitive screening records associated with the fallback account. New analyses can also be attributed to that shared account. This does not require a server-side authorization bypass: the client sends the fallback account's own credentials.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (21)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk does not implement the declared medical-screening purpose. Its explicit behavior is generic initialization and a nonfunctional chat wrapper; it does not actually execute the commented-out agent command. Imported base classes and services could provide additional functionality, but their implementations are unavailable, so this assessment is limited to the supplied code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

Generic formatting, polling, and HTTP helpers can legitimately support the declared skill and are not themselves mismatches. However, this chunk also implements implicit account provisioning and persistent identity management not disclosed by the description. Its request wrapper can forward authentication credentials to arbitrary supplied HTTP(S) destinations, rather than restricting them to the configured health service. These are material capabilities beyond the stated screening purpose. This assessment is limited to the supplied utility module; clinical functionality may exist elsewhere.

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: "stroke-risk-screening-analysis"
description: "Combines TCM facial feature recognition with physiological indicator information to provide early warnings of high-risk stroke conditions such as cerebral infarction and cerebral hemorrhage, and provides lifestyle intervention suggestions and medical guidance. | 脑卒中风险筛查技能,结合中医面部特征辨识结合生理指标信息,提前预警脑梗塞、脑出血等脑卒中高危状态,给出生活干预建议和就医指引"
version: "1.0.25"
license: "MIT-0"
---

# 🧠 Stroke Risk Screening Analysis Skill | 脑卒中风险筛查分析技能
> **智能分�

The analysis workflow lacks a user-facing privacy warning about sending facial media and health measurements to an external API.

High
Category
Output Handling
Confidence
96% confidence
Finding

Although the documentation mentions a cloud API, the workflow does not require an explicit privacy disclosure or informed authorization before uploading facial media and health measurements. These are highly sensitive data, and automatic processing can disclose them to an external provider without users understanding the recipient, retention, or identity association.

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.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser promises that --export-env-only will not perform analysis, but the flag is never checked. When supplied with media, execution still initializes identity and invokes screening, potentially uploading facial media and medical measurements despite an explicit non-analysis request.

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

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only option is parsed but never used to stop execution. With a media input, this supposedly non-analysis invocation still calls video analysis and can transmit sensitive footage to the remote service.

Content

No source excerpt is available for this finding.

The save() method is documented as creating a new record but can overwrite an existing user after an insertion failure.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

Any insertion exception can cause save() to overwrite an existing record by ID or by a username/realname match, copying almost every column without an ownership check. Because user records contain authentication tokens and identity fields, conflicting input can corrupt or rebind an existing identity; exploitability depends on caller control over the supplied model.

Content

No source excerpt is available for this finding.

The ai_chat documentation claims agent-backed analysis, but the implementation never invokes an agent and always returns None.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes the openclaw agent through subprocess, and L33–L34 promise an analysis result or session ID. Instead, the invocation at L61–L66 is commented out, and the empty dictionary at L68 causes result.stderr at L70 to raise an exception that is caught without returning a result. This actively contradicts the documented analysis behavior and could leave callers without the expected screening analysis.

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
95% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents. No docstring, explanatory comment, confirmation, or operation-specific log discloses this behavior; exception tracing only occurs after a failure.

Content

No source excerpt is available for this finding.

Ordinary API requests can silently register a remote user account, beyond the stated stroke-screening purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

When tokens are missing, an ordinary request can invoke phoneLogin with silent=1 and register=1, transmitting the current identifier and potentially creating a remote account without a separate approval step in this code. This is a privacy-relevant side effect, particularly for a health-screening skill, although the supplied file does not establish whether consent is obtained elsewhere.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote user registration and local credential persistence.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The request wrapper can provision a remote account and pass returned token and openToken values to UserDao.save as a hidden prerequisite to an otherwise ordinary API call. This duplicates the registration concern above and adds credential-retention exposure; the DAO implementation is unavailable, so insecure storage permissions or encryption cannot be confirmed.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% 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 · 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"):

Configuration loading silently creates directories and files, including during module import.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is missing. BaseEnum.init_subclass invokes this loader during class definition (L053 and L058), so importing the module can modify the filesystem without an explicit save request; no comment, docstring, prompt, or log discloses this behavior in the supplied file.

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:

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