google-workspace-cli
Pass
Audited by Gen Agent Trust Hub on Oct 17, 2026
Risk Level: SAFECREDENTIALS_UNSAFEDATA_EXFILTRATIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill documents methods to manage and export sensitive OAuth tokens. Specifically, the
gws auth export --unmaskedcommand allows the agent to display plaintext credentials in the terminal, which could lead to accidental exposure or intentional exfiltration of high-privilege access tokens. - [DATA_EXFILTRATION]: The skill provides the agent with the ability to read sensitive configuration and credential files from the user's home directory (
~/.config/gws/). This access, combined with the capability to send emails or messages, creates a pathway for exfiltrating sensitive authentication material or private documents. - [EXTERNAL_DOWNLOADS]: The skill facilitates the installation of the
gwsCLI tool from the npm registry (@googleworkspace/cli) and the GitHub repository (googleworkspace/cli). These are recognized as well-known and reputable sources for the provided functionality. - [REMOTE_CODE_EXECUTION]: The skill uses
npx skills addto fetch and integrate additional logic from remote repositories. While the repository cited is a well-known source, this pattern involves executing remote scripts and is a significant capability that must be monitored. - [COMMAND_EXECUTION]: The skill allows the agent to execute a vast array of Google Workspace operations via shell commands. This includes high-risk actions such as deleting emails (
gws gmail users messages trash), modifying document permissions (gws drive permissions create), and managing administrative users (gws admin users insert). - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data which could contain malicious instructions designed to manipulate the agent's behavior.
- Ingestion points: Reads email bodies, file content, and chat messages from Google Workspace APIs (SKILL.md).
- Boundary markers: None explicitly implemented within the skill instructions to separate data from commands.
- Capability inventory: Subprocess execution for all
gwscommands, including file system writes (--upload) and network operations (Gmail/Chat sending). - Sanitization: Supports 'Model Armor' to sanitize API responses, providing a significant mitigation layer against prompt injection attacks.
Audit Metadata