<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity",
  "metadataVersion" : "0.1.0",
  "role" : "Library",
  "symbol" : {
    "kind" : "Library",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "EndpointSecurity"
  },
  "title" : "Endpoint Security"
}
-->

# Endpoint Security

Develop system extensions that enhance user security.

## Overview

Endpoint Security is a C API for monitoring system events for potentially malicious activity. You can write your client in any language that supports native calls. Your client registers with Endpoint Security to authorize pending events, or receive notifications of events that already occurred. These events include process executions, mounting file systems, forking processes, and raising signals.

Develop your system extension with Endpoint Security and package it in an app that uses the <doc://com.apple.documentation/documentation/SystemExtensions> framework to install and upgrade the extension on the user’s Mac.

## Topics

### Event Monitoring

[Client](/documentation/EndpointSecurity/client)

An opaque type that maintains Endpoint Security client state, and functions related to this type.

[Message](/documentation/EndpointSecurity/message)

A type used by Endpoint Security to notify your client when a monitored action occurs.

[Event Types](/documentation/EndpointSecurity/event-types)

Types used by messages to deliver details specific to different kinds of Endpoint Security events.

[Monitoring System Events with Endpoint Security](/documentation/EndpointSecurity/monitoring-system-events-with-endpoint-security)

Receive notifications and authorization requests for sensitive operations by creating an Endpoint Security client for your app.

### Entitlements

  <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.endpoint-security.client>

### Reference

[EndpointSecurity Constants](/documentation/EndpointSecurity/endpointsecurity-constants)

[EndpointSecurity Data Types](/documentation/EndpointSecurity/endpointsecurity-data-types)

[EndpointSecurity Functions](/documentation/EndpointSecurity/endpointsecurity-functions)

[EndpointSecurity Structures](/documentation/EndpointSecurity/endpointsecurity-structures)

[EndpointSecurity Enumerations](/documentation/EndpointSecurity/endpointsecurity-enumerations)

### Structures

[`struct es_bootstrap_target_type_t`](/documentation/EndpointSecurity/es_bootstrap_target_type_t)

[`struct es_coalition_info_t`](/documentation/EndpointSecurity/es_coalition_info_t)

[`struct es_coalition_jetsam_t`](/documentation/EndpointSecurity/es_coalition_jetsam_t)

[`struct es_coalition_task_role_t`](/documentation/EndpointSecurity/es_coalition_task_role_t)

es_coalition_task_role_t

[`struct es_cs_validation_category_t`](/documentation/EndpointSecurity/es_cs_validation_category_t)

es_cs_validation_category

[`struct es_deadline_miss_mode_t`](/documentation/EndpointSecurity/es_deadline_miss_mode_t)

Deadline miss mode for ES clients

[`struct es_event_bootstrap_check_in_t`](/documentation/EndpointSecurity/es_event_bootstrap_check_in_t)

[`struct es_event_bootstrap_look_up_t`](/documentation/EndpointSecurity/es_event_bootstrap_look_up_t)

[`struct es_event_tcc_modify_t`](/documentation/EndpointSecurity/es_event_tcc_modify_t)

[`struct es_lightweight_code_requirement_t`](/documentation/EndpointSecurity/es_lightweight_code_requirement_t)

[`struct es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/es_tcc_authorization_reason_t)

ess_tcc_authorization_reason_t

[`struct es_tcc_authorization_right_t`](/documentation/EndpointSecurity/es_tcc_authorization_right_t)

ess_tcc_authorization_right_t

[`struct es_tcc_event_type_t`](/documentation/EndpointSecurity/es_tcc_event_type_t)

[`struct es_tcc_identity_type_t`](/documentation/EndpointSecurity/es_tcc_identity_type_t)

es_tcc_identity_type_t

### Variables

[`var ES_BOOTSTRAP_TARGET_TYPE_JOB: es_bootstrap_target_type_t`](/documentation/EndpointSecurity/ES_BOOTSTRAP_TARGET_TYPE_JOB)

[`var ES_BOOTSTRAP_TARGET_TYPE_PROCESS: es_bootstrap_target_type_t`](/documentation/EndpointSecurity/ES_BOOTSTRAP_TARGET_TYPE_PROCESS)

[`var ES_COALITION_TASK_ROLE_EXT: es_coalition_task_role_t`](/documentation/EndpointSecurity/ES_COALITION_TASK_ROLE_EXT)

The task is an extension within its jetsam coalition

[`var ES_COALITION_TASK_ROLE_LEADER: es_coalition_task_role_t`](/documentation/EndpointSecurity/ES_COALITION_TASK_ROLE_LEADER)

The task is the leader (e.g. the application) of its jetsam coalition

[`var ES_COALITION_TASK_ROLE_UNDEF: es_coalition_task_role_t`](/documentation/EndpointSecurity/ES_COALITION_TASK_ROLE_UNDEF)

The task has no specific role within its jetsam coalition

[`var ES_COALITION_TASK_ROLE_XPC: es_coalition_task_role_t`](/documentation/EndpointSecurity/ES_COALITION_TASK_ROLE_XPC)

The task is an XPC service within its jetsam coalition

[`var ES_CS_VALIDATION_CATEGORY_APP_STORE: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_APP_STORE)

[`var ES_CS_VALIDATION_CATEGORY_DEVELOPER_ID: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_DEVELOPER_ID)

[`var ES_CS_VALIDATION_CATEGORY_DEVELOPMENT: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_DEVELOPMENT)

[`var ES_CS_VALIDATION_CATEGORY_ENTERPRISE: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_ENTERPRISE)

[`var ES_CS_VALIDATION_CATEGORY_INVALID: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_INVALID)

[`var ES_CS_VALIDATION_CATEGORY_LOCAL_SIGNING: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_LOCAL_SIGNING)

[`var ES_CS_VALIDATION_CATEGORY_NONE: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_NONE)

[`var ES_CS_VALIDATION_CATEGORY_OOPJIT: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_OOPJIT)

[`var ES_CS_VALIDATION_CATEGORY_PLATFORM: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_PLATFORM)

[`var ES_CS_VALIDATION_CATEGORY_ROSETTA: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_ROSETTA)

[`var ES_CS_VALIDATION_CATEGORY_TESTFLIGHT: es_cs_validation_category_t`](/documentation/EndpointSecurity/ES_CS_VALIDATION_CATEGORY_TESTFLIGHT)

[`var ES_DEADLINE_MISS_MODE_FAIL_CLOSED: es_deadline_miss_mode_t`](/documentation/EndpointSecurity/ES_DEADLINE_MISS_MODE_FAIL_CLOSED)

Deny the operation when client fails to respond, but don’t kill the client

[`var ES_DEADLINE_MISS_MODE_FAIL_OPEN: es_deadline_miss_mode_t`](/documentation/EndpointSecurity/ES_DEADLINE_MISS_MODE_FAIL_OPEN)

Allow the operation when client fails to respond, but don’t kill the client

[`var ES_DEADLINE_MISS_MODE_KILL: es_deadline_miss_mode_t`](/documentation/EndpointSecurity/ES_DEADLINE_MISS_MODE_KILL)

Kill the client when it fails to respond to an auth event (default behavior)

[`var ES_EVENT_TYPE_AUTH_BOOTSTRAP_CHECK_IN: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_AUTH_BOOTSTRAP_CHECK_IN)

[`var ES_EVENT_TYPE_AUTH_BOOTSTRAP_LOOK_UP: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_AUTH_BOOTSTRAP_LOOK_UP)

[`var ES_EVENT_TYPE_AUTH_XPC_CONNECT: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_AUTH_XPC_CONNECT)

[`var ES_EVENT_TYPE_NOTIFY_BOOTSTRAP_CHECK_IN: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_NOTIFY_BOOTSTRAP_CHECK_IN)

[`var ES_EVENT_TYPE_NOTIFY_BOOTSTRAP_LOOK_UP: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_NOTIFY_BOOTSTRAP_LOOK_UP)

[`var ES_EVENT_TYPE_NOTIFY_TCC_MODIFY: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_NOTIFY_TCC_MODIFY)

[`var ES_EVENT_TYPE_RESERVED_0: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_0)

[`var ES_EVENT_TYPE_RESERVED_1: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_1)

[`var ES_EVENT_TYPE_RESERVED_10: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_10)

[`var ES_EVENT_TYPE_RESERVED_11: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_11)

[`var ES_EVENT_TYPE_RESERVED_12: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_12)

[`var ES_EVENT_TYPE_RESERVED_13: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_13)

[`var ES_EVENT_TYPE_RESERVED_14: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_14)

[`var ES_EVENT_TYPE_RESERVED_15: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_15)

[`var ES_EVENT_TYPE_RESERVED_16: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_16)

[`var ES_EVENT_TYPE_RESERVED_17: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_17)

[`var ES_EVENT_TYPE_RESERVED_18: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_18)

[`var ES_EVENT_TYPE_RESERVED_2: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_2)

[`var ES_EVENT_TYPE_RESERVED_3: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_3)

[`var ES_EVENT_TYPE_RESERVED_4: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_4)

[`var ES_EVENT_TYPE_RESERVED_5: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_5)

[`var ES_EVENT_TYPE_RESERVED_6: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_6)

[`var ES_EVENT_TYPE_RESERVED_7: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_7)

[`var ES_EVENT_TYPE_RESERVED_8: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_8)

[`var ES_EVENT_TYPE_RESERVED_9: es_event_type_t`](/documentation/EndpointSecurity/ES_EVENT_TYPE_RESERVED_9)

[`var ES_TCC_AUTHORIZATION_REASON_APP_TYPE_POLICY: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_APP_TYPE_POLICY)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_ENTITLED: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_ENTITLED)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_ERROR: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_ERROR)

[`var ES_TCC_AUTHORIZATION_REASON_MDM_POLICY: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_MDM_POLICY)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_MISSING_USAGE_STRING: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_MISSING_USAGE_STRING)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_NONE: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_NONE)

[`var ES_TCC_AUTHORIZATION_REASON_PREFLIGHT_UNKNOWN: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_PREFLIGHT_UNKNOWN)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_PROMPT_CANCEL: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_PROMPT_CANCEL)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_PROMPT_TIMEOUT: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_PROMPT_TIMEOUT)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_SERVICE_OVERRIDE_POLICY: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_SERVICE_OVERRIDE_POLICY)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_SERVICE_POLICY: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_SERVICE_POLICY)

A system process changed the authorization right

[`var ES_TCC_AUTHORIZATION_REASON_SYSTEM_SET: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_SYSTEM_SET)

User changed the authorization right via Preferences

[`var ES_TCC_AUTHORIZATION_REASON_USER_CONSENT: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_USER_CONSENT)

[`var ES_TCC_AUTHORIZATION_REASON_USER_SET: es_tcc_authorization_reason_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_REASON_USER_SET)

User answered a prompt

[`var ES_TCC_AUTHORIZATION_RIGHT_ADD_MODIFY_ADDED: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_ADD_MODIFY_ADDED)

[`var ES_TCC_AUTHORIZATION_RIGHT_ALLOWED: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_ALLOWED)

[`var ES_TCC_AUTHORIZATION_RIGHT_DENIED: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_DENIED)

[`var ES_TCC_AUTHORIZATION_RIGHT_LEARN_MORE: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_LEARN_MORE)

[`var ES_TCC_AUTHORIZATION_RIGHT_LIMITED: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_LIMITED)

[`var ES_TCC_AUTHORIZATION_RIGHT_SESSION_PID: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_SESSION_PID)

[`var ES_TCC_AUTHORIZATION_RIGHT_UNKNOWN: es_tcc_authorization_right_t`](/documentation/EndpointSecurity/ES_TCC_AUTHORIZATION_RIGHT_UNKNOWN)

[`var ES_TCC_EVENT_TYPE_CREATE: es_tcc_event_type_t`](/documentation/EndpointSecurity/ES_TCC_EVENT_TYPE_CREATE)

[`var ES_TCC_EVENT_TYPE_DELETE: es_tcc_event_type_t`](/documentation/EndpointSecurity/ES_TCC_EVENT_TYPE_DELETE)

[`var ES_TCC_EVENT_TYPE_MODIFY: es_tcc_event_type_t`](/documentation/EndpointSecurity/ES_TCC_EVENT_TYPE_MODIFY)

[`var ES_TCC_EVENT_TYPE_UNKNOWN: es_tcc_event_type_t`](/documentation/EndpointSecurity/ES_TCC_EVENT_TYPE_UNKNOWN)

[`var ES_TCC_IDENTITY_TYPE_BUNDLE_ID: es_tcc_identity_type_t`](/documentation/EndpointSecurity/ES_TCC_IDENTITY_TYPE_BUNDLE_ID)

[`var ES_TCC_IDENTITY_TYPE_EXECUTABLE_PATH: es_tcc_identity_type_t`](/documentation/EndpointSecurity/ES_TCC_IDENTITY_TYPE_EXECUTABLE_PATH)

[`var ES_TCC_IDENTITY_TYPE_FILE_PROVIDER_DOMAIN_ID: es_tcc_identity_type_t`](/documentation/EndpointSecurity/ES_TCC_IDENTITY_TYPE_FILE_PROVIDER_DOMAIN_ID)

[`var ES_TCC_IDENTITY_TYPE_POLICY_ID: es_tcc_identity_type_t`](/documentation/EndpointSecurity/ES_TCC_IDENTITY_TYPE_POLICY_ID)

### Functions

[`func es_exec_entitlements(UnsafePointer<es_event_exec_t>) -> xpc_object_t?`](/documentation/EndpointSecurity/es_exec_entitlements(_:))

[`func es_get_deadline_max_milliseconds(OpaquePointer, es_event_type_t, UnsafeMutablePointer<UInt32>) -> es_return_t`](/documentation/EndpointSecurity/es_get_deadline_max_milliseconds(_:_:_:))

Get the current maximum deadline in milliseconds for a specific event type

[`func es_get_deadline_min_milliseconds(OpaquePointer, es_event_type_t, UnsafeMutablePointer<UInt32>) -> es_return_t`](/documentation/EndpointSecurity/es_get_deadline_min_milliseconds(_:_:_:))

Get the current minimum deadline in milliseconds for a specific event type

[`func es_get_deadline_miss_mode(OpaquePointer, UnsafeMutablePointer<es_deadline_miss_mode_t>) -> es_return_t`](/documentation/EndpointSecurity/es_get_deadline_miss_mode(_:_:))

Get the current deadline miss mode for the specified client

[`func es_new_descendants_client(UnsafeMutablePointer<OpaquePointer?>, es_handler_block_t) -> es_new_client_result_t`](/documentation/EndpointSecurity/es_new_descendants_client(_:_:))

Create a new ES client scoped to descendant processes only.

[`func es_set_deadline_max_milliseconds(OpaquePointer, UnsafePointer<es_event_type_t>, UInt32, UInt32) -> es_return_t`](/documentation/EndpointSecurity/es_set_deadline_max_milliseconds(_:_:_:_:))

Set the maximum deadline in milliseconds for specified auth event types for this client

[`func es_set_deadline_min_milliseconds(OpaquePointer, UnsafePointer<es_event_type_t>, UInt32, UInt32) -> es_return_t`](/documentation/EndpointSecurity/es_set_deadline_min_milliseconds(_:_:_:_:))

Set the minimum deadline in milliseconds for specified auth event types for this client

[`func es_set_deadline_miss_mode(OpaquePointer, es_deadline_miss_mode_t) -> es_return_t`](/documentation/EndpointSecurity/es_set_deadline_miss_mode(_:_:))

Set the deadline miss mode for the specified client

[`func es_sync_client(OpaquePointer, () -> Void) -> es_return_t`](/documentation/EndpointSecurity/es_sync_client(_:_:))

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)