gmail-manager
Warn
Audited by Gen Agent Trust Hub on Jul 2, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill uses the Python
picklemodule to load and save OAuth2 tokens ingmail_manager.py. - Evidence: The
_authenticatemethod callspickle.load(token)from the file path specified inTOKEN_FILE(~/.gmail_token.pickle). Deserializing untrusted data withpicklecan lead to arbitrary code execution if the token file is compromised or replaced by an attacker. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data (email bodies and subjects) which can be used to influence or override agent behavior.
- Ingestion points: The
get_messagemethod ingmail_manager.pyextracts email content using_extract_bodyand returns it as plain text or HTML. - Boundary markers: There are no delimited boundaries or explicit warnings provided to the agent to ignore instructions embedded within the fetched email content.
- Capability inventory: The skill possesses high-privilege capabilities including
send_email,delete_message,batch_modify(which can archive or label messages), anddownload_attachment. - Sanitization: No sanitization or filtering is performed on the email body before it is passed to the agent's context.
- [DATA_EXPOSURE]: The skill writes sensitive OAuth2 client credentials to a temporary file in a world-readable directory.
- Evidence: The
_get_new_credentialsmethod ingmail_manager.pywritescredentials_data(containingCLIENT_IDandCLIENT_SECRET) to/tmp/gmail_credentials.json. On multi-user systems, this allows other users to potentially harvest these credentials. - [COMMAND_EXECUTION]: The installation script modifies file permissions and creates symlinks.
- Evidence:
setup.shexecuteschmod +xon the main Python script andln -sfto create a symlink in~/.local/bin/. While expected for installation, these are standard command execution patterns. - [EXTERNAL_DOWNLOADS]: The skill installs necessary dependencies from well-known official sources.
- Evidence:
setup.shusesuv pip installto downloadgoogle-auth-oauthlib,google-auth-httplib2, andgoogle-api-python-client. These are official Google API libraries.
Audit Metadata