Back to skill

Security audit

gemini-delegation

Security checks for vulnerabilities and agentic risk

Overview

The verdict is benign because the findings describe risks related to delegating work to Gemini, and the scanners reported no AIG findings; confidence is medium, with one unresolved reference leaving the evidence incomplete.

Before installing, consider whether you are comfortable with files being sent to Gemini, and review which files would be included and whether they are approved for external processing. Check the selected model and any associated costs or quota, and treat the authentication guidance cautiously. The overall verdict is benign, but confidence is medium and one reference could not be resolved, so the evidence is incomplete.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (4)

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 71)May include surrounding context.

md
gemini -p "@src/**/*.py Summarize these files"

# With specific model
gemini --model gemini-3.1-pro-preview -p "..."

# JSON output
gemini --output-format json -p "..."

The authentication example uses a command that the exit criteria explicitly prohibit for authentication checks.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

L049–L050 label gemini auth status as the authentication check, directly contradicting L091–L096, which say authentication must never be judged using that command. The latter section explains that it can exit successfully despite unusable credentials, so following the prerequisite example can give misleading authentication evidence.

Content

No source excerpt is available for this finding.

File-analysis commands transmit source files to Gemini without a privacy warning.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The examples include local file contents in requests to an external model without requiring a sensitivity review or confirming that those files are approved for external processing. Delegation to Gemini is the skill's stated purpose, so the transfer is not covert, but broad source-file inclusion can disclose proprietary code or embedded secrets beyond the user's intended scope.

Content

No source excerpt is available for this finding.

File-context inclusion instructions omit a warning about sending local contents to Gemini.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The module recommends recursive file inclusion without requiring review of which local contents will be sent to Gemini. Although external processing is consistent with the module's purpose, recursive inclusion can unintentionally expose credentials, private documents, or proprietary files outside the intended task scope.

Content

No source excerpt is available for this finding.