Branch audit-2026-10-26 (from master at 71b9261, after #51).
Devices: this Mac (desktop app), a Windows PC (Wi‑Fi temporarily Private), an Android phone (“Nirakara”, wireless adb).
Status: PASS = verified (tests named; real devices named where used) · FAIL · BLOCKED (reason given) · NOT TESTED. A row that says “automated” has not been checked on a real device yet.
| # | Area | Defect | Root cause | Fix | Evidence | Status |
|—|—|—|—|—|—|—|
| D1 | Pairing / security | Someone on the same Wi‑Fi could recover the pairing code and the pair key from what they overheard | The code was proved with HMAC(code, nonces, ids) over plain HTTP, and code-only lookup broadcast sha256(code)[:16]. Both can be checked against all 10⁶ codes in under a second | SRP-6a (srp.py), no code hint, code works only while Add device is open (519a393) | tests/test_srp.py (9, incl. interop with pysrp both ways); tests/test_mesh.py::test_pairing_never_puts_the_code_where_it_can_be_checked, ::test_a_code_works_only_while_add_device_is_open, ::test_pairing_by_code_alone_finds_the_device_showing_it, ::test_pairing_with_an_older_app_says_to_update_it · Real devices 2026-10-27 (Mac from source on the branch ↔ Nothing A015 / Android 16, release-signed branch APK, CI run 40370591211): code-only pairing with no address (multicast find + /info) paired in 0.74 s; phone rotated its code after; the used code then got 409 pairing_not_open. scripts/device_check.py --skip-slow --big-mb 50: pairing both directions, QR request (code + address), wrong code 403, 5 wrong → 429, and paired transfers both ways arriving without asking (so both sides derived the same key) — all ✅ | PASS (automated; Mac ↔ Android) · NOT TESTED on Windows |
| D2 | Pairing / security | QR codes (share link and pairing) contained the PIN, a lasting credential anyone could photograph | ?pin= / &pin= appended to the QR URL | 10-minute join token <expiry>.<HMAC(secret, expiry, PIN digest)> (29e0242) | tests/test_security.py (5 new tests), tests/test_cli.py::test_banner_shows_addresses_pin_and_qr · Real device 2026-10-27: Mac branch app with a random PIN; the phone’s camera scanned the share QR → GET /?join=… 302 → / (token gone from the address bar), then /api/state 200 from the phone (401 without a session), no 401s, PIN never typed. Expiry and forged tokens are covered only by the automated tests. Limit: within its 10 minutes the token works for anyone who has it (not single-use) | PASS (share QR on Android browser) · pairing QR with PIN NOT TESTED on devices |
| D3 | Discovery / security | Anyone on the Wi‑Fi could make a device vanish from every list with a fake multicast bye | A bye was believed from any source address | A bye from another address triggers a hello to the device’s known address; gone only if it doesn’t answer (bc504dc) | tests/test_mesh.py::test_goodbye_from_another_address_is_checked | PASS (automated) |
| C1 | Clipboard / pairing | Pasting a pairing code with anything around it lost digits: Code: 332 156 → 3, ` 332 156 → 332 15 (a wrong code) | #pair-input had maxlength=”7”, and the browser cuts a paste to that length *before* the page strips non-digits | Drop maxlength; the input handler already keeps 6 digits | tests/e2e/test_devices_ui.py::test_pasting_a_code_keeps_all_its_digits (failed with “3”, passes after); checked in the browser pane against the running branch app (all 5 inputs → 332 156). Real Cmd+V from the automation didn't reach the system clipboard, so the paste was applied with the browser's insert-text path, which enforces maxlength the same way. Android uses the same page; a paste on the real phone is NOT TESTED | PASS (automated + Mac browser) |
| C2 | Clipboard / pairing | Cmd/Ctrl+V in the open Add device sheet, before clicking the code box, queued the text as a file to send behind the sheet; the code box stayed empty | The page-wide paste handler didn't check for an open dialog (the keyboard shortcuts do) | While a sheet is open a paste never queues a send; on Enter a code it fills the code box (through its own clean-up); elsewhere it does nothing | tests/e2e/test_devices_ui.py::test_pasting_into_an_open_sheet_doesnt_queue_a_send (failed first: send bar visible) and ::test_pasting_into_the_show_code_tab_does_nothing; reproduced first in the browser pane; full local e2e 73/73 | PASS (automated) |
| C3 | Pairing / camera | QR scanning only on Android and Chrome; the camera could stay on; one message for every camera problem; no way to pick a USB camera | canScan() required BarcodeDetector (missing in the Mac app's WebKit view, Windows WebView2, Safari, Firefox). stopScanner() did nothing while getUserMedia was pending, so closing the sheet at the permission prompt left the camera on; a second tap opened a second stream | jsQR 1.4.0 vendored (npm integrity checked, Apache-2.0), loaded only when a scan starts; the scan is registered before the camera is asked for; errors by name (denied / none / in use) with focus on the code box; **Use another camera** when there are 2+; released on found, Cancel, sheet close, tab switch, page hidden | tests/e2e/test_scan_ui.py (8: scan→paired with no BarcodeDetector; close while starting → camera released; double tap → one stream; 3 error kinds; switch camera; one camera → no switch), all failed first. Real browser pane (camera blocked by the host): real denial → "Camera access is off…", code box focused. **Real camera 2026-10-27:** Safari on the Mac (WebKit, no BarcodeDetector — the same engine as the Mac app's window) scanned the phone's Add device QR with the Mac's built-in camera: GET /static/vendor/jsQR.js 12:13:32 → POST /api/pair 200 at 12:13:40; the phone lists the Mac as paired and rotated its code (717 039 → 236 597); the Mac's green camera light went off after pairing (seen by the user). Not covered: a USB camera, the packaged Mac/Windows apps, Windows | PASS (automated + real camera in Safari on Mac) · NOT TESTED in packaged desktop apps |
| C4 | Clipboard (Android) | **Send what you copied** in the Android app says "Allow clipboard access to send what you copied." and never asks for it (user's phone screenshot 2026-10-31) | Android's WebView has no clipboard permission prompt, so navigator.clipboard.readText() always fails there; the app already reads the clipboard natively (ClipSync), but the page never asked it | Bridge OpenTransferAndroid.readClipboard() (read on the main thread, where the focus is); the page uses it when present | tests/e2e/test_clipboard.py::test_the_android_app_reads_the_clipboard_itself (no clipboard permission + fake bridge; failed first: nothing staged); full e2e 82 passed. Android CI run 41173702147: APK built, emulator smoke test ✅ | Implemented · automated · CI-built · Real-device NOT VERIFIED |
| E1 | Ports (macOS) | Two apps could listen on the same port: one on 127.0.0.1:P next to another on 0.0.0.0:P; requests then reached either. Cause of the 28 local e2e failures | port_is_free() binds with SO_REUSEADDR (to ignore TIME_WAIT); on macOS that also lets a specific address bind beside a wildcard listener | Also require the port free on 0.0.0.0 | tests/test_cli.py::test_a_port_held_on_every_address_isnt_free_on_one (failed first); full local e2e 71/72 | PASS (automated) |
| F1 | Preview (Android) | Preview on a PDF opened Android's "Open with" app chooser on top of the preview | Android's WebView has no PDF viewer; the preview's <iframe> became a download, which for the owner's own file opens it in another app | Offer Preview for PDFs only where navigator.pdfViewerEnabled; otherwise the preview shows Save. Also: Android's **Open** used the download icon (same as Save); now the file icon | Real phone: Preview on audit-preview.pdf → logcat ACTION_VIEW … application/pdf → ResolverActivity; no stray copy in Download/. tests/e2e/test_media.py::test_no_pdf_viewer_means_no_pdf_preview (failed first: Preview offered). **Phone 2026-10-27** (same APK): the PDF's menu shows Open, Copy link, Save, Delete — no Preview — and Open has the file icon; no app chooser launched (logcat) | PASS (automated + phone) |
| U1 | Layout (Mac, Android) | With files listed, the drop zone's title sat mid-box and the hint fell to the bottom-left (user's Safari screenshot; same on the phone) | The compact grid is auto 1fr with the icon spanning 3 rows; the clipboard button made a 4th text row, so the hint auto-placed into column 1 and widened it | Every text child pinned to column 2; icon spans rows 1–4 | tests/e2e/test_media.py::test_compact_drop_zone_keeps_its_text_in_one_column (failed first: title at x=458, icon ends at 331); browser pane at 1280 px: all four start at x=348, icon ends at 332. **Phone 2026-10-27** (APK from CI run 40464981070, updated in place, id kept): title, link and hint now beside the icon, but **Send what you copied** still sat centred — as a grid item the button stretched across the column and .btn centres its label (on the Mac it showed as a full-width bar). Fixed with justify-self: start; the test now also checks the button's icon sits under the title (failed first: x=594 vs 347). Pane at 375 px touch: title/link/hint at x=104 beside the icon (88), no overflow. **Phone re-check** (APK from CI run 40466529509, ae725e1, updated in place, id kept): the button now sits left under the link, beside the icon (screenshot) | PASS (automated + Mac browser + phone) |
| U2 | UX (device tiles) | Nirakara's tile shows an **orange** dot that reads like a warning | It is the connection signal: green < 40 ms round trip, orange 40–150 ms ("fair"), slower after; explained only in a hover tooltip. 40–150 ms is ordinary for a phone on Wi‑Fi | The dot shows only when the connection is slow (≥ 150 ms); its level and time stay in the label and the tile's tooltip (user's decision) | tests/e2e/test_activity.py::test_the_connection_dot_shows_only_when_slow (local: no dot; 90 ms: no dot; 400 ms: red dot — failed first: dot visible locally). Real Mac view of the real phone: awake it measured 39 ms earlier (no dot now); **dozing** (screen off) it measures 112–232 ms, so a sleeping phone shows the red dot — accurate, since sends to it start slower. Full local e2e 76/76 | PASS (automated + Mac browser) |
| U3 | UX (clipboard) | The page's Clipboard row puts **Share clipboard** (big button) and "☑ Share automatically while this window is open" (manual sharing, one device) next to a small "Clipboard sync **Off**" link; the user ticked the visible box believing sync was on | Two features presented as one; the real switch is the least visible control. The box was hidden only while sync was *on*, and, once hidden, a ticked box kept sharing unseen | **Safe default applied (reversible):** where the app can reach the clipboard itself (clipboard_access), the window-only box is hidden whether sync is on or off, and a ticked box is unticked (its sharing stops, remembered as off). Plain browsers without that access keep the box. Nothing is turned on for you | tests/e2e/test_clipboard.py::test_where_clipboard_sync_can_run_it_is_the_only_switch (failed first: box visible) | Implemented · automated · Real-device NOT VERIFIED |
| U4 | UX (devices) | The PC's sync sheet lists **Nirakara twice** ("Away" and "Nearby") | The phone's identity from the old debug-signed APK is still trusted on the PC (K2's leftover); nothing said which is stale | **Safe default applied:** an away device with the same name as one that's here says "Away · probably an older copy of this device — remove it if so"; its Remove button was already there. Nothing is removed automatically (it could be a second, switched-off device with the same name) | tests/e2e/test_sync_ui.py::test_an_old_copy_of_a_device_is_pointed_out (failed first) | Implemented · automated · Real-device NOT VERIFIED |
| S1 | Sync | The Mac showed MAYA as "syncing" while MAYA refused every clip ("Clipboard sync is off on this device"); log said "synced to 1 device(s)" | _fan_out keeps refusals out of the recent list and the log line; only last_error holds them | The sheet's device row already said "Sync is off there"; now each clip in **Recently** also says who didn't take it ("Not sent · MAYA didn't take it"), and the log counts refusals | Mac /api/sync: MAYA last_error: “off”, every clip's devices = [Nirakara]. tests/test_sync.py::test_a_refusal_shows_in_recent_and_the_log (failed first: no refused), tests/e2e/test_sync_ui.py::test_recently_says_who_didnt_take_a_clip (fails without the fix: "Not sent · Text · Just now") | PASS (automated) |
| B1 | Windows desktop | Closing the window showed "Failed to remove temporary directory: …\\Temp\\_MEI…" | The window hands over to a –background copy started with the parent's PyInstaller environment, so it ran from the window's unpacked temp folder | Start the copy with PYINSTALLER_RESET_ENVIRONMENT=1 (afd4e47) | tests/test_background.py::test_the_packaged_app_starts_its_background_copy_as_a_fresh_app (failed first: no env); user's PC screenshot. Not yet seen on the PC with the fix Build check 2026-10-31: the Windows build uses PyInstaller 6.22.3 (build_app.py requires ≥ 6.10); PYINSTALLER_RESET_ENVIRONMENT exists from 6.9. Closing the real window can't be done in CI | Implemented · automated · CI-built · Real-device NOT VERIFIED |
| V1 | Transfers | After each received file the sender's POST …/files/0/verify gets **401** (phone 2026-10-27, PC 2026-10-28), so the integrity check is silently skipped | p2p_offer_verify was missing from PUBLIC_P2P_ENDPOINTS: a receiver with a PIN asks the sending app for the PIN, and _verify_remote reads any non-200 as "an older app". Tests talk over 127.0.0.1, which counts as the owner, so they never saw it | Add it to the set; the handler already checks the offer's X-OT-Secret, like its sibling p2p_offer_file_status | tests/test_receiving.py::test_each_file_is_checked_end_to_end[4821-*] over the LAN address (failed first: verified False, both plain and chunked); full suite 531 passed. Not yet seen on devices | PASS (automated) · NOT TESTED on devices |
| N1 | Discovery | The PC shows Nirakara "Not nearby" and can't deliver to it, while the Mac reaches it on the same Wi‑Fi | **Environment (firewall), not a code bug:** a device's address is replaced by any multicast packet or hello from it (_upsert_peer); the PC kept the old address because K1's firewall rule (Public only, network Private) dropped everything the phone sent. Limit: there's no other way back — paired members don't pass on each other's new addresses after pairing (_meet runs only on introduction) | — (follows K1) | tests/test_mesh.py::test_an_announcement_from_a_new_address_moves_the_device (new) and ::test_hello_through_a_local_tunnel_keeps_the_real_address (hello path): both pass — coverage, the code already did it. PC screenshot ("To Nirakara · Not sent") | Automated (address follow) · Real-device NOT VERIFIED (with K1 on the PC) |
| N2 | Discovery / security | Anyone on the Wi‑Fi could redirect a **paired** device: one multicast packet with its id and their own address, and our hellos and file offers went to them (they could accept the files); the packet could also rename the device and keep an absent one looking present | Found while inspecting N1: _upsert_peer believed every packet; only requests *to* us were signed, nothing proved where a paired device was | For paired devices the address (and name, last seen) changes only on a hello signed with the pair key, or on an answer to a challenge sent to the new address — HMAC(key, nonce, ids, address dialled); a device answers only for its own address, so a relayed challenge proves nothing; one challenge per device and address every 30 s. Unpaired devices, and older apps' own signed hellos, move as before (25139f8; protocol.md) | tests/test_moves.py (5): spoofed packet changes nothing (failed first: moved), real move followed via the challenge over the LAN address, signed hello moves at once, no proof for an address that isn't the device's (failed first: no proof at all), unpaired unchanged; unit suite 463 passed | Implemented · automated · Real-device NOT VERIFIED |
| P1 | Security default | In shared-folder mode anyone on the Wi‑Fi could delete shared files by default | allow_delete=True default | Visitor deletion is opt-in: –allow-delete / OPEN_TRANSFER_ALLOW_DELETE=1; –no-delete and –read-only still win; the owner is unaffected; the default (non-shared-folder) mode never let visitors delete. **Migration:** a shared-folder setup that relied on visitors deleting must add –allow-delete (README) (3a0308f) | tests/test_cli.py::test_visitors_delete_only_when_allowed, tests/test_api.py::test_visitors_cant_delete_by_default (failed first) | Implemented · automated |
| T1 | Server / CI | tests/test_sync_api.py::test_visitors_cant_see_or_change_sync failed once on Windows with ConnectionResetError [WinError 10054] (CI run 40370591211) | **Confirmed:** the app answers 401/403 before reading the request body. cheroot reads a leftover body only when the connection stays open; urllib sends Connection: close, so cheroot closed the socket with the body unread, the OS reset the connection, and Windows dropped the answer. Browsers and the apps' own device-to-device calls keep connections open, so it was a test-environment flake, but the server broke RFC 7230's "SHOULD read the body" | app.py finish: read up to 1 MiB of unread body before answering (bigger uploads refused early still reset — reading them would invite abuse) (ada6653) | tests/test_sync_api.py::test_a_refused_request_is_answered_not_reset (900 kB body, Connection: close): failed first on the Mac with the same ConnectionResetError, passes after | FIXED · automated |
| K1 | Pairing | Mac ↔ Windows: "No device on this network is showing that code" | Suspected: Windows firewall on a *Public* network blocks incoming connections | Not fixed yet (agreed: the Mac tells the PC it can't reach it; an "Allow on this network" button with one UAC prompt) | **2026-10-28, Mac ↔ Windows PC "MAYA" (Wi‑Fi "SVR 5", 192.168.88.x/24):** the PC's network was already **Private**. From the Mac: ping ✅ (not AP isolation), same /24 (not subnets), Windows port 135 ✅, Open Transfer port 5000 **timed out** (silently dropped). The PC's only inbound rules for the app: open-transfer-windows-x64.exe **Allow · Profile: Public** — nothing for Private. The app listened on 0.0.0.0:5000 and showed "Ready · Visible to nearby devices": its warning (network.public_networks) only looks for Public networks, and its advice ("set it to Private") is what breaks a Public-only rule. Branch build (8114eb6, new path) → first-run prompt allowed Private + Public → reachable (28 ms); **pairing by code alone 0.78 s (SRP)**; Mac → PC 20 MB accepted automatically in ~2 s, SHA-256 matches on the PC; PC → Mac file ✅ **Fix:** a device that can't reach us says so in its hello reply (you.reachable); the PC shows "<names> can't reach this device — usually its firewall" (the Public guess gives way to evidence) and, in the packaged Windows app, **Allow on this network** (one UAC prompt; rule = this .exe, its TCP port, UDP 47823, current profile). Tests: tests/test_reachability.py (+8: report, recovery, gone devices, narrow rule with safe quoting, outcomes, owner-only/unsupported) and tests/e2e/test_unreachable.py (+4: named warning, guess yields, button, no button) — all failed first **2026-10-31, Windows CI (no device):** the Allow button's command was run for real on GitHub's Windows runner (admin, no UAC prompt): test_windows_really_gets_the_narrow_rule — Windows created exactly Private Allow TCP 5123 and Private Allow UDP 47823 for that program (path with an apostrophe). **New bug found and fixed (K1b):** test_a_rule_windows_refuses_is_not_reported_as_allowed failed on Windows without the fix (assert ‘allowed’ == ‘failed’, probe run 41174194665): Start-Process -Wait succeeds whatever the elevated copy does, and New-NetFirewallRule errors didn't stop it, so a refused rule was reported as **allowed**. Fix: $ErrorActionPreference = ‘Stop’ in the elevated script and -PassThru … exit $p.ExitCode. **Known limits:** (1) if someone once pressed *Cancel* on Windows' own first-run firewall prompt, Windows keeps *Block* rules for the .exe, and Block beats our Allow — the button then reports allowed but nothing changes (the warning stays, since it clears only on evidence); (2) on a *Domain* network the rule is made for Private (the API picks Public or Private only). **Limit (1) resolved (bd98d80):** the PC finds enabled inbound Block rules for exactly its own .exe, names them in the warning, and **Remove the block and allow** removes those, and only those, in the same admin prompt — Windows CI run 41176787789 created a Block rule for our .exe and one for another program; ours was found and removed, the other left in place | Root cause CONFIRMED · fix automated + **Windows CI** (real rule) · Real-device NOT VERIFIED |
| H1–H6 | Security (transfers) | File contents and names between **paired** apps crossed the LAN as plain HTTP (the offer was signed, the bytes weren't); the integrity check sent the bare SHA-256, letting a listener confirm a guess at a file | Only clips were sealed; no file encryption existed | **ot-file/1** ([encryption.md](/open-transfer/docs/encryption.html)): HKDF-SHA256 per-file keys from the pair key (bound to sender, receiver, target, transfer salt, index, size); AES-256-GCM in 64 KiB STREAM records via cryptography; names sealed; a MAC instead of the hash; receiver refuses plain bytes for an encrypted transfer; a paired app that advertised it (sticky in trusted.json) is never sent plain text; unpaired and older apps labelled **not encrypted** (0c9731a, 9d973ac, 2c7daeb) | tests/test_filecrypt.py (30: RFC 5869 and GCM spec vectors, tamper, reorder, replay, truncation, nonce uniqueness, 64 MiB in constant memory), tests/test_encrypted_transfers.py (18: wiretap shows no file bytes, names or checksum; group per-receiver keys; tamper single/pieces; downgrade refused; old app labelled; unpair/re-pair; concurrent; cancel; visitor hops), e2e labels and the WebRTC SDP check (DTLS/SCTP + fingerprint, no file name). **Android emulator (CI run 41215646240):** the app on Android (Chaquopy, cryptography 42.0.8) paired with the runner and sent 3 MB **encrypted and verified**. Benchmark: 1 GB 327 MB/s encrypted vs 591 plain (both ends on one CPU), memory flat ~70 MB | Implemented · automated · CI (all OSes + Android emulator) · Real-device NOT VERIFIED |
| X1 | Build (Intel Mac) | The Intel Mac app crashed at start once cryptography was added: Symbol not found: _SSL_get0_group_name | cryptography ≥ 49 has no Intel Mac wheel; pip built it from source against Homebrew OpenSSL 3.5, whose libssl.3.dylib clashed in the bundle with Python's own OpenSSL 3.0 | Intel Macs stay on cryptography < 49 (the last universal2 wheel); build_app.py takes only a wheel (c395500) | CI run 41215643364 failed (Standalone app macos-x64); run 41216701486 after the fix: macos-x64 ✅ | FIXED · CI |
| H7a | Hotspot | A device that **is** the hotspot (Android phone, Mac Internet Sharing) announced itself and showed its QR code on its mobile-data or upstream address, which nobody on the hotspot can reach; it also refused to prove its hotspot address (N2), so paired devices couldn't follow it there | lan_ips() knew only the route out and the host name's addresses | Interface addresses too (SIOCGIFADDR on macOS/Linux/Android); mobile-data, VPN and container interfaces left out; the share link uses the first reachable address (c4032dd) | tests/test_hotspot.py (Android hotspot with and without mobile data, Mac Internet Sharing, VPN/docker excluded, Windows hotspot via host name, share link, real interfaces include the route address) — failed first | Implemented · automated · CI · Real-device NOT VERIFIED |
| H7b | Hotspot | On a network that drops multicast (many hotspots), devices that never met can't find each other by code, and paired devices that both changed address never find each other again | Discovery was multicast + hellos to known addresses only | Sweep of the private /24 with GET /info when a code finds nobody, and when our addresses change while a paired device is away; a paired device found that way still has to prove it (N2) | tests/test_hotspot.py: moved paired device found without multicast, no duplicate; a spoofer at the swept address is challenged and doesn't move it; pairing by code with multicast off; sweep only on a change with a paired device away — failed first | Implemented · automated · CI · Real-device NOT VERIFIED |
| H7c | Hotspot | "Couldn't reach 192.168.43.1:5000." said nothing about why | One message for every failure | "isn't open on port … there" (refused) vs "Nothing answered … firewall, or a hotspot or guest Wi-Fi with client isolation" (+ macOS Local Network on a Mac) | tests/test_hotspot.py::test_an_unreachable_address_says_why (3) | Implemented · automated |
| A1 | Android share | Sharing a link or text to Open Transfer only offered **Send to my devices** (every synced device; failed outright with sync off); text and captions shared with photos were dropped; no way to choose recipients | SharedFiles read only EXTRA_STREAM; text/plain went only to the clipboard-sync activity | Open Transfer offered for text/plain; EXTRA_TEXT (single/list), ClipData text and EXTRA_SUBJECT kept once each, staged as a .txt to send to chosen devices; *Send to my devices* opens the app when it can't send (9beaa11) | JVM SharePolicyTest (combining, limits, fallback); e2e test_share_sheet.py (+4: text to a chosen device only, link, text + files, private text asks); emulator: a real ACTION_SEND with text + subject reaches the app; both share entries offered | Implemented · automated · CI (emulator) · Real-device NOT VERIFIED |
| A2 | Android share | A received file couldn't be shared to another app from Android | The menu's **Share…** needs navigator.share, which Android's WebView lacks | Bridge shareFile → system Sharesheet (FileProvider URI, read grant) | e2e test_media.py::test_the_android_app_shares_a_received_file_to_other_apps (failed first) | Implemented · automated · Real-device NOT VERIFIED |
| I1 | Keys at rest | Pair keys and the browser sign-in key sat in owner-only files (trusted.json, secret): any backup, synced or copied state folder carried them | No OS keystore | A vault key in the macOS Keychain / Windows DPAPI / Android Keystore / Secret Service seals them (keystore.py); a private file where there's none, labelled unprotected; migration in place; a pairing whose key can't be unlocked is kept, never trusted, and named; –keys, –rotate-keys (ca77cb5) | tests/test_keystore.py (24: migration, missing/damaged key, refusing keystore, rotation, restart, unpair, re-pair, log/API exposure) written first; real stores in CI run 41222156917: **macOS Keychain ✅** (temporary keychain), **Windows DPAPI ✅**, **GNOME Keyring via Secret Service ✅** ("1 passed"); Android emulator (run 41222156917): {‘store’: ‘android-keystore’, ‘protected’: True}, then app force-stopped and restarted → the pairing held and the next send was encrypted | Implemented · automated · CI · Real-device NOT VERIFIED |
| J1 | Encryption | Transfers between unpaired apps were plain HTTP | No shared key | One-off X25519 to the receiver's per-run key, then ot-file/1; labelled “encrypted, not verified”; a stripped key is refused (2936790) | test_unpaired_apps_encrypt_with_one_off_keys (wiretap: no contents, no name), …stripping_the_one_off_key_is_refused, …for_another_run_is_refused, …older_unpaired_app_gets_plain_files_labelled, filecrypt agreement and all-zero-point tests — failed first; e2e label | Implemented · automated · CI pending · Real-device NOT VERIFIED |
| J2 | Encryption | A browser's own hop to its app was plain HTTP, and a visitor page didn't say so | No secure context on http://
Four separate levels: Implemented (in the code) · Automated (a test that fails without it) · CI/build (passes in CI on the platform, or the build is made and smoke-tested there) · Real device (seen working on the user’s devices). Simulation never counts as a real device.
| Item | Implemented | Automated | CI / build | Real device |
|---|---|---|---|---|
| D1 SRP pairing | ✅ | ✅ | ✅ | ✅ Mac ↔ Android · ✅ Mac ↔ PC (K1 evidence) |
| D2 QR join token | ✅ | ✅ | ✅ | ✅ share QR on Android |
| C1–C3 paste and QR scan | ✅ | ✅ | ✅ | ✅ Mac (C1, C3) · C2 automated only |
| C4 Android Send what you copied | ✅ | ✅ | ✅ APK + emulator | ❌ not yet |
| E1 port check | ✅ | ✅ | ✅ | — (host-only) |
| F1, U1, U2 | ✅ | ✅ | ✅ | ✅ phone / Mac |
| S1 refusals shown | ✅ | ✅ | ✅ | ❌ not re-checked |
| V1 integrity check with a PIN | ✅ | ✅ (LAN address) | ✅ incl. Windows | ❌ not yet |
| K1 unreachable warning + Allow | ✅ | ✅ | ✅ real rule on Windows CI | ❌ mandatory |
| K1b Allow reports refusals | ✅ | ✅ | ✅ failed on Windows without the fix | ❌ |
| K1c Windows Block rules named and removed (this .exe only) | ✅ | ✅ | ✅ real rules on Windows CI | ❌ |
| N2 paired-device address needs proof | ✅ | ✅ | ✅ | ❌ |
| P1 visitor delete opt-in | ✅ | ✅ | ✅ | — (server) |
| N1 address follow | ✅ (existing) | ✅ | ✅ | ❌ (with K1) |
| B1 background copy | ✅ | ✅ | ✅ build (PyInstaller 6.22.3) | ❌ mandatory |
| K4 clipboard Mac ↔ PC, window closed | ✅ | ✅ | ✅ real Windows clipboard | ⚠️ PC → Mac ✅; Mac → PC landing unconfirmed |
| T1 refused requests answered | ✅ | ✅ | ✅ | — (server) |
| U3, U4 safe defaults | ✅ | ✅ | ✅ | ❌ |
| K3 | — | — | — | BLOCKED (no details) |
H1–H6 ot-file/1 encryption, paired app ↔ app |
✅ | ✅ (wiretap) | ✅ all OSes · ✅ Android emulator: encrypted + verified | ❌ mandatory |
X1 Intel Mac build with cryptography |
✅ | — | ✅ macos-x64 app built and started | ❌ |
| H7 hotspot address, sweep, diagnosis | ✅ | ✅ | ✅ | ❌ mandatory (acceptance: Mac on the phone’s hotspot) |
| A1/A2 Android share: text, links, captions; Share… out | ✅ | ✅ | ✅ emulator (real intent) | ❌ mandatory (acceptance) |
| I1 keys in the OS keystore | ✅ | ✅ | ✅ real Keychain, DPAPI, GNOME Keyring; Android Keystore on the emulator, across a restart | ❌ mandatory (Mac update prompt, §10.1) |
| J1 unpaired one-off encryption | ✅ | ✅ (wiretap) | pending | ❌ |
J2 --https for browsers (opt-in) |
✅ | ✅ (Chromium over TLS) | pending | ❌ |
| J3 WebRTC messages MAC’d between apps | ✅ | ✅ | pending | ❌ (real browsers on two apps) |
| J4 “Encrypted transfers only” | ✅ | ✅ (+ e2e switch) | pending | ❌ |
FS1 forward secrecy (ot-file/2 handshake) |
✅ | ✅ (RFC vectors, stolen-key test) | pending | ❌ |
| R1 unpairing tells the other device | ✅ | ✅ (+ e2e status) | pending | ❌ |
| B2 security labels, HTTPS-only browsers | ✅ | ✅ | pending | ❌ |
| C2 encrypted-only on for new installs | ✅ | ✅ | pending | ❌ |
| L hotspot / share coverage | ✅ | ✅ | pending · emulator: file + link in one intent, bad URIs | ❌ (§8, §9) |
CI for 576c2bb: run 41175468050 all jobs ✅ (Windows tests 456 passed; the firewall and real-clipboard tests ran, not skipped), Android run 41175470852 ✅ (APK + emulator). Local: 452 unit passed; e2e 83/84, the one failure (test_browsers_send_to_each_other_directly[False]) passed 6/6 rerun alone and in CI — a load-timing flake, not fixed.
Release blockers (no release while any is open): K1 on the PC (warning → Allow → reachable), B1 on the PC, Mac → PC clipboard landing with the window closed, V1 on any real pair; and from 2026-10-31: an encrypted transfer between a paired Mac and Android phone (both show encrypted), the Mac on the Android phone’s hotspot with mobile data off (device-testing §8.1, §8.7), and the Android share sheet (§9.1–9.8, 9.12); from Phase I: pairings survive an app update on the Mac (one Keychain prompt), Windows and Android (§10.1–10.3). Not blockers: C4/U3/U4 on devices (automated, low risk), K3 (no report to act on).
| Area | Finding | Action / status |
|---|---|---|
| Windows | There is no installer: the release is a one-file PyInstaller .exe, so an upgrade is replacing it. State stays in <Downloads>\Open Transfer\.open-transfer; DPAPI is bound to the Windows user, not the build, so keys survive. |
The CI smoke test now starts the built .exe with --https and requires windows-dpapi. An installer is not in scope. |
| macOS arm64 / Intel | Both built and started in CI (Intel on cryptography < 49, X1). Builds are ad-hoc signed: after each update macOS asks once to let the app read its Keychain item; Deny locks the pairings (kept, named) until allowed. |
Documented (encryption.md, device-testing §10.1). Goes away with Developer ID signing (the notarization branch, on hold for the certificate). |
| Android signing | android.yml refuses to sign with the debug key except on fork pull requests (K2). The Keystore key survives updates signed with the same key; uninstalling deletes app data and the key together (allowBackup="false"), so a reinstall starts clean. |
No change. |
| Docker | Runs as uid 1000, not root; health check on 5000. Defaults are a server’s: shared folder and auto-accept, so anyone on the LAN can upload (delete stays off), no PIN unless set. Keys are in a file in /data/.open-transfer (no keyring in a container) and labelled unprotected. The base image is python:3.14-slim by tag, not digest. |
Compose shows the --https port. Recommend OPEN_TRANSFER_PIN on shared networks, and pinning the base image digest for reproducible releases (not changed here). |
| Cross-version | New ↔ old: paired → plain, labelled, until the old app advertises enc; unpaired → plain, labelled when the receiver has no kx. Old apps ignore the new kx field and enc.eph block. |
test_an_older_paired_app…, test_an_older_unpaired_app…; table in encryption.md. |
| Key migration on upgrade | Plain trusted.json keys and the raw secret are sealed on first start, in place, keeping names, enc flags and platforms. |
Unit-tested; not seen on a real upgraded device yet (§10). |
| Production defaults | --https off (it brings a browser warning); OPEN_TRANSFER_KEYSTORE=file only when set; release workflow runs only on a v* tag (none pushed). |
No change. |
| Docs | encryption.md (keys at rest, browsers, review, per-OS numbers), protocol.md, api.md, README options, SECURITY.md, CHANGELOG, device-testing §10. | Updated. |
| Area | Finding | Done here | Left |
|---|---|---|---|
| OS key-store migration and recovery | Moving to a keystore that appears later, migrating pre-vault files, a refusing or forgetful keystore, a missing or damaged item (pairings locked, kept, named) are handled and tested (test_keystore.py, 24 tests; real Keychain, DPAPI, GNOME Keyring in CI). Recovery is “pair again”: by design, nothing can open a pairing without its key. |
— | An ad-hoc signed Mac build asks once per update for the Keychain item (a Developer ID build fixes it: M0, on hold) |
| Browser HTTPS usability and certificate trust | Self-signed, one warning per device, fingerprint on the Add device sheet. An old http:// link stayed on plain HTTP. |
Plain-port page loads redirect to HTTPS (J5) | No HSTS (browsers ignore it on a certificate they were told to accept); a QR code can’t carry a pin browsers check |
| Legacy plaintext transfers | Plain transfers to and from older apps were allowed, labelled. | “Encrypted transfers only” (J4) | Off by default, for compatibility |
| Key rotation and revocation | Unpairing deletes the key at once and (since R1) tells the other device. Vault key: --rotate-keys. TLS: renewed. Paired transfers have no forward secrecy. |
test_a_device_that_was_unpaired_cant_send_with_the_old_key (passed on first run: documents existing behaviour) |
Forward secrecy for paired transfers (mix in the per-run X25519 keys; a wire-format change for its own review); telling the other device it was unpaired |
| Android and Windows performance | CI runners only: Windows x64 227/143/105 MB/s (plain / encrypted / 4 streams), Android emulator 3.8 vs 3.2 MB/s (the emulator’s network is the limit). | The benchmark now prints a failing run’s output (one Windows CI run failed in it without saying why) | Real phone and real Windows hardware: not measured |
| Transfer metadata privacy | Listed in encryption.md “Metadata a listener still sees”: sizes, timing, ids, announcements (names, browsers connected), SDP addresses. Names and senders of encrypted transfers are sealed. | Documented | Visitor names in announcements could be limited to paired apps; sizes and timing are out of scope |
8c4c39a: 744 passed, 7 skipped each time, no test servers left behind.8c4c39a: every job green except two macOS jobs (Tests on macos-latest, Standalone macos-arm64) cancelled before they got a runner (no step ran); the earlier full green run is 41636690420 on c4b55f8 (J3 + J6). Intel Mac (macos-15-intel) built, smoke-tested with the Keychain and HTTPS, and benchmarked; Windows with DPAPI; Android emulator encrypted both ways.…/verify and the transfer shows verified.--https: device-testing §10.| Item | Recommendation | Done |
|---|---|---|
| U3 sync vs “share while open” | One switch where the app can reach the clipboard: hide the window-only box, untick it | Applied (reversible, turns nothing on) |
| U4 the same device twice | Point out the likely old copy; never remove automatically; its Remove button is there (tested) | Applied |
| Open with… | Don’t add. Desktop already has Open (default app; programs and scripts are never opened, only shown) and Show in folder, where the OS’s own Open With is a right-click away. Android’s Open already goes through the system’s app chooser. A picker would need per-OS code (Windows has one, macOS doesn’t) and a second open path that must repeat the unsafe-type check | No change |
| Red dot on a dozing phone | Keep. It’s accurate: sends to a sleeping phone start slower (112–232 ms measured), and the dot already shows only when slow | No change |
| Visitor deletion (shared-folder mode) | Off by default, explicit opt-in | Applied (P1) |
| No PIN by default | Keep: the web UI is the owner’s on loopback, and visitors only see shared files; set --pin on shared networks (README). Paired-only mode exists for that too |
No change |
| Windows Block rules for this .exe | Name them; remove only those, only when the owner presses the button that says so, in the one admin prompt | Applied (K1c) |
mypy (newer than CI’s) reports 2 errors in desktop.py that already exist on master; untouched.p0-hardeningPersistent history and “say goodbye last” (master has its own), the owner Allow/Deny pairing prompt, and the transfer lifecycle/group accounting work. The branch stays on origin for reference.