agent-email
Pass
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from external email sources through commands like
mail_read,mail_list, andmail_search. This creates a vulnerability surface where malicious instructions embedded in incoming emails could attempt to influence the agent's behavior. - Ingestion points: Email bodies and metadata are read into the agent's context in
SKILL.mdandscripts/mail-ops.sh. - Boundary markers: The skill includes explicit defensive instructions in the
安全规则(Security Rules) section ofSKILL.mdandreferences/agently-cli-guide.md, warning the agent to treat email content as data only and to ignore any embedded instructions. - Capability inventory: The skill has significant capabilities including sending emails (
mail_send), replying/forwarding, and downloading attachments to the local filesystem (mail_download). - Sanitization: The skill relies on LLM-level instruction following rather than programmatic sanitization of the email content.
- [EXTERNAL_DOWNLOADS]: The skill downloads and executes official CLI tools from well-known service providers via NPM. In
scripts/mail-ops.sh, it usesnpx --yes "@clawemail/mail-cli@latest"to fetch the NetEase tool, andSKILL.mdinstructs the user to install@tencent-qqmail/agently-cliglobally. Additionally,claw_initinmail-ops.shfetches authentication metadata from a NetEase shortlink (u.163.com). - [COMMAND_EXECUTION]: The skill performs shell command execution to interface with email backends. It uses
npxfor NetEase and a global binary for Tencent. Notably,_agently_logininscripts/mail-ops.shuses thescriptutility to spawn a background process and capture OAuth URLs from an interactive TTY session. - [DATA_EXFILTRATION]: The skill provides the ability to read local files via the
--body-fileparameter in themail_sendfunction (implemented inscripts/mail-ops.sh). This allows the agent to read local data (like logs or reports) and transmit them to external email servers. While this is the intended function, it is a sensitive capability in an AI agent context.
Audit Metadata