> For the complete documentation index, see [llms.txt](https://docs.frontrun.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frontrun.pro/cn/an-quan-yu-yin-si.md).

# 安全与隐私

**Frontrun** 是一款轻量级 Chrome 扩展，只在你常用的网站（X、Solscan、GMGN、Axiom、Photon 等）上叠加只读洞见。\
它**不会**修改任何网页核心源码，也**不会**拦截交易——你看到的只是额外的标签、提示和分析，帮助你更聪明地交易。

***

#### 1. 开源 Plasmo 构建

我们上传到 Chrome Web Store 的完整构建已全部公开：<https://github.com/FrontrunPro/frontrun-extension> 任何人都可以克隆、对比并逐行审核。

<details>

<summary>如何验证代码？</summary>

想自行验证？只需将开源构建包（或其中任意文件）：

1. 粘贴到 **ChatGPT 代码检查模式**（或其他 LLM）中，扫描可疑模式；
2. 使用 ESLint、SonarQube 等传统静态分析工具或恶意软件扫描器。

在 ChatGPT o3 的快速扫描结果中（[example](https://github.com/FrontrunPro/frontrun-extension?tab=readme-ov-file#privacy--security)），**未发现凭证窃取器、隐藏矿机，且内容脚本仅注入到 6 个白名单域名**——当然，你完全可以在几分钟内复现这一检查。

同时，您也可以通过[DeepWiki](https://deepwiki.com/FrontrunPro/frontrun-extension)对于我们的代码库进行审计。

</details>

<details>

<summary>为何只开源构建代码？</summary>

我们开源的**Plasmo 构建**包含 Frontrun 扩展在你浏览器中实际运行的全部代码。

之所以未开放整个开发仓库，是因为我们采用 **monorepo** 管理，其中还包含与浏览器扩展无关的私有包和内部工具。这些组件涉及专有逻辑及基础设施代码，保密可同时保护知识产权和安全性。

通过公开 Plasmo 构建，我们向用户提供了 **100% 透明** 的上线代码，同时合理地隔离非必要的内部模块。\
如果你想自行审计，也可以将代码粘贴到 ChatGPT，进行逐行检查：<https://chatgpt.com/c/684bb27d-5ebc-8003-acb5-58f730904425>

</details>

***

#### 2. 为什么需要这些权限？

| Chrome 权限    | 用途说明                       | 对你的好处           |
| ------------ | -------------------------- | --------------- |
| `storage`    | 本地 保存你的标签、关注列表和 UI 偏好设置    | 设置在会话之间自动保留     |
| `scripting`  | 注入小型脚本，在支持的网站绘制覆盖层         | 显示钱包标签、手续费节省指示等 |
| `sidePanel`  | 渲染 Frontrun 侧边面板           | 一键管理功能          |
| `webRequest` | 缓存 API 调用并限制网络流量           | 加快页面加载，降低流量消耗   |
| `windows`    | 打开设置与引导弹窗                  | 使用原生弹窗，界面整洁     |
| `identity`   | 若你选择开启，可通过 OAuth 登录同步多设备设置 | 不同机器之间无缝体验      |

> **Note:** 上述权限是大多数 Web3 插件（例如 Phantom 钱包）所需权限的 **严格子集**。

***

#### 3. 安全第一

| ✅ 我们 不会 收集   | 🛡️ 我们 会 采取的安全措施         |
| ------------ | ------------------------ |
| 私钥或助记词       | 将发布构建完全开源，接受公众审计         |
| 剪贴板数据（无读写权限） | 所有逻辑均在客户端执行——不会发送按键或浏览记录 |
| 隐藏的后台挖矿程序    | 采用经过验证的库和标准 MV3 架构       |
| 用户           |                          |

#### 4. 仍有疑问？

欢迎加入我们的 [Telegram](https://t.me/frontrun_community) 群 或在 GitHub 提 Issue。我们可以实时向你讲解代码、权限或架构。

**Frontrun 由交易者为交易者而生——自第一天起便把隐私与安全放在首位。**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.frontrun.pro/cn/an-quan-yu-yin-si.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
