Communitygithub.com

瀏覽器擴充功能逆向工程

用於對瀏覽器擴充功能(Chrome/Firefox)進行授權逆向分析,包括 manifest 解析、背景工作腳本,以及擴充功能中的憑證或流量邏輯還原。

瀏覽器擴充功能逆向工程 是什麼?

Browser Extension Reverse Engineering 是一項專為 AI 助手設計的技能,用於對瀏覽器擴充功能(如 Chrome/Edge MV2/MV3 及 Firefox 擴充功能)進行授權的逆向工程分析。此技能涵蓋從擴充功能包體(crx/xpi 或解壓目錄)中提取 manifest、分析背景腳本(service_worker/background)與內容腳本,以及監控網路請求與訊息傳遞(runtime.sendMessage)的完整工作流程。它支援開發者模式載入解壓目錄、透過 Chrome DevTools 除錯 service worker,必要時還可結合 Frida 或瀏覽器 CDP 工具進行動態分析。這項技能特別適合安全研究人員用於惡意擴充功能 IOC 提取、供應鏈投毒調查,或是還原擴充功能實作的簽名、加密或代理邏輯。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaoxuya520/reverse-skill/tree/main/skills/browser-extension-reverse

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

瀏覽器擴充功能逆向工程 是做什麼的?

ACTION REQUIRED(讀完後立刻執行)

  1. NOW:讀取 ../field-journal/precedent-reverse.md
  2. NOW:確認目標是瀏覽器擴充功能(crx/xpi/解壓目錄),不是普通網頁 JS(普通 → js-reverse/)
  3. NEXT:解壓擴充功能;讀取 manifest
  4. ACT:權限面 → 背景腳本 → 網路/儲存鉤子

適用場景

  • Chrome/Edge MV2/MV3 擴充功能分析
  • Firefox 擴充功能
  • 惡意擴充功能 IOC、供應鏈擴充功能投毒調查
  • 擴充功能實作的簽名/加密/代理邏輯還原

工作流

1. 包體

□ crx 解壓 / 從 profile 取擴充功能目錄
□ manifest.json:permissions、host_permissions、background、content_scripts
□ 評估過度權限(<all_urls>、webRequest、debugger)

2. 邏輯

□ service_worker / background 入口
□ content_script 注入點與世界(isolated)
□ chrome.storage / IndexedDB 金鑰
□ 與 `js-reverse` 相同:Observe 網路與訊息傳遞(runtime.sendMessage)

3. 動態

□ 開發者模式載入解壓目錄
□ chrome://extensions 檢查錯誤
□ DevTools 附加 service worker
□ 必要時 Frida/瀏覽器 CDP(jshookmcp)

工具鏈

工具用途
解壓/jqmanifest
Chrome DevToolsworker 除錯
js-reverse 工具鏈深度 JS
YARA惡意擴充功能規則

參考

  • references/extension-analysis.md
  • field-journal 擴充功能恢復相關條目
  • ../js-reverse/ ../malware-analysis/

路由上下文

上游: MASTER R30
下游: 複雜混淆 JS → js-reverse;投毒調查 → supply-chain / malware

任務完成自檢

  • 是否列出權限面與入口腳本?
  • 是否還原關鍵資料流?
  • Checklist?

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

apk-reverse

在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。

attack-chain

Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.

binary-diff

|

binary-ninja-reverse

Use for authorized binary analysis in Binary Ninja, including HLIL/MLIL/LLIL inspection, strings/imports/exports, cross-references, types, patch review, Python API automation, and optional Binary Ninja MCP or localhost HTTP integration.

browser-automation

|

case-review

Reviews a reverse-skill case package for scope readiness, Evidence to Finding to Path traceability, work item coverage, timeline references, and optional artifact hash integrity before report handoff.

cloud-k8s

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

code-audit

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

ctf-sandbox

Thin PRIMARY for CTF / AWD / 靶场 multi-type orchestration. Hands off to the sidecar CTF-Sandbox-Orchestrator. Use when the user says CTF, AWD, 靶场, or 比赛题 and no more specific pwn/APK/IDA route already won.

database-security

Use for authorized database security assessment covering PostgreSQL/MySQL/MSSQL/Mongo/Redis exposure, authz, UDF/command paths, and misconfiguration review.

diagram-generator

generate, refine, validate, and render diagrams from natural language, notes, code snippets, schemas, tables, or existing diagram source. use for flowcharts, swimlanes, sequence diagrams, state diagrams, er diagrams, class diagrams, architecture/c4-style diagrams, dependency graphs, gantt charts, mind maps, user journeys, sankey-style flows, org charts, network graphs, and other visual models. supports mermaid by default, graphviz dot for complex graph layout, plantuml for uml-heavy engineering diagrams, and svg output when direct markup is more reliable.

digital-forensics

Use for authorized digital forensics including memory dumps, disk timelines, PCAP investigation, artifact triage, and IR evidence preservation.

docs-generator

|

dotnet-reverse

.NET / C# 二进制逆向。当目标是 .NET assembly(PE 头含 CLR、.exe/.dll 托管程序)、C# 编译产物(含 NativeAOT)、红队 Sharp* 工具(Rubeus / SharpHound / SharpHound 等)、.NET 混淆程序(ConfuserEx / SmartAssembly / Babel / Eazfuscator)、.NET loader / info-stealer / 套壳 malware 时使用。优先用 dnSpyEx + de4dot,需要 AI 直接操作时联动 dnSpy MCP。不用于纯 native 二进制(走 reverse-engineering / ida-reverse)。

edr-bypass-re

|

email-security

Use for authorized email security review including phishing analysis, header authentication (SPF/DKIM/DMARC), BEC patterns, and mailbox token abuse research.

firmware-pentest

|

ghidra-reverse

Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.

go-rust-reverse

Use for reverse engineering stripped Go and Rust binaries including runtime recognition, pclntab/moduel data recovery, panic strings, and idiomatic decompilation recovery.

相關技能