安全

September 22, 2026 · View on GitHub

English · 中文 — Security (English)

Please do not open a public issue for a vulnerability. Report it privately through GitHub's "Report a vulnerability" on this repository, or by email to the address in the Chinese section below, and give us a reasonable window to ship a fix before disclosing.

In scope: the relay, the connector plugin, the iOS app, and anything that could leak a pairing secret or conversation content. Out of scope: findings that require a rooted device or physical access to an unlocked phone.


报告问题

请使用 GitHub 的私有漏洞报告, 不要在公开 issue 中提交。报告中请说明:受影响的组件(App / 连接器 / 中转)、版本或提交号、复现 步骤、以及可观察到的影响。收到后会在 7 天内回复处理计划。

设计上的安全边界

部分边界
中转只做鉴权与按 agentId 转发;不解析、不存储会话内容
连接器始终以 127.0.0.1 访问本机 DSH,不新开监听端口,不改写 Host
配对邀请码一次性、绑定单台电脑;设备令牌按设备签发,可在 App 内自助撤销
本机真值中转地址、连接器身份与签名材料只存在于本机被 gitignore 的文件中;CI 有独立检查

使用者需自行承担的部分

自建中转的运行者负责该主机的加固(TLS 证书、防火墙、systemd 沙箱参数)、账号与邀请码的发放, 以及日志与流量的处置。仓库提供的 relay/ 默认只监听回环、由 Caddy 终结 TLS,但不替代主机加固。