The Cortex XDR Custom SecOps Integration allows you to poll and push adversary-related events to your Cortex XDR deployment. After configuring the integration, your Cortex deployment will be able to receive and process Lumu events. Using it lets you see adversarial activity detected by Lumu, giving your Security Operations team more visibility.
SecOps integration between Cortex XDR and Lumu
Ensure your integration host can communicate with the following hosts. These are required for the operation of this integration.

The integration pushes Lumu adversary-related events into your Cortex XDR deployment after being configured by leveraging the Parsed event API. Once Lumu reports an event, your Cortex XDR deployment will see Lumu detections as alerts.

To create a new role, log in to your Cortex XDR console. Go to Settings > Configurations > Access Management > Roles, and follow these steps.
1. Click on the New Role Button2. Fill in the Role Name and Description fields3. Under the Components tab, go to the CONFIGURATIONS section. Then, change the External Alerts Mapping and Public API items to View/Edit
You need to create an API key dedicated to run the integration script. To create it, go to Settings > Configurations > Integrations > API Keys, and follow these steps.
1. Click on the New Key button2. Under the Role Name field, select the previously created role3. Under the Security Level section, select the Standard option4. Define an expiration date for the key by clicking the Enable Expiration Date checkbox5. Then, copy the generated secret. This secret will not be shown again, make sure you store it in a safe place.6. From the API Keys window, extract the ID number of the created key and Copy the API URL using the button at the upper right corner. Store these values safely, they will be used during the Set up the configuration parameters step.

You must collect the following information from the Lumu portal:
Lumu Defender API key
Company UUID
Log in to your Lumu portal and run the following data collection procedures.
To collect the Lumu Defender API key, refer to the Defender API document.
To collect your Lumu company UUID, log in to your Lumu portal. Once you are in the main window, copy the string below your company name.
#!/usr/bin/env bash
RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
YELLOW='\033[1;33m'
BOLD='\033[1m'
RESET='\033[0m'
info() { echo -e "${CYAN}[INFO]${RESET} $*"; }
success() { echo -e "${GREEN}[OK]${RESET} $*"; }
warn() { echo -e "${YELLOW}[WARN]${RESET} $*"; }
error() { echo -e "${RED}[ERROR]${RESET} $*" >&2; }
prompt() { echo -e "${BOLD}${YELLOW}$*${RESET}"; }
IMG=lumutools/cortex-xdr-secops:latest
INTEGRATION_NAME=lumu-cortex-xdr-secops
INTEGRATION_DIR=${HOME}/CortexXDRSecOps
VOLUME_DATA=${INTEGRATION_DIR}/data:/app/data
VOLUME_CONFIG=${INTEGRATION_DIR}/data/.config.toml:/app/.config.toml:ro
mkdir -p "${INTEGRATION_DIR}/data"
chmod -R o+w "${INTEGRATION_DIR}/data" > /dev/null 2>&1
run_config() {
info "Running configuration script ..."
if docker run --rm -it -v "${INTEGRATION_DIR}/data:/app/data" "${IMG}" bash run_config; then
success "Configuration completed."
else
error "Configuration script failed."; return 1
fi
}
start_integration() {
if [[ ! -f "${INTEGRATION_DIR}/data/.config.toml" ]]; then
error "Please configure the integration first."; return 1
fi
info "Setting up integration '${INTEGRATION_NAME}' ..."
if ! docker container inspect "${INTEGRATION_NAME}" &>/dev/null; then
info "Integration '${INTEGRATION_NAME}' does not exist. Creating ..."
if ! docker create \
-v "${VOLUME_DATA}" \
-v "${VOLUME_CONFIG}" \
--restart unless-stopped \
--log-driver json-file \
--log-opt max-size=30m \
--log-opt max-file=3 \
--name "${INTEGRATION_NAME}" \
"${IMG}" bash run_component; then
error "Failed to create integration."; return 1
fi
else
warn "Integration '${INTEGRATION_NAME}' already exists. Skipping create."
fi
if docker start "${INTEGRATION_NAME}"; then
success "Integration started."
else
error "Failed to start integration."; return 1
fi
}
check_status() {
info "Checking status of integrations ..."
if [[ ! -f "${INTEGRATION_DIR}/data/.status.ndjson" ]]; then
error "Status check failed. Verify if your integration has been deployed."; return 1
fi
if docker run --rm -it -v "${VOLUME_DATA}":ro "${IMG}" bash run_status; then
success "Status check completed."
else
error "Status check failed."; return 1
fi
}
show_logs() {
info "Showing logs for '${INTEGRATION_NAME}' ..."
docker logs --tail 100 -f "${INTEGRATION_NAME}"
}
usage() {
echo ""
prompt " CORTEX XDR (SECOPS) INTEGRATION MANAGEMENT"
echo -e " ${BOLD}Usage:${RESET} $0 "
echo ""
echo -e " ${CYAN}config${RESET} Run configuration"
echo -e " ${CYAN}start${RESET} Start integration"
echo -e " ${CYAN}status${RESET} Check integration status"
echo -e " ${CYAN}logs${RESET} Show integration logs"
echo ""
}
case "${1}" in
config) run_config ;;
start) start_integration ;;
status) check_status ;;
logs) show_logs ;;
*) usage
[[ -n "${1}" ]] && error "Unknown command '${1}'."
exit 1 ;;
esac
You must fill in the configuration data carefully. If there are any mistakes or missing data, you’ll receive errors during the deployment and runtime of the integration.
We strongly recommend correcting any credential errors before attempting to start the integration using the start command.
If you have run this process before, you may receive warning messages about the existence of components. To ensure you have the latest version of the integration, we recommend removing the existing integration containers before entering the start command.
Monitor the console output for any unexpected errors. If there are any errors present, fix them and run the command again. Check the Troubleshooting section for further reference.
We kindly request you to, when issuing a support case, attach the integration logs collected using the steps described in this section.
The integration starts syncing new incidents from the moment you activate the integration, it does not work retroactively. Make sure your integration script is running all the time to ensure maximum coverage.