google-workspace-cli
Pass
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: Multiple scripts within the skill, such as
gws_doctor.py,auth_setup_guide.py, andworkspace_audit.py, use thesubprocessmodule to execute system commands via thegwsCLI. This is the intended functional mechanism but introduces risks associated with system-level execution. - [DYNAMIC_EXECUTION]: The
gws_recipe_runner.pyscript executes shell commands usingsubprocess.run(shell=True). While the command templates are hardcoded in the script'sRECIPESdictionary, the use of a shell to process these commands is a less secure practice than executing them as a list of arguments, as it could potentially lead to shell injection if parameters are unsafely interpolated in future versions or by the agent. - [EXTERNAL_DOWNLOADS]: The skill directs users to install the
@anthropic/gwspackage from npm and thegws-clifrom Cargo. These references point to official package registries and established organizations, which is considered a safe and standard distribution method for CLI tools. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external Google Workspace APIs, creating an attack surface for indirect prompt injection.
- Ingestion points: Data enters the context via
gwscommands that list Gmail messages, Drive files, and spreadsheet values (e.g., inscripts/output_analyzer.pyandscripts/workspace_audit.py). - Boundary markers: There are no explicit delimiters or safety instructions used to wrap retrieved content to prevent it from being interpreted as instructions by the agent.
- Capability inventory: The skill provides the agent with high-privilege capabilities, such as sending emails, managing file permissions, and updating user accounts via the
adminAPI. - Sanitization: External content is parsed as JSON/NDJSON but is not sanitized for malicious natural language patterns before being processed.
Audit Metadata