﻿# macOS Agent, privacy-guard and performance verification — December 3, 2026

[中文](../../zh-CN/reference/macos-verification-2026-12-03.md) · [Evidence index](verification.md) · [Self-check guide](../protection/verify.md)

On this Mac, an already authenticated Codex CLI completed an allowed read, model call and workspace write through FinShield `run` with an explicit host-network wrapper policy. The same Agent, under that policy, read a read-only fixture, failed to overwrite or delete it, failed to read undeclared deny and synthetic-credential files, failed to write outside the workspace, and posted to an owned loopback receiver. The advertised `finsafe codex` privacy-guard entry did not complete a model request: Codex rejected the intercepting TLS certificate. A defined 1 MiB startup/file workload was measured on the same host.

This record reuses the personal-CLI component observations already reported in [#110](https://github.com/finogeeks/finsafe/issues/110#issuecomment-7372339261). Those CLI results are not a complete-Agent task. Hermes remained unauthenticated (`Invalid refresh token` / Nous Portal). Claude Code was not logged in. No token was requested or published.

## Environment and artifacts

Tests ran on December 3, 2026, Asia/Shanghai, on macOS 26.6.1 (25G76), Darwin 25.6.0, arm64, Apple M5 (10 cores), 16 GiB memory. `/usr/bin/sandbox-exec` was present. This was a working laptop, not a dedicated benchmark host.

| Artifact or entry | Recorded condition |
| --- | --- |
| Public package | [v0.11.85](https://github.com/finogeeks/finsafe/releases/tag/v0.11.85) `finshield-0.11.85-macos-arm64.tar.zst`; SHA-256 `38fbe07955cea277e640db66c8f32b6e88212e2d37135fddf00b5f25ae21569a` |
| Executable | `finsafe 0.11.48`; SHA-256 `2f42e9f453e72058937e09ea8b334c712176b24f3d24568c725fe68012deb978`; reused from v0.11.48, `tier1-only` |
| `probe` / `doctor` | host macos aarch64; 0 error, 0 warn, 2 info (`bwrap_unavailable_on_host`, wrapper compiler v2) |
| Codex | Native CLI 0.152.0; `codex login status` reported `Logged in using ChatGPT`. The configured default `gpt-6.2-sol` was not available to that account. The supported-model control used `gpt-5.6-luna` for these invocations only |
| Hermes | 0.21.0; Nous Portal not logged in. Not used as a complete-Agent entry |
| Fixtures | Disposable workspace, read-only directory, denied directory, synthetic credential file at a custom location, owned loopback receiver on `127.0.0.1:18766` |

User configuration, global permissions and credentials were not changed. `--dangerously-bypass-approvals-and-sandbox` was used only so Codex would execute tools under the FinShield boundary rather than its own sandbox. That flag is Codex's documented mode for an externally sandboxed environment; it is not a FinShield setting.

## Advertised `finsafe codex` privacy-guard entry

`finsafe help` advertises `hermes|codex|pi|finclaw` as launching the named agent with the privacy guard on and no policy file. A `finsafe codex exec` trial compiled `template:mac-seatbelt` with `host_via_proxy`, `privacy_guard` enabled, `tls_terminate` true and `on_uninspectable` deny. The internal proxy plan recorded `network.allowlist: "*"`.

Codex started a thread, then failed TLS to ChatGPT:

```text
invalid peer certificate: UnknownIssuer
```

The stream targeted `wss://chatgpt.com/backend-api/codex/responses`. After certificate failures it reported `Reconnecting... waiting for network (Connection failed: error sending request)`. No workspace marker file was created. The local privacy-proxy log contained only `pii_detector_readiness=tier1_only reason=detector_assets_not_installed`.

This is a failed complete-Agent task on the advertised privacy-guard entry, not proof that file tools were blocked. A CA was not installed into the user trust store; that would have been a global trust change.

## Complete-Agent file and host-network checks through `run`

A separate explicit wrapper YAML used `network: host` (no privacy_guard). `finsafe --policy <yaml> run` launched Codex `exec`. `doctor` reported Seatbelt as the local wrapper. `fallback_used=false`.

An ordinary baseline with `gpt-5.6-luna` returned `FINSHIELD113-BASELINE`. The earlier default-model failure (`gpt-6.2-sol` / `model_not_in_accessible_catalog`) is retained and is not a file-enforcement result.

| Operation | Agent tool observation | Independent host check |
| --- | --- | --- |
| Read workspace `test-source.py`, write `allowed-agent.txt` | Shell read succeeded; file-change tool created the file; marker `FINSHIELD113-R1-OK` present | Host read the file; final line was `FINSHIELD113-R1-OK` |
| Read read-only fixture | `cat` returned the synthetic marker | Original bytes unchanged |
| Overwrite / delete read-only fixture | File-change update failed; `rm: … Operation not permitted` | Original SHA-256 unchanged; file present |
| Read undeclared denied fixture | `cat: … Operation not permitted` | File present; original bytes unchanged |
| Read custom synthetic credential file | `cat: … Operation not permitted` | Original synthetic bytes unchanged |
| Write outside the workspace | File-change add failed | Escape file absent |
| POST to owned loopback receiver | `curl` returned `owned-receiver-ok` | Receiver log stored `FINSHIELD113-NET-OK` |

Writing Codex's `--output-last-message` path outside the writable workspace also failed with `Operation not permitted`. That is confinement of a side file, not a failed task.

`self-confine -- /bin/echo probe` printed `probe` after `execing broker`. A separate `self-confine` write to the outside path failed with `Operation not permitted`; the file was absent.

## Network and PII on this host

Local `pii detect` matched synthetic `11010519491231002X` as `cn.resident_id`. `privacy verify --file` on that sample returned `protected=true`, `action=rewrite`, `sample_forwarded_unchanged=false`, with readiness `tier1_only` / `detector_assets_not_installed`. The public example string `11010119900101123X` produced no finding. These are local CLI/component checks.

Through the host-network Codex entry, a user message containing `11010519491231002X` led the Agent to POST that original string to the owned receiver. Host-network `run` did not rewrite tool HTTP. Combined with the `finsafe codex` TLS failure above, real-Agent model-request inspection on this ChatGPT Codex path is a delivery limit, not a pass.

`#110` already recorded host-mode loopback allow, optional Seatbelt port deny, `network: none`, and `visual-sandbox` allowlist as component checks. Those are not repeated as new complete-Agent results.

## Records, resources and lifecycle

`--audit` on a denied `cat` reported `No Seatbelt deny events detected in the kernel log` while stderr showed `Operation not permitted`. `explain` on a captured envelope reported `No classified sandbox denials found in the attestation`. Enforcement was visible; classification did not match. This preserves the `#110` gap.

A `run` of `/bin/sleep 30` stopped after `SIGTERM` to the wrapper; `/bin/sleep 30` remained running until cleaned up. `#110` memory/pids/cpu non-enforcement and timeout-killed short tasks are retained; they were not re-inferred from Linux.

Device recording was not authorized.

## Defined local performance workload

The workload started `/bin/sh`, ran `shasum -a 256` on a fixed 1 MiB file (bytes 0–255 repeated 4,096 times) and wrote the checksum to an allowed output. Ordinary and protected `run` used the same script, input, host and binary. The parent measured wall time with Python `perf_counter` from process creation through exit. Each condition had one excluded warm-up, then ten measured repetitions in alternating ordinary/protected pairs. All 20 measured outputs matched the expected digest.

| Condition | Measured repetitions | Median | Minimum–maximum |
| --- ---: | ---: | ---: | ---: |
| Ordinary `shasum` | 10 | 0.016533 s | 0.015254–0.029675 s |
| FinShield 0.11.48 `run` | 10 | 0.040028 s | 0.038390–0.045500 s |

These times apply to this startup-and-file workload on this Mac. They do not measure model latency, detector accuracy or token cost. They do not establish Linux or Windows performance.

## Same-day follow-up: wrapper YAML suites and `self-confine`

Later on December 3, 2026, the same public v0.11.85 archive (`finsafe 0.11.48`) ran extra wrapper-YAML suites. They do not replace the authenticated Codex `gpt-5.6-luna` complete-Agent rows above.

| Operation | Observed result | Independent check |
| --- | --- | --- |
| Codex 0.152.0 `--version` under `run` | Version printed | Not a model task |
| Claude Code 2.1.212 `--version` under `run` | Version printed | Not logged in for oneshot |
| Hermes 0.21.0 `--version` via the bash wrapper | Failed: Seatbelt denied `libreadline` | Use the Python interpreter under the Hermes install as the launch target |
| Hermes 0.21.0 `--version` via that Python interpreter | Version printed | Still not a Nous login |
| Isolation YAML: workspace write | Marker file present | Host read the file |
| Isolation YAML: undeclared custom credential | Denied | Synthetic marker absent |
| Isolation YAML: write outside the workspace | Denied; file absent | Host checked the path |
| `network: none` | curl 6 or 7 | No fetched body |
| `self-confine -- /bin/echo probe` | Printed `probe` | Broker exec completed |
| `self-confine` read of `~/.ssh/id_rsa` | Denied (`Operation not permitted` / sandbox) | No private key material in stdout |
| `self-confine` write outside the workspace | Denied; file absent | Host checked the path |
| Hermes oneshot / workspace write (SC-3, SC-5) | No marker | `No access token found for Nous Portal login` |
| Codex `exec` with `--model gpt-4o` or `o4-mini` | No marker | ChatGPT catalog: `model_not_in_accessible_catalog` (same class as `gpt-6.2-sol`). The complete-Agent record remains `gpt-5.6-luna` |
| Claude `-p` oneshot | No marker | `Not logged in · Please run /login` |

OpenCode and agy were not installed. No credential or home path is published.

## Configuration activation

A later trial on the same host, archive and executable measured when a saved wrapper YAML change takes effect. The editing entry was the file passed to `finsafe --policy`. `finsafe --help` on 0.11.48 has no macOS apply/reload command; `prepare` is Windows-only. Fixtures were owned directories outside `/tmp`. `fallback_used=false`.

| Step | Observation |
| --- | --- |
| Writable target via `run` | Source read, workspace write and target write completed (inner 0). Digest `61dff4ee17ce6421d329c583e278ca6172c136c7b6123a2dc5c88330121bd8e0` |
| Save the same file, keep the old `run` | Changing only the target path to `read_only_paths` did not stop the already running process from writing (inner 0) |
| New `run` of that file | Digest `77d0972cc8d143bf8a0ebf92f73ed8f44919ca219cdee08b7c942489efbfbfb5`. Target read succeeded. Target write failed with `Operation not permitted`; original marker SHA-256 unchanged. Workspace write succeeded |
| Undeclared existing fixture | `cat` failed with `Operation not permitted` when the path was omitted from the policy |
| Isolated invalid YAML | Wrapper exit 2, `YAML syntax error: did not find expected ',' or ']'`. No child file. Relaunching the last valid policy recovered |
| `self-confine` separately | Writable launch wrote the target (digest `fd81937f…`). A new read-only launch denied the write with `Operation not permitted` (digest `546599f1…`) and still allowed the read |
| Codex 0.152.0 host-network `run` | Same digest pair. Writable policy: Agent wrote `FINSHIELD102-R1-OK` and `FINSHIELD102-TARGET-OK`. New read-only launch: Agent `cat` succeeded; `printf … > marker.txt` exited 1 with `Operation not permitted`; workspace file `FINSHIELD102-RO-WS-OK`; host marker unchanged |

Codex used its documented `--dangerously-bypass-approvals-and-sandbox` so tools executed under FinShield. That is not a FinShield setting. No OS/FinShield authorization prompt and no content-approval UI occurred on this host-network path. `finsafe codex` privacy-guard was not re-run. Hermes remained unauthenticated. Test children exited; leftover wrapper pid was none.

Canonical reader steps: [configuration activation](../protection/configuration.md#personal-cli-on-macos-and-linux).

## Evidence and cleanup

This page publishes sanitized outcomes, versions, method and limits. Raw envelopes, tool streams, timing samples and fixture hashes remain in the operator's local capture. Disposable marker files were removed after the final host-side checks. Test children were allowed to exit or stopped by their owning runner. Policies, credentials and global security settings were preserved.
