Back to skill

Security audit

Google Workspace CLI

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Google Workspace CLI reference that exposes sensitive Workspace actions, but those capabilities match its stated purpose and are disclosed as user-run commands.

Install only if you want an agent to help operate your Google Workspace data. Use the narrowest OAuth login that works, avoid --full unless you need broad Workspace access, review email recipients and calendar details before sending or creating events, and keep ~/.config/gws/ protected.

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

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

Environment Variables

bash
GOOGLE_WORKSPACE_CLI_TOKEN            # Pre-obtained access token (highest priority)
GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE # Path to OAuth credentials JSON
GOOGLE_WORKSPACE_CLI_CLIENT_ID        # OAuth client ID
GOOGLE_WORKSPACE_CLI_CLIENT_SECRET    # OAuth client secret

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The markdown advertises gws calendar +insert and gws gmail +send as helper commands, which can create calendar events and send email on the user's behalf. The file provides examples and auth setup, but does not include any warning or caution about modifying user data, external communication, or verifying recipients/content before execution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The setup section instructs users to run gws auth login --full for full access and notes that credentials are stored locally, but does not warn that this grants broad access to email, calendars, files, contacts, and other Workspace data. For a markdown skill description covering sensitive user data, omission of any privacy/scope warning is a meaningful disclosure gap.

Content

No source excerpt is available for this finding.