web-extension-reverse
Reverse engineer browser extensions (Chrome/Edge MV2/MV3, Firefox) for an authorized review: unpack .crx/.xpi, assess the permission surface, trace background/service-worker and content-script logic, and recover credential, signing, or traffic-handling behavior. Load on "analyze this extension", ext
v2026.10.14-ee0e0c5שתי התקנות+2 ב-7 ימים27 כוכביםMITסונכרן לפני 23 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/web-extension-reverseנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילהc07b0bf0…854b0f17
c07b0bf0c737…52e4854b0f17קובץ אחד · 2.5 KBסריקהנמוךממצא אחד
- קישורים לדומיינים חיצוניים
מקורgithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-extension-reverse@ee0e0c5
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
When it applies
The target is a browser extension — a .crx/.xpi package or an unpacked extension directory —
not ordinary page JavaScript (for that, load reverse-eng-js). Typical jobs: audit an in-scope
extension's client-side signing/encryption/proxy logic, hunt for over-privileged permissions in a
review, or investigate a malicious or supply-chain-poisoned extension. Target must be confirmed in
scope.txt (tradecraft-scope-roe); for malicious samples work in an isolated VM and see
defense-malware-triage.
Why it works
An extension is just a zip with a manifest.json that declares its entire trust surface —
permissions, host permissions, entry scripts. Reading the manifest first tells you exactly which
scripts can touch which origins, and every browser-API capability (webRequest, cookies,
nativeMessaging) is reachable by grepping for chrome.* / browser.* calls from those entry
points. The dynamic half is free: Chrome runs unpacked extensions natively and DevTools attaches
straight to the background service worker.
Method
- Unpack.
.xpiis a plain zip..crxhas a CRX3 header before the zip data — most unzip tools tolerate it; if not, strip the header or pull the already-unpacked copy from the browser profile (.../Extensions/<id>/<version>/). - Read the manifest first:
jq '{permissions, host_permissions, background, content_scripts, web_accessible_resources, externally_connectable, content_security_policy}' manifest.json. Record MV2 (background.scripts,webRequestBlocking) vs MV3 (background.service_worker,declarativeNetRequest) — it changes where the logic lives. - Score the permission surface. Red flags:
<all_urls>(read/write any site),webRequest/webRequestBlocking(MITM-grade request rewriting),debugger,cookies,nativeMessaging(escapes the browser to a host binary — follow it withreverse-eng-binary-triage), andexternally_connectable(lets web pages drive the extension — a remote attack surface). - Trace the logic. Start at the service worker / background entry, then the content scripts —
note each script's
matches,run_at, and whether it runs in the isolated world. Grep forchrome.storage/ IndexedDB to find stored keys and tokens, and forruntime.onMessage/sendMessage/postMessageto map who can drive what. For obfuscated or webpack-packed code, anchor on thechrome.*API calls and run thereverse-eng-jsrecovery flow; for the fast attack-side path seeweb-client-side-signing-bypass. - Go dynamic. Load the unpacked directory at
chrome://extensions(Developer mode), watch for load errors, then open DevTools on the service worker link. Trigger events and observe network traffic and message passing; Burp/CDP covers the deeper hooks. For known-bad hunting, run YARA rules for malicious-extension families over the unpacked tree.
Gotchas
- MV3 service workers suspend when idle — breakpoints go cold. Keep the worker's DevTools window open and trigger the event you're tracing; don't expect it to be alive on its own.
- MV3
declarativeNetRequestis declarative — the blocking/redirect logic lives in the JSON ruleset, not JS. Read the rules file; there is no function to hook. - Content scripts run in an isolated world — page JS can't see their variables, and they can't
see the page's. Cross-talk happens over the DOM or
postMessage; audit both directions. - Secrets live in the installed profile, not the package —
chrome.storage.localpersists in the profile's LevelDB; check there during a live-host review. .crxfrom the Web Store is signed and version-locked — for reproducible analysis record the extension ID + version, and diff updates before concluding.
Verify success
You can state, with evidence: the full permission surface and entry scripts, the data flow (what the extension reads, where it sends it, where keys/tokens live), and who can message it (other extensions, web pages, native hosts) — each claim cited to a manifest field or code location.
References
Chrome MV3 migration docs; chrome://extensions developer mode; OWASP CISQ extension guidance.
Portions adapted from reverse-skill by zhaoxuya520, MIT License.
הקבצים בגרסה הזו
- SKILL.md5.1 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | לא | לא |
| משתמש ברשת | כן | כן |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- מידעקישור · קישורים לדומיינים חיצוניים
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 בנוב׳ 2026 | ee0e0c5 | c07b0bf0 | חתומה | – |
עוד מ-NoorQureshi
הכול מהמפרסם הזהעוד בקטגוריה Web ו-bug bounty
לקטגוריה- src-hunterzhaoxuya520/src-hunter5
- owasp-top10-analysissecurityskills/owasp-top10-analysis5
- testing-for-xml-injection-vulnerabilitiesmukul975/testing-for-xml-injection-vulnerabilities5
- offensive-xsssnailsploit/offensive-xss5
- offensive-rcesnailsploit/offensive-rce5
- source-review-techniqueaeondave/source-review-technique5
שאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login