Cisco Duo connector

The Cisco Duo connector lets you manage users, groups, phones, and bypass codes in Cisco Duo, and investigate authentication, administrator, and telephony logs. It uses the Duo Admin API, and the Duo Auth API for step-up authentication challenges.

You can use this connector in Agent Builder and Workflows.

Before you create a Cisco Duo connector:

  • You need an Elastic subscription with Enterprise or higher (or an Elastic serverless project).
  • You need a Cisco Duo account with Owner role privileges to create API applications in the Duo Admin Panel.

You can create connectors in Stack Management → Connectors.

  1. Sign in to the Duo Admin Panel.
  2. Navigate to Applications → Protect an Application.
  3. Find Admin API and select Protect.
  4. Copy the Integration key, Secret key, and API hostname.
  5. Under Permissions, enable Grant resource - Read, Grant resource - Write, Grant read log, and Grant read information.
  6. For the authenticate and preauthUser actions, repeat steps 2-4 for Auth API and copy its integration key and secret key.

Cisco Duo connectors have the following configuration properties:

Duo API hostname
Your tenant-specific Duo API hostname, including https (for example https://api-XXXXXXXX.duosecurity.com). Copy it from the Duo Admin Panel when you create the API application. Kibana requires HTTPS.
Admin API integration key
The integration key (ikey) from the Admin API application in the Duo Admin Panel.
Admin API secret key
The secret key (skey) from the Admin API application. Shown only once when the application is created.
Auth API integration key (optional)
The integration key (ikey) from a separate Auth API application. Required for the authenticate and preauthUser actions.
Auth API secret key (optional)
The secret key (skey) from the Auth API application. Required for the authenticate and preauthUser actions.

Use the Action configuration settings to customize connector networking, such as proxies, certificates, or TLS settings.

You can test connectors when you create or edit the connector in Kibana. The test checks that Kibana can reach Duo and that the Admin API credentials work. It doesn't check the Auth API credentials.

The Cisco Duo connector exposes the following actions:

listUsers
List Duo users, optionally filtered by exact username, exact email, or account status. Returns user IDs, status, and enrollment state. Use to resolve an alert identity to a Duo user_id before performing lifecycle actions. Offset-based pagination: pass offset and limit.
getUser
Get full details for a Duo user by user_id: status, phones, tokens, groups, and last login. Use for identity triage after resolving a user_id via listUsers.
updateUser
Update a Duo user: change status (active, disabled, bypass, locked out), username, email, realname, or notes. The core containment action: set status to disabled to block new Duo authentications (existing sessions are not revoked immediately).
deleteUser (workflow-only)
Permanently delete a Duo user and all associated data including phones, tokens, and bypass codes. This action is irreversible. Workflow-only; not available to Agent Builder.
getAuthenticationLogs
Retrieve authentication log events filtered by time range, with optional user, result, and factor filters. Returns cursor-paginated results. Pass next_offset from metadata.next_offset to retrieve subsequent pages. Requires a 13-digit Unix timestamp in milliseconds for mintime. Rate limit: 120 requests per minute.
createBypassCode (workflow-only)
Generate temporary bypass codes for a Duo user. Codes allow authentication without a second factor during lockout or device loss recovery. Configure count (1-10), validity period in seconds, reuse count, and whether to preserve existing codes. Workflow-only; not available to Agent Builder.
listUserPhones
List phones associated with a Duo user. Use to identify attacker-registered or lost devices that may need removal. Offset-based pagination: pass offset and limit.
deleteUserPhone (workflow-only)
Remove a phone from a Duo user as a device containment step. This removes only the link between the user and the phone. The phone record remains in Duo. Workflow-only; not available to Agent Builder.
getPhone
Get full details for a phone device: type, number, platform, model, activation status, and OS version.
addUserToGroup
Add a Duo user to a group, applying the group authentication policy. Use for quarantine or high-assurance policy assignment.
removeUserFromGroup (workflow-only)
Remove a Duo user from a group, revoking group-scoped authentication policies. Use after incident remediation. Workflow-only; not available to Agent Builder.
listGroups
List Duo groups with IDs and names. Use to resolve a group name to a group_id before adding or removing a user. Offset-based pagination: pass offset and limit.
listUserGroups
List groups a Duo user belongs to. Use to verify group membership after adding or removing the user from a group. Offset-based pagination: pass offset and limit.
getAdministratorLogs
Retrieve administrator activity log events. Use to investigate configuration changes during an incident. Returns cursor-paginated results. Pass next_offset from metadata.next_offset to retrieve subsequent pages. Requires a 13-digit Unix timestamp in milliseconds for mintime. Rate limit: 2 requests per minute.
authenticate (workflow-only)

Send a second-factor authentication challenge to a Duo user via the Auth API. The behavior depends on the factor:

  • push: sends a push notification to the user's enrolled device. The connector waits up to ~60 seconds for the user to respond and returns allow, deny, or fraud. If Duo doesn't return a result before the timeout, the action fails — handle that case on the workflow error path.
  • auto: selects the best available factor automatically.
  • phone: initiates a phone callback challenge. The connector waits for the user to respond.

Requires the Auth API integration key and Auth API secret key in the connector configuration. Either username or user_id is required. This action is workflow-only and is not available to Agent Builder.

preauthUser
Check a Duo user's enrollment state and available authentication factors and devices. Call before authenticate to determine available options. Requires Auth API credentials. Either username or user_id is required.
getTelephonyLogs
Retrieve telephony log events (SMS and phone calls). Use for telephony abuse or fraud investigations. Returns cursor-paginated results. Pass next_offset from metadata.next_offset to retrieve subsequent pages. Requires a 13-digit Unix timestamp in milliseconds for mintime.
listUserTokens
List hardware tokens (HOTP/TOTP/YubiKey) assigned to a Duo user. Use for token-based MFA investigation during an incident. Offset-based pagination: pass offset and limit.