# Lines 381-407 of design-pin/design/d-safety.md ('### The shipped table': the JSON block and the
# per-OS table), verbatim, one per line as "<line number><TAB><text>" (a blank line is its number alone). The citation test reads the
# cited lines here because the pin lives outside the repository.
# pin sha256 10c177a0fdc6ba721402cb767965342a62ac2b5befc3af72b1774c7d76abf74a
# excerpt sha256 f2cb92fcbde12574e1cf4b0706b96d063f36d052533a0f7d4827971f48427141
381	```jsonc
382	// protected-targets.macos.json (v4); sibling files for linux and windows carry the same keys - ONE table per OS with THREE closed surface columns (round-5 fold, k-safety B1: the pre-fold single `surfaces` list disagreed with d-windows' shell classes and with d-sdk-skill's drivable surfaces on exactly the surfaces AC-94 makes drivable)
383	{
384	  "v": 4,
385	  "protectedSurfaces": ["com.apple.SecurityAgent", "com.apple.loginwindow", "com.apple.appkit.xpc.openAndSavePanelService",
386	                        "com.apple.PrivacySecurity.extension", "com.apple.systempreferences:PrivacySecurity",
387	                        "com.apple.controlcenter:pane",
388	                        "com.apple.UserNotificationCenter"],            // OS security UI: never an exec target on ANY route (InvalidTarget{protected_surface}); readable only as the `alert` / observation class; `controlcenter:pane` = Control Center's panes and privacy toggles; the last entry is the OWNER of the TCC consent alert ("X would like to access Y" Allow / Don't Allow), the Keychain access sheet and the CFUserNotification dialogs - the macOS twin of consent.exe - written here as the candidate (design, no harvest id) and REPLACED by the process `design/d-sequence.md` M-track measures on macOS 15 and 26 (CGWindowListCopyWindowInfo owner of each sheet raised from a QA fixture app), with the measured version recorded beside it (round-6 fold, k-safety N9); `openAndSavePanelService` = the out-of-process Open / Save panel host, the sandbox POWERBOX (driving it would grant a sandboxed app file access the user did not choose) - keeping it protected costs every remote-hosted `Save As` / `Open...` / file-chooser step (every sandboxed app; more than that on 15 / 26 - reviewer OS knowledge, no harvest id, so SP-M measures which process owns the panel window raised by a sandboxed and a non-sandboxed QA fixture), a stated cost that Open question 7's file-dialog half carries (round-10 fold, k-safety row 8)
389	  "readOnlySurfaces":  ["com.apple.dock", "com.apple.Spotlight", "com.apple.controlcenter:menubar"],   // observe / screenshot / elementAt admitted, every exec refused InvalidTarget{protected_surface} - the contract keeps Aside's list protected (ASB-29 / ASD-36) while ADC-26's `dock` / `spotlight` kinds stay observable (AC-94's own example); whether they may be driven under the grant is Open question 7's capability half
390	  "systemSurfaces":    ["com.apple.finder:desktop", "com.apple.notificationcenterui", "surface:menubar"],   // the OS shell: drivable ONLY as DESKTOP-class targets under the foreground grant (implied under full access on the LOCAL hand, never on a remote hand until X5) through surface() / openSystemSurface() or a desktop / display verb whose EffectiveTarget resolves to them; `finder:desktop` = the `desktop` target itself, `surface:menubar` = an app's own menu bar (its owner is the app); their owner processes stay ProtectedProcess for apps.quit
391	  "processes": ["com.apple.finder", "com.apple.dock", "com.apple.controlcenter", "com.apple.notificationcenterui", "launchd", "loginwindow", "WindowServer"],   // never quit: ProtectedProcess
392	  "deniedApps": ["com.1password.1password", "com.bitwarden.desktop", "com.dashlane.Dashlane", "com.lastpass.LastPass",
393	                 "com.nordpass.macos", "me.proton.pass.electron", "org.keepassxc.keepassxc", "com.apple.Passwords",
394	                 "com.apple.keychainaccess"],                             // denied unless consent.apps.allow names it
395	  "dangerousChords": ["cmd+q", "cmd+opt+esc", "ctrl+cmd+q"],            // refused without force:true
396	  "secureLabelRegex": "\\b(passw(or)?d|passcode|pin|otp|cvv|cvc|csc|ssn|card number)\\b",   // ONE regex, word-bounded, case-insensitive, applied to labels / titles / placeholders only (never values); the superset of the pre-fold five-word and ten-term lists; every other design file and the acceptance-17 test load it from this table (round-1 fold, k-safety N12)
397	  "secureInputSources": ["IsSecureEventInputEnabled", "kCGSSessionSecureInputPID", "AXSecureTextField", "label:secureLabelRegex"]
398	}
399	```
400
401	Per-OS contents the table test asserts entry by entry (acceptance 60, 61):
402
403	| OS | protected surfaces (never an exec target, any route) | read-only surfaces (reads admitted, exec refused) | system surfaces (the OS shell: desktop-class under the foreground grant) | denied apps (`deniedApps`: refused `ControlRequired{app_scope, denied_app}` unless `consent.apps.allow` names the entry; keyed exactly as the Scope stage keys apps on that OS - round-11 fold, k-safety row 5) | protected processes (never quit) | dangerous chords (need `force`) | secure focus sources |
404	|---|---|---|---|---|---|---|---|
405	| macOS | SecurityAgent, loginwindow, open/save panel service, PrivacySecurity extension, System Settings Privacy pane, Control Center panes and privacy toggles, the owner process of the TCC consent alert / Keychain access sheet / `CFUserNotification` dialogs (candidate `com.apple.UserNotificationCenter`, replaced by the M-track measurement on macOS 15 and 26 - round-6 fold, k-safety N9) | Dock, Spotlight, the Control Center menu-bar items (on macOS 11+ the Wi-Fi / Bluetooth / battery / clock status items are `com.apple.controlcenter` windows) | the desktop (Finder's desktop window = the `desktop` target), Notification Center (`com.apple.notificationcenterui`), an app's own menu bar (`menubar`) | by bundle id: `com.1password.1password`, `com.bitwarden.desktop`, `com.dashlane.Dashlane`, `com.lastpass.LastPass`, `com.nordpass.macos`, `me.proton.pass.electron`, `org.keepassxc.keepassxc`, `com.apple.Passwords`, `com.apple.keychainaccess` (the JSON block above) | Finder, Dock, Control Center, Notification Center, launchd, loginwindow, WindowServer | `cmd+q`, `cmd+opt+esc`, `ctrl+cmd+q` | `IsSecureEventInputEnabled`, `kCGSSessionSecureInputPID`, `AXSecureTextField` or unreadable subrole, the table's `secureLabelRegex` |
406	| Linux X11 / Wayland | polkit agents (`polkit-gnome-authentication-agent-1`, `polkit-kde-authentication-agent-1`, `lxpolkit`), the GNOME Shell's own security surfaces keyed by SURFACE - `gnome-shell:modal` (the built-in polkit `AuthenticationDialog`, the keyring prompt it hosts, `EndSessionDialog`, the shortcuts-inhibit dialog) and `gnome-shell:unlock-dialog` / `gnome-shell:lock-screen` - keyring / `ksecretprompt` prompts, portal consent dialogs, the lock screen / locker (`swaylock`, `hyprlock`, `kscreenlocker_greet`, `i3lock`), gnome-control-center privacy panel (round-6 fold, k-safety B1) | none | `gnome-shell:panel` and `gnome-shell:overview` ONLY (the surface kind read from the senpi extension's `ShellState{sessionMode, modalCount, hitSurface}`, admitted under the grant in `sessionMode:"user"` with `modalCount:0`; without the extension every gnome-shell-owned target is `InvalidTarget{protected_surface}`, and the same when the extension's reply does not arrive within 500 ms, lacks `hitSurface`, is below the engine's interface `version`, or comes from a name owner whose pid is not the hit window's - a non-answer and a same-uid name-squatter both read `gnome_extension_missing`, and the AT-SPI corroboration is a veto, never an admission; round-7 fold, k-safety N2 - `design/d-linux.md` '### Window lists'), the plasmashell panel, the sway / waybar bar (`taskbar` / `system_tray` kinds) | by `WM_CLASS` (X11) / `app_id` (Wayland), the Scope stage's own key: `1password`, `Bitwarden`, `keepassxc` / `org.keepassxc.KeePassXC`, `org.gnome.seahorse.Application`, `kwalletmanager5`, the `org.freedesktop.secrets` prompters (`gnome-keyring` / `kwalletd6` prompt windows); seeds in `protected-targets.linux.json` `deniedApps` (round-11 fold, k-safety row 5) | the compositor / WM (gnome-shell, kwin / kwin_wayland, sway, i3, xfwm4), plasmashell, systemd --user, the session's display manager | `ctrl+alt+backspace`, `ctrl+alt+del`, `ctrl+alt+f1..f12` | AT-SPI `ROLE_PASSWORD_TEXT`, portal secure state, the table's `secureLabelRegex` |
407	| Windows | `consent.exe` (UAC), `logonui`, `winlogon`, `lsass`, `LockApp`, `SecurityHealth*`, the secure desktop (`OpenInputDesktop` != Default), `SystemSettings` privacy pages - the SAME list `design/d-windows.md` '## Identity and permissions' carries | none | the taskbar and tray (`Shell_TrayWnd`, `Shell_SecondaryTrayWnd`), the desktop shell (`Progman`, `WorkerW` = the `desktop` target, so a desktop-icon click lands under the grant - AC-12's Windows leg), the start menu (`StartMenuExperienceHost.exe`), action / notification center (`ShellExperienceHost.exe`) | by image name + Authenticode signer (the Scope stage's Windows key) and by AUMID for the packaged twins: `1Password.exe` (AgileBits), `Bitwarden.exe` (Bitwarden Inc.), `KeePassXC.exe`, `KeePass.exe`, `Dashlane.exe`, `LastPass.exe`, `NordPass.exe`, `Proton Pass.exe`, the Credential Manager control panel (`control.exe /name Microsoft.CredentialManager` / `keymgr.dll` host) and the Microsoft Store AUMIDs of the same managers; seeds in `protected-targets.windows.json` `deniedApps` (round-11 fold, k-safety row 5) | `explorer` shell, `csrss`, `lsaiso`, `winlogon`, `dwm`, `StartMenuExperienceHost`, `ShellExperienceHost`, own helpers | `alt+f4`, `win+l`, `win+d`, `alt+tab`, `win+r`, `win+x`, `win+e`, `ctrl+shift+esc` and modifier supersets | UIA `IsPassword`, `PasswordText` control type, the table's `secureLabelRegex` |
