Back to skill

Security audit

Child Separation Anxiety Detection (Pre-School Crying) | 儿童分离焦虑识别(上学前哭闹)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report credential and identity handling, video upload and execution behavior that conflicts with its stated child video analysis purpose.

Given the suspicious verdict, consider not installing until you can verify the service receiving any uploaded videos, understand its handling of footage and identity data, and confirm that the account, credential, and history features are intended. The scan reports complete coverage of the 29 listed components, but some imported behavior was not assessable from the relevant code chunks.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk is generic skill scaffolding rather than an implementation of the declared video-analysis capability. The agent invocation is disabled, so it does not provide an alternative analysis path. Imported base classes and services are not supplied, so their behavior cannot be assessed; the mismatch finding is limited to the visible code. There is no evidence here of malicious activity or active external command execution.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Account persistence and schema management are not inherently unrelated to a cloud service, but the documented silent reuse of a local default identity creates a concrete isolation risk. In a workspace serving multiple people, separate users could submit footage or retrieve sensitive child reports under the same account without realizing it.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Ordinary string, file, date, and polling helpers are supporting implementation details and are not themselves mismatches. However, this chunk also implements an undeclared account, credential, and billing integration involving local identity resources and remote registration. Credentials are attached without a destination-host restriction in the shown code. No camera processing, expression/action detection, or anxiety scoring appears here. As this is a shared utility module, that absence alone does not establish that the full skill lacks those features; the mismatch rests on the additional identity/account behavior actually shown. No specific external hostname or actual invocation is established by this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

The --list branch calls get_output_analysis_list with the resolved current user identifier and returns historical analysis records without requiring a video. This is an additional data-retrieval capability not disclosed in the description. Video-analysis delegation, identity initialization, and output-file writing can otherwise be supporting implementation details. Because the imported skill implementation is absent, this chunk alone cannot establish whether the promised detection and severity assessment are actually performed; the pet-type option does not by itself prove an unrelated primary purpose.

Content

No source excerpt is available for this finding.

Caller-supplied absolute URLs receive service credentials without a destination-origin restriction.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and attaches service tokens and API keys without checking the destination origin. If an attacker can influence a caller's URL, credentials can be sent to an attacker-controlled host; accepting HTTP also permits plaintext credential transmission.

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 documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to analyze, but the parsed option is never checked. With an input supplied, execution initializes identity and invokes analysis anyway, potentially sending sensitive child footage to the service 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

Local video contents are passed to the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The code reads the entire local video and passes it as a file payload to the analysis service without a visible upload-consent check. Although API use is documented, that is not an explicit disclosure that identifiable child and parent footage leaves the device, making this a significant privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze video, but the code still invokes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never used to control execution. Supplying it alongside a video still reaches identity initialization and analysis, violating the promised no-analysis behavior and potentially transmitting sensitive footage.

Content

No source excerpt is available for this finding.

DAO initialization modifies a shared user-account database schema, a capability not justified by the declared video-analysis purpose.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The manifest describes detecting children's separation-anxiety behaviors in videos, not managing system user accounts. Initializing this DAO calls _create_tables() and _alter_tables(), which create registered tables and add source_id and realname columns to sys_user when absent (L184–L215), using the workspace-shared database selected at L172–L180. Unlike storing analysis results, these account-schema modifications have no demonstrated connection to the declared workflow.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

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

Content

No source excerpt is available for this finding.

The request helper silently provisions a backend account and persists authentication data, beyond the manifest's video-analysis workflow.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

An ordinary request can trigger remote registration using the resolved identity and persist returned authentication tokens through UserDao without a separate enrollment decision. This creates an undisclosed account and credential-storage side effect, particularly relevant when users expect a child-video analysis workflow; the supplied code does not establish how securely the tokens are stored.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote account without disclosing that side effect.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The authentication fallback explicitly sends register=1 and silent=1, allowing a routine request to create a remote account without a distinct user-approved enrollment step. This is the same underlying undisclosed provisioning issue identified by SDI-1, not an additional independent exploit.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
81% confidence
Finding

This POST transmits the resolved identity as both openId and mobile to the configured backend as part of automatic enrollment. The concern is the undisclosed identity transmission associated with that enrollment, not external networking alone; this call does not demonstrate transmission of children's videos or an attacker-owned destination.

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

YamlUtil.load creates a parent directory and writes a configuration file when the requested path is absent, without any explanatory comment, docstring, prompt, or log. Because BaseEnum.init_subclass invokes this loader at L052–L058, 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 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 invokes the agent or returns its analysis.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly says this method calls the openclaw agent through subprocess, but the entire invocation is commented out at L61–L66. Instead, it creates an empty dictionary and accesses its nonexistent stderr attribute; the resulting exception is caught, so the method returns None without performing the documented analysis delegation.

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