Logo: Reversing Browser Extensions

Reversing Browser Extensions

Communautéit
trilwu
reversing-browser-extensions

Analyséiert Chrome-/Firefox-Browser-Extensions duerch Reverse Engineering a Sécherheetsauditen — andeems Dir CRX/XPI auspackt, am Manifest no ze breede Berechtigunge sicht an d'Vertrauensgrenz tëscht der Säit, dem Content Script, dem Background Service Worker an dem Native Messaging Host verfollegt. Benotzt dëse Skill, wann Dir eng verdächteg oder mat ze ville Berechtigungen ausgestatt Extension analyséiert, de Berechtigungsmodell vun Ärer eegener Extension iwwerpréift oder ënnersicht, wéi e Content Script privilegiéiert APIen enger Websäit zougänglech mécht.

Add to TypingMind

Iwwersiicht

Editeurtrilwu
Repositorysecskills
Skill-Nummreversing-browser-extensions
Stären
144
Forks
15
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    trilwu huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Reversing Browser Extensions an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-browser-extensions
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/trilwu/secskills.git /tmp/secskills
mkdir -p .claude/skills
cp -r /tmp/secskills/secskills-core/skills/reversing-browser-extensions .claude/skills/reversing-browser-extensions
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Reversing Browser Extensions an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Reversing Browser Extensions automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Reversing Browser Extensions net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Reversing Browser Extensions

A browser extension is a small privileged program wedged next to every page the user visits. Its security is almost entirely about a boundary: the content script runs beside untrusted web content but can talk to a background context that holds real permissions — cookies, tabs, the network, sometimes a native process. Reversing an extension is reading that boundary and finding where the privileged side trusts the unprivileged one.

When to Use

  • Analyzing a suspicious, over-permissioned, or unknown extension's behaviour
  • Auditing an extension's manifest and message-passing for privilege leaks
  • Investigating how a content script exposes background/native capabilities to a page
  • Recovering what an extension actually does versus what its store listing claims

When NOT to Use

  • Deobfuscating the extension's bundled JavaScript as a code-reading problem — use reversing-obfuscated-javascript for the bundle, then return here for the privilege model.
  • Detonating and extracting IOCs from a malicious extension as part of an incident — use analyzing-malware.
  • Testing the web application the extension interacts with — testing-web-applications.
  • A desktop app that happens to embed a browser — testing-thick-clients.

Get the Code and Read the Manifest

An extension ships as a CRX (Chrome) or XPI (Firefox) — both are ZIP archives; unzip and read. You can pull a published extension from the store's CRX endpoint, or straight from the browser profile's Extensions directory.

The manifest is the map. Read it before any code:

  • manifest_version — MV2 (background page, webRequest blocking) vs MV3 (background service worker, declarativeNetRequest, remote code forbidden). The version changes where the privileged logic lives and how it persists.
  • permissions and host_permissions — <all_urls>, tabs, cookies, webRequest, debugger, nativeMessaging, scripting. Judge each against what the extension claims to do; <all_urls> + cookies on a "dark theme" extension is the tell.
  • content_scripts — which pages the extension injects into, and therefore which pages' content it is exposed to.
  • externally_connectable — which web origins may send it messages directly; a permissive value is an attack surface.
  • web_accessible_resources — extension files a page can load, which can leak the extension's presence or expose an injectable resource.
  • content_security_policy — a loosened CSP (unsafe-eval, remote script) is a code-injection surface.

The Trust Boundary

Extensions are isolated by design; the bugs are in the seams between contexts:

  • Page ↔ content script. The content script runs in an isolated world — it shares the DOM with the page but not JS variables. The leak is through the DOM and window.postMessage: a content script that acts on postMessage data without checking event.origin/event.source lets any page in its injection scope drive it.
  • Content script → background/service worker. The content script relays messages to the background context to do privileged work (chrome.runtime messaging). If the background handler does not validate the sender and the message shape, a compromised or malicious page (via the content script) reaches privileged APIs. This is the central extension bug: privileged operations gated only by a message the page can influence.
  • onMessageExternal / externally_connectable. A web page listed here talks to the background directly — same validation question, one hop shorter.
  • Native messaging. nativeMessaging connects the extension to a local native host binary. A weakly validated message path here is browser-to-native code execution; trace what the native host does with what it receives.

For each privileged capability, answer: what input reaches it, and from how far out (background only, content script, or an arbitrary page)?

What to Flag

  • Over-broad permissions disproportionate to function.
  • Unvalidated message senders on runtime.onMessage / onMessageExternal — the privilege-escalation path from page to extension.
  • postMessage handling without origin checks in content scripts.
  • Remote code / eval or a CSP that permits it (also an MV3 policy violation).
  • Data exfiltration — traffic to endpoints unrelated to the stated purpose; reading page content, form fields, or cookies and sending them out.
  • Native messaging to a host that acts on unvalidated input.
  • Update/supply-chain risk — an extension that loads remote config or code, or one whose ownership recently changed.

Deobfuscate When Needed

Store extensions are frequently minified or bundled, and malicious ones obfuscated. When the code is unreadable, hand the bundle to reversing-obfuscated-javascript — unbundle and deobfuscate there, then read the recovered logic against the trust boundary above. Debug the live extension in the browser's extension DevTools to watch the message passing at runtime.

Rationalizations to Reject

  • "The store reviewed it, so it's fine." Store review is shallow and bypassed regularly; an ownership change can turn a clean extension malicious in one update. Read the code it actually ships.
  • "Content scripts are sandboxed, so page compromise can't reach the extension." The isolated world separates JS, not the DOM or postMessage. An unchecked message handler is the bridge.
  • "The background just relays a message." If it relays a page-influenced message into a privileged API without validating the sender, that relay is the vulnerability.
  • "It only asks for the permissions it needs." Verify against behaviour. <all_urls>, cookies, debugger, and nativeMessaging are the ones that turn a small bug into a large one.
  • "It's minified, so I can't review it." Minification is reversible; unbundle and deobfuscate first, then review.

References

  • reversing-obfuscated-javascript — unbundling and deobfuscating the extension's JS
  • analyzing-malware — detonation and IOCs for a confirmed-malicious extension
  • testing-web-applications — the sites and APIs the extension talks to
  • auditing-supply-chain — ownership-change and remote-code update risk

Heefeg gestallte Froen

Wat mécht de KI-Skill Reversing Browser Extensions?

Analyséiert Chrome-/Firefox-Browser-Extensions duerch Reverse Engineering a Sécherheetsauditen — andeems Dir CRX/XPI auspackt, am Manifest no ze breede Berechtigunge sicht an d'Vertrauensgrenz tëscht der Säit, dem Content Script, dem Background Service Worker an dem Native Messaging Host verfollegt. Benotzt dëse Skill, wann Dir eng verdächteg oder mat ze ville Berechtigungen ausgestatt Extension analyséiert, de Berechtigungsmodell vun Ärer eegener Extension iwwerpréift oder ënnersicht, wéi e Content Script privilegiéiert APIen enger Websäit zougänglech mécht.

Firwat Reversing Browser Extensions op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Reversing Browser Extensions besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Reversing Browser Extensions an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-browser-extensions an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Reversing Browser Extensions benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Reversing Browser Extensions benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Reversing Browser Extensions domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Reversing Browser Extensions gratis?

Jo. trilwu huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇