google-workspace
Fail
Audited by Gen Agent Trust Hub on Mar 10, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCREDENTIALS_UNSAFEPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
auth/token_manager.jsscript usesexecSyncto call the macOSsecuritycommand for keychain operations. It interpolates theaccountvariable—which is sourced directly from command-line arguments—into shell command strings without sanitization. An attacker could potentially supply a malicious account name containing shell metacharacters (e.g.,;,&,|) to execute arbitrary commands on the host system. Evidence inauth/token_manager.jsincludes calls likeexecSync(security delete-generic-password -s "${SERVICE_NAME}" -a "${account}" 2>/dev/null, ...)where theaccountparameter is vulnerable to breakout. - [CREDENTIALS_UNSAFE]: The skill relies on an external script located at a relative path outside the skill directory (
../../../scripts/secrets.js) to load Google API credentials. This creates a dependency on an unverifiable local file. Additionally, the skill instructions inauth/GOOGLE_CLOUD_SETUP.mdsuggest storing sensitive API keys in a.envfile within a cloud-synced directory (~/Library/Mobile Documents/com~apple~CloudDocs/Geoffrey/secrets/.env), which may lead to unintentional credential exposure if the sync service is compromised. - [PROMPT_INJECTION]: The skill is susceptible to Indirect Prompt Injection (Category 8) because it ingests untrusted data from external sources and possesses significant capabilities. Ingestion points:
gmail/read_message.js,chat/read_messages.js, anddrive/read_file.jspull content from emails, chat messages, and documents into the agent's context. Boundary markers: No explicit delimiters or instructions to ignore embedded commands are present in the scripts. Capability inventory: The skill allows the agent to send emails (gmail/send_message.js), create/modify files (drive/create_file.js), and execute shell commands via the allowedBashtool. Sanitization: The scripts do not perform validation or escaping of the ingested text before passing it to the agent.
Recommendations
- AI detected serious security threats
Audit Metadata