Back to skill

Security audit

Trauma Stress Behavior Detection (Emergency Scene) | 受灾人群心理创伤行为识别(应急场景)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report undisclosed account and credential handling, unrestricted credential-bearing requests, and risks around sending sensitive shelter video for remote analysis.

Treat this as a review item and avoid installing it until you are comfortable with its account creation, credential handling, and remote video processing. The scan was partial: one referenced local path was missing, so the available evidence does not cover everything.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk is a user-management database utility, not a camera-analysis or crisis-alert implementation. It contains no video ingestion, behavioral detection, stimulus-response analysis, or alert generation. Database access can legitimately support a larger skill, but this chunk specifically manages user identities and token fields without an evident connection to the declared shelter-monitoring purpose. The mismatch is limited to the supplied code; it does not establish what other components do or show token collection or network exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The visible implementation materially differs from the declared purpose: it does not implement the described analysis or alerts, and its only substantive method is an incomplete generic chat wrapper. No subprocess execution or external transmission occurs in the shown method because those operations are commented out. Inherited functionality cannot be assessed from this chunk, so the finding is limited to the supplied code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Generic file, JSON, date, and polling helpers are ordinary supporting details and do not themselves establish a mismatch. However, the supplied code also implements an undisclosed identity, authentication, and billing workflow with local persistence and outbound identity/credential transmission. Those capabilities extend materially beyond the stated camera-analysis and crisis-alert purpose. No video processing, stress-behavior detection, or crisis-alert logic appears in this chunk; because it is a shared utility module, that absence alone does not prove those features are missing elsewhere. The configured service domains and actual invocation paths are not supplied, so malicious intent or actual credential leakage cannot be established.

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-trauma-stress-behavior-detection-analysis"
description: "Using fixed cameras in emergency shelters, the system analyzes video of disaster-affected crowds to detect typical acute stress reactions: stupor (prolonged motionless state with no response to external stimulation), tremor (involuntary shaking of body or limbs), unresponsiveness (no orientation or avoidance reaction to calls or sounds), and hypervigilance (frequent scanning of surroundings, startle reactions). | 通过应急避难所内的固定摄像头,分析受灾人群的行为视频,检测急性应激反应下的典型行为:木僵(长时间静止不动,对外界�

The request helper attaches service credentials to caller-supplied absolute URLs without restricting the destination.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and then adds service tokens and the API key without checking the destination. If an attacker can influence a requested URL, credentials can be sent to an attacker-controlled host; allowing HTTP also exposes them to interception.

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 an explicit privacy warning about remote processing of sensitive shelter footage.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

Although cloud APIs are mentioned, the workflow does not clearly warn that local shelter footage will leave the deployment environment or require authorization for that transfer. Identifiable footage of disaster survivors and inferred psychological distress is especially sensitive, and stated retention rules do not establish that the remote processor enforces them.

Content

No source excerpt is available for this finding.

The documented no-analysis mode still invokes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag promises no analysis but is never checked after argument parsing, so supplying an input still reaches the normal analysis call. A user relying on this mode could unintentionally transmit sensitive shelter footage for remote processing; identity initialization also occurs before any mode-specific handling.

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 disclosing the upload.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The implementation reads the complete local video into memory and passes it as a file payload to the analysis service without a visible disclosure or authorization gate. Shelter footage can expose identities, locations, and highly sensitive behavioral observations, making an unexpected remote transfer particularly consequential.

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 export-only argument is accepted but never used to alter control flow, so an invocation with video input proceeds to analysis despite promising not to. In this sensitive-video workflow, that can cause unauthorized remote processing and account-related side effects rather than a harmless configuration export.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to its declared video-based stress detection purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The User model stores usernames, real names, email addresses, demographic information, and token/open_token values (L448-L465), and UserDao exposes inherited CRUD operations over these records (L470-L473). DAO initialization also creates and migrates the user table (L184-L215). Managing persistent identity and credential records is not justified by the manifest's stated function of detecting stress behaviors and alerting psychological rescue teams.

Content

No source excerpt is available for this finding.

ai_chat documents delegation to the OpenClaw agent, but never invokes it or returns an analysis result (L24–L35, L60–L82).

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring explicitly promises to call openclaw agent through subprocess and return an analysis result or session ID. However, the invocation is commented out, and accessing result.stderr on the empty dictionary raises an exception that is caught, causing the method to return None without performing the documented analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its write-only behavior.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generic open helper uses mode 'w', which immediately erases an existing file's contents. No docstring, comment, confirmation, or operation-specific log explains this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

Video-analysis requests can silently register a remote user and persist account credentials.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

An ordinary HTTP request can trigger silent remote registration and save returned account information and bearer tokens through UserDao without a separate enrollment decision. These hidden identity and credential side effects exceed the declared video-analysis workflow and are particularly concerning where shelter-related data requires careful privacy controls.

Content

No source excerpt is available for this finding.

The HTTP helper automatically requests remote account registration without disclosing that side effect.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The authentication helper submits silent=1 and register=1 automatically when credentials are missing, making account creation an implicit side effect of a request. This prevents operators from making an informed enrollment and identity-disclosure decision before using the stress-analysis workflow.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

The registration POST sends the selected username as both openId and mobile without an explicit enrollment step. The caller prioritizes ApiEnum.API_SECRET_KEY as that username, so when tokens are missing a configured secret can be copied into identity fields and potentially retained in remote profile records or logs rather than used solely as an authentication credential.

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 parent directories and writes a YAML file when the requested path does not exist, without a log, confirmation, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader while the enum classes are defined (L052–L058), 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 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