跳转到正文
报告库
用途分类 / 其他用途

Gws Gmail Forward Skill 安全审计

作者说它能做什么(原文)

Gmail: Forward a message to new recipients.

第三方安全检查结论

发现安全风险

已检查文件
1
发现的风险
2
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。发现 2 项风险
中风险

转发会向外部收件人披露原邮件及默认包含的附件

原文依据:5 处
发现了什么

该命令会把原邮件连同发件人、日期、主题、收件人和原始附件发送给 `--to`、`--cc` 或 `--bcc` 指定的地址。附件默认包含,且普通调用并非预览或草稿。

为什么需要注意

选错邮件 ID 或收件人可能立即泄露邮件正文、通信关系、内嵌图片和附件中的敏感信息。密送地址还可能不易被其他收件人察觉。

风险成立,但这是转发功能的预期行为,并非隐藏操作。执行普通转发时,原邮件的发件人、日期、主题、收件人及原始附件会披露给 `--to` 指定的地址;附件默认包含。只有明确使用 `--dry-run`、`--draft` 或 `--no-original-attachments` 才能分别避免立即发送或排除原附件。用户可要求发送前固定使用预览/草稿并核对所有收件人。

SKILL.md:30来自说明文档打开原文件
|------|----------|---------|-------------|| `--message-id` | ✓ | — | Gmail message ID to forward || `--to` | ✓ | — | Recipient email address(es), comma-separated || `--from` | — | — | Sender address (for send-as/alias; omit to use account default) || `--body` | — | — | Optional note to include above the forwarded message (plain text, or HTML with --html) || `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) || `--attach` | — | — | Attach a file (can be specified multiple times) || `--cc` | — | — | CC email address(es), comma-separated || `--bcc` | — | — | BCC email address(es), comma-separated || `--html` | — | — | Treat --body as HTML content (default is plain text) |
查看另外 4 个位置
SKILL.md:39来自说明文档打开原文件
| `--html` | — | — | Treat --body as HTML content (default is plain text) || `--dry-run` | — | — | Show the request that would be sent without executing it || `--draft` | — | — | Save as draft instead of sending |
SKILL.md:56来自说明文档打开原文件
- Includes the original message with sender, date, subject, and recipients.- Original attachments are included by default (matching Gmail web behavior).- With --html, inline images are also preserved via cid: references.- In plain-text mode, inline images are not included (matching Gmail web).
SKILL.md:23来自说明文档打开原文件
```bashgws gmail +forward --message-id <ID> --to <EMAILS>```
SKILL.md:60来自说明文档打开原文件
- In plain-text mode, inline images are not included (matching Gmail web).- Use --no-original-attachments to forward without the original message's files.- Use -a/--attach to add extra file attachments. Can be specified multiple times.
中风险

`--attach` 可将额外的本地文件发送给邮件收件人

原文依据:4 处
发现了什么

Skill 允许多次指定 `--attach`,因此除原邮件内容外还可读取并发送额外文件。示例直接附加了 `notes.pdf`。

为什么需要注意

若代理选择了错误路径、未经用户逐项确认附件,或文件包含凭据、客户数据等内容,本地文件会随邮件披露给所有相关收件人。

风险成立,也是明确授权的附件功能:当调用者提供 `--attach`(或示例中的 `-a`)路径时,该文件会作为附件发送,并可重复添加多个文件。材料没有显示会自动选择任意文件;风险仅在用户或代理指定了敏感文件且邮件随后被发送时发生。用户可限制可附加目录,并要求先用 `--dry-run` 或 `--draft` 核对附件和收件人。

SKILL.md:35来自说明文档打开原文件
| `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) || `--attach` | — | — | Attach a file (can be specified multiple times) || `--cc` | — | — | CC email address(es), comma-separated |
查看另外 3 个位置
SKILL.md:49来自说明文档打开原文件
gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --body '<p>FYI</p>' --htmlgws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com -a notes.pdfgws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --no-original-attachments
SKILL.md:61来自说明文档打开原文件
- Use --no-original-attachments to forward without the original message's files.- Use -a/--attach to add extra file attachments. Can be specified multiple times.- Combined size of original and user attachments is limited to 25MB.- With --html, the forwarded block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed.
SKILL.md:39来自说明文档打开原文件
| `--html` | — | — | Treat --body as HTML content (default is plain text) || `--dry-run` | — | — | Show the request that would be sent without executing it || `--draft` | — | — | Save as draft instead of sending |
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险

Skill 逻辑拆解

5 个说明模块

此 Skill 的用途是通过 `gws` 将指定 Gmail 邮件转发给一个或多个新收件人。

查看原文
SKILL.md:18来自说明文档打开原文件
Forward a message to new recipients
SKILL.md:23来自说明文档打开原文件
```bashgws gmail +forward --message-id <ID> --to <EMAILS>```

命令默认会包含原邮件附件;用户可排除这些附件,也可另外附加本地文件。

查看原文
SKILL.md:34来自说明文档打开原文件
| `--body` | — | — | Optional note to include above the forwarded message (plain text, or HTML with --html) || `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) || `--attach` | — | — | Attach a file (can be specified multiple times) || `--cc` | — | — | CC email address(es), comma-separated |
SKILL.md:57来自说明文档打开原文件
- Includes the original message with sender, date, subject, and recipients.- Original attachments are included by default (matching Gmail web behavior).- With --html, inline images are also preserved via cid: references.- In plain-text mode, inline images are not included (matching Gmail web).- Use --no-original-attachments to forward without the original message's files.- Use -a/--attach to add extra file attachments. Can be specified multiple times.- Combined size of original and user attachments is limited to 25MB.

默认操作是立即发送;`--dry-run` 可只显示请求,`--draft` 可改为保存草稿。

查看原文
SKILL.md:39来自说明文档打开原文件
| `--html` | — | — | Treat --body as HTML content (default is plain text) || `--dry-run` | — | — | Show the request that would be sent without executing it || `--draft` | — | — | Save as draft instead of sending |
从这里开始 · 工作说明SKILL.md
gws-gmail-forward
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。
文件与检查记录1 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明

代码和说明中提到的操作

运行命令
SKILL.md:22来自说明文档打开原文件
```bashgws gmail +forward --message-id <ID> --to <EMAILS>
SKILL.md:44来自说明文档打开原文件
```bashgws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com
读取了多少行
70
文件校验值(用于核对版本)
bb8f0888330107d15c8a8f3436f0530861ea4739b73da9afcd7297aaedd1ab0b