Supported per-operation fresh administrator authentication evidence in macOS

This thread has been locked by a moderator; it no longer accepts new replies.

We are designing a macOS privileged helper for attended local administrative operations. Each operation must require a new native administrator authentication, separate protected confirmation of the exact operation, and durable single-use consumption. The app must never collect administrator passwords. A successful right evaluation or an existing administrative session alone is insufficient.

In an isolated arm64 macOS VM (build 26B131), we tested a custom inert Authorization Services right with class=user, group=admin, authenticate-user=true, shared=false, timeout=0, allow-root=false. The noninteractive request was denied and cancellation was observed. A subsequent interactive request displayed a dialog without the expected custom prompt token; the test stopped without establishing positive exact consent. The temporary right has been removed. No privileged effect was performed.

We reviewed ES_EVENT_TYPE_NOTIFY_AUTHENTICATION, ES_EVENT_TYPE_NOTIFY_AUTHORIZATION_PETITION, and ES_EVENT_TYPE_NOTIFY_AUTHORIZATION_JUDGEMENT and the corresponding SDK structures. Audit tokens identify processes, but we could not identify a documented per-evaluation correlation identifier joining a specific authentication event to a particular right evaluation.

  1. Is there a supported public API or documented policy contract that guarantees a fresh native administrator authentication (not a cached credential or an existing session) for a specific custom right evaluation?
  2. If so, how can the trusted helper verify freshness, the authenticated administrator identity or membership, and association with that particular evaluation, without handling credentials?
  3. Is there a supported causal identifier or documented correlation guarantee for the three Endpoint Security notifications, including concurrent requests and lost events? If an authorization plug-in or AuthorizationCopyInfo is relevant, what guarantees are documented for freshness and provenance of the data returned?
  4. If no such mechanism is supported, is there an Apple-recommended architecture meeting these requirements without weakening them?

We are asking for API semantics and a supported design, not a workaround for security controls. We can provide a minimal inert reproducer if needed.

Answered by DTS Engineer in 919218022

I’m not sure why you opened three threads for the same issue, but I’m going to focus on your first one.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I’m not sure why you opened three threads for the same issue, but I’m going to focus on your first one.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"