Why Privacy Extensions Should Never Ask for <all_urls>
为什么隐私扩展绝不应该申请 <all_urls>?Manifest V3 权限安全自查指南
Any browser extension granted <all_urls> ("Read and change all your data on all websites") can read passwords, banking pages, cookies, and AI chat logs on every tab you open. A clean network-privacy extension can audit leaks and lock WebRTC natively using strictly 7 scoped MV3 permissions with zero host access.
任何申请了 <all_urls>(“读取和更改你在所有网站上的全部数据”)的扩展,理论上都能读取你每个标签页里的密码、网银、Cookie 和 AI 对话。一款克制的隐私测漏与加固扩展,完全只需要 7 项最小 MV3 权限就能跑通全部功能,根本不需要碰任何网页内容。
You open chrome://extensions or edge://extensions and realize half your installed extensions have unrestricted "On all sites" access to every webpage you visit.
打开 chrome://extensions 或 edge://extensions 一看,发现自己装的工具插件有一大半都默认勾着“在所有网站上读取和更改数据”。
Diagnostic Breakdown (Scene → Risk → Fix)
核心排查对照表(场景 → 风险 → 解法)
| Permission | What It Can Access | Needed by Nulltrace? |
|---|---|---|
| <all_urls> / host_permissions | Full DOM, keystrokes, forms, cookies on every website | NEVER (Zero webpage reads) |
| tabs / history | Full list of URLs and titles you visit | NEVER (Zero history reads) |
| privacy | Chrome/Edge native privacy switches (WebRTC UDP lock, prefetch) | Yes (core native hardening) |
| proxy | Read-only inspection of current proxy mode | Yes (read-only audit) |
| declarativeNetRequest | Static bundled tracker blocklist without reading page DOM | Yes (static MV3 rules only) |
| 权限名称 | 实际能碰到的范围 | Nulltrace 是否申请 |
|---|---|---|
| <all_urls> / 主机权限 | 所有网页的 DOM 内容、输入框、表单与对话记录 | 绝不申请(零网页读取) |
| tabs / history | 你打开过的所有网页网址与历史记录 | 绝不申请(零历史读取) |
| privacy | 调用浏览器官方隐私开关(WebRTC 锁、禁 DNS 预取等) | 是(原生封堵必需) |
| proxy | 只读检查当前浏览器代理模式状态 | 是(只读体检,不劫持流量) |
| declarativeNetRequest | 本地静态规则拦截常见追踪域名,不读网页内容 | 是(纯静态 MV3 规则) |
Actionable Commands & Setup
分系统实操命令与设置
Open chrome://extensions -> Click "Details" on any extension -> Check "Site access"
1. How to Audit Your Own Browser in 60 Seconds
一、花 60 秒自查你浏览器里的危险权限
Open chrome://extensions, inspect each extension under "Site access", and remove any utility you no longer actively use. For extensions that truly need page access (like a password manager), switch Site Access from "On all sites" to "On click" whenever possible.
打开 chrome://extensions 或 edge://extensions,逐个点「详情」看「网站访问权限」:把不再常用的老插件直接删掉;确实需要读取网页的工具,尽量把权限从「在所有网站上」改成「点击时」。
2. Why Minimal Permissions Protect You Even in Worst-Case Scenarios
二、最小权限是最硬核的物理隔离
Even if an extension without <all_urls> or tabs permissions were ever compromised, the browser sandbox physically prevents it from reading your webpages, emails, or browsing history.
一款连 <all_urls> 和 tabs 都没有申请的扩展,哪怕在最极端的情况下,浏览器底层沙箱也从物理上拦死了它读取你的网银、邮箱和聊天记录的可能。
Frequently Asked Questions
常见疑问
How does Nulltrace block trackers without <all_urls>?
Manifest V3 declarativeNetRequest executes a static JSON ruleset inside the browser network stack itself — the extension never sees or reads your webpage content.
没有 <all_urls> 权限,Nulltrace 是怎么拦截追踪器的?
依靠 Manifest V3 的 declarativeNetRequest 静态规则机制,由浏览器底层网络引擎直接按静态清单拦截追踪域名,扩展本身完全接触不到你的网页内容。