Back to skill

Security audit

Public Place Group Emotion Index (Exhibition / Mall) | 公共场所群体情绪指数(展览/商场)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report undisclosed identity and credential handling, possible forwarding of credentials to caller-selected destinations, and weak safeguards around sending public-camera video to an external service.

The verdict is suspicious, and the scanner’s recommendation is not to install. Before considering it, seek clear answers about which external service receives video and identity data, what credentials are retained, and whether the export-only option truly prevents processing. The scan reports complete coverage of the 29 listed components; dependency inspection was not requested, so third-party dependencies were not assessed.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (24)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk implements user-account persistence rather than camera processing, expression recognition, emotion aggregation, or index calculation. Generic database support alone would not establish a mismatch, but the explicit identity and credential-management functionality is materially outside the declared anonymized expression-only purpose. The chunk shows no linkage between stored identities and camera subjects, and does not establish that personal data is actually populated or transmitted.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Ordinary formatting, polling, and HTTP helpers could support the declared skill and are not themselves mismatches. However, this chunk also implements an undeclared account-provisioning and credential-management workflow involving local identity resources and an external authentication service. The supplied code contains no camera processing, expression recognition, anonymization, emotion aggregation, or index calculation. Because this is a shared utility module, that absence alone does not establish that the complete skill lacks those features. There is also no evidence here that facial images are transmitted or that observed people are identified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The supplied code is generic scaffolding with an inactive, nonfunctional chat helper rather than an implementation of the declared camera-based emotion-analysis workflow. It does not actually execute the commented-out agent command. Imported base classes and API services are not provided, so their behavior cannot be assessed; the mismatch assessment is limited to the visible code.

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-public-place-group-emotion-index-analysis"
description: "Using fixed cameras in malls, exhibition halls, scenic areas and other public places, the system analyzes facial expressions of multiple people in the scene in real time (with anonymized expression recognition only), aggregates the distribution of emotions (happy, calm, irritated, surprised, sad, fearful, etc.), and computes an overall group-emotion index (0-100; higher = more positive). | 通过商场、展览馆、景区等公共场所的固定摄像头,实时分析场景中多人的面部表情(使用匿名化表情识别),统计各类情绪(愉悦、平静、烦躁�

The request helper can forward service credentials to caller-selected destinations outside the emotion-analysis service.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs while automatically adding service tokens and an API key to outgoing headers. A caller-controlled destination can therefore receive reusable credentials, and an HTTP destination additionally exposes them in transit; anonymous emotion analysis does not justify forwarding these credentials to unrelated hosts.

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 default trigger selects emotion analysis for any request to analyze public-place fixed-camera footage, without requiring emotion-analysis intent.

Medium
Category
Trigger Abuse
Confidence
95% confidence
Finding

The default trigger selects emotion inference whenever public-place fixed-camera footage is submitted for analysis, even when the user requested a different task. In this context, that can initiate sensitive facial-expression processing and associated remote transfer beyond the user's intended scope.

Content

No source excerpt is available for this finding.

The local-video analysis workflow lacks a clear warning about sending camera footage to an external analysis service.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The local-file workflow does not clearly disclose that camera footage is uploaded to an external service before analysis. References to API use and anonymous results do not explain that identifiable raw faces can leave the local environment before any anonymization occurs.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but does not prevent video processing.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises an export-only option that will not analyze data, but main never checks the parsed flag. When supplied with an input or list option, execution still initializes identity and invokes the corresponding API workflow, potentially transmitting sensitive footage despite the user's explicit non-analysis selection.

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 input files are passed to the analysis API without disclosure that their contents will be uploaded.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The implementation reads the complete local video into a multipart file payload and passes it to the analysis API without a disclosure or authorization gate in this workflow. No local face anonymization occurs before that transfer, making the omission particularly consequential for public-camera footage containing identifiable bystanders.

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 flag is parsed but never tested, so providing an input still reaches analyze_video. This violates the advertised no-analysis mode and can cause unintended video uploads or other API activity.

Content

No source excerpt is available for this finding.

The skill includes persistent identity and token management unrelated to anonymous group-emotion analysis.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The model provides persistent storage for identifying information and bearer tokens in an ordinary SQLite database, without application-level credential protection shown. Shared workspace storage increases exposure to other components with filesystem access; this is unnecessary privacy and credential-retention risk for an anonymous-analysis skill, although the schema alone does not prove that camera subjects are identified.

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

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

Content

No source excerpt is available for this finding.

HTTP requests can trigger undisclosed remote account registration and identity transmission.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

A routine request can silently invoke phoneLogin with registration enabled, transmitting the selected identity as both openId and mobile. This creates an undisclosed account-creation and identity-sharing side effect beyond the advertised anonymous-analysis function, even though the identity may sometimes be a generated pseudonym.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

This POST transmits the chosen username or identity value and source metadata to a configured remote login service with silent registration enabled. The concern is the automatic, undisclosed identity transmission rather than networking itself; the supplied source does not establish that facial images or emotion records are included.

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 configuration file when the requested path is missing, without any explanatory comment, docstring, or user-facing notice. BaseEnum.init_subclass calls this loader during class creation (L044–L059), so merely importing this module can modify the filesystem despite the operation being presented as configuration loading.

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 agent execution but never invokes the agent or returns an analysis result.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25-L34 says this method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, subprocess execution is commented out, and L68 substitutes an empty dictionary; accessing result.stderr then raises an AttributeError that is caught and suppressed. Consequently, this method performs no agent analysis and returns None rather than the documented result.

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