agentmail
Pass
Audited by Gen Agent Trust Hub on Apr 11, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill recommends installing vendor-owned packages
agentmailandagentmail-toolkitfrom standard registries like PyPI and NPM. - [COMMAND_EXECUTION]: The documentation provides standard setup commands including
pip installandnpm installfor managing dependencies. - [DATA_EXFILTRATION]: The skill manages communication data via the AgentMail API. A potential security risk is identified in
references/examples.md(Pattern 7), which demonstrates saving email attachments using the unsanitizedfilenameattribute from the message payload, which could lead to path traversal vulnerabilities if implemented without validation. - [PROMPT_INJECTION]: The skill demonstrates a surface for indirect prompt injection where untrusted external data influences agent behavior. 1. Ingestion points: Raw email bodies are ingested via webhooks in
SKILL.mdandreferences/examples.md. 2. Boundary markers: The example code lacks delimiters or instructions to ignore embedded commands within the email text. 3. Capability inventory: The agent is equipped with tools to send, reply to, and list messages, providing an exploitation path if the agent is compromised. 4. Sanitization: There is no evidence of sanitization or filtering of theemail["text"]content before it is interpolated into the prompt for the LLM.
Audit Metadata