MCPcopy Index your code
hub / github.com/SunHuawei/SourceDetector

github.com/SunHuawei/SourceDetector @v1.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.1 ↗ · + Follow
359 symbols 899 edges 59 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Source Detector

English | 简体中文 | 日本語

Source Detector は、source map の発見、クライアントサイド資産の収集、Web 資産内の潜在的なシークレット漏えい検出を行う Chrome 拡張です。

主な機能

  • 閲覧中ページの source map を自動検出
  • 内蔵ルールとカスタムルールによる API Key / AI Key などの漏えい候補検出
  • ポップアップでリスク概要を表示し、証拠を詳細確認可能
  • Source Explorer でドメイン、ページ、バージョン、コード証拠を一元表示
  • 単一バージョン ZIP / ドメイン単位 ZIP のエクスポート対応
  • 設定ページで内蔵ルールとカスタムルールを管理可能

想定ユーザー

  • セキュリティリサーチャー
  • バグバウンティハンター
  • フロントエンドエンジニア
  • クライアントサイド露出を監査したい開発者

仕組み

  1. Chrome で対象サイトを開きます。
  2. Source Detector が関連資産と source map 参照を検出します。
  3. 取得結果はローカル端末に保存されます。
  4. 内蔵ルールやカスタムルールで危険なパターンをスキャンします。
  5. ポップアップや Explorer で証拠を確認し、必要に応じてエクスポートできます。

プライバシーと権限

Source Detector はローカルファースト設計です。

  • 収集データと設定はローカル保存
  • アカウント不要
  • コア機能にリモートバックエンド不要
  • 権限は source map 検出、ローカル保存、分析ワークフローに限定して使用

詳細はこちら: - Privacy Policy

インストール

Chrome Web Store

  • https://chromewebstore.google.com/detail/source-detector/aioimldmpakibclgckpdfpfkadbflfkn

ローカル開発

npm run dev:chrome

その後 Chrome で: - chrome://extensions を開く - Developer mode を有効化 - Load unpacked をクリック - dist/chrome を選択

ビルド

npm run build:chrome

成果物: - dist/chrome - dist/source-detector-chrome.zip

フィードバック

  • English Home:https://sunhuawei.github.io/SourceDetector/
  • 简体中文:https://sunhuawei.github.io/SourceDetector/zh/
  • 日本語:https://sunhuawei.github.io/SourceDetector/ja/
  • GitHub Issues:https://github.com/SunHuawei/SourceDetector/issues

License

MIT

Extension points exported contracts — how you extend this code

Page (Interface)
(no doc)
src/types/index.ts
ToastProps (Interface)
(no doc)
src/components/Toast.tsx
OpenSourceExplorerOptions (Interface)
(no doc)
src/utils/sourceExplorerNavigation.ts
CodeTreeFileInput (Interface)
(no doc)
src/pages/desktop/sourceCodeTree.ts
CandidatePageContext (Interface)
(no doc)
src/background/pageContext.ts
MessageResponse (Interface)
(no doc)
src/popup/App.tsx
SourceMapShape (Interface)
(no doc)
tests/verify_scanner.ts
LeakDetectionState (Interface)
(no doc)
tests/e2e/security_leak_fixed.spec.ts

Core symbols most depended-on inside this repo

trackEvent
called by 33
src/utils/analytics.ts
trackProductEvent
called by 20
src/utils/analytics.ts
formatBytes
called by 16
src/utils/format.ts
showToast
called by 11
src/pages/desktop/SourceExplorerApp.tsx
showToast
called by 11
src/popup/App.tsx
scanCode
called by 10
src/utils/leakScanner.ts
normalizePageUrl
called by 9
src/background/pageContext.ts
getvarint
called by 8
src/utils/crx-to-zip.ts

Shape

Function 273
Interface 60
Method 20
Class 6

Languages

TypeScript100%

Modules by API surface

src/pages/desktop/SourceExplorerApp.tsx44 symbols
src/background/index.ts32 symbols
src/popup/App.tsx23 symbols
src/storage/rules.ts20 symbols
src/pages/desktop/sourceExplorerData.ts18 symbols
src/utils/sourceMapUtils.ts16 symbols
src/storage/database.ts16 symbols
src/background/utils.ts16 symbols
src/pages/settings/SecurityScannerApp.tsx13 symbols
src/pages/desktop/sourceExplorerCrxData.ts12 symbols
src/utils/analytics.ts11 symbols
src/types/index.ts11 symbols

For agents

$ claude mcp add SourceDetector \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact