Back to skill

Security audit

Image Quality Assessment Analysis Tool | 图像质量检测分析工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report undisclosed account, credential, and data-handling behavior that raises concerns beyond its stated image-quality analysis purpose.

Consider the suspicious verdict before installing, especially if you would use the skill with private or surveillance footage. The scanners report possible external media transmission, account creation, persistent credential storage, and cross-user exposure of historical reports. Skillspector completed most analysis but marked coverage partial because a local reference was missing, so the evidence is incomplete; the results do not establish malicious intent.

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

Error
Location
scripts/image_quality_detection_analysis.py
Finding

Sender identity is discarded before workspace-wide credentials are reused

Content
View full analysis

Impact

In the stated shared-workspace configuration, another sender can retrieve historical analysis content and report links belonging to earlier users of the default account. Server-side account authorization does not resolve the defect because the client supplies the shared account's valid credentials.

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

The supplied chunk manages a user database rather than analyzing images or camera footage. Its sys_user model includes names, email, birthday, demographic information, token, and open_token fields. No footage ingestion or image-quality detection appears in this chunk, and nothing shown connects this user-management functionality to the declared purpose as a necessary supporting detail. This establishes a mismatch for the supplied code, though it does not establish what other skill files do or show malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Ordinary string, date, polling, and filesystem helpers can support the declared functionality and are not themselves mismatches. However, this chunk also implements an undeclared account-registration, credential-persistence, authenticated-networking, and billing workflow. It contains no image-quality analysis or a specific request demonstrating delegation of that analysis. Although this is a shared utility module and its methods generally require invocation, the account and payment capabilities materially exceed the stated camera-quality purpose. The configured service destinations and calling code are not supplied, so actual execution or malicious exfiltration cannot be established.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The visible implementation does not substantiate the declared image-quality detection purpose. Although comments describe calling an external agent, that execution is disabled and should not be treated as an active capability. Imported base classes and services are not supplied, so they could contain relevant functionality; this assessment is limited to the provided chunk. No active external command execution or malicious behavior is demonstrated.

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: "image-quality-detection-analysis"
description: "Detects quality issues in camera footage such as black/white screens, color cast, stripes, noise, and blurriness. Suitable for security surveillance and camera self-check scenarios. | 图像质量检测分析工具,检测摄像头画面出现的全黑、全白、偏色、条纹、雪花、模糊等质量问题,适用于安防监控、摄像头自检等场景"
version: "1.0.23"
license: "MIT-0"
---

# 🖼️ Image Quality Assessment Analysis Tool | 图像质量检测分析工具
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查�

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 about transmitting local camera images or videos to an external API.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The skill automatically processes local attachments without clearly warning that their contents are uploaded to an external analysis service. Surveillance footage can contain identifiable people, private interiors, or security-sensitive layouts, making undisclosed transmission particularly consequential.

Content

No source excerpt is available for this finding.

The documented export-only mode does not prevent analysis execution.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises no analysis, but the program never checks that flag before initializing identity and invoking analysis. With an input supplied, an operator expecting a non-processing mode can instead transmit sensitive camera footage and potentially incur service charges.

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 transmitted.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The implementation reads the entire local media file and passes its bytes to the analysis API without a visible disclosure or authorization gate. In a surveillance skill, this can expose personal footage and operational security information outside the user's environment.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze footage, but execution still invokes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option is parsed but never used to stop execution. When footage is supplied, the supposedly non-analysis invocation still performs identity initialization and calls the analysis path, risking unintended disclosure of surveillance footage.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to camera image-quality detection.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

At L098–L101, get_user_by_username delegates a caller-supplied username to a user-lookup utility. Looking up user accounts is not an obvious requirement for detecting black/white frames, color cast, stripes, noise, or blur, and the manifest does not declare account-directory functionality.

Content

No source excerpt is available for this finding.

Configuration loading silently creates directories and files, including during module import.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path does not exist, without a confirmation, log, docstring, or explanatory comment disclosing this side effect. BaseEnum invokes this loader during subclass initialization (L044–L059), so importing the module can modify the filesystem even though no explicit save was requested.

Content

No source excerpt is available for this finding.

Persistent user-profile and credential management is unrelated to image-quality detection.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

The User model stores personal information and token/open_token credentials, and UserDao exposes inherited database read, write, update, and delete operations for those records. DAO initialization also creates and migrates the user table (L180-L215). Managing persistent user identities and credentials is not justified by the manifest's stated purpose of detecting visual quality defects in camera footage.

Content

No source excerpt is available for this finding.

ai_chat documents agent execution and analysis output, but the implementation performs no agent call.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 says this method invokes openclaw agent through subprocess, and L33–L34 promise an analysis result or session ID. However, command construction and subprocess execution are commented out; the empty dictionary assigned at L68 then causes result.stderr to raise an exception, which is caught without returning an analysis result. This actively contradicts the documented delegation 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 write-only behavior.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents even before anything is written. No docstring, comment, confirmation, or action-specific log discloses this destructive behavior; exception tracing only runs after a failure.

Content

No source excerpt is available for this finding.

The image-quality skill can silently register an external user account and persist its credentials.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary HTTP request can trigger a separate phoneLogin request with silent and register enabled, followed by persistence of returned user information and authentication tokens. There is no explicit enrollment approval in this path, creating an unexpected account and identity-retention side effect for a skill advertised as image-quality analysis.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The generic HTTP helper hides remote registration and local credential persistence behind a normal request operation. This is the same underlying issue as SDI-1: callers performing image analysis can incur identity and storage side effects without a separate consent boundary.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

This POST automatically sends the selected identity as both openId and mobile to a separately configured registration service, without an explicit disclosure or consent step in this path. The selected value can also originate from API_SECRET_KEY, potentially placing a secret in identity fields; the code establishes unexpected transmission, although the endpoint's ownership and transport configuration are not shown.

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

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