gmail
Fail
Audited by Gen Agent Trust Hub on Jul 25, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEDATA_EXFILTRATIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
scripts/Code.jscontains a hardcoded default fallback for theSECRET_TOKENvariable ('aviz-gmail-2026'). If a user fails to correctly execute thesetupToken()function or if the environment variable is lost, the web endpoint remains protected by this publicly visible string. - [DATA_EXFILTRATION]: The skill is designed to transmit sensitive Gmail data (email bodies, sender info, and subjects) to a remote web app endpoint. While this is the skill's primary function, the exposure of private communication to an external endpoint increases the risk of data leakage.
- [EXTERNAL_DOWNLOADS]: The
SETUP.mdfile instructs the user to install@google/claspglobally via NPM. This is a tool from a trusted organization (Google) used for managing script deployments. - [PROMPT_INJECTION]: The skill reads external, untrusted email content which may contain malicious instructions that could influence the agent's behavior during processing (Indirect Prompt Injection).
- Ingestion points: Raw email bodies and snippets are retrieved in
scripts/Code.jsusingGmailApp.searchandmsg.getPlainBody(). - Boundary markers: None; the content is returned as raw text without delimiters or warnings to the agent.
- Capability inventory: The skill provides capabilities to send emails, create drafts, and modify message states (mark as read).
- Sanitization: No validation or sanitization is performed on the ingested email content.
Recommendations
- AI detected serious security threats
Audit Metadata