Case Study: Browser Extension Supply-Chain Hijacks & the <all_urls> Risk
案例复盘:知名代理与效率扩展供应链劫持,<all_urls> 如何变成百万用户噩梦
Between late 2024 and early 2025, attackers phished Chrome Web Store developer accounts behind dozens of legitimate extensions — including Cyberhaven and Proxy SwitchyOmega — and silently pushed malicious updates. Because those extensions held broad <all_urls> permissions, attackers could harvest session cookies and enterprise tokens from millions of browsers automatically.
2024 年底至 2025 年初,多款口碑极佳的 Chrome 扩展(包括 Cyberhaven、Proxy SwitchyOmega、Reader Mode 等)的开发者账号遭到精准钓鱼劫持,黑客静默推送了恶意版本。因为这些扩展原本就握有 <all_urls> 全站读写权限,数百万浏览器在自动更新后瞬间暴露了登录 Cookie 与企业会话凭据。
You installed a trusted, highly rated proxy or productivity extension years ago. One morning Chrome silently auto-updates it in the background — without showing any new permission prompt because the extension already had <all_urls>.
几年前装了一款评分很高的老牌代理或效率插件,某天早上浏览器在后台静默自动更新了——因为旧版原本就拿了“读取所有网站数据”权限,更新恶意代码时浏览器甚至不会弹窗提醒你。
Diagnostic Breakdown (Scene → Risk → Fix)
核心排查对照表(场景 → 风险 → 解法)
| Attack Stage | What Happened in 2024–2025 | How Minimal Permissions Mitigate It |
|---|---|---|
| 1. Account Phishing | Attackers sent fake Chrome Web Store policy violation emails to developers | Always inspect what permissions an extension actually holds, not just its star rating. |
| 2. Silent Auto-Update | Malicious code shipped inside existing <all_urls> scope triggered zero user warning | An extension without <all_urls> cannot silently escalate to read pages — Chrome disables it and prompts you. |
| 3. Session Harvesting | Injected scripts exfiltrated auth cookies and ad/cloud tokens on active tabs | Zero DOM / tabs permissions physically block page scraping. |
| 攻击阶段 | 2024–2025 真实经过 | 最小权限如何阻断 |
|---|---|---|
| 1. 开发者钓鱼 | 黑客伪造 Chrome 商店违规通知邮件骗取开发者 OAuth 授权 | 选插件不能只看历史评分,更要看它手里握着什么权限。 |
| 2. 静默自动更新 | 恶意版本复用原有 <all_urls> 权限,用户端零弹窗提醒 | 不含 <all_urls> 的扩展一旦新增高危权限,浏览器会强制禁用并弹窗二次确认。 |
| 3. 窃取会话凭据 | 注入脚本直接读取活跃标签页里的认证 Cookie 与企业 Token | 零网页读写与零 tabs 权限可从沙箱层面物理阻断。 |
Actionable Commands & Setup
分系统实操命令与设置
Open chrome://extensions -> Remove unused extensions with "Read and change all your data on all websites"
1. Why Zero-Prompt Escalation Is the Real Danger
一、最致命的机制:已有高危权限更新时不弹窗
Chrome only pauses an auto-update when a new version requests a NEW permission. If an extension already requested <all_urls> on day one, a compromised update can inject arbitrary keyloggers or cookie stealers into every tab without a single prompt.
浏览器只会在新版本“新增权限”时暂停更新并弹窗提醒。如果一款扩展从第一天就拿了 <all_urls>,一旦账号易主或被黑,恶意代码能无缝覆盖所有网页,用户全程毫不知情。
2. Practical Takeaway for Everyday Users
二、给普通用户的直接建议
Treat browser extensions like installed software with root access to your web life. Keep your installed list short, and favor privacy utilities that operate strictly via native browser APIs without <all_urls>.
给扩展做减法:不常用的老工具立刻卸载;隐私和代理辅助类工具,优先选择不申请 <all_urls>、仅用原生 API 工作的极简扩展。
Frequently Asked Questions
常见疑问
Can an extension in the official Chrome or Edge store still become malicious later?
Yes. Store review catches many threats, but developer accounts can be sold or phished later. Minimizing permissions is your strongest permanent defense.
官方商店里的扩展也会变坏吗?
会。商店审核能拦住大部分初始恶意软件,但老插件开发者账号后续可能被转卖或钓鱼劫持,所以“不给它不必要的权限”才是最靠谱的防线。