Back to skill

Security audit

Generate Content Marketing Ad Creative Brief

Security checks for vulnerabilities and agentic risk

Overview

This marketing-brief skill is simple, but it asks for shell and file-read access that its own workflow does not explain.

Review this skill before installing because it grants broad local shell and file-read capabilities that are not needed for creating an ad creative brief. It would be safer if those tools were removed or replaced with explicit, user-selected file inputs only.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:4
Finding
Excessive Shell and File-Read Permissions## Vulnerability Details **File Location**: `SKILL.md`, line 4 **Vulnerability Type**: Excessive tool authorization violating least privilege **Risk Level**: Medium **Vulnerable Code Snippet**: ```yaml allowed-tools: Bash, Read ``` ### Technical Analysis The skill is intended to generate content-marketing advertising briefs, visuals, and hooks. Its documented workflow does not require local shell execution or unrestricted filesystem access. Nevertheless, the configuration authorizes both `Bash` and `Read`. This violates the principle of least privilege. If the hosting agent permits these tools to be invoked while processing attacker-controlled campaign requirements, prompt content could induce the agent to read local files or execute shell commands unrelated to brief generation. The declaration does not itself execute commands, and successful exploitation depends on the host agent's tool controls and instruction handling, but it unnecessarily exposes high-impact capabilities. ### Attack Path 1. An operator installs or loads the skill, granting its declared `Bash` and `Read` tools. 2. An attacker supplies campaign content or task instructions containing adversarial directions. 3. The agent interprets those directions as requiring local file inspection or command execution. 4. The agent invokes `Read` to access local data or `Bash` to run an unintended command. 5. Tool-accessible information may be exposed, or commands may execute with the privileges of the agent process. ### Impact Assessment Exploitation could provide access to files readable by the agent process and permit command execution under that process's operating-system account. The potential scope includes project files, environment-accessible data, credentials stored in readable files, and modification of resources writable by the process. It does not inherently grant privileges beyond the agent process or establish persistence. No actual malicious command, ...[truncated 97 chars]
Remediation
## Remediation Suggestions - Remove `Bash` and `Read` from `allowed-tools` because the documented marketing-brief workflow does not require them. - Permit only the narrowly scoped chat and image-generation capabilities needed by the skill. - If file input becomes necessary, require explicit user selection and restrict reads to an approved workspace or allowlist. - If command execution becomes essential, replace general shell access with a purpose-built tool exposing only fixed operations and validated arguments. - Enforce host-level confirmation for sensitive file access and command execution. - Treat campaign text and other user-supplied content as untrusted data, and prevent it from changing tool authorization or system-level instructions.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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

Static analysis

No suspicious patterns detected.