Back to skill

Security audit

grok-imagine

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently guides an agent to use RunAPI's Grok Imagine service to generate or edit media, with expected network, credential, and file-download behavior disclosed.

Install only if you intend to use RunAPI/Grok Imagine and are comfortable with the CLI making authenticated, possibly billable service requests and writing generated media files locally. Keep API keys in environment or CLI auth, and open downloaded outputs as untrusted media files.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

Missing User Warnings

Low
Confidence
89% confidence
Finding
The skill instructs the agent to fetch arbitrary remote deliverable URLs with curl and save them to disk, but it does not include guardrails around untrusted external content, destination path safety, or network/file-fetch risks. In this media-generation context the behavior is expected, but it still expands the agent's attack surface by causing external network access and local file writes based on service-provided URLs.

Static analysis

No suspicious patterns detected.