Back to skill

Security audit

Vision Helper — AI Image Analysis

Security checks for vulnerabilities and agentic risk

Overview

This image-analysis skill does what it claims, but it gives an agent broad local image/screenshot access and can transmit those contents to configurable or cloud vision endpoints without strong safeguards.

Review before installing. Use this skill only for images and screenshots you are comfortable sending to the configured Ollama endpoint, keep OLLAMA_API_URL on localhost unless you intentionally trust a remote service, and avoid using it on sensitive desktop screenshots, credentials, private documents, or paths outside the workspace.

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

Warning
Location
scripts/analyze_image.py:37
Finding

Arbitrary Readable File Disclosure Through Symlink Following and Configurable Vision Endpoint

Content
View full analysis
str: """Validate and resolve image path. Returns resolved path or raises ValueError.""" # Resolve ~ and normalize resolved = os.path.abspath(os.path.expanduser(image_path)) # Check for path traversal if '..' in image_path: raise ValueError(f"Path traversal not allowed: {image_path}") # Check file extension _, ext = os.path.splitext(resolved) if ext.lower() not in ALLOWED_EXTS: raise ValueError( f"Unsupported image format: {ext}. " f"Allowed: {', '.join(sorted(ALLOWED_EXTS))}" ) # Check file exists if not os.path.exists(resolved): raise ValueError(f"Image file not found: {image_path}") # Check file size file_size = os.path.getsize(resolved) if file_size > MAX_FILE_SIZE: raise ValueError( f"Image too larg ...[truncated 3621 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Tainted flow: 'req' from os.environ.get (line 102, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/analyze_image.py (reported line 109)May include surrounding context.

python
)

    try:
        resp = urllib.request.urlopen(req, timeout=timeout)
        result = json.loads(resp.read().decode())
        content = result.get("message", {}).get("content", "")
        if not content:

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger phrases are broad terms like 'screenshot', 'OCR', and 'what's in this image', which are common in normal conversation and can cause the skill to activate unexpectedly. Because this skill can invoke exec-driven workflows and access arbitrary readable image paths, accidental activation increases the chance of unnecessary screenshot capture or sensitive image processing.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill promotes cloud vision models and longer timeouts but does not clearly warn that image contents may be sent to external services when those models are used. This creates a material privacy and data-handling risk because screenshots often contain credentials, personal data, internal documents, or other sensitive visual content.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The documentation explicitly advertises bypassing built-in file path restrictions and analyzing images from any readable directory. In an agent setting, that expands the skill from narrow image analysis into a data-access primitive that can be used to read and exfiltrate sensitive screenshots or image-based documents from the local system, especially when paired with cloud models.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This script base64-encodes the entire supplied image and sends it to the configured vision model API, but the CLI does not clearly warn users that sensitive screenshots, documents, or UI contents may leave the local machine. That is especially important here because the examples explicitly mention cloud-based models and the endpoint is configurable, so confidential data could be disclosed to a remote service without meaningful user awareness.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The help text explicitly describes the default prompt as a 'general description in English', which sets a specific language expectation. The file does not indicate any language choice, opt-in, or justification for forcing English as the default locale behavior.

Content

No source excerpt is available for this finding.