Untrusted output, strict boundaries
A terminal runs real shells and prints untrusted text from build logs, repositories, and AI agents. Hawking treats terminal output as untrusted by default and runs with no cloud account or telemetry.
Local terminal boundaries
Hawking is unsandboxed on macOS because spawning user shells and developer tools requires full PTY execution. Within that model, each subsystem narrows what untrusted terminal streams and web views can trigger.
| Escape sequences and clipboard | Clickable terminal links are restricted to http, https, and mailto. OSC 52 clipboard access is copy-only; clipboard read queries from terminal output are never answered. |
|---|---|
| Shell integration and agent hooks | Shell scripts are written inside ~/Library/Application Support/Hawking/shell-integration. Your .zshrc and .bashrc files are sourced, never modified. Agent hook signals require a per-launch random token (HAWKING_NOTIFY_TOKEN) so printed output cannot spoof alerts. |
| Browser pane isolation | Only web schemes load inside the workspace browser pane. Custom URL schemes and popups open in your default macOS browser. No JavaScript bridge is exposed to the host app. |
| Lock-screen notifications | macOS notification banners carry only the workspace name and agent state. Command output and assistant replies are never included in notification text. |
| State persistence and exit | Workspace layout writes are atomic with a .bak backup, and unreadable files are quarantined aside rather than crashing launch. Child shell processes are terminated cleanly when Hawking quits. |
| Supply chain and review status | Hawking links one third-party Swift package, SwiftTerm, pinned to an exact version under the MIT License. Everything else uses Apple system frameworks. These controls reflect the author's security review; independent external audit and Apple notarization are still open items. |
In testing
Hawking Remote security model
Hawking for iPhone lets you see your Mac’s terminals and answer your agents when you are away from your desk. It is in testing. Below is how it is locked down, in plain words.
| Off by default, outbound only | Remote access is disabled by default. When you turn it on, your Mac opens no incoming ports. Instead, the Mac makes an outbound encrypted WebSocket connection (wss:// outside local networks) to the relay. |
|---|---|
| End-to-end encrypted | Your Mac and iPhone authenticate each other with Ed25519 identity keys during the HR1 handshake and encrypt every record after it. Every message carries a strict sequential 64-bit counter and authenticated header; any out-of-order or tampered frame closes the session at once. Every reconnect negotiates fresh keys and sends a fresh pane snapshot. |
| Blind relay | The relay sees only opaque routing identifiers and ciphertext. It cannot read terminal output, workspace names, or keystrokes, and it cannot inject commands. It stores no history, disables compression, and logs no payloads, tokens, or URLs. |
| Verified pairing | Opening the pairing sheet requires local authentication on your Mac. A pairing code holds a single-use random secret that expires after 120 seconds. Both your Mac and iPhone derive and display the same 6-digit verification code from the handshake transcript, and you must click Allow on the Mac. Each pairing posts a macOS notification. |
| Phone unlock, Mac enforcement | A connected phone starts in view-only mode. To type, the phone asks to unlock: your Mac sends a single-use random challenge valid for 30 seconds, and your iPhone signs the session transcript and challenge with a P-256 key inside the Secure Enclave gated by Face ID. Your Mac verifies that signature and enforces typing; it never trusts the phone interface to gate input. |
| Short typing leases and clean input | Once unlocked, a typing lease expires after 5 minutes of inactivity or 30 minutes total, and ends immediately on disconnect, phone lock, app backgrounding, device revocation, or clicking Lock on the Mac. Only one phone can hold a typing lease at a time. On paste, your Mac strips raw escape and control bytes and uses bracketed paste when supported. |
| Keychain storage | Identity keys, pairing secrets, and the Mac device trust list live in the Apple Keychain (device-only and non-synchronising on iPhone; service dev.hawking.terminal.remote on Mac), never in plain JSON or UserDefaults. |
See also our Privacy policy for what data stays on your Mac.