Scan Report
5 /100
agentmail
API-first email platform designed for AI agents. Create and manage dedicated email inboxes, send and receive emails programmatically.
AgentMail 是合法的 API 邮件服务集成技能,代码仅使用官方 agentmail SDK 与远程 API 通信,无 shell 执行、敏感文件访问或凭证外泄等危险行为。
Safe to install
该技能可直接使用。建议在生产环境中启用文档中建议的 webhook 邮件发送者白名单功能以防止提示词注入攻击。
Findings 1 items
| Severity | Finding | Location |
|---|---|---|
| Low | Webhook 邮件存在提示词注入风险 Prompt Injection | SKILL.md:77 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | READ | ✓ Aligned | scripts/send_email.py:98 仅读取附件文件用于发送 |
| Network | READ | READ | ✓ Aligned | 仅通过 SDK 与 api.agentmail.to 通信 |
| Environment | READ | READ | ✓ Aligned | 读取 AGENTMAIL_API_KEY 用于认证 |
| Shell | NONE | NONE | — | 无 subprocess/os.system 调用 |
25 findings
Medium External URL 外部 URL
https://console.agentmail.to SKILL.md:20 Medium External URL 外部 URL
https://your-domain.com/webhook SKILL.md:75 Medium External URL 外部 URL
https://api.agentmail.to/v0 references/API.md:3 Medium External URL 外部 URL
https://your-app.com/webhook/support references/EXAMPLES.md:69 Medium External URL 外部 URL
https://your-app.com/webhook/tasks references/EXAMPLES.md:225 Medium External URL 外部 URL
https://your-app.com/tasks/ references/EXAMPLES.md:306 Medium External URL 外部 URL
https://ngrok.com/ references/WEBHOOKS.md:87 Medium External URL 外部 URL
https://abc123.ngrok-free.app references/WEBHOOKS.md:136 Medium External URL 外部 URL
https://abc123.ngrok-free.app/webhook references/WEBHOOKS.md:151 Medium External URL 外部 URL
https://myapp.com/webhook scripts/setup_webhook.py:7 Info Email 邮箱地址
[email protected] SKILL.md:36 Info Email 邮箱地址
[email protected] SKILL.md:84 Info Email 邮箱地址
[email protected] SKILL.md:89 Info Email 邮箱地址
[email protected] SKILL.md:102 Info Email 邮箱地址
[email protected] references/API.md:35 Info Email 邮箱地址
[email protected] references/API.md:159 Info Email 邮箱地址
[email protected] references/EXAMPLES.md:297 Info Email 邮箱地址
[email protected] references/EXAMPLES.md:404 Info Email 邮箱地址
[email protected] references/EXAMPLES.md:428 Info Email 邮箱地址
[email protected] references/EXAMPLES.md:428 Info Email 邮箱地址
[email protected] references/EXAMPLES.md:440 Info Email 邮箱地址
[email protected] references/EXAMPLES.md:497 Info Email 邮箱地址
[email protected] references/WEBHOOKS.md:18 Info Email 邮箱地址
[email protected] scripts/check_inbox.py:7 Info Email 邮箱地址
[email protected] scripts/send_email.py:6 File Tree
11 files · 52.5 KB · 1814 lines Markdown 4f · 1219L
Python 6f · 590L
JSON 1f · 5L
├─
▾
references
│ ├─
API.md
Markdown
│ ├─
EXAMPLES.md
Markdown
│ └─
WEBHOOKS.md
Markdown
├─
▾
scripts
│ ├─
check_inbox.py
Python
│ ├─
create_hammer_inbox.py
Python
│ ├─
inspect_create_inbox.py
Python
│ ├─
list_inboxes.py
Python
│ ├─
send_email.py
Python
│ └─
setup_webhook.py
Python
├─
_meta.json
JSON
└─
SKILL.md
Markdown
Dependencies 3 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
agentmail | * | pip | No | 官方 SDK,无已知漏洞 |
python-dotenv | * | pip | No | 标准环境变量加载库 |
flask | * | pip | No | 仅用于开发测试服务器 |
Security Positives
✓ 文档完整清晰,包含安全警告和缓解方案
✓ 使用官方 agentmail SDK,无自定义网络请求
✓ 无 shell/subprocess 执行能力
✓ API 密钥通过环境变量传递,不硬编码
✓ 无敏感文件访问(~/.ssh、.env、.aws 等)
✓ 无 base64/eval 等混淆执行
✓ 代码结构清晰,易于审计