Logo di Reversing Browser Extensions

Reversing Browser Extensions

Community
trilwu
reversing-browser-extensions

Esegui reverse engineering e revisioni di sicurezza delle estensioni per browser Chrome/Firefox: estrai i file CRX/XPI, leggi il manifest per individuare autorizzazioni troppo ampie e traccia il confine di fiducia tra pagina, content script, background service worker e host di native messaging. Usala per analizzare un’estensione sospetta o con autorizzazioni eccessive, verificare il modello dei privilegi della tua estensione o capire in che modo un content script espone API privilegiate a una pagina web.

Add to TypingMind

Panoramica

Pubblicato datrilwu
Repositorysecskills
Nome della skillreversing-browser-extensions
Stelle
144
Fork
15
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da trilwu su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Reversing Browser Extensions in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-browser-extensions
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Reversing Browser Extensions in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Reversing Browser Extensions non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Reversing Browser Extensions non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA Reversing Browser Extensions?

Esegui reverse engineering e revisioni di sicurezza delle estensioni per browser Chrome/Firefox: estrai i file CRX/XPI, leggi il manifest per individuare autorizzazioni troppo ampie e traccia il confine di fiducia tra pagina, content script, background service worker e host di native messaging. Usala per analizzare un’estensione sospetta o con autorizzazioni eccessive, verificare il modello dei privilegi della tua estensione o capire in che modo un content script espone API privilegiate a una pagina web.

Perché usare Reversing Browser Extensions su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Reversing Browser Extensions è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Reversing Browser Extensions in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-browser-extensions. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Reversing Browser Extensions?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Reversing Browser Extensions?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Reversing Browser Extensions: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Reversing Browser Extensions è gratuita?

Sì. È pubblicata su GitHub da trilwu con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇