Back to skill

Security audit

Psychological Stress Assessment Skill | 心理压力评估技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report undeclared account and credential handling, privacy risks around remote media analysis, and a mismatch between the stated mental-health purpose and some reported capabilities.

Treat this as a review-level warning and weigh the reported handling of facial media, identity details, and credentials before installing. The scan was marked partial because a local reference was missing, so the evidence is incomplete; the findings do not establish malicious intent.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied chunk's implemented purpose is user-account persistence, not facial-signal analysis or mental-health assessment. It contains no blood-flow processing, emotion analysis, or stress/anxiety/depression scoring. Database storage can be a supporting implementation detail, but this chunk exposes a general user-management capability without demonstrating a connection to the declared analysis. This finding is limited to the supplied code; it does not establish malicious behavior or external transmission.

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: "psychological-stress-assessment-analysis"
description: "Combines facial blood flow and emotional characteristics to analyze stress index, anxiety tendency, and depression tendency, suitable for mental health monitoring scenarios. | 心理压力评估技能,结合面部血流与情绪特征,分析压力指数、焦虑倾向、抑郁倾向,适用于心理健康监测场景"
version: "1.0.27"
license: "MIT-0"
---

# 🧘 Psychological Stress Assessment Skill | 心理压力评估技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询

---

## 🧭 技能概览 | Overview

| 模块

The analysis workflow lacks a user-facing privacy warning about sending sensitive facial media to a remote service and maintaining cloud-accessible assessment reports.

High
Category
Output Handling
Confidence
97% confidence
Finding

Although the documentation mentions an API and cloud history, it does not require a user-facing disclosure or informed authorization before uploading facial media and associating assessments with a persistent identity. Identifiable facial recordings and inferred mental-health information make unexpected remote processing especially consequential.

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 does not prevent it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and explicitly promises not to analyze, but execution never checks the flag. When combined with media arguments, an invocation intended to avoid processing can instead submit sensitive facial media for remote mental-health analysis.

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.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The local-file branch reads the full recording and passes it as a multipart file to the analysis API without an authorization or disclosure gate in this path. Remote analysis is consistent with the skill's design, but uploading identifiable facial media for mental-health inference without ensuring informed authorization creates a substantial privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but supplying it does not prevent video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option is accepted but never consulted before the normal analysis path. Supplying it alongside a video path or URL can therefore cause remote processing despite an explicit promise that analysis will not execute, which is particularly sensitive in this mental-health workflow.

Content

No source excerpt is available for this finding.

The skill includes shared user-identity and authentication-token management beyond its stated stress-analysis purpose.

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

The User model stores authentication tokens and open tokens alongside identifying information, and UserDao inherits general read, update, and delete operations for these records (L470-L473). DAO initialization also creates and migrates the user table in a workspace-shared database (L172-L186), extending beyond storing stress assessments into shared identity and credential management, which the manifest does not describe.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims it invokes an analysis agent, but the implementation never executes it or returns an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly claims invocation of openclaw agent through subprocess, and L33–L34 promise an analysis result or session ID. However, subprocess execution is commented out at L61–L66, and the empty dictionary at L68 causes result.stderr to raise an exception that is caught without producing a result. This contradicts the documented analysis behavior rather than merely omitting an implementation detail.

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

The generically named open method always uses write mode ('w'), which immediately erases an existing file's contents. No comment, docstring, 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.

The stress-assessment skill silently provisions remote user accounts, an undeclared side effect beyond assessment.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The authentication helper explicitly requests silent login and registration, and the enclosing request method invokes it automatically when tokens are missing. This creates a remote identity and transmits its identifier without a consent or registration gate in the supplied code, a privacy concern for a mental-health monitoring skill; disclosure elsewhere in the application is unknown.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote user and persist returned authentication credentials.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

An ordinary HTTP request can trigger remote account creation and then save the returned token and openToken through UserDao without a separate authorization step. This overlaps the SDI-1 finding and adds persistent credentials; the DAO implementation is unavailable, so insecure storage or encryption deficiencies cannot be established.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
87% confidence
Finding

External communication alone is expected for an API-backed skill, but this request receives current__user_name, which preferentially takes ApiEnum.API_SECRET_KEY when configured. If authentication tokens are missing, the API secret is consequently sent as both mobile and openId to the health login service, potentially exposing it to identity records and logging systems not intended to handle credentials.

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 without disclosing this side effect.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is absent, with no explanatory comment, docstring, or user-facing notice. Because BaseEnum.init_subclass invokes this loader during class definitions (L053 and L058), importing this module can modify the filesystem unexpectedly.

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

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