imap-smtp-email
Pass
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from external email servers, creating a vulnerability surface where malicious instructions embedded in emails could influence agent behavior.
- Ingestion points: The
scripts/imap.jsfile fetches email bodies and snippets viafetch,search, andcheckcommands. - Boundary markers: The skill does not implement or recommend specific delimiters or prompt-level warnings to distinguish untrusted email content from system instructions.
- Capability inventory: The skill possesses the capability to send emails (
scripts/smtp.js) and write files to the disk (scripts/imap.jsdownload command), which could be abused if an injected instruction is followed. - Sanitization: Filename sanitization is performed in
scripts/imap.jsto prevent directory traversal, but email body content is passed to the agent without specific sanitization against prompt injection patterns. - [COMMAND_EXECUTION]: The skill relies on executing local Node.js scripts to perform its primary functions, which is the intended behavior for this type of tool.
- Evidence:
SKILL.mddefines commands for checking, fetching, searching, and sending emails by invokingnode scripts/imap.jsandnode scripts/smtp.js. - Mitigation: The scripts implement
validateReadPathandvalidateWritePathfunctions that enforce a whitelist of directories defined in theALLOWED_READ_DIRSandALLOWED_WRITE_DIRSenvironment variables, preventing arbitrary file access.
Audit Metadata