blindfill 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 blindfill contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.ja.md ADDED
@@ -0,0 +1,90 @@
1
+ <div align="center">
2
+
3
+ # blindfill
4
+
5
+ **AI エージェントにパスワードを見せずに、Web サイトへサインインさせる。**
6
+
7
+ **[Web サイト:mics8128.github.io/blindfill](https://mics8128.github.io/blindfill/)**
8
+
9
+ [![CI](https://github.com/mics8128/blindfill/actions/workflows/ci.yml/badge.svg)](https://github.com/mics8128/blindfill/actions/workflows/ci.yml)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
+ [![Node >=20](https://img.shields.io/badge/node-%3E%3D20-339933.svg)](package.json)
12
+ [![Status: alpha](https://img.shields.io/badge/status-alpha-orange.svg)](SECURITY.md)
13
+ [![MCP server](https://img.shields.io/badge/MCP-server-8A2BE2.svg)](examples/mcp-config.json)
14
+
15
+ [English](README.md) · [繁體中文](README.zh-TW.md) · [简体中文](README.zh-CN.md) · **日本語** · [한국어](README.ko.md)
16
+
17
+ </div>
18
+
19
+ AI エージェントを、**パスワードを一切見せることなく**Web サイトへサインインさせます。blindfill はパスワードマネージャーから認証情報を読み取り、それがページのオリジン(origin)に紐づいていることを確認したうえで、実際のフォームに入力し、ページの構造と結果だけを返します。シークレットの値は書き込み専用(`SecretHandle.into(sink)`)で、出力からは除去(scrub)され、入力後はセッションがロックされます。
20
+
21
+ > **ステータス: alpha(0.1.0)。** 脅威モデルと既知の制約について、まず [SECURITY.md](SECURITY.md) をお読みください。
22
+
23
+ ## 例:パスワードは LLM を通らない
24
+
25
+ 以下の出力はイメージです。フィールド名は多少異なる場合があります。
26
+
27
+ 1. **サインイン。** エージェントがアイテム ID とログイン URL を指定して `fill` を呼びます。blindfill は `bw` からパスワードを取り出してフォームに直接入力し、`{"ok": true, "url": ".../home"}` だけを返します。モデルが見るのは結果だけで、パスワードは見えません。
28
+ 2. **フィッシングとプロンプトインジェクション。** 紛らわしいドメイン(`examp1e.com`)やクロスオリジンの iframe は、**シークレットを読み取る前に**拒否されます。悪意あるページがエージェントを誘導して別の場所へパスワードを入力させることはできません。
29
+ 3. **ワンタイムコード。** `totp_code` は現在の 6 桁コードを返します(テキストと同様に読み取りも入力も可能)。TOTP シードがバックエンドの外に出ることはありません。
30
+ 4. **入力後のロック。** 入力後、セッションはページのテキスト、DOM、スクリーンショットの提供を拒否します。ページがパスワードをエコーしてもモデルには漏れません。
31
+
32
+ ## 対応バックエンドとブラウザ
33
+
34
+ | バックエンド | 区分 | 備考 |
35
+ | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36
+ | Bitwarden / Vaultwarden(`bw`) | 検証済み(モック CLI + フィクスチャ、実 Vault で実在サイト) | 2026-11-27:`tests/live-bw.test.ts` が実際の Vaultwarden(Bitwarden CLI 2026.11.1)で合格。使い捨てアイテムとローカルの偽ページを使用(パスワード + TOTP の入力、生成 + 登録)。2026-11-27/28:実在サイト(Walmart、eccang、Amazon Seller Central、iCHEF、QuickBooks Online、Wayfair、Fastmail、Google、Instagram、GitHub)で使用。失敗や一部完了の記録は [docs/TESTED.md](docs/TESTED.md)。 |
37
+ | 1Password(`op`)、rbw、pass、gopass、KeePassXC(`keepassxc-cli`)、Secret Service(`secret-tool`) | 手探り実装・未検証 | フィクスチャ上で共通コントラクトテストに合格しているのみ。`blindfill backend selftest <id>` を実行してバックエンドレポートをお寄せください。 |
38
+
39
+ | ブラウザ | 状況 |
40
+ | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41
+ | Chromium:Playwright 同梱、任意の Chromium ビルド(`--executable`)、またはループバック CDP | 対応、テスト済み |
42
+ | Firefox / Camoufox(ループバックの Playwright サーバー経由、`--browser firefox-connect`) | テスト済み(オプトインのスイート):Camoufox 158.0.1-beta.41 と 159.0-beta.43。永続プロファイルを持つサーバー(共有の Camoufox など)はそのまま再利用:その cookie とログイン状態を使い、`--url` は自分のタブを開き、既存のタブを移動・クローズしない([docs/browsers.md](docs/browsers.md))。長時間稼働するインスタンスで読み取り専用の確認済み |
43
+ | Ego Lite | サポート:実行中のアプリは `ego-cli`(`--endpoint ego://new`)経由、または独立した空プロファイルのインスタンス(`--executable`)。`ego-cli` では入力値が Ego の Node runtime を通る。クロスオリジン iframe は Chromium と同様に扱える(frame ルール、同じ確認)。passkey は非対応(Ego は WebAuthn コマンドを受け付けるが、ページの処理が仮想認証器に届かなかった)。送信後、Ego のパスワードマネージャーが Google のパスワード漏えいチェックを行う。外部通信と crash dump は 2026-11-28 に一度だけ確認(約 3 分、偽のログインページ)し漏えいなし。より長時間の通信と Ego UI の操作ログは未確認で、オーナーが了承済み。偽サイトで e2e 済み、実サイトでのログインは未テスト([docs/browsers.md](docs/browsers.md#ego-lite)) |
44
+ | WebKit / Safari | 非対応 |
45
+ | Android(14 以降) | コンパニオン APK:パスワードは自動入力サービス(ログインと、`item generate` で作ったパスワードによる登録フォーム)、パスワードと passkey は Credential Manager(ログインと、passkey 未登録で App に紐付いた項目への追加のみの passkey 登録。鍵はホスト側で作成・使用)。アプリは Bitwarden と同じくパッケージ名で紐付け、項目に `blindfill.signers` があれば署名も確認。WebView は https ドメインのみで紐付け(SECURITY.md 21–23)。正式署名済みで、ホストは入力のたびに端末上のコンパニオン APK の署名を確認。`blindfill android install --serial <s>` でインストール([android/README.md](android/README.md))。偽アプリを使い 1 台(Xperia 5 II、Android 17)とエミュレーター(Android 16)でテスト済み:パスワード、登録フォーム、WebView のログインと登録、Credential Manager のパスワード、passkey 登録とその後のログイン。同じ端末と実 `bw` Vault で実アプリを試験(2026-11-27):Threads はログイン成功、Instagram は一部のみ(候補は入力済み、ログイン結果は未確認) |
46
+ | Passkey | Web ログインと登録(追加のみ:ページに紐付き、passkey をまだ持たない項目ならどれでも):Chromium と、Marionette 経由の Firefox/Camoufox(`BLINDFILL_MARIONETTE`。Firefox は BE=0 で署名するため、BE を確認するサイトでは Bitwarden 製 passkey が拒否されることがある。その場合は Chromium を使用)。厳格な偽 relying party でテスト済み(Firefox:opt-in テスト、Mac と Linux の Camoufox)。2026-11-27 に `bw` Vault で webauthn.io(Chromium)に 3 回連続ログイン、登録 1 回とその後のログイン、Bitwarden 拡張機能もその blindfill 製 passkey でログイン。カウンターは Vault に書き戻す。github.com(使い捨てアカウント、2026-11-28、Linux の Chromium):設定から passkey を追加し、新しいセッションで passkey ログイン 2 回、Bitwarden 拡張機能でもログインし、その後 blindfill で再ログイン |
47
+
48
+ **ブラウザの接続。** 何も設定しなければ、`blindfill session start` が自前の Chromium(空のプロファイル)を起動する。起動済みのブラウザを使うには、`~/.config/blindfill/config.json` に `web.endpoint`(`--remote-debugging-port` 付きで起動した Chrome なら `http://127.0.0.1:9222`)か `web.endpointFile`(どのランチャーでも書ける JSON ファイル `{"endpoint": "ws://…"}`)を設定するか、環境変数 `BLINDFILL_ENDPOINT` / `BLINDFILL_ENDPOINT_FILE` を使う。以後 `blindfill session attach` は引数不要。ブラウザごとの制限(Chrome の既定プロファイル、Firefox と Camoufox は Playwright サーバーが必要、Ego Lite は blindfill が起動する空のインスタンスか `ego-cli`):[docs/browsers.md](docs/browsers.md#connecting-a-browser)。
49
+
50
+ **プラットフォーム。** macOS と Linux。Windows 10/11:テストスイート(ユニット、漏えい、ローカル偽ページでの e2e、Chromium)は Windows 11 の 1 台で合格し、各リリース前に `windows-latest` でも実行する。**Windows での実サイトは未テスト**。Windows では状態・設定・プロファイルのディレクトリを 0700/0600 の代わりに ACL で検査する(SECURITY.md 参照)。`bw` はネイティブの `bw.exe`(scoop の `bitwarden-cli` または Bitwarden 公式のスタンドアロン版)を入れること。npm の `bw.cmd` はシェルなしでは起動できない。`ego-cli` プロバイダーは Windows では使えない。
51
+
52
+ ブラウザプロバイダーとその契約:[docs/browsers.md](docs/browsers.md)。失敗も含む全テスト記録:[docs/TESTED.md](docs/TESTED.md)。
53
+
54
+ ## 動作するもの(テストスイートで検証済み)
55
+
56
+ - **Web フォーム入力**:保管庫アイテムによるオリジン紐付け、iframe 内のフィールドは明示的なルール経由のみ、計画後にページが遷移したら入力を拒否、ハニーポットのスキップ、SPA の待機、1 回限りの送信、入力後ロック。
57
+ - **フィールドルールとログインプロファイル**:ヒューリスティクスで読めないフォーム向けに、サイトごとの正確なセレクターをアイテム(`blindfill.rules`)またはローカルプロファイルで指定。ルールのセレクターは値や状態の探査を含まない純粋な CSS。
58
+ - **ページツール**:`page discover|diagnose|verify|list` は構造と真偽値のみを報告し、値は返さない。セッションがロック中は拒否される。
59
+ - **登録**:`item generate` は CSPRNG で生成した(表示されない)パスワードを持つアイテムを作成。`register` はそれを紐付け済みオリジンの登録フォーム(パスワードと確認欄)に入力する。`item generate --no-password` はユーザー名だけでパスワードのない項目を作成(passkey のみのサイト向け)。パスワードログイン、`fill`、`register`、`android fill` は空欄を入力せず「パスワードなし」として拒否する。
60
+ - **認証アプリ設定**:`totp enroll --item <id> --selector <css>` は紐付け済みページ上の単一要素からセットアップキー(または `otpauth://totp` URI)を読み取り、TOTP シードを持たないアイテムに保存する。キーは表示されず、既存のシードは上書きしない。その後 `totp --fill` でコードを入力する。
61
+ - **アイテム管理**:`item list|status|rename|edit`。秘密の値、オリジン、`blindfill.*` フィールドはターミナルでのみ変更できる。ただし `blindfill.rules` はエージェントも変更できる(SECURITY.md 参照)。`item reveal` は存在しない。
62
+ - **人への引き継ぎ**:`handoff pause|resume` で CAPTCHA、同意、MFA のためにブラウザを人に渡す。その間エージェントの操作は拒否され、再開後もロックは維持される。
63
+ - **インターフェース**:CLI、MCP サーバー(stdio)、ライブラリ API(`withPage(page, …)`)。
64
+ - **漏えいテスト**:入力、ルール、プロファイル、ページツール、登録、アイテム管理、引き継ぎを CLI と MCP 経由で、canary パスワードと生成パスワードを使って実行。すべての出力、エラー、`DEBUG=pw:api` ログ、状態ファイルを、生、URL、Base64、16 進の各形式で検索する。
65
+
66
+ ## 未対応
67
+
68
+ - Android:手入力したログインの保存、実アプリでの登録フォーム・WebView・Credential Manager パスワード、実アプリでの passkey 登録。WebKit。実サイトや常駐 Camoufox での Firefox passkey。
69
+ - 一部の実在サイトはまだ人の操作かサイト用ルールが必要(Walmart の Press & Hold などのボット確認、一部の MFA 設定。[docs/TESTED.md](docs/TESTED.md) を参照)。他の 6 バックエンドは盲検で書かれており未検証。
70
+
71
+ ## 試してみる
72
+
73
+ ```bash
74
+ npm ci && npm run build && npx playwright-core install chromium
75
+ export BW_SESSION="$(bw unlock --raw)" # env only
76
+ mkdir -p ~/.config/blindfill && echo '{"backend":"bw"}' > ~/.config/blindfill/config.json
77
+ node dist/cli.js backend list
78
+ node dist/cli.js session start --headless
79
+ node dist/cli.js fill --item <id> --url https://example.com/login --submit --expect-url /home
80
+ node dist/cli.js mcp # MCP server on stdio, see examples/mcp-config.json
81
+ ```
82
+
83
+ ## 開発
84
+
85
+ `npm run lint && npm test && npm run build`。アーキテクチャ: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)。
86
+ リリース手順(main の `package.json` のバージョン変更で起動、npm Trusted Publishing): [docs/RELEASING.md](docs/RELEASING.md)。MIT ライセンス。
87
+
88
+ ## 翻訳
89
+
90
+ 翻訳の PR を歓迎します。既存の [繁體中文](README.zh-TW.md)、[简体中文](README.zh-CN.md)、[日本語](README.ja.md)、[한국어](README.ko.md) の改善や、新しい言語の追加をお待ちしています。内容に差異がある場合は英語版 README を正とします。
package/README.ko.md ADDED
@@ -0,0 +1,90 @@
1
+ <div align="center">
2
+
3
+ # blindfill
4
+
5
+ **AI 에이전트가 비밀번호를 보지 않고도 웹사이트에 로그인하게 합니다.**
6
+
7
+ **[웹사이트: mics8128.github.io/blindfill](https://mics8128.github.io/blindfill/)**
8
+
9
+ [![CI](https://github.com/mics8128/blindfill/actions/workflows/ci.yml/badge.svg)](https://github.com/mics8128/blindfill/actions/workflows/ci.yml)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
+ [![Node >=20](https://img.shields.io/badge/node-%3E%3D20-339933.svg)](package.json)
12
+ [![Status: alpha](https://img.shields.io/badge/status-alpha-orange.svg)](SECURITY.md)
13
+ [![MCP server](https://img.shields.io/badge/MCP-server-8A2BE2.svg)](examples/mcp-config.json)
14
+
15
+ [English](README.md) · [繁體中文](README.zh-TW.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · **한국어**
16
+
17
+ </div>
18
+
19
+ AI 에이전트가 **비밀번호를 전혀 보지 않고도** 웹사이트에 로그인할 수 있게 합니다. blindfill은 비밀번호 관리자에서 자격 증명을 읽어 페이지의 오리진(origin)에 바인딩되어 있는지 확인한 뒤, 실제 폼에 입력하고 페이지 구조와 결과만 반환합니다. 비밀 값은 쓰기 전용(`SecretHandle.into(sink)`)이며 출력에서 제거(scrub)되고, 입력이 끝나면 세션이 잠깁니다.
20
+
21
+ > **상태: alpha (0.1.0).** 먼저 [SECURITY.md](SECURITY.md)에서 위협 모델과 알려진 한계를 읽어 보세요.
22
+
23
+ ## 예시: 비밀번호는 LLM을 거치지 않습니다
24
+
25
+ 아래 출력은 예시이며 필드 이름은 조금 다를 수 있습니다.
26
+
27
+ 1. **로그인.** 에이전트가 항목 ID와 로그인 URL로 `fill`을 호출합니다. blindfill은 `bw`에서 비밀번호를 꺼내 폼에 직접 입력하고 `{"ok": true, "url": ".../home"}`만 반환합니다. 모델은 결과만 볼 뿐 비밀번호는 볼 수 없습니다.
28
+ 2. **피싱과 프롬프트 인젝션.** 비슷하게 만든 도메인(`examp1e.com`)이나 교차 출처 iframe은 **비밀 값을 읽기 전에** 거부됩니다. 악성 페이지가 에이전트를 속여 다른 곳에 비밀번호를 입력하게 만들 수 없습니다.
29
+ 3. **일회용 코드.** `totp_code`는 현재 6자리 코드를 반환합니다(텍스트처럼 읽기와 입력이 모두 가능). TOTP 시드는 백엔드 밖으로 나가지 않습니다.
30
+ 4. **입력 후 잠금.** 입력 후 세션은 페이지 텍스트, DOM, 스크린샷 제공을 거부합니다. 페이지가 비밀번호를 되돌려 보여 줘도 모델로 유출되지 않습니다.
31
+
32
+ ## 지원 백엔드와 브라우저
33
+
34
+ | 백엔드 | 등급 | 비고 |
35
+ | --------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36
+ | Bitwarden / Vaultwarden(`bw`) | 검증됨(모의 CLI + 픽스처, 실제 Vault로 실제 사이트) | 2026-11-27: `tests/live-bw.test.ts`가 실제 Vaultwarden(Bitwarden CLI 2026.11.1)에서 통과. 일회용 항목과 로컬 가짜 페이지 사용(비밀번호 + TOTP 채우기, 생성 + 가입). 2026-11-27/28: 실제 사이트(Walmart, eccang, Amazon Seller Central, iCHEF, QuickBooks Online, Wayfair, Fastmail, Google, Instagram, GitHub)에서 사용. 실패와 부분 완료 기록은 [docs/TESTED.md](docs/TESTED.md). |
37
+ | 1Password(`op`), rbw, pass, gopass, KeePassXC(`keepassxc-cli`), Secret Service(`secret-tool`) | 블라인드 작성, 미검증 | 픽스처에서 공통 계약 테스트만 통과했습니다. `blindfill backend selftest <id>`를 실행하고 백엔드 리포트를 남겨 주세요. |
38
+
39
+ | 브라우저 | 상태 |
40
+ | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
41
+ | Chromium: Playwright 번들, 임의의 Chromium 빌드(`--executable`), 또는 루프백 CDP | 지원, 테스트됨 |
42
+ | Firefox / Camoufox (루프백 Playwright 서버 경유, `--browser firefox-connect`) | 테스트됨(옵트인 스위트): Camoufox 158.0.1-beta.41 및 159.0-beta.43. 영구 프로필이 있는 서버(예: 공유 Camoufox)는 그대로 재사용: 그 쿠키와 로그인 상태를 쓰고, `--url`은 자체 탭을 열며, 기존 탭은 이동하거나 닫지 않음([docs/browsers.md](docs/browsers.md)). 장시간 실행 중인 인스턴스에서 읽기 전용 확인 |
43
+ | Ego Lite | 지원: 실행 중인 앱은 `ego-cli`(`--endpoint ego://new`)로, 또는 별도의 빈 프로필 인스턴스(`--executable`). `ego-cli`에서는 입력값이 Ego의 Node runtime을 거침. 크로스 오리진 iframe은 Chromium과 같이 동작(frame 규칙, 같은 확인). passkey 미지원(Ego는 WebAuthn 명령을 받지만 페이지의 요청이 가상 인증기에 도달하지 않음). 제출 후 Ego의 비밀번호 관리자가 Google 비밀번호 유출 검사를 실행함. 외부 트래픽과 crash dump는 2026-11-28에 한 번만 확인(약 3분, 가짜 로그인 페이지)했고 유출 없음. 더 긴 트래픽과 Ego UI 작업 기록은 미확인이며 소유자가 수용함. 가짜 사이트에서 e2e 완료, 실제 사이트 로그인은 미테스트([docs/browsers.md](docs/browsers.md#ego-lite)) |
44
+ | WebKit / Safari | 미지원 |
45
+ | Android(14 이상) | 컴패니언 APK: 비밀번호는 자동 완성 서비스(로그인, 그리고 `item generate`로 만든 비밀번호로 가입 양식), 비밀번호와 passkey는 Credential Manager(로그인, 그리고 앱에 바인딩되고 passkey가 없는 항목에 추가만 하는 passkey 등록; 키는 호스트에서 생성·사용). 앱은 Bitwarden처럼 패키지 이름으로 연결하고, 항목에 `blindfill.signers`가 있으면 서명도 확인. WebView는 https 도메인만으로 연결(SECURITY.md 21–23). 정식 서명되며 호스트가 매번 채우기 전에 기기의 컴패니언 APK 서명을 확인. `blindfill android install --serial <s>`로 설치([android/README.md](android/README.md)). 가짜 앱으로 기기 1대(Xperia 5 II, Android 17)와 에뮬레이터(Android 16)에서 테스트: 비밀번호, 가입 양식, WebView 로그인과 가입, Credential Manager 비밀번호, passkey 등록 후 로그인. 같은 기기와 실제 `bw` Vault로 실제 앱 테스트(2026-11-27): Threads 로그인 성공, Instagram 부분 완료(제안은 채워졌으나 로그인 결과 미확인) |
46
+ | Passkey | 웹 로그인과 등록(추가만: 페이지에 바인딩되고 아직 passkey가 없는 모든 항목): Chromium, 그리고 Marionette를 통한 Firefox/Camoufox(`BLINDFILL_MARIONETTE`; Firefox는 BE=0으로 서명하므로 BE를 확인하는 사이트는 Bitwarden이 만든 passkey를 거부할 수 있음. 그때는 Chromium 사용). 엄격한 가짜 relying party로 테스트(Firefox: opt-in 테스트, Mac과 Linux의 Camoufox). 2026-11-27 `bw` Vault로 webauthn.io(Chromium)에서 연속 로그인 3회, 등록 1회 후 로그인, Bitwarden 확장 프로그램도 그 blindfill 제작 passkey로 로그인. 카운터는 Vault에 기록. github.com(일회용 계정, 2026-11-28, Linux의 Chromium): 설정에서 passkey 추가 후 새 세션에서 passkey 로그인 2회, Bitwarden 확장 프로그램으로도 로그인한 뒤 blindfill로 다시 로그인 |
47
+
48
+ **브라우저 연결.** 아무것도 설정하지 않으면 `blindfill session start`가 자체 Chromium(빈 프로필)을 실행한다. 이미 실행 중인 브라우저를 쓰려면 `~/.config/blindfill/config.json`에 `web.endpoint`(`--remote-debugging-port`로 실행한 Chrome이면 `http://127.0.0.1:9222`) 또는 `web.endpointFile`(어떤 런처든 쓸 수 있는 JSON 파일 `{"endpoint": "ws://…"}`)을 설정하거나 환경 변수 `BLINDFILL_ENDPOINT` / `BLINDFILL_ENDPOINT_FILE`을 쓴다. 그 뒤 `blindfill session attach`는 인자 없이 실행된다. 브라우저별 제한(Chrome 기본 프로필, Firefox와 Camoufox는 Playwright 서버 필요, Ego Lite는 blindfill이 직접 실행하는 빈 인스턴스 또는 `ego-cli`): [docs/browsers.md](docs/browsers.md#connecting-a-browser).
49
+
50
+ **플랫폼.** macOS와 Linux. Windows 10/11: 테스트 스위트(단위, 유출, 로컬 가짜 페이지 e2e, Chromium)가 Windows 11 한 대에서 통과했고, 매 릴리스 전 `windows-latest`에서도 실행. **Windows에서 실제 사이트는 아직 테스트하지 않음**. Windows에서는 상태·설정·프로필 디렉터리를 0700/0600 대신 ACL로 검사(SECURITY.md 참조). `bw`는 네이티브 `bw.exe`(scoop `bitwarden-cli` 또는 Bitwarden 공식 단독 다운로드)로 설치할 것. npm의 `bw.cmd`는 셸 없이 실행할 수 없음. `ego-cli` 제공자는 Windows에서 쓸 수 없음.
51
+
52
+ 브라우저 제공자와 그 계약: [docs/browsers.md](docs/browsers.md). 실패를 포함한 모든 테스트 기록: [docs/TESTED.md](docs/TESTED.md).
53
+
54
+ ## 동작하는 것 (테스트 스위트로 검증됨)
55
+
56
+ - **웹 입력**: 보관함 항목에 따른 오리진 바인딩, iframe 안의 필드는 명시적 규칙으로만 입력, 계획 후 페이지가 이동하면 입력 거부, 허니팟 건너뛰기, SPA 대기, 1회 제출, 입력 후 잠금.
57
+ - **필드 규칙과 로그인 프로필**: 휴리스틱이 읽지 못하는 폼을 위해 사이트별 정확한 셀렉터를 항목(`blindfill.rules`) 또는 로컬 프로필에 지정. 규칙 셀렉터는 값이나 상태 탐색이 없는 순수 CSS.
58
+ - **페이지 도구**: `page discover|diagnose|verify|list`는 구조와 불리언만 보고하며 값은 절대 반환하지 않음. 세션이 잠긴 동안은 거부됨.
59
+ - **등록**: `item generate`는 표시되지 않는 CSPRNG 비밀번호가 담긴 항목을 생성. `register`는 이를 바인딩된 오리진의 가입 폼(비밀번호와 확인란)에 입력. `item generate --no-password`는 사용자 이름만 있고 비밀번호가 없는 항목을 생성(passkey 전용 사이트용). 비밀번호 로그인, `fill`, `register`, `android fill`은 빈칸을 채우지 않고 "비밀번호 없음"으로 거부.
60
+ - **인증 앱 설정**: `totp enroll --item <id> --selector <css>`는 바인딩된 페이지의 단일 요소에서 설정 키(또는 `otpauth://totp` URI)를 읽어 TOTP 시드가 없는 항목에 저장. 키는 표시되지 않으며 기존 시드는 절대 덮어쓰지 않음. 이후 `totp --fill`로 코드를 입력.
61
+ - **항목 관리**: `item list|status|rename|edit`. 비밀 값, 오리진, `blindfill.*` 필드는 터미널에서만 변경 가능. 단, `blindfill.rules`는 에이전트도 변경 가능(SECURITY.md 참조). `item reveal`은 없음.
62
+ - **사람에게 인계**: `handoff pause|resume`으로 CAPTCHA, 동의, MFA를 위해 브라우저를 사람에게 넘김. 그동안 에이전트 동작은 거부되고, 재개 후에도 잠금은 유지됨.
63
+ - **인터페이스**: CLI, MCP 서버(stdio), 라이브러리 API(`withPage(page, …)`).
64
+ - **유출 테스트**: 입력, 규칙, 프로필, 페이지 도구, 등록, 항목 관리, 인계를 CLI와 MCP로 canary 비밀번호와 생성된 비밀번호를 사용해 실행. 모든 출력, 오류, `DEBUG=pw:api` 로그, 상태 파일을 원문, URL, Base64, 16진수 형태로 검색.
65
+
66
+ ## 미완료
67
+
68
+ - Android: 직접 입력한 로그인 저장, 실제 앱에서의 가입 양식·WebView·Credential Manager 비밀번호, 실제 앱에서의 passkey 등록. WebKit. 실제 사이트나 상시 실행 Camoufox에서의 Firefox passkey.
69
+ - 일부 실제 사이트는 아직 사람이나 사이트 규칙이 필요(Walmart의 Press & Hold 같은 봇 확인, 일부 MFA 설정; [docs/TESTED.md](docs/TESTED.md) 참고). 나머지 여섯 백엔드는 맹목적으로 작성되어 미검증.
70
+
71
+ ## 사용해 보기
72
+
73
+ ```bash
74
+ npm ci && npm run build && npx playwright-core install chromium
75
+ export BW_SESSION="$(bw unlock --raw)" # env only
76
+ mkdir -p ~/.config/blindfill && echo '{"backend":"bw"}' > ~/.config/blindfill/config.json
77
+ node dist/cli.js backend list
78
+ node dist/cli.js session start --headless
79
+ node dist/cli.js fill --item <id> --url https://example.com/login --submit --expect-url /home
80
+ node dist/cli.js mcp # MCP server on stdio, see examples/mcp-config.json
81
+ ```
82
+
83
+ ## 개발
84
+
85
+ `npm run lint && npm test && npm run build`. 아키텍처: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
86
+ 릴리스(main의 `package.json` 버전 변경 시 트리거, npm Trusted Publishing): [docs/RELEASING.md](docs/RELEASING.md). MIT 라이선스.
87
+
88
+ ## 번역
89
+
90
+ 번역 PR을 환영합니다. 기존 [繁體中文](README.zh-TW.md), [简体中文](README.zh-CN.md), [日本語](README.ja.md), [한국어](README.ko.md)의 개선이나 새로운 언어 추가 모두 좋습니다. 내용이 다를 경우 영어 README를 기준으로 합니다.
package/README.md CHANGED
@@ -1,2 +1,115 @@
1
+ <div align="center">
2
+
1
3
  # blindfill
2
- blindfill
4
+
5
+ **Let AI agents sign in to websites without ever seeing the password.**
6
+
7
+ **[Website: mics8128.github.io/blindfill](https://mics8128.github.io/blindfill/)**
8
+
9
+ [![CI](https://github.com/mics8128/blindfill/actions/workflows/ci.yml/badge.svg)](https://github.com/mics8128/blindfill/actions/workflows/ci.yml)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
+ [![Node >=20](https://img.shields.io/badge/node-%3E%3D20-339933.svg)](package.json)
12
+ [![Status: alpha](https://img.shields.io/badge/status-alpha-orange.svg)](SECURITY.md)
13
+ [![MCP server](https://img.shields.io/badge/MCP-server-8A2BE2.svg)](examples/mcp-config.json)
14
+
15
+ **English** · [繁體中文](README.zh-TW.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · [한국어](README.ko.md)
16
+
17
+ </div>
18
+
19
+ Let an AI agent sign in to websites **without ever seeing the password**. blindfill reads the
20
+ credential from your password manager, checks it is bound to the page's origin, types it into the
21
+ real form, and returns only structure and an outcome. Secret values are write-only
22
+ (`SecretHandle.into(sink)`), scrubbed from output, and the session locks after a fill.
23
+
24
+ > **Status: alpha (0.1.0).** Read [SECURITY.md](SECURITY.md) for the threat model and known gaps first.
25
+
26
+ ## Examples: the password never goes through the LLM
27
+
28
+ Output below is illustrative; field names may differ slightly.
29
+
30
+ 1. **Sign in.** The agent calls `fill` with an item id and a login URL. blindfill reads the password from `bw`, types it into the form and returns `{"ok": true, "url": ".../home"}`. The model sees only the outcome, never the password.
31
+ 2. **Phishing and prompt injection.** A lookalike page (`examp1e.com` instead of `example.com`) or a cross-origin iframe is refused **before any secret is read**. A malicious page cannot talk the agent into typing the password somewhere else.
32
+ 3. **One-time codes.** `totp_code` returns the current 6-digit code (it is readable and fillable, like text). The TOTP seed never leaves the backend.
33
+ 4. **Locked after fill.** After a fill, the session refuses page text, DOM and screenshots, so a page that echoes the password back cannot leak it to the model.
34
+
35
+ ## Supported backends and browsers
36
+
37
+ | Backend | Tier | Notes |
38
+ | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | Bitwarden / Vaultwarden (`bw`) | verified (mock CLI + fixtures; live vault on real sites) | 2026-11-27: `tests/live-bw.test.ts` passed against a live Vaultwarden (Bitwarden CLI 2026.11.1) with throw-away items on local fake pages (password + TOTP fill, generate + register). 2026-11-27/28: used on real sites (Walmart, eccang, Amazon Seller Central, iCHEF, QuickBooks Online, Wayfair, Fastmail, Google, Instagram, GitHub), with failures and partial runs recorded in [docs/TESTED.md](docs/TESTED.md). |
40
+ | 1Password (`op`), rbw, pass, gopass, KeePassXC (`keepassxc-cli`), Secret Service (`secret-tool`) | blind-written, unverified | Pass the shared contract tests on fixtures only. Run `blindfill backend selftest <id>` and open a backend report. |
41
+
42
+ | Browser | Status |
43
+ | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
44
+ | Chromium: Playwright bundled, any Chromium build (`--executable`), or loopback CDP | supported, tested |
45
+ | Firefox / Camoufox via a loopback Playwright server (`--browser firefox-connect`) | tested (opt-in suite) against Camoufox 158.0.1-beta.41 and 159.0-beta.43. A server with a persistent profile (e.g. a shared Camoufox) is reused as is: its cookies and logins, `--url` opens its own tab, existing tabs are never navigated or closed ([docs/browsers.md](docs/browsers.md)); checked read-only against a long-running instance |
46
+ | Ego Lite | supported: the running app through the `ego-cli` provider (`--endpoint ego://new`), or a separate empty-profile instance (`--executable`). With `ego-cli`, filled values pass through Ego's Node runtime; cross-origin iframes work as in Chromium (frame rules, same checks); no passkeys (Ego accepts the WebAuthn commands, but the page's ceremony never reached the virtual authenticator); after a submit, Ego's password manager runs Google's password leak check. Outbound traffic and crash dumps were checked once (2026-11-28, about 3 minutes, fake login page): no leak. Longer captures and the Ego UI operation log were not checked; the owner accepted that. Tested with the e2e suite on fake sites; a real-site sign-in is pending ([docs/browsers.md](docs/browsers.md#ego-lite)) |
47
+ | WebKit / Safari | not supported |
48
+ | Android (14+) | companion APK: autofill for passwords (login, and sign-up forms filled with a password from `item generate`), Credential Manager for passwords and passkeys (sign-in, and add-only passkey registration on any item bound to the app with no passkey yet; keys made and used on the host); apps bound by package name like Bitwarden, a `blindfill.signers` pin checked when the item has one; WebViews bound by their https domain alone (see SECURITY.md 21–23); release-signed, and the host checks the installed companion's signer before every fill; install with `blindfill android install --serial <s>` ([android/README.md](android/README.md)); tested with a fake app on one phone (Xperia 5 II, Android 17) and an emulator (Android 16): password, sign-up, WebView login and sign-up, Credential Manager password, passkey registration then sign-in. Real apps on that phone with a live `bw` vault (2026-11-27): Threads sign-in succeeded; Instagram partial (suggestion filled, login result not checked) |
49
+ | Passkeys | web sign-in and registration (add only: any item bound to the page that holds no passkey yet) in Chromium, and in Firefox/Camoufox through Marionette (`BLINDFILL_MARIONETTE`; Firefox signs with BE=0, so a site that checks BE may reject Bitwarden-made passkeys there: use Chromium). Tested against a fake strict relying party (Firefox: opt-in suite, Camoufox on Mac and Linux); on webauthn.io with a `bw` vault on 2026-11-27 in Chromium: three sign-ins in a row, a registration then a sign-in, and the Bitwarden extension signed in with that blindfill-made passkey; the sign counter is written back to the vault. On github.com (throw-away account, 2026-11-28, Chromium on Linux): a passkey added from Settings, then two passkey sign-ins in fresh sessions, the Bitwarden extension signed in with it, and blindfill again after that |
50
+
51
+ **Connecting a browser.** With nothing configured, `blindfill session start` launches its own Chromium (empty profile).
52
+ To use a browser you already run, set `web.endpoint` (`http://127.0.0.1:9222` for Chrome started with
53
+ `--remote-debugging-port`) or `web.endpointFile` (a JSON file `{"endpoint": "ws://…"}` that any launcher can write) in
54
+ `~/.config/blindfill/config.json`, or `BLINDFILL_ENDPOINT` / `BLINDFILL_ENDPOINT_FILE`; then `blindfill session attach`
55
+ needs no arguments. Per-browser limits (Chrome's default profile, Firefox and Camoufox need a Playwright server, Ego Lite
56
+ as its own empty instance or through `ego-cli`): [docs/browsers.md](docs/browsers.md#connecting-a-browser).
57
+
58
+ **Platforms.** macOS and Linux. Windows 10/11: the test suite (unit, leak and e2e on local fake pages, Chromium) passes
59
+ on one Windows 11 machine and runs on `windows-latest` before each release; **real sites on Windows are not tested yet**. On Windows the
60
+ state, config and profile directories are checked by ACL instead of mode 0700/0600 (see SECURITY.md); install `bw` as a
61
+ native `bw.exe` (scoop `bitwarden-cli` or Bitwarden's standalone download), since npm's `bw.cmd` cannot be started
62
+ without a shell; the `ego-cli` provider is not available on Windows.
63
+
64
+ Browser providers and their contract: [docs/browsers.md](docs/browsers.md). Every test run, including failures: [docs/TESTED.md](docs/TESTED.md).
65
+
66
+ ## What works (verified by the test suite)
67
+
68
+ - **Web fill**: origin binding from the vault item, frames only through an explicit rule, refusal if the
69
+ page navigates between planning and typing, honeypot skipping, SPA waits, one-shot submit, post-fill lock.
70
+ - **Field rules and login profiles**: exact selectors per site in the item (`blindfill.rules`) or a local
71
+ profile, for forms heuristics cannot read. Rule selectors are plain CSS without value or state probes.
72
+ - **Page tools**: `page discover|diagnose|verify|list` report structure and booleans, never values, and are
73
+ refused while the session is locked.
74
+ - **Registration**: `item generate` creates an item with a CSPRNG password that is never shown;
75
+ `register` types it into a sign-up form (password and confirmation) on a bound origin. `item generate --no-password`
76
+ creates an item with a username and no password for passkey-only sites; password login, fill, `register` and
77
+ `android fill` refuse it with "no password" instead of filling a blank.
78
+ - **Authenticator setup**: `totp enroll --item <id> --selector <css>` reads the setup key (or
79
+ `otpauth://totp` URI) from one element of a bound page and saves it to an item that has no TOTP seed;
80
+ the key is never printed, and an existing seed is never replaced. Then `totp --fill` types the code.
81
+ - **Item admin**: `item list|status|rename|edit`. Secret values, origins and `blindfill.*` fields change only
82
+ at a terminal, except `blindfill.rules`, which an agent may edit (see SECURITY.md). There is no `item reveal`.
83
+ - **Human handoff**: `handoff pause|resume` hands the browser to a person for a CAPTCHA, consent or MFA;
84
+ agent actions are refused meanwhile, and the lock survives resume.
85
+ - **Interfaces**: CLI, MCP server (stdio) and a library API (`withPage(page, …)`).
86
+ - **Leak test**: fill, rules, profiles, page tools, registration, item admin and handoff run through the CLI
87
+ and MCP with a canary password and a generated one; all output, errors, `DEBUG=pw:api` logs and state
88
+ files are searched in raw, URL, Base64 and hex forms.
89
+
90
+ ## Not done
91
+
92
+ - Android: saving logins typed by hand, sign-up, WebView and Credential Manager passwords in a real app, passkey registration in a real app. WebKit. Firefox passkeys on a real site or in a long-running Camoufox.
93
+ - Some real sites still need a person or a site rule (bot checks such as Walmart's Press & Hold, some MFA setups; see [docs/TESTED.md](docs/TESTED.md)). The other six backends are blind-written and unverified.
94
+
95
+ ## Try it
96
+
97
+ ```bash
98
+ npm ci && npm run build && npx playwright-core install chromium
99
+ export BW_SESSION="$(bw unlock --raw)" # env only
100
+ mkdir -p ~/.config/blindfill && echo '{"backend":"bw"}' > ~/.config/blindfill/config.json
101
+ node dist/cli.js backend list
102
+ node dist/cli.js session start --headless
103
+ node dist/cli.js fill --item <id> --url https://example.com/login --submit --expect-url /home
104
+ node dist/cli.js mcp # MCP server on stdio, see examples/mcp-config.json
105
+ ```
106
+
107
+ ## Develop
108
+
109
+ `npm run lint && npm test && npm run build`. Architecture: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
110
+ Releasing (a `package.json` version bump on `main`, npm Trusted Publishing): [docs/RELEASING.md](docs/RELEASING.md). MIT licensed.
111
+
112
+ ## Translations
113
+
114
+ Translation PRs are welcome: improvements to [繁體中文](README.zh-TW.md), [简体中文](README.zh-CN.md),
115
+ [日本語](README.ja.md) and [한국어](README.ko.md), or new languages. The English README is the source of truth.
@@ -0,0 +1,90 @@
1
+ <div align="center">
2
+
3
+ # blindfill
4
+
5
+ **让 AI 智能体登录网站,却永远看不到密码。**
6
+
7
+ **[网站:mics8128.github.io/blindfill](https://mics8128.github.io/blindfill/)**
8
+
9
+ [![CI](https://github.com/mics8128/blindfill/actions/workflows/ci.yml/badge.svg)](https://github.com/mics8128/blindfill/actions/workflows/ci.yml)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
11
+ [![Node >=20](https://img.shields.io/badge/node-%3E%3D20-339933.svg)](package.json)
12
+ [![Status: alpha](https://img.shields.io/badge/status-alpha-orange.svg)](SECURITY.md)
13
+ [![MCP server](https://img.shields.io/badge/MCP-server-8A2BE2.svg)](examples/mcp-config.json)
14
+
15
+ [English](README.md) · [繁體中文](README.zh-TW.md) · **简体中文** · [日本語](README.ja.md) · [한국어](README.ko.md)
16
+
17
+ </div>
18
+
19
+ 让 AI 智能体登录网站,**却永远看不到密码**。blindfill 会从你的密码管理器读取凭据,确认其绑定于该页面的来源(origin),再将其输入真实的表单,并且只返回页面结构和执行结果。机密值是只写的(`SecretHandle.into(sink)`),输出时会被清除(scrub),并且填写完成后会话(session)即被锁定。
20
+
21
+ > **状态:alpha(0.1.0)。** 请先阅读 [SECURITY.md](SECURITY.md),了解威胁模型和已知缺陷。
22
+
23
+ ## 示例:密码不经过 LLM
24
+
25
+ 以下输出仅为示意,字段名称可能略有不同。
26
+
27
+ 1. **登录。** agent 携带条目 ID 和登录网址调用 `fill`。blindfill 从 `bw` 取出密码,直接输入表单,只返回 `{"ok": true, "url": ".../home"}`。模型只看到结果,看不到密码。
28
+ 2. **钓鱼与提示注入。** 仿冒域名(`examp1e.com`)或跨域 iframe 会在**读取任何机密之前**被拒绝,恶意网页无法诱使 agent 把密码输入到别处。
29
+ 3. **一次性验证码。** `totp_code` 返回当前的 6 位验证码(可读、可填入,与文本相同)。TOTP 种子永远不离开后端。
30
+ 4. **填写后锁定。** 填写后,会话会拒绝提供页面文本、DOM 和截图,页面即使回显密码也无法泄露给模型。
31
+
32
+ ## 支持的后端与浏览器
33
+
34
+ | 后端 | 等级 | 说明 |
35
+ | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36
+ | Bitwarden / Vaultwarden(`bw`) | 已验证(模拟 CLI + 测试数据;真实 Vault 用于真实网站) | 2026-11-27:`tests/live-bw.test.ts` 对真实 Vaultwarden(Bitwarden CLI 2026.11.1)通过,使用一次性条目与本机假网页(密码 + TOTP 填充、生成密码 + 注册)。2026-11-27/28:已用于真实网站(Walmart、eccang、Amazon Seller Central、iCHEF、QuickBooks Online、Wayfair、Fastmail、Google、Instagram、GitHub),失败与部分完成的记录见 [docs/TESTED.md](docs/TESTED.md)。 |
37
+ | 1Password(`op`)、rbw、pass、gopass、KeePassXC(`keepassxc-cli`)、Secret Service(`secret-tool`) | 盲写、未验证 | 仅在测试数据上通过共用契约测试。欢迎运行 `blindfill backend selftest <id>` 并提交后端反馈。 |
38
+
39
+ | 浏览器 | 状态 |
40
+ | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41
+ | Chromium:Playwright 内置、任意 Chromium 构建(`--executable`),或本机回环 CDP | 支持,已测试 |
42
+ | Firefox / Camoufox,通过本机回环 Playwright 服务器(`--browser firefox-connect`) | 已测试(可选测试套件),版本为 Camoufox 158.0.1-beta.41 和 159.0-beta.43。带持久配置文件的服务器(例如共享的 Camoufox)直接沿用:使用它的 cookie 和登录状态,`--url` 另开自己的标签页,现有标签页不会被导航或关闭([docs/browsers.md](docs/browsers.md));已对长时间运行的实例做只读检查 |
43
+ | Ego Lite | 支持:正在运行的应用通过 `ego-cli`(`--endpoint ego://new`),或独立、空白配置文件的实例(`--executable`)。使用 `ego-cli` 时,填充的值会经过 Ego 的 Node runtime;跨源 iframe 与 Chromium 相同(frame 规则、同样的检查);不支持 passkey(Ego 接受 WebAuthn 命令,但网页的请求没有到达虚拟验证器);提交后 Ego 的密码管理器会执行 Google 的密码泄露检查。外发流量与 crash dump 只在 2026-11-28 检查过一次(约 3 分钟、假登录页),未发现泄露;更长时间的流量与 Ego UI 操作记录未检查,所有者已接受。已在假网站跑过 e2e,真实网站登录待测([docs/browsers.md](docs/browsers.md#ego-lite)) |
44
+ | WebKit / Safari | 不支持 |
45
+ | Android(14 以上) | 辅助 APK:密码走自动填充服务(登录,以及用 `item generate` 生成的密码填写注册表单),密码与 passkey 走 Credential Manager(登录,以及对绑定该 app、尚无 passkey 的条目只新增的 passkey 注册;密钥在主机端产生与使用);app 与 Bitwarden 一样按包名绑定,条目有 `blindfill.signers` 时也核对签名;WebView 只按 https 域名绑定(见 SECURITY.md 21–23);正式签名,每次填充前主机都会核对手机上辅助 APK 的签名;用 `blindfill android install --serial <s>` 安装([android/README.md](android/README.md));已用假 app 在一部手机(Xperia 5 II,Android 17)和模拟器(Android 16)测试:密码、注册表单、WebView 登录与注册、Credential Manager 密码、passkey 注册后登录。同一部手机配合真实 `bw` Vault 测试真实 app(2026-11-27):Threads 登录成功;Instagram 部分完成(建议已填充,未确认登录结果) |
46
+ | Passkey | 网页登录与注册(只新增:任何绑定该网页、尚无 passkey 的条目):Chromium,以及通过 Marionette 的 Firefox/Camoufox(`BLINDFILL_MARIONETTE`;Firefox 以 BE=0 签名,检查 BE 的网站可能拒绝 Bitwarden 创建的 passkey,此时改用 Chromium)。以严格的假 relying party 测试(Firefox:opt-in 测试,Mac 与 Linux 上的 Camoufox);2026-11-27 以 `bw` Vault 在 webauthn.io(Chromium)连续登录三次、注册一次后登录,Bitwarden 扩展也能用这个 blindfill 创建的 passkey 登录;计数器会回写 Vault;github.com(一次性账号,2026-11-28,Linux 上的 Chromium):从设置添加 passkey,再在新会话中用 passkey 登录两次,Bitwarden 扩展也用它登录,之后 blindfill 再登录一次 |
47
+
48
+ **接入浏览器。** 什么都不配置时,`blindfill session start` 会自己启动一个 Chromium(空的配置文件)。要使用你已在运行的浏览器,在 `~/.config/blindfill/config.json` 设置 `web.endpoint`(以 `--remote-debugging-port` 启动的 Chrome 为 `http://127.0.0.1:9222`)或 `web.endpointFile`(任何启动器都能写的 JSON 文件 `{"endpoint": "ws://…"}`),或用环境变量 `BLINDFILL_ENDPOINT` / `BLINDFILL_ENDPOINT_FILE`;之后 `blindfill session attach` 无需参数。各浏览器的限制(Chrome 的默认配置文件、Firefox 与 Camoufox 需要 Playwright 服务器、Ego Lite 由 blindfill 自己启动空实例或通过 `ego-cli`):[docs/browsers.md](docs/browsers.md#connecting-a-browser)。
49
+
50
+ **平台。** macOS 与 Linux。Windows 10/11:测试套件(单元、泄漏与本机假页面 e2e,Chromium)在一台 Windows 11 电脑上通过,每次发布前也在 `windows-latest` 运行;**Windows 上的真实网站尚未测试**。Windows 上状态、配置与登录配置目录改用 ACL 检查,取代 0700/0600 权限(见 SECURITY.md);`bw` 请安装原生 `bw.exe`(scoop 的 `bitwarden-cli` 或 Bitwarden 官方独立下载),npm 的 `bw.cmd` 不经 shell 无法启动;`ego-cli` 提供者不支持 Windows。
51
+
52
+ 浏览器提供者及其契约:[docs/browsers.md](docs/browsers.md)。每次测试记录(含失败):[docs/TESTED.md](docs/TESTED.md)。
53
+
54
+ ## 已可运行(由测试套件验证)
55
+
56
+ - **网页填写**:按密码库条目绑定来源、iframe 内的字段只能通过明确规则填写、规划后页面若发生导航即拒绝输入、跳过蜜罐字段、等待 SPA、单次提交、填写后锁定。
57
+ - **字段规则与登录配置**:在条目(`blindfill.rules`)或本地配置中为各站点指定精确选择器,用于启发式无法识别的表单。规则选择器为纯 CSS,不含值或状态探测。
58
+ - **页面工具**:`page discover|diagnose|verify|list` 只报告结构和布尔值,绝不返回内容值;会话锁定时一律拒绝。
59
+ - **注册**:`item generate` 用 CSPRNG 生成密码并创建条目,密码不会显示;`register` 将其输入绑定来源上的注册表单(密码和确认字段)。`item generate --no-password` 建立只有用户名、没有密码的条目,供只用 passkey 注册的网站使用;密码登录、`fill`、`register` 与 `android fill` 会明确回报“没有密码”并拒绝,不会填入空白。
60
+ - **验证器设置**:`totp enroll --item <id> --selector <css>` 从绑定网页上的单个元素读取设置密钥(或 `otpauth://totp` URI),保存到尚无 TOTP 种子的条目;密钥不会显示,已有种子绝不覆盖。之后用 `totp --fill` 填入验证码。
61
+ - **条目管理**:`item list|status|rename|edit`。机密值、来源和 `blindfill.*` 字段只能在终端中修改,唯一例外是 `blindfill.rules`,代理可以修改(见 SECURITY.md)。没有 `item reveal`。
62
+ - **人工接管**:`handoff pause|resume` 把浏览器交给人处理 CAPTCHA、授权页或 MFA;期间拒绝代理操作,恢复后锁定仍然有效。
63
+ - **接口**:CLI、MCP 服务器(stdio)和库 API(`withPage(page, …)`)。
64
+ - **泄漏测试**:填写、规则、配置、页面工具、注册、条目管理和人工接管均通过 CLI 和 MCP 运行,使用 canary 密码和生成的密码;所有输出、错误、`DEBUG=pw:api` 日志和状态文件都以原文、URL、Base64 和十六进制形式搜索。
65
+
66
+ ## 尚未完成
67
+
68
+ - Android:保存手动输入的登录、在真实 app 中的注册表单、WebView 与 Credential Manager 密码、在真实 app 中注册 passkey。WebKit。Firefox passkey 在真实网站或长期运行的 Camoufox 上使用。
69
+ - 部分真实网站仍需要真人或网站规则(例如 Walmart 的 Press & Hold 机器人验证、部分 MFA 设置;见 [docs/TESTED.md](docs/TESTED.md))。其余六个后端为盲写且未验证。
70
+
71
+ ## 快速试用
72
+
73
+ ```bash
74
+ npm ci && npm run build && npx playwright-core install chromium
75
+ export BW_SESSION="$(bw unlock --raw)" # env only
76
+ mkdir -p ~/.config/blindfill && echo '{"backend":"bw"}' > ~/.config/blindfill/config.json
77
+ node dist/cli.js backend list
78
+ node dist/cli.js session start --headless
79
+ node dist/cli.js fill --item <id> --url https://example.com/login --submit --expect-url /home
80
+ node dist/cli.js mcp # MCP server on stdio, see examples/mcp-config.json
81
+ ```
82
+
83
+ ## 开发
84
+
85
+ `npm run lint && npm test && npm run build`。架构说明:[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)。
86
+ 发布流程(main 上的 `package.json` 版本变更时触发,使用 npm Trusted Publishing):[docs/RELEASING.md](docs/RELEASING.md)。MIT 许可。
87
+
88
+ ## 翻译
89
+
90
+ 欢迎提交翻译 PR:无论是改进现有的 [繁體中文](README.zh-TW.md)、[简体中文](README.zh-CN.md)、[日本語](README.ja.md)、[한국어](README.ko.md),还是新增其他语言。一切以英文版 README 为准。