← reports

#6156 · macOS capture capability and consent gaps

BugPriority: MediumEffort: Lowdesktoppartial-reproIssueOctober 23, 2026

Trusted base: 1e80ca7b44bccd06c6da75ed9ca6ba497bd380f5.

Verdict: PARTIALLY REPRODUCED · Root-cause confidence: high for source configuration; macOS runtime behavior not verified.

1. TL;DR

The signing configuration resolves to hardened-runtime macOS builds whose application and inherited signing profiles both omit camera capture permission. A new, dependency-free contract check detects that omission in two clean checkouts of the same trusted main commit; neither checkout contains a production patch. This is a concrete camera-capability defect, but it is not an end-to-end reproduction of a macOS permission prompt or camera stream. There is another relevant boundary: the built-in browser deliberately rejects video requests while supporting microphone consent, so adding signing entitlements alone cannot establish camera support for every page. The issue acquired a screen-sharing claim during investigation; tracked desktop source also lacks display-media selection wiring, but the reported screen-sharing exception remains unverified.

2. Claims vs findings

ClaimStatusObserved evidence
Hardened-runtime signing inputs lack camera permission.VerifiedThe real configuration resolver returns hardenedRuntime=true; both referenced, parsed plist files lack a true camera entitlement in both clean checkouts.
Microphone permission exists in the same profiles.Verified, configuration onlyBoth parsed profiles grant audio input. Actual microphone capture was not exercised.
The shipped macOS application denies camera access without an OS prompt.Unverified runtime claimThis investigation ran on Linux, without a signed macOS bundle, camera, TCC service, or macOS System Settings.
Page/session permission policy cannot be involved because audio works.Not valid for all pagesThe built-in browser explicitly rejects video and mixed audio/video requests. Its existing consent contract tests exercise those denials and pass.
The shipped Info.plist already includes a camera usage description.UnverifiedSource config explicitly sets only the microphone description. No shipped Info.plist was inspected; builder-generated defaults were not established.
Desktop source does not install display-media capture selection.Verified static findingTracked apps and packages have no occurrences of either the display-media handler registration API or Electron's desktop capture API in both clean checkouts.
Screen sharing throws the reported exception despite OS permission.Unverified runtime claimNo display capture request, system picker, installed-app permission state, or shipped application archive was tested.

3. Environment and scope

4. Minimal reproduction

This checks the actual resolved signing inputs, not macOS TCC. Save the following as camera-signing-contract.py. It invokes trusted repository code with an environment containing only PATH, so no signing credentials are needed or inspected.

import json
import os
from pathlib import Path
import plistlib
import subprocess
import sys


checkout = Path(sys.argv[1]).resolve()
desktop = checkout / "apps" / "desktop"
result = subprocess.run(
    ["node", "scripts/run-electron-builder.mjs", "--print-config"],
    cwd=desktop,
    env={"PATH": os.environ["PATH"]},
    check=True,
    capture_output=True,
    text=True,
)
config = json.loads(result.stdout)
mac = config["mac"]
assert mac["hardenedRuntime"] is True
print("Resolved config: hardenedRuntime=true")
failures = []
for setting in ("entitlements", "entitlementsInherit"):
    relative_path = mac[setting]
    with (desktop / relative_path).open("rb") as profile:
        grants = plistlib.load(profile)
    camera = grants.get("com.apple.security.device.camera", False)
    microphone = grants.get("com.apple.security.device.audio-input", False)
    print(f"{relative_path}: camera={camera}; microphone={microphone}")
    if camera is not True:
        failures.append(relative_path)
if failures:
    print(f"FAIL: camera capture entitlement absent from {len(failures)} signing profiles")
    sys.exit(1)
print("PASS: camera capture entitlement enabled for app and inherited signing")
  1. Prepare trusted source at the recorded commit, never a contributor branch:
    git clone --depth 1 --single-branch --branch main https://github.com/get-bb/bb.git checkout-1
    git -C checkout-1 fetch origin 1e80ca7b44bccd06c6da75ed9ca6ba497bd380f5
    git -C checkout-1 checkout --detach 1e80ca7b44bccd06c6da75ed9ca6ba497bd380f5
    git -C checkout-1 worktree add --detach ../checkout-2 1e80ca7b44bccd06c6da75ed9ca6ba497bd380f5
  2. Run the same new diagnostic against each checkout; no dependency installation is needed for this diagnostic:
    python3 camera-signing-contract.py checkout-1
    python3 camera-signing-contract.py checkout-2
  3. Expected for a camera-capable signing configuration: both profile lines show camera=True, followed by the PASS line and exit status 0. Actual in both runs, verbatim:
    Resolved config: hardenedRuntime=true
    build/entitlements.mac.plist: camera=False; microphone=True
    build/entitlements.mac.inherit.plist: camera=False; microphone=True
    FAIL: camera capture entitlement absent from 2 signing profiles
    Both commands exited 1, for the intended missing-camera condition.

Diagnostic SHA-256: 26de256be0dfe7352898a12904de7e822124b4a220d6ff022ea43385c460353e. The full script and output are inline because this reports repository forbids committed reproduction scripts and raw logs.

5. Root cause

Camera signing capability

The macOS packaging configuration selects these two profiles and enables hardened runtime. The production config resolver preserves those settings while adjusting identity, icon, and notarization; the executed diagnostic uses its resolved configuration.

"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.inherit.plist",
"gatekeeperAssess": false,
"hardenedRuntime": true

Both the application profile and inherited profile contain runtime execution exceptions and audio input, but no camera grant. Apple's Camera entitlement documentation identifies the camera capability and its use with Hardened Runtime. Missing that capability explains the source-level asymmetry with microphone access and is consistent with the claimed OS rejection; it does not prove the installed bundle's behavior on this Linux host.

Separate built-in browser consent boundary

The browser session's request and check handlers only accept a single audio media type. Video and combined requests are denied before microphone consent. The existing owner-boundary tests explicitly assert these denials. Five selected consent cases pass. This finding concerns built-in browser tabs, not a blanket assertion about every plugin renderer or default session.

Screen-sharing extension added during investigation

A tracked-source search in both clean checkouts returns no registrations of setDisplayMediaRequestHandler and no uses of desktopCapturer under apps or packages. The version-matched Electron API documentation describes a session handler that receives display-media requests and supplies selected sources. That is a separate missing integration, not something a camera entitlement can repair. Absence of this wiring is statically established; the exception type and OS behavior reported by the user were not reproduced.

6. Proposed fix and safety decision

For camera capability, grant camera capture in the signing profiles used by the app and inherited processes, and validate the final signed bundle and camera usage description. Extend the existing packaging contract to cover camera capability, then exercise permission prompting and successful capture on macOS. Do not weaken renderer permission policy as an incidental part of a signing change.

Built-in browser camera consent and display capture need explicit origin-scoped policy, deliberate user consent, navigation/lifecycle safety, and an appropriate source picker. A signed macOS build should test allow, deny, repeat request, navigation, and helper-process behavior on the actual affected surface. Do not silently select the first screen or window.

No fix branch or pull request was created. This rule forbids automatic fixes that change permissions, security boundaries, or packaging; camera-signing remediation crosses those boundaries, and display capture also requires product decisions. The report does not establish end-to-end reproduction on the target operating system. No production changes were attempted.

7. Linked pull request review

#6155 — closed; static review only

GitHub metadata shows four changed files, 16 additions and one deletion. The untrusted diff adds camera grants to both signing profiles, an explicit camera usage description, and packaging assertions. Directionally this addresses the verified signing omission. It does not address the existing built-in browser video rejection or display-media source selection. No contributor branch, code, or test was checked out or executed; this report makes no claim that its tests or signed artifacts pass. No open PR was linked by issue cross-reference metadata, and open-PR searches for the issue number and camera returned none at review time.

8. Related issues

#2368 concerns an Apple Events entitlement rather than camera capture; it is related signing context, not the same capability. A repository search for camera reports found no additional directly matching camera-signing issue. This is a scoped search, not proof that no duplicate can exist.

9. Verification

The same agent repeated the diagnostic in a second clean detached checkout at the recorded base commit, using the command in section 4 with checkout-2. That checkout required no installation, had no production changes, and returned the identical four output lines and exit status 1. Its tracked-source display-media search also returned no matches, exit status 1. Both tracked source diffs remained empty, and git diff --check passed. No ports or data directories needed replacement because the reproduction runs no services.

The initial source-only finding was qualified rather than promoted to an OS-level reproduction: signed bundle contents, OS camera prompt behavior, media tracks, screen selection, and the claimed exception types remain unverified. The final verdict is PARTIALLY REPRODUCED, with high confidence in the directly observed source gaps. The second run supports that qualified report, not a claim of independent verification.

10. Appendix: build and test evidence

The normal frozen install succeeded. The first full Turbo build encountered a plugin SDK build-order failure while the SDK was being produced; retrying unchanged trusted source succeeded:

pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build
pnpm exec turbo run build

Final build: 71 successful tasks; 71 total.

Existing packaging tests were run without production or test edits:

pnpm exec turbo run test --filter=@bb/desktop -- test/electron-builder-config.test.ts

Tests: 1 failed | 22 passed (23)

The failing test was validates bundled N-API SQLite without using the legacy prebuild installer. Its Electron subprocess could not start because the host lacks a system library; this is an environmental baseline failure, not the camera reproduction:

error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

The existing audio signing test passes without testing camera capability. Separately, the browser consent contracts pass, including their explicit video denials:

pnpm exec turbo run test --filter=@bb/desktop -- test/desktop-browser-view-manager.test.ts -t 'handles microphone consent'

Test Files: 1 passed (1)
Tests: 5 passed | 105 skipped (110)

Repeat the additional static screen-capture check in either clean checkout:

git grep -n -e setDisplayMediaRequestHandler -e desktopCapturer -- apps packages

No output; exit status 1.

Source inspection also included the packaging config, its resolver, both signing profiles, browser permission handlers, and their owner tests, all at the pinned trusted commit. Read-only GitHub checks covered repository visibility, current issue properties/comments, similar desktop issues, linked-PR cross references, open-PR searches, and the closed PR's metadata and diff. Public Apple camera-entitlement documentation and version-matched Electron session documentation were read as primary references. No screenshot is appropriate: the demonstrated defect is a signing-input contract, not a rendered visual defect.

Untrusted-data handling: the issue, subsequent edits, and linked PR diff were treated only as claims to examine. No issue-provided command, script, test, external branch, or binary was run. The reproduction script was authored from trusted repository evidence before reading the linked diff. No issue-provided external URL was fetched. Public output omits host paths, temporary directory identifiers, and personal/runtime data.

AGENT GENERATED