Back to skill

Security audit

Large Model Visual Question Answering Skill | 大模型视觉问答技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report credential-handling and account-management capabilities, undeclared report-history access, and behavior that does not consistently match its advertised image question-answering purpose.

Consider avoiding installation unless you are comfortable with the reported credential, account, history-access, and remote media-processing behaviors. The scanner review is partial: it inspected the listed components but could not resolve a local reference, so the evidence is incomplete. Suspicious is the review classification and does 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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (30)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The declared purpose is image VQA, but the supplied script identifies itself as a video-analysis tool and passes a video path or URL to skill.get_output_analysis(). It also exposes a --list operation calling skill.get_output_analysis_list(open_id=...), an undeclared history-retrieval capability. The interface accepts no question and does not visibly implement open-ended image Q&A. The imported skill's internal behavior is unavailable, so the assessment is limited to the visible wrapper and its calls.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk contains no image processing, vision-model inference, question answering, or natural-language response generation. Its implemented purpose is persistent user and token management, which is not disclosed by the VQA description. Although a database helper could support a larger skill, this chunk provides no connection between its user-management operations and the declared image-question-answering functionality. No network transmission or token exfiltration is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The visible implementation is organized around asynchronous analysis reports rather than open-ended image Q&A. It explicitly requests a local video path or network video URL, submits the input for analysis, and polls for structured results. It also exposes a separate report-history listing capability that the description does not disclose. Generic params could carry a question, and imported configuration might allow image files, but neither possibility accounts for the explicit video workflow and report-history functionality. File reading, service submission, and polling alone are supporting implementation details, not the basis for the mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

Generic formatting, polling, filesystem helpers, and API transport could legitimately support a VQA skill; their presence alone is not a mismatch. However, this chunk also implements an undeclared account lifecycle: reading a local identity file, creating persistent users, silently registering or logging in remotely, and storing tokens. The request wrapper additionally attaches configured credentials without restricting absolute URLs to the configured service origin. These capabilities exceed the stated image-Q&A purpose. They occur when the relevant methods are invoked, not necessarily on import. No malicious intent or actual credential exfiltration is established, and the absence of VQA logic in a shared utility module is not by itself the basis for the finding.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The main image-question answering path matches the description, and output formatting and file saving are supporting features. However, --list retrieves user-associated analysis records without requiring an image or question. This account-history capability is not disclosed in the declared purpose. The code also invokes identity resolution before either operation, although the imported utility's underlying behavior is not visible. There is insufficient evidence to claim unauthorized access or additional data collection.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Generic AI-analysis endpoints could support the declared VQA functionality and are not inherently mismatched. However, the explicit health-order report export resource is outside the declared scope. This assessment is limited to configuration: the supplied code does not demonstrate that reports are actually retrieved or exported. The absence of VQA implementation in a configuration-only chunk is not itself evidence of a mismatch.

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: "visual-qa-analysis"
description: "Conducts open-ended Q&A on image content based on computer vision and large language models, supporting any questions to receive natural language responses. | 大模型视觉问答(VQA)技能,基于计算机视觉和大语言模型对图片内容进行开放式问答,支持任意提问得到自然语言回答"
version: "1.0.25"
license: "MIT-0"
---

# ❓ Large Model Visual Question Answering Skill | 大模型视觉问答技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询

---

## 🧭 技能概览 | Overview

| 模�

The request helper can forward service credentials to arbitrary external hosts, beyond the needs of visual question answering.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts absolute HTTP or HTTPS URLs and attaches service tokens and the API secret without checking the destination origin. If a caller supplies an attacker-controlled URL, these credentials can be disclosed to that host; HTTP destinations additionally expose them in transit.

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 local-image analysis workflow lacks a clear privacy notice about sending image content and questions to the API service.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The local-image workflow directs automatic API-backed processing without clearly stating that image contents and questions leave the local environment. Because visual Q&A can involve private documents or personal images, users may unintentionally disclose sensitive material to an external service.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but the code ignores it and proceeds with analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises --export-env-only as not performing analysis, but no branch checks the flag before identity initialization or analysis. With otherwise valid arguments, a user relying on this no-analysis mode can unintentionally initiate remote processing of local media and questions.

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

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The implementation reads the complete local media file and passes it to the analysis API as an upload, with no visible disclosure or authorization gate in this flow. Private media can consequently cross the local trust boundary without users understanding that processing is remote.

Content

No source excerpt is available for this finding.

The skill exposes stored analysis-report listing beyond its stated image Q&A purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The manifest describes answering questions about image content, but L158 retrieves a paginated report collection and L160–169 returns those records with export links. Retrieving historical reports is a separate data-access capability, not a necessary implementation detail of answering a question about a supplied image.

Content

No source excerpt is available for this finding.

The manifest advertises image-based question answering, but this entry point implements video analysis without accepting a question.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The manifest promises open-ended natural-language Q&A about images. Instead, L31–L37 forward a video input to get_output_analysis, and the CLI at L55–L67 explicitly accepts local or remote MP4 videos without any question parameter, exposing a different workflow from the advertised skill.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never checked, so providing media alongside it still invokes analysis. This violates an explicit no-analysis expectation and can initiate unwanted processing, service charges, or media disclosure depending on the downstream implementation.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to image question answering.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The get_user_by_username method delegates a supplied username to a user-lookup utility. Looking up user accounts is a separate capability from analyzing images and answering questions, and the manifest does not declare an account-management or user-directory purpose.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to its declared image Q&A purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The DAO supports storing reusable authentication tokens as ordinary strings in a persistent workspace SQLite database, without an explicit confidentiality mechanism or restrictive permission setup. Account support can be legitimate for hosted visual Q&A, but this storage design risks exposing credentials through shared-workspace access or backups; unrelated functionality alone would not establish a vulnerability.

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

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents. No docstring, comment, confirmation, or user-facing log explains this destructive behavior; exception tracing only runs after an error.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently trigger remote account registration and identity transmission.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

A routine request can invoke a separate phoneLogin endpoint with registration enabled and transmit the current identity without an explicit enrollment step. Hosted visual Q&A may require authentication, but silently creating accounts and disclosing identifiers exceeds the expected behavior of a generic request helper.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

This POST transmits the selected identity as both openId and mobile, together with platform information, during automatic login or registration. The surrounding code can select API_SECRET_KEY as that identity, so the request may also place a credential in account-registration fields rather than limiting it to its intended authentication channel.

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

The automatic history-query triggers include the unqualified phrase “历史记录” (“history records”).

Low
Category
Trigger Abuse
Confidence
94% confidence
Finding

The examples describe the generic phrase “历史记录” as an automatic trigger, while the instructions mandate an immediate cloud query once triggered. An unrelated request about history could therefore cause unnecessary retrieval and display of private visual-analysis records without clear task-specific intent.

Content

No source excerpt is available for this finding.

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

Low
Category
Output Handling
Confidence
94% confidence
Finding

At L017–L020, YamlUtil.load creates parent directories and writes a configuration file when the requested path is missing, without a prompt, log, docstring, or explanatory comment. BaseEnum.init_subclass invokes this loader at L053 and L058, so importing the module can modify the filesystem without explicitly requesting a save.

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