Back to skill

Security audit

Child Hazardous Behavior Recognition Tool | 儿童危险行为识别分析工具

Security checks for vulnerabilities and agentic risk

Overview

This skill needs review because it uploads children’s videos, silently provisions accounts, and promises real-time protection beyond what its code demonstrates.

Before installing, confirm the provider’s handling and deletion of children’s footage, account enrollment, and stored credentials. Do not rely on --export-env-only to prevent processing or --api-url to change the destination; both are ignored. Avoid supplying production secrets until identity handling is corrected. Remote detection accuracy, retention, and account isolation remain unverified. Keep human supervision and do not rely on the advertised continuous alerts.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (24)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk implements user database infrastructure rather than child-danger recognition or real-time alerting. It contains no sensor or video processing, danger classification, or alert delivery. Persistence can be a supporting implementation detail, but this chunk specifically manages accounts, personal information, and token fields without showing a connection to the declared safety function. This assessment is limited to the supplied chunk; it does not establish what other skill components implement or imply that stored data is transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible implementation does not substantiate the declared safety-monitoring purpose. There is no sensor or video processing, dangerous-action classification, or alert generation in this chunk. No subprocess or external agent is actually executed because that code is commented out. 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
94% confidence
Finding

The documentation promises continuous monitoring and immediate alerts, whereas the supplied workflow submits individual videos and retrieves reports without a demonstrated continuous-monitoring or alert-delivery mechanism. In a child-safety context, reliance on these unsupported assurances could delay intervention even if the remote service performs valid video analysis.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Generic formatting, polling, and HTTP helpers can legitimately support a safety-monitoring skill and are not mismatches by themselves. However, this chunk also introduces account provisioning, persistent identity management, and credential-bearing network requests that the description does not disclose or connect to child-safety supervision. The HTTP wrapper accepts absolute URLs and adds authentication headers without checking the destination. These are material additional behaviors, although the snippet does not demonstrate malicious use. Because this is a shared utility module rather than the complete skill, the absence of detection logic here alone would not establish that the full skill lacks its advertised functionality.

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 analysis workflow lacks a privacy warning for remote processing of children's surveillance footage.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

Although cloud APIs are mentioned, the workflow does not clearly disclose that selecting a local file sends children's surveillance footage to a remote processor. Such footage can reveal identities, locations, and private activities, making informed authorization especially important.

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 video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only but never checks it, so providing an input still reaches analysis despite the explicit promise not to execute it. This can cause unexpected remote processing of sensitive child footage, and identity initialization also occurs before any such safeguard.

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 submitted to an analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The method reads the local video into a multipart file payload and passes it to the analysis service without a disclosure or authorization gate in this path. Uploading children's surveillance footage without clear remote-processing authorization creates a significant privacy risk.

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 still invokes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never used, allowing supplied videos to reach analysis despite the documented no-analysis behavior. Callers expecting a side-effect-free operation can consequently initiate identity handling and remote processing of private footage.

Content

No source excerpt is available for this finding.

The save() docstring promises creation of a new record, but failures trigger updates to existing records.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Any insertion exception causes save() to attempt an update by ID and then by username or realname, potentially replacing an existing record's identifiers, credentials, and other columns. If callers can influence submitted records, a nominal creation operation can overwrite another record; the source does not establish upstream authorization safeguards.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive write mode.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open helper uses mode 'w', which immediately erases an existing file's contents. There is no confirmation, action log, docstring, or comment explaining this behavior; exception reporting does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers remote user accounts and persists account credentials, beyond the advertised child-danger detection and alerting.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

When credentials are missing, an ordinary request can silently register or log in a remote account and persist returned access credentials through UserDao. This introduces undisclosed identity provisioning and durable credential storage, which deserve particular scrutiny in a child-supervision context, although the source does not prove malicious intent or transmission of child imagery.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and transmit the current identity.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The login payload explicitly sets silent=1 and register=1, allowing a normal HTTP operation to create an account and transmit the selected identity without a distinct provisioning step. In a child-safety deployment, operators should be able to approve external identity linkage rather than have it occur implicitly.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

This POST transmits the current identity as both openId and mobile to the configured health-service login endpoint during implicit provisioning. The caller can select API_SECRET_KEY as that identity, so the payload may also disclose a credential in identity fields; the supplied source does not establish the endpoint's trust boundary or authorization for that use.

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"):

Generic history-report phrases automatically trigger this child-monitoring skill without requiring child-safety context.

Low
Category
Trigger Abuse
Confidence
90% confidence
Finding

Generic historical-report phrases can automatically trigger this skill, and the document requires an immediate cloud query rather than checking the intended report domain. This can unnecessarily retrieve sensitive child-monitoring reports during an unrelated conversation.

Content

No source excerpt is available for this finding.

Loading configuration silently creates directories and a YAML file when the file is missing.

Low
Category
Output Handling
Confidence
91% confidence
Finding

YamlUtil.load performs filesystem writes without a comment, docstring, confirmation, or user-facing log explaining this side effect. Because BaseEnum.init_subclass invokes this loader (L053 and L058), importing the 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 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()

The ai_chat docstring claims to invoke an agent subprocess, but the implementation never invokes it.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method calls the openclaw agent command through subprocess, but both the command arguments and subprocess invocation are commented out at L49–L66. Instead, L68 creates an empty dictionary, and accessing result.stderr raises an exception that is caught, causing the method to return None rather than the documented analysis result or session ID.

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