Back to skill

Security audit

Visual Summarization Skill | 视觉摘要智述技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan labels this skill suspicious because scanners report account and credential handling, report-history access, and media uploads that are not clearly disclosed as part of its visual-analysis purpose.

Consider avoiding installation unless you need these behaviors and are comfortable with the reported remote processing and account handling. Before using it with private media or credentials, clarify where uploads and identity data go, how they are retained, and why account and report-history features are needed. The scan was partial because a local reference was missing, so the evidence does not cover every referenced item.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk contains no image/video analysis or scene-description generation. Its substantive behavior is user-account database management, including fields for names, email, birthday, sex, age, token, and open_token. Although a database helper can support a larger skill, this chunk manages identity and credential data with no demonstrated connection to visual summarization, making it materially outside the declared purpose. Database initialization and mutations occur when the relevant classes and methods are invoked; no network transmission is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The primary analysis workflow matches the declared purpose, and optional result-file output is a supporting implementation detail. However, --list invokes skill.get_output_analysis_list(open_id=...), exposing a separate capability to access identity-associated analysis history that the description does not disclose. The imported implementations are not supplied, so their internal processing, network destinations, and access controls cannot be assessed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Media validation, file reading, API submission, and polling are supporting implementation details consistent with the declared analysis purpose. However, get_output_analysis_list() independently calls page() to retrieve existing report records and returns their contents with export links. This report-history access is an additional capability not disclosed by the description. The shown code also formats API results as structured reports rather than explicitly generating natural scene prose, although the API response could already contain that prose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

Generic parsing, polling, and HTTP helpers could legitimately support remote visual analysis, and the absence of image-processing logic in a utility module is not itself a mismatch. However, this chunk also implements automatic remote account enrollment and persistent identity/credential handling, which are materially broader than the declared scene-description function. The HTTP wrapper attaches configured credentials without restricting absolute URLs to a trusted origin. These behaviors are available when the relevant methods are called; the chunk does not establish that they run during every analysis request or demonstrate malicious exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The media-analysis commands match the declared purpose, and detail selection and output-file saving are supporting features. However, retrieving historical report listings is an additional user-facing capability, with explicit automatic triggers, that the description and declared triggers do not disclose. The supplied chunk documents command invocations rather than the underlying Python implementation, so it does not establish any further resource access or behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The primary summarization path matches the description. However, the --list branch invokes skill.get_output_analysis_list(open_id=...), exposing a separate user-scoped results-listing capability that is not declared and is not necessary to summarize the supplied media. Identity resolution and optional output-file writing are supporting implementation details, not independent mismatches. The imported implementations are unavailable, so no additional data access or transmission is established by this chunk.

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 skill requires Chinese-language descriptions without offering a language choice.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The capability explicitly requires combining the analysis into a fluent Chinese description. No user opt-in, language choice, or region-specific justification accompanies this output-language requirement.

Content

No source excerpt is available for this finding.

The analysis workflow lacks a privacy warning about sending local images or videos to the remote API.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The workflow automatically processes local media through a remote API without clearly warning that the file contents leave the machine. References to cloud reports and API calls do not clearly communicate this privacy boundary, which matters for private images and videos.

Content

No source excerpt is available for this finding.

The --export-env-only help promises not to execute analysis, but the flag does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to analyze media, but execution never checks the flag. With an input supplied, the program still initializes identity and invokes analysis, potentially uploading private media 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 video contents are submitted to an API service without disclosure of the upload.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The code reads the complete local media file and passes it as a multipart file to the analysis API without a visible upload notice or authorization gate. This creates a privacy risk when users expect local analysis or supply sensitive imagery.

Content

No source excerpt is available for this finding.

The skill can retrieve stored analysis-report history beyond analyzing the supplied image or video.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The manifest describes analyzing supplied visual content and generating a scene description. At L158, get_output_analysis_list instead queries a paginated report collection and returns its contents, including generated report-image links at L160–L163; retrieving historical reports is a separate data-access capability not required for the stated purpose.

Content

No source excerpt is available for this finding.

The skill exposes account-scoped analysis history retrieval beyond analyzing supplied media.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

The manifest describes generating a scene description from supplied video or image content. However, show_analyze_list retrieves an analysis history using an open_id, and the --list branch at L077–L081 exposes this operation without requiring any media input.

Content

No source excerpt is available for this finding.

The documented export-only mode still performs media analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option is parsed but never used to control execution. When media input is present, the command still initializes identity and runs analysis, potentially disclosing media contrary to the promised export-only behavior.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to analyzing visual content or generating scene descriptions.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

The get_user_by_username method delegates to a user-lookup operation rather than a visual-analysis operation. Account lookup is not an obvious requirement of the stated scene-description purpose, and the manifest does not declare user-directory access. This establishes an additional capability, not evidence that any lookup has actually occurred.

Content

No source excerpt is available for this finding.

save() is documented as creating a record but can overwrite an existing user's data.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Any insertion exception triggers an update attempt, followed by an update matching either username or real name. This can replace an existing user's profile and credentials after a uniqueness conflict, including when a supplied username matches another record's real name, rather than preserving a clear account-identity boundary.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to visual summarization.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The concrete concern is not merely extra functionality: bearer tokens and personal information are persisted as ordinary fields in a workspace-shared SQLite database without visible encryption or explicit restrictive permissions. Any principal able to read that database could obtain reusable credentials and profile data, expanding the exposure beyond the media being summarized.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims to invoke the OpenClaw agent, but the implementation never invokes an agent or produces an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly promises a subprocess-based agent invocation and an analysis result or session ID. However, the command and subprocess invocation are commented out at L48–L66; the empty dictionary at L68 causes attribute access at L70 to fail, after which the exception handler suppresses the error and the method returns None.

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

The generically named open helper always uses mode 'w', which immediately erases existing file contents when opening succeeds. There is no confirmation, action log, docstring, or comment explaining this overwrite behavior; the exception handler only runs after a failure.

Content

No source excerpt is available for this finding.

The request helper silently provisions a remote user account and persists account credentials, beyond the declared visual-summary function.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

An ordinary request can automatically register or log in a remote account, transmit the current identity, and persist returned credentials and profile data locally. No explicit provisioning consent is visible, making this an unexpected privacy and credential-management side effect of visual summarization.

Content

No source excerpt is available for this finding.

An ordinary HTTP request can silently trigger remote account registration.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The HTTP helper sends register=1 and silent=1 to a remote login endpoint when credentials are unavailable. Consequently, requesting visual analysis can create a remote account without a distinct user-approved registration step; this is the same provisioning behavior covered by the broader finding.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

This POST transmits the selected identity as both openId and mobile during automatic provisioning. The caller prioritizes API_SECRET_KEY as that identity, so a configured API secret can be sent as account-registration data and potentially retained in remote identity records, rather than being confined to its authentication purpose.

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

Loading configuration 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, prompt, comment, or docstring disclosing this side effect. BaseEnum.init_subclass calls this loader during class definition (L053 and L058), so merely importing the module can modify the filesystem unexpectedly.

Content

No source excerpt is available for this finding.