Firefox 靈活的擴充套件生態與 about:config 微調能力,使其成為安全研究人員與隱私重視者首選。以下為進階配置清單。
about:config → 新增字串 general.useragent.override → 設為 Googlebot/2.1 (+https://www.google.com/bot.html) 或常見爬蟲 UA。wma、avi、swf、pdf、exe 等動作設為「永遠詢問」或「儲存檔案」。Firekeeper 類 Snort 的 HTTP 內容檢查擴充套件。範例規則偵測 ANI 漏洞利用:
alert (body_content:"anih|24 00 00 00|"; body_re:"/^RIFF.*anih\x24\x00\x00\x00.*anih(?!\\x24\x00\x00\x00)/s"; msg:"possible MS ANI exploit"; reference:url,https://www.determina.com/security.research/vulnerabilities/ani-header.html;)
同理可撰寫規則偵測 JPEG/GIF/PDF 異常結構、Shellcode 特徵、已知 Exploit Kit 載荷特徵。
| 參數 | 建議值 | 說明 |
|---|---|---|
| privacy.resistFingerprinting | true | 啟用 Tor Uplift 反指紋保護(時區、螢幕解析度、字體列表等標準化) |
| network.IDN_show_punycode | true | 顯示 Punycode 域名(防同形異義字攻擊) |
| dom.event.clipboardevents.enabled | false | 禁用剪貼板事件 API(防網頁讀取剪貼板) |
| media.peerconnection.enabled | false | 禁用 WebRTC(防真實 IP 洩露) |
| browser.safebrowsing.malware.enabled | true | 啟用 Google Safe Browsing 惡意軟體防護 |
| browser.safebrowsing.phishing.enabled | true | 啟用釣魚防護 |
安全與易用性權衡:過度限制會導致網站功能異常。建議建立「日常用」、「高風險研究用」兩個 Firefox 設定檔(firefox -P),分場景使用。