# 0xsdeo/antidebug_breaker architecture

> Architecture diagram of the GitHub repository 0xsdeo/antidebug_breaker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/0xsdeo/antidebug_breaker
- Repository: https://github.com/0xsdeo/antidebug_breaker

## Overview

AntiDebug Breaker is a Chrome extension for JavaScript reverse engineering and penetration-testing reconnaissance, with an MCP server that exposes browser and extension capabilities to AI clients. The main workflow is selecting/configuring page scripts, applying them to a target, and inspecting hooks or debugging behavior; the MCP workflow starts a paired bridge and serves browser tools over stdio. The README documents the script families and MCP feature set. Source excerpts clarify service, registration, and MCP startup relationships, but do not show popup-to-extension messaging, so that connection is omitted.

Main entry points: [`mcp/src/index.js`](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/index.js) (MCP startup), [`extension/policy.js`](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/policy.js) (Script policy), [`extension/service.js`](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/service.js) (Extension service), [`extension/user-scripts.js`](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/user-scripts.js) (User script library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Extension interface"]
  node_popup["Extension popup<br/>[popup.js]"]
  node_script_library_ui["Script library editor<br/>[library-editor.js]"]
  node_mcp_ui["MCP controls<br/>[mcp.js]"]
end

subgraph group_runtime["Extension runtime"]
  node_service["Extension service<br/>[service.js]"]
  node_policy["Script policy<br/>[policy.js]"]
  node_user_scripts["User script library<br/>[user-scripts.js]"]
  node_bridge["Extension bridge<br/>[bridge.js]"]
  node_debugger["Debugger integration<br/>[debugger.js]"]
end

subgraph group_scripts["Page analysis scripts"]
  node_anti_debug["Anti-debug hooks<br/>[Bypass_Debugger.js]"]
  node_general_hooks["API and storage hooks"]
  node_crypto_hooks["Crypto instrumentation<br/>[Hook_CryptoJS.js]"]
  node_framework_tools["Framework tools<br/>[Get_Vue_0.js]"]
end

subgraph group_mcp["MCP integration"]
  node_mcp_entry["MCP startup<br/>[index.js]"]
  node_mcp_config["Pairing config<br/>[config.js]"]
  node_mcp_bridge["MCP extension bridge<br/>[bridge.js]"]
  node_browser_control["Browser controller<br/>[browser.js]"]
  node_extension_browser["Extension browser"]
  node_cookie_tools["Cookie operations<br/>[cookies.js]"]
  node_mcp_tools["MCP tools<br/>[tools.js]"]
end

subgraph group_language["Localization"]
  node_translations["Translations<br/>[core.js]"]
  node_catalog["Script catalog text<br/>[catalog.js]"]
  node_errors["Error messages<br/>[errors.js]"]
end

node_analyst(("Analyst"))
node_mcp_client(("AI client"))

node_service -->|"validates settings"| node_policy
node_service -->|"uses library"| node_user_scripts
node_service -->|"loads catalog"| node_catalog
node_policy -->|"uses messages"| node_translations
node_policy -->|"loads errors"| node_errors
node_user_scripts -->|"validates scripts"| node_policy
node_user_scripts -.->|"registers enabled scripts"| node_analyst
node_analyst -->|"configures scripts"| node_popup
node_analyst -->|"uses hooks"| node_anti_debug
node_analyst -->|"inspects APIs"| node_general_hooks
node_analyst -->|"inspects crypto"| node_crypto_hooks
node_analyst -->|"inspects frameworks"| node_framework_tools
node_mcp_client -->|"starts MCP session"| node_mcp_entry
node_mcp_entry -->|"reads config"| node_mcp_config
node_mcp_entry -->|"creates bridge"| node_mcp_bridge
node_mcp_entry -->|"creates controller"| node_browser_control
node_mcp_entry -->|"creates tools"| node_mcp_tools
node_browser_control -->|"clears cookies"| node_cookie_tools
node_browser_control -.->|"uses browser adapter"| node_extension_browser
node_mcp_ui -.->|"pairs extension"| node_mcp_entry
node_bridge -.->|"pairs with MCP"| node_mcp_bridge
node_catalog -->|"registers messages"| node_translations
node_errors -->|"registers messages"| node_translations

click node_popup "https://github.com/0xsdeo/antidebug_breaker/blob/main/popup/popup.js"
click node_script_library_ui "https://github.com/0xsdeo/antidebug_breaker/blob/main/popup/library-editor.js"
click node_mcp_ui "https://github.com/0xsdeo/antidebug_breaker/blob/main/popup/mcp.js"
click node_service "https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/service.js"
click node_policy "https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/policy.js"
click node_user_scripts "https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/user-scripts.js"
click node_bridge "https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/bridge.js"
click node_debugger "https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/debugger.js"
click node_anti_debug "https://github.com/0xsdeo/antidebug_breaker/blob/main/scripts/Bypass_Debugger.js"
click node_general_hooks "https://github.com/0xsdeo/antidebug_breaker/tree/main/scripts"
click node_crypto_hooks "https://github.com/0xsdeo/antidebug_breaker/blob/main/scripts/Hook_CryptoJS.js"
click node_framework_tools "https://github.com/0xsdeo/antidebug_breaker/blob/main/scripts/Get_Vue_0.js"
click node_mcp_entry "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/index.js"
click node_mcp_config "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/config.js"
click node_mcp_bridge "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/bridge.js"
click node_browser_control "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/browser.js"
click node_extension_browser "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/extension-browser.js"
click node_cookie_tools "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/cookies.js"
click node_mcp_tools "https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/tools.js"
click node_translations "https://github.com/0xsdeo/antidebug_breaker/blob/main/i18n/core.js"
click node_catalog "https://github.com/0xsdeo/antidebug_breaker/blob/main/i18n/catalog.js"
click node_errors "https://github.com/0xsdeo/antidebug_breaker/blob/main/i18n/errors.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_popup,node_script_library_ui,node_mcp_ui,node_mcp_client toneBlue
class node_service,node_policy,node_user_scripts,node_bridge,node_debugger toneAmber
class node_anti_debug,node_general_hooks,node_crypto_hooks,node_framework_tools toneMint
class node_mcp_entry,node_mcp_config,node_mcp_bridge,node_browser_control,node_extension_browser,node_cookie_tools,node_mcp_tools toneRose
class node_translations,node_catalog,node_errors,node_analyst toneIndigo
```

## Components

### Extension interface

- [Extension popup](https://github.com/0xsdeo/antidebug_breaker/blob/main/popup/popup.js): `popup/popup.js`
- [Script library editor](https://github.com/0xsdeo/antidebug_breaker/blob/main/popup/library-editor.js): `popup/library-editor.js`
- [MCP controls](https://github.com/0xsdeo/antidebug_breaker/blob/main/popup/mcp.js): `popup/mcp.js`

### Extension runtime

- [Extension service](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/service.js): `extension/service.js`
- [Script policy](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/policy.js): `extension/policy.js`
- [User script library](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/user-scripts.js): `extension/user-scripts.js`
- [Extension bridge](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/bridge.js): `extension/bridge.js`
- [Debugger integration](https://github.com/0xsdeo/antidebug_breaker/blob/main/extension/debugger.js): `extension/debugger.js`

### Page analysis scripts

- [Anti-debug hooks](https://github.com/0xsdeo/antidebug_breaker/blob/main/scripts/Bypass_Debugger.js): `scripts/Bypass_Debugger.js`
- [API and storage hooks](https://github.com/0xsdeo/antidebug_breaker/tree/main/scripts): `scripts`
- [Crypto instrumentation](https://github.com/0xsdeo/antidebug_breaker/blob/main/scripts/Hook_CryptoJS.js): `scripts/Hook_CryptoJS.js`
- [Framework tools](https://github.com/0xsdeo/antidebug_breaker/blob/main/scripts/Get_Vue_0.js): `scripts/Get_Vue_0.js`

### MCP integration

- [MCP startup](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/index.js): `mcp/src/index.js`
- [Pairing config](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/config.js): `mcp/src/config.js`
- [MCP extension bridge](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/bridge.js): `mcp/src/bridge.js`
- [Browser controller](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/browser.js): `mcp/src/browser.js`
- [Extension browser](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/extension-browser.js): `mcp/src/extension-browser.js`
- [Cookie operations](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/cookies.js): `mcp/src/cookies.js`
- [MCP tools](https://github.com/0xsdeo/antidebug_breaker/blob/main/mcp/src/tools.js): `mcp/src/tools.js`

### Localization

- [Translations](https://github.com/0xsdeo/antidebug_breaker/blob/main/i18n/core.js): `i18n/core.js`
- [Script catalog text](https://github.com/0xsdeo/antidebug_breaker/blob/main/i18n/catalog.js): `i18n/catalog.js`
- [Error messages](https://github.com/0xsdeo/antidebug_breaker/blob/main/i18n/errors.js): `i18n/errors.js`

### Other components

- **Analyst**
- **AI client**

## Connections

- Extension service → Script policy: validates settings (evidence: `extension/service.js`)
- Extension service → User script library: uses library (evidence: `extension/service.js`)
- Extension service → Script catalog text: loads catalog (evidence: `extension/service.js`)
- Script policy → Translations: uses messages (evidence: `extension/policy.js`)
- Script policy → Error messages: loads errors (evidence: `extension/policy.js`)
- User script library → Script policy: validates scripts (evidence: `extension/user-scripts.js`)
- User script library → Analyst: registers enabled scripts
- Analyst → Extension popup: configures scripts (evidence: `README.md`)
- Analyst → Anti-debug hooks: uses hooks (evidence: `README.md`)
- Analyst → API and storage hooks: inspects APIs (evidence: `README.md`)
- Analyst → Crypto instrumentation: inspects crypto (evidence: `README.md`)
- Analyst → Framework tools: inspects frameworks (evidence: `README.md`)
- AI client → MCP startup: starts MCP session (evidence: `mcp/src/index.js`)
- MCP startup → Pairing config: reads config (evidence: `mcp/src/index.js`)
- MCP startup → MCP extension bridge: creates bridge (evidence: `mcp/src/index.js`)
- MCP startup → Browser controller: creates controller (evidence: `mcp/src/index.js`)
- MCP startup → MCP tools: creates tools (evidence: `mcp/src/index.js`)
- Browser controller → Cookie operations: clears cookies (evidence: `mcp/src/browser.js`)
- Browser controller → Extension browser: uses browser adapter (evidence: `mcp/src/browser.js`)
- MCP controls → MCP startup: pairs extension
- Extension bridge → MCP extension bridge: pairs with MCP
- Script catalog text → Translations: registers messages (evidence: `i18n/catalog.js`)
- Error messages → Translations: registers messages (evidence: `i18n/errors.js`)
