Back to skill

Security audit

Child Social Interaction Frequency & Duration Analysis | 儿童社交互动频次与时长分析

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report ignored no-analysis flags, undisclosed handling of video files and account credentials, and behavior that does not clearly match its stated child-interaction analysis purpose.

Consider the verdict suspicious and review the reported data handling and account-registration behavior before installing. In particular, verify that video uploads are authorized and that any credentials or user details sent to remote services are appropriate; scanner coverage is partial because a referenced path was missing, so the evidence is incomplete.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (21)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk does not substantiate the declared primary purpose and instead contains an incomplete, nonfunctional agent-chat wrapper. No subprocess execution actually occurs because that code is commented out. Imported base classes and services could contain additional functionality, but their behavior cannot be established from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Ordinary string, date, polling, and filesystem helpers could support the declared application and are not independently mismatches. However, the supplied chunk also implements an undeclared identity, remote account-registration, credential-persistence, and billing integration. Those behaviors access resources and introduce account-management capabilities not represented in the camera-analysis description. No camera ingestion, interaction detection, or heatmap generation appears in this chunk, although their absence from a shared utility module alone would not establish a mismatch. The configured service destinations and calling code are not supplied, so this assessment does not establish malicious intent or actual credential exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied chunk implements user-account database management rather than social-interaction analysis. It contains no camera ingestion, person tracking, distance estimation, conversation or play detection, heatmap generation, or periodic reporting. Database infrastructure could support the declared system, but the concrete user identity and token-management functionality shown here has no demonstrated connection to that purpose. No network transmission or token exfiltration is shown. This assessment is limited to the supplied chunk.

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-child-social-interaction-analysis-analysis"
description: "Using fixed cameras in kindergartens or early-education centers, the system analyzes multi-person video to detect social-interaction behaviors among children, including approach (distance < 1 m), conversation (face-to-face with mouth movement), and cooperative play (collaborative play, chasing, etc.). | 通过幼儿园或早教中心的固定摄像头,分析多人视频,检测儿童之间的社交互动行为,包括接近(距离<1米)、对话(面对面且嘴部运动)、共同游戏(合作玩耍、追逐等)。系统定期生成社交互动热力图,为教师

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 execute analysis, but the program ignores it and analyzes supplied video.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The program parses --export-env-only but never checks it, allowing supplied video to enter the analysis workflow despite an explicit promise not to analyze it. For classroom footage, this can cause unintended processing or remote disclosure of sensitive children's data, as well as unintended service charges.

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 file contents are submitted to the analysis API without disclosure that the file will leave the local system.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The local-file branch reads the complete video and passes it to the analysis service without an upload-specific disclosure or authorization check. Although cloud analysis is part of the broader workflow, children's classroom recordings warrant explicit authorization for external processing rather than assuming that selecting a local file grants informed upload consent.

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

The --export-env-only flag is accepted but ignored, so execution can proceed into video analysis despite the documented no-analysis guarantee. In this skill's deployment context, that can expose sensitive classroom footage to unintended processing or upload.

Content

No source excerpt is available for this finding.

ai_chat documents an agent invocation and analysis result, but performs no invocation and returns no analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly says this method invokes the openclaw agent through subprocess, and L33-L34 promise an analysis result or session ID. However, the invocation is commented out at L61-L66; the empty dictionary assigned at L68 causes result.stderr at L70 to raise an exception that is caught and suppressed at L81-L82, so the method returns None instead.

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

Opening a path in 'w' mode immediately erases any existing contents, even before the caller writes anything. This generically named helper has no docstring, explanatory comment, confirmation, or user-facing log disclosing that behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers remote accounts and persists their profiles and credentials, beyond the declared video-analysis purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary request with missing tokens can initiate remote registration using silent=1 and register=1, then save the returned profile and credentials through UserDao without an explicit enrollment step. Although service authentication may support video analysis, implicit registration and credential retention create an undisclosed identity-management side effect; the supplied file does not establish that children's video is transmitted by this registration path.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
91% confidence
Finding

This duplicates the implicit registration and credential-persistence issue identified by SDI-1, rather than establishing a separate vulnerability. A request helper unexpectedly performing enrollment expands the operation's privacy and persistence effects beyond merely submitting a video-analysis request.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The POST is not suspicious merely because it accesses a remote service, but its input flow presents a concrete concern: current__user_name preferentially takes ApiEnum.API_SECRET_KEY, which can then be submitted as both openId and mobile when tokens are missing. This repurposes a secret as registration identity data, potentially exposing it to profile storage or identity-field logging; the configured endpoint's trustworthiness and actual retention are not 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"):

Loading configuration silently creates directories and writes a configuration file if it is missing.

Low
Category
Output Handling
Confidence
93% confidence
Finding

YamlUtil.load performs filesystem writes without a confirmation, log, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass calls this loader during class definition, so importing this module can create configuration files 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:

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