Back to skill

Security audit

Gamma

Security checks for vulnerabilities and agentic risk

Overview

This Gamma skill has a coherent purpose, but its shell wrapper has a confirmed argument-handling flaw that can execute local commands if attacker-controlled options are passed.

Review before installing. The Gamma API behavior is expected, but do not use this version with untrusted prompts or agent-generated command options until the shell wrapper validates --max-wait, --poll-interval, and other numeric fields before any API request or wait loop. Treat submitted content as sent to Gamma's external service, and avoid regulated, confidential, or secret material unless that is approved for your Gamma account.

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

Error
Location
scripts/gamma.sh:116
Finding

Arbitrary Command Execution Through Unvalidated --max-wait Arithmetic Expression

Content
View full analysis
Remediation
View remediation
&2 exit 1 fi if [[ ! "$poll_interval" =~ ^[1-9][0-9]*$ ]]; then echo "Error: --poll-interval must be a positive decimal integer" >&2 exit 1 fi if [[ ! "$cards" =~ ^[1-9][0-9]*$ ]]; then echo "Error: --cards must be a positive decimal integer" >&2 exit 1 fi ``` Apply explicit upper bounds to prevent excessive waits and resource consumption: ```bash if (( max_wait > 3600 )); then echo "Error: --max-wait cannot exceed 3600 seconds" >&2 exit 1 fi if (( poll_interval > 300 )); then echo "Error: --poll-interval cannot exceed 300 seconds" >&2 exit 1 fi ``` Additional hardening should include: 1. Rejecting missing values for options before reading `$2`. 2. Validating enumerated options such as `--format`, `--amount`, `--image-source`, `--image-style`, and `--dimensions` against explicit allowlists. 3. Retaining array-based `curl` argument construction to prevent ordinary shell argument injection. 4. Adding regression tests that pass arithmetic payloads, alphabetic strings, signed values, whitespace, oversized integers, and missing option values. 5. Ensuring invalid input is rejected before any credit-consuming Gamma API request is submitted. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill exposes shell execution capability via documented script invocations but does not declare corresponding permissions. That creates a transparency and policy-enforcement gap: users or the platform may not realize the skill can execute local commands and access environment-provided secrets such as GAMMA_API_KEY. In this context the shell usage appears intended for legitimate API interaction, but undeclared execution capability still increases risk if the script is modified or abused.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill description says it generates presentations and documents but does not clearly warn that user-provided content is transmitted to Gamma's external API for processing. This can lead users to provide sensitive business, personal, or confidential material without informed consent, causing unintended third-party data disclosure. Because the core function of the skill is remote generation, the missing disclosure is especially relevant rather than incidental.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script sends user-supplied content directly to Gamma's external API, but it does not provide any explicit warning, confirmation, or consent mechanism at the point of transmission. In an agent-skill context, users may assume content is processed locally, so this can cause unintended disclosure of sensitive prompts, proprietary text, or personal data to a third-party service.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.