Back to skill

Security audit

gws

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent Google Workspace CLI integration, but it can give an agent real access to read, write, send, and share Workspace data after the user completes authentication.

Install only if you intend to let an agent use your Google Workspace account. Use the narrowest OAuth scopes and MCP service list possible, prefer test accounts for automation, and require confirmation before sending email, sharing files, changing calendars, editing documents or sheets, or using Admin actions.

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 (2)

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 79)May include surrounding context.

md
2. Enable Workspace APIs (Drive, Gmail, Calendar, etc.)
3. Create OAuth 2.0 Client ID (Desktop app type)
4. Download credentials JSON
5. Set: `export GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=/path/to/credentials.json`
6. Run: `gws auth login`

### Option C: Service Account (server/headless)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill explicitly highlights broad Google Workspace capabilities such as sending Gmail, writing Calendar/Sheets/Docs data, and managing Drive sharing, but the status/usage section does not clearly warn that an agent can take real write, send, and share actions against production Workspace resources. In an agent-execution context, this omission increases the chance of unsafe use, accidental data modification, external sharing, or message transmission without the operator appreciating the scope of side effects.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.