Back to skill

Security audit

Neonatal Jaundice Screening (Facial Skin Color) | 新生儿黄疸筛查(面部皮肤颜色)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because it reports undeclared account and history access, credential handling, and risks around sending sensitive newborn media and identity data.

Consider avoiding installation until the account, credential, and data-transfer behavior is clarified and the analysis-only option is reliable. The scan is incomplete because a referenced local path was missing, so it cannot establish the full behavior of that component.

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

Error
Location
scripts/smyx_neonatal_jaundice_screening_analysis.py:60
Finding

CLI initialization discards the supplied sender identity and reuses a workspace-wide account

Content
View full analysis

Impact

In the affected shared-workspace deployment, one sender can retrieve neonatal screening history and report links associated with another sender's use of the default account. New analyses are also associated with the shared account.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Ordinary string, file, JSON, and HTTP helpers could support the declared functionality and are not independently evidence of a mismatch. However, this chunk also implements an undeclared account, identity, authentication, and billing workflow with local persistence and remote registration. Those behaviors go materially beyond the stated image-analysis purpose. The supplied chunk contains no camera capture, sclera or skin analysis, bilirubin estimation, or jaundice-risk classification; other files could implement those features, but that does not disclose the additional behaviors shown here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk is a user-account database utility, not a neonatal jaundice-analysis implementation. It contains no camera access, image processing, color measurement, bilirubin estimation, or risk classification. Although database access can support a larger application, this chunk specifically manages user identities and token fields, with no demonstrated connection to the declared medical-image workflow. The mismatch concerns the supplied chunk; it does not establish what other, unseen components implement. No network transmission or token harvesting is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied code does not substantiate the declared primary functionality. Although generic scaffolding could support a larger implementation, this chunk contains no image-processing or jaundice-assessment logic. The apparent external-agent invocation is disabled and should not be treated as an active command-execution capability. Behavior inherited from imported classes cannot be assessed from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The screening commands are consistent with the declared purpose, and remote input, output formatting, and saving results are supporting details. However, historical-report retrieval is an additional records-access capability not disclosed in the description, and its advertised automatic keyword triggers are absent from the declared triggers. The snippet documents these capabilities but does not establish how they are implemented or whether the claimed visual analysis actually occurs.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The clearest undeclared capability is the --list path, which retrieves analysis history using an open ID rather than assessing a newborn's jaundice risk. The main analysis path simply forwards a video path or URL to an imported implementation; this chunk contains no visible sclera detection, skin-color measurement, bilirubin estimation, or low/medium/high risk classification. Those functions could exist in the unavailable implementation, so their absence here does not establish that the complete skill lacks them. Nevertheless, the visible history-retrieval capability extends beyond the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

Generic HTTP and download helpers could support the declared workflow and are not inherently a mismatch. However, the explicitly exposed username-based user lookup accesses an unrelated resource without an evident connection to jaundice assessment. The supplied chunk therefore exposes an undeclared capability. This conclusion is limited to this file; it does not establish whether other files implement the advertised medical-image analysis.

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: "smyx-neonatal-jaundice-screening-analysis"
description: "Using a neonatal monitor or baby camera, the system captures high-resolution facial images of the newborn and uses AI visual analysis to detect sclera color (white in normal babies, yellow when jaundiced) and facial skin yellowness index (based on skin-color chromatic spaces, e.g., mapping the skin region to estimated clinical bilirubin levels). It outputs a jaundice-risk hint (low / medium / high risk). | 通过新生儿监护器或婴儿摄像头拍摄新生儿面部高清图像,利用AI视觉分析技术检测巩膜(眼白)的颜色(正常白色,黄疸时呈黄色)

The request helper can forward platform credentials to arbitrary absolute URLs.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and attaches platform tokens and API keys without checking the destination origin. If an untrusted URL reaches this helper, an attacker-controlled endpoint can receive credentials; HTTP destinations also expose them in transit, potentially compromising accounts used for sensitive health services.

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 analyze images, but does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to analyze, but execution never checks the flag. When combined with an input, the command proceeds into analysis and potentially uploads sensitive newborn imagery despite the caller explicitly selecting a non-analysis operation; identity initialization also occurs beforehand.

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 video contents are passed to the analysis API without disclosing the upload to the user.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The code reads the entire local media file and passes its contents to the remote analysis API without a specific upload notice or consent check. Although the surrounding documentation mentions APIs and general guardian consent, it does not clearly explain that selecting a local file transfers newborn facial and health-related data to an external processor.

Content

No source excerpt is available for this finding.

The --export-env-only help promises not to execute analysis, but the flag is never checked.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never consulted, so supplying it with media still invokes the analysis workflow. This violates an explicit no-analysis expectation and can transmit sensitive neonatal media or perform account-related operations when the caller intended only environment setup.

Content

No source excerpt is available for this finding.

The file implements persistent user-account and credential management unrelated to neonatal jaundice screening.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model stores account identifiers, real names, email addresses, and token/open_token credentials, and UserDao exposes the inherited database read, update, and delete operations for those records. This account-management capability is not justified by the manifest's facial-image analysis and jaundice-risk output; DAO initialization also creates and migrates the sys_user table (L180-L214), rather than limiting persistence to screening data.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims to invoke the OpenClaw agent through subprocess, but the method never invokes an agent or returns analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly promises subprocess-based agent execution, but both the command arguments and subprocess.run call are commented out. Instead, L68 initializes an empty dictionary and L70 accesses its nonexistent stderr attribute; the exception is caught at L81–L82, so the method returns None rather than an analysis result or session ID. This actively contradicts the documented analysis behavior.

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

The generically named open helper always uses mode 'w', which erases an existing file's contents immediately upon opening. There is no confirmation, operation-specific log, docstring, or comment explaining this destructive behavior; the exception handler does not disclose successful truncation.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote user and persist account credentials, beyond the declared screening workflow.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary request can initiate a separate login/registration request with silent and register enabled, then persist returned credentials without an explicit enrollment gate. This undisclosed identity side effect is especially concerning in a neonatal-health workflow, although this block does not itself transmit infant images.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote user registration without disclosing the additional data transfer or account creation.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The request helper hides remote registration behind normal HTTP operations, sending the selected identity as both openId and mobile without a dedicated consent check. This duplicates the enrollment issue identified by SDI-1 and creates an unexpected identity disclosure in a health-screening context.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
92% confidence
Finding

This specific transmission sends an identity and source metadata to a configured remote login/registration endpoint as an automatic side effect, without an explicit authorization gate. External requests are not inherently unsafe, but the undisclosed enrollment behavior makes this transmission a privacy concern; neither the destination's ownership nor infant-image transmission is established here.

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 configuration file when the requested path is missing, without a warning, log, comment, or docstring disclosing this side effect. BaseEnum.init_subclass invokes this loader during class creation (L052–L059), so importing the module can modify the filesystem without an explicit save request.

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