Back to skill

Security audit

Pregnant Prolonged-Standing / Over-Fatigue Detection | 孕妇久站/过度劳累识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report unexpected account and credential handling, a shared-account privacy risk, and an export-only option that may still run video analysis; scan coverage was partial.

Consider the suspicious verdict and the privacy and account-linking concerns before installing. In a shared workspace, the reported account behavior could expose analysis history across senders; the export-only issue could also cause video analysis when you did not expect it. Skillspector scanned 28 of 29 components, with one partially inspected and a degraded tool-misuse analyzer, so the evidence is incomplete.

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/smyx_pregnant_posture_fatigue_detection_analysis.py
Finding

Default CLI invocation discards the upstream sender identity and reuses a workspace-wide account

Content
View full analysis

Impact

In the stated shared-workspace configuration, a sender can receive the shared account's pregnancy-analysis history, including reports created for another sender. New analyses are also associated with the shared account. This does not require a remote API authorization bypass.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (20)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk does not implement the declared monitoring and reminder workflow; it is generic skill scaffolding with a nonfunctional chat helper. No external command is actually executed, and no camera or notification access is shown. Imported base classes and API services could contain additional behavior, but their implementations are not supplied, so they cannot substantiate the declared purpose in this assessment.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Ordinary formatting, polling, and workspace utilities could support the declared feature and are not themselves mismatches. However, this chunk additionally implements an undeclared account and billing integration: it reads data/smyx-api-key.txt, creates or reuses local users, posts identity data to /sys/phoneLogin with registration enabled, stores returned credentials, and adds credentials and user metadata to requests. Absolute request URLs are accepted without a visible destination restriction. These account-management and credential-transmission capabilities materially exceed the camera-monitoring and reminder description. The supplied chunk contains no posture analysis or fatigue assessment, although those functions could exist elsewhere; the finding rests on the additional behavior shown, not merely their absence.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied code implements video submission and generic report management, without pregnancy-specific analysis parameters, posture metrics, fatigue thresholds, camera monitoring, or notification delivery. File validation, API submission, and polling could support the declared purpose and are not inherently mismatches. However, the visible workflow does not establish the specialized monitoring and reminder behavior that defines the description. Imported API implementations are not supplied, so pregnancy-specific processing inside those services cannot be ruled out.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

The code delegates video analysis to skill.get_output_analysis and exposes a separate history-listing operation through skill.get_output_analysis_list. It contains no visible fixed-camera monitoring, standing-duration tracking, bending-frequency calculation, fatigue assessment, or reminder delivery. Those specialized functions could exist in the imported implementation, which is not supplied, so their absence here is not conclusive evidence that the complete skill lacks them. Nevertheless, the supplied chunk exposes undeclared account-linked analysis-history retrieval and does not substantiate the specialized behavior described. API delegation and optional file output are supporting implementation details, not independently suspicious capabilities.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises no analysis, but execution never checks that flag. When an input or URL is also supplied, the normal analysis path still runs, potentially transmitting sensitive pregnancy-related home video despite the caller explicitly selecting a non-analysis operation.

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 --export-env-only option promises not to analyze video, but does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never consulted, so supplying it alongside an input still invokes video analysis. This violates an explicit no-analysis expectation and can cause unintended remote disclosure of sensitive home-camera footage in this skill's context.

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

L101 opens the supplied path in 'w' mode, immediately erasing existing contents. The generic open wrapper has no confirmation, action log, docstring, or comment explaining this 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 health-service account and persist its credentials, beyond the declared posture-monitoring functionality.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

An ordinary request can automatically invoke a remote login/registration endpoint with silent=1 and register=1, transmit the current identity, and persist returned credentials without an explicit enrollment step. This is particularly privacy-sensitive for pregnancy-related monitoring, although this excerpt does not establish transmission of camera footage or health measurements.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently trigger remote registration and identity transmission without disclosure.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The HTTP wrapper couples routine requests to automatic remote account creation and identity disclosure when tokens are unavailable, without a visible consent gate. This duplicates the provisioning issue in SDI-1 rather than representing a separate exploit, and the health-monitoring context increases the privacy consequences of unexpected account linkage.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The POST transmits an identifier as both openId and mobile to the configured health service; the caller prioritizes API_SECRET_KEY as that identifier, so an API key can also be copied into registration fields. This is a concrete instance of the automatic-registration privacy issue, not evidence that every external request is malicious or that pregnancy footage is transmitted.

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, without a warning, log, or explanatory comment or docstring. BaseEnum.init_subclass invokes this loader during class definitions, so merely importing the module can modify the filesystem without disclosure.

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 OpenClaw subprocess invocation, but the implementation never invokes it or returns an analysis result.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method calls the OpenClaw agent through subprocess, and L33–L34 promise an analysis result or session ID. However, command construction and execution are commented out; the empty dictionary at L68 triggers an attribute error at L70, which is caught, causing the method to return None without performing analysis.

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