Cortex XDR es una plataforma avanzada de protección de endpoints que integra capacidades de detección, prevención y respuesta. Instalar Cortex XDR en dispositivos macOS a través de tu solución de gestión de dispositivos móviles (MDM) permite un despliegue centralizado y asegura que todos los endpoints estén protegidos sin necesidad de instalaciones manuales.
Esta guía proporciona instrucciones paso a paso para instalar Cortex XDR de forma silenciosa en macOS, incluyendo cómo desplegar el paquete de instalación necesario y configurar extensiones del sistema y permisos para una experiencia fluida del usuario.
Requisitos #
Antes de desplegar Cortex XDR en dispositivos macOS mediante Applivery, asegúrate de contar con lo siguiente:
-
Paquete del cliente Cortex XDR (
.pkg
). -
Distribution ID y Cloud ELB Address (desde tu panel de Cortex XDR).
-
Script de activación (para licenciar el agente).
-
Política de Full Disk Access (mediante perfil de configuración).
-
Perfil
.mobileconfig
personalizado de Cortex XDR. -
1 licencia de Applivery para la Distribución de Apps.
Preparar Cortex XDR #
Para desplegar Cortex XDR utilizando Applivery, deberás subir el paquete comprimido de la aplicación (.zip
) a la sección de Distribución de Apps y configurarlo con un script de activación previo a la instalación.
Primero, descarga el instalador de .pkg
de Cortex XDR desde tu panel de control de Cortex XDR y copia tu Distribution ID y Cloud ELB Address, ya que los necesitarás más adelante para el script de activación.
Una vez descargado, comprime el archivo .pkg
haciendo clic derecho sobre él y seleccionando Comprimir, lo que generará el archivo .zip
necesario para Applivery.
A continuación, inicia sesión en el panel de Applivery y navega hasta la sección de Distribución de Apps. Desde allí, sigue los pasos descritos en nuestra documentación:

Configurar la política de Cortex XDR #
Una vez en el panel de control de Applivery, dirígete a la sección Gestión de Dispositivos y selecciona Políticas (1). Selecciona la política donde desees desplegar la app. Desde el menú lateral izquierdo, accede a la sección Apps (2) y haz clic en el botón + Añadir App (3).
En el modal que se abrirá, selecciona la pestaña Applivery (4) para continuar con la configuración.
Establece la plataforma como macOS (5), selecciona Tu Workspace (6) como origen de la app y busca Cortex XDR en el desplegable de aplicaciones (7). Para la versión a instalar, selecciona Última (8) para asegurarte de que siempre se despliegue la última versión.

Continúa al siguiente paso y elige el modo de instalación según tu estrategia: Instalación forzosa, Requerido para la inscripción o Disponible.
En la sección Configuración, selecciona Pre-instalación (9) y pega tu script de activación, asegurándote de reemplazar los valores de ejemplo por tu propio Distribution ID y Cloud ELB Address.

Script de activación #
#!/bin/bash
# Get current session user
currentUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }')
#Cortex XDR Distribution ID and Cloud Adress <---- MODIFY VARIABLES WITH YOURS
distribution="DISTRIBUTION_ID"
cloud="CLOUD_ADRESS" # https:// format
# Path where Config.xml will be saved
folderPath="/Users/$currentUser/Library/Application Support/auditApps"
filePath="$folderPath/Config.xml"
# Ensure auditApps folder exists and adjust permissions
sudo mkdir -p "$folderPath"
sudo chown "$currentUser" "$folderPath"
sudo chmod 700 "$folderPath"
# Write content to Config.xml using cat
sudo cat << EOF > "$filePath"
$distribution
$cloud
EOF
# Adjust file permissions
sudo chown "$currentUser" "$filePath"
sudo chmod 600 "$filePath"
sudo installer -applyChoiceChangesXML "/Users/$currentUser/Library/Application Support/auditApps/Config.xml" -pkg "/Users/$currentUser/Library/Application Support/auditApps/Cortex XDR.pkg" -target /
# Verify if the file was created successfully
if [[ -f "$filePath" ]]; then
echo "Config.xml created at $filePath"
else
echo "Error creating Config.xml"
exit 1
fi
Finalmente, haz clic en Guardar cambios para aplicar y guardar la configuración de tu política.
Perfil .mobileconfig personalizado de Cortex XDR #
Para aplicar la configuración personalizada, navega hasta la política correspondiente y haz clic en + Añadir configuración (10) desde el menú lateral izquierdo.
Luego, selecciona el botón + Importar (11) y pega el contenido proporcionado del archivo .xml
en el editor.
Una vez completado este paso, asegúrate de hacer clic en Guardar cambios para aplicar la configuración.

PayloadContent
PayloadDisplayName
Cortex XDR Privacy Preferences Policy Control
PayloadIdentifier
com.apple.TCC.configuration-profile-policy.7388C706-49BA-4067-BADE-8D031B084B69
PayloadType
com.apple.TCC.configuration-profile-policy
PayloadUUID
7388C706-49BA-4067-BADE-8D031B084B69
PayloadVersion
1
Services
Accessibility
Allowed
CodeRequirement
identifier "com.paloaltonetworks.cortex.agent" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = PXPZ95SK77
Identifier
com.paloaltonetworks.cortex.agent
IdentifierType
bundleID
StaticCode
SystemPolicyAllFiles
Allowed
CodeRequirement
identifier "com.paloaltonetworks.traps.securityextension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = PXPZ95SK77
Identifier
com.paloaltonetworks.traps.securityextension
IdentifierType
bundleID
StaticCode
Allowed
CodeRequirement
identifier pmd and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = PXPZ95SK77
Identifier
/Library/Application Support/PaloAltoNetworks/Traps/bin/pmd
IdentifierType
path
StaticCode
AllowUserOverrides
AllowedSystemExtensions
PXPZ95SK77
com.paloaltonetworks.traps.securityextension
com.paloaltonetworks.traps.networkextension
PayloadDisplayName
Cortex XDR System Extensions
PayloadIdentifier
com.apple.system-extension-policy.93526FBD-2421-4402-9CAF-210780E2D0FF
PayloadType
com.apple.system-extension-policy
PayloadUUID
93526FBD-2421-4402-9CAF-210780E2D0FF
PayloadVersion
1
FilterDataProviderBundleIdentifier
com.paloaltonetworks.traps.networkextension
FilterDataProviderDesignatedRequirement
identifier "com.paloaltonetworks.traps.networkextension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = PXPZ95SK77
FilterGrade
firewall
FilterPacketProviderBundleIdentifier
com.paloaltonetworks.traps.networkextension
FilterPacketProviderDesignatedRequirement
identifier "com.paloaltonetworks.traps.networkextension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = PXPZ95SK77
FilterPackets
FilterSockets
FilterType
Plugin
PayloadDescription
Content Filter for the Cortex XDR agent network extension
PayloadDisplayName
Cortex XDR Network Content Filter
PayloadIdentifier
com.apple.webcontent-filter.CA9C208A-EC6D-4565-864D-02B30DE9D56A
PayloadType
com.apple.webcontent-filter
PayloadUUID
CA9C208A-EC6D-4565-864D-02B30DE9D56A
PayloadVersion
1
PluginBundleID
com.paloaltonetworks.cortex.app
UserDefinedName
Cortex XDR Network Filter
NotificationSettings
AlertType
1
BadgesEnabled
BundleIdentifier
com.paloaltonetworks.traps-agent
CriticalAlertEnabled
GroupingType
0
NotificationsEnabled
PreviewType
0
ShowInCarPlay
ShowInLockScreen
ShowInNotificationCenter
SoundsEnabled
AlertType
1
BadgesEnabled
BundleIdentifier
com.paloaltonetworks.cortex.agent
CriticalAlertEnabled
GroupingType
0
NotificationsEnabled
PreviewType
0
ShowInCarPlay
ShowInLockScreen
ShowInNotificationCenter
SoundsEnabled
PayloadDisplayName
Cortex XDR Notifications
PayloadIdentifier
com.apple.notificationsettings.FE495ADF-1E68-4486-9BB6-0E75D6C3177E
PayloadType
com.apple.notificationsettings
PayloadUUID
FE495ADF-1E68-4486-9BB6-0E75D6C3177E
PayloadVersion
1
PayloadDisplayName
Cortex XDR Managed Login Items
PayloadIdentifier
com.apple.servicemanagement.1645DB60-CBC6-4AE2-A679-BC52DD4C85CE
PayloadType
com.apple.servicemanagement
PayloadUUID
1645DB60-CBC6-4AE2-A679-BC52DD4C85CE
PayloadVersion
1
Rules
Comment
Allows Cortex XDR launch daemons and launch agents
RuleType
LabelPrefix
RuleValue
com.paloaltonetworks.cortex
TeamIdentifier
PXPZ95SK77
PayloadDescription
Cortex XDR Config: PPPC + SE + Content Filter + Notifications + BTM
PayloadDisplayName
Cortex XDR Agent Unified Config Profile v5
PayloadIdentifier
com.paloaltonetworks.cortex.AA16E926-D153-4B2E-B4CC-342BB
PayloadOrganization
Palo Alto Networks
PayloadRemovalDisallowed
PayloadScope
System
PayloadType
Configuration
PayloadUUID
AA16E926-D153-4B2E-B4CC-342BB
PayloadVersion
1
TargetDeviceType
5