Duo Security (Expanded Cloud)
Duo Security is a Multi-Factor Authentication (MFA) and Single Sign-On (SSO) provider. The Duo Security Expanded Cloud event source connects SIEM (InsightIDR) directly to the Duo Admin API from the Rapid7 cloud, so no collector is required.
Phased rollout
Expanded cloud event sources are being made available through a phased rollout and may not yet be visible to all users. If you don’t see these event sources, your organization hasn’t yet received access. Existing event source functionality remains unchanged in the meantime.
Rapid7 collects these logs:
| Log type | Duo endpoint | Where data appears |
|---|---|---|
| Authentication Logs | /admin/v2/logs/authentication | Log Search and Agentic SOC identity telemetry |
| Administrator Activity Logs | /admin/v2/logs/activity | Log Search |
| Trust Monitor Events | /admin/v1/trust_monitor/events | Log Search (unparsed). Available only on Duo plans that include Trust Monitor. |
Duo API changes
This event source collects administrator activity from the Duo Admin API version 2 Activity endpoint (/admin/v2/logs/activity). It doesn’t use the deprecated Admin API version 1 administrator logs endpoint.
Duo is retiring Trust Monitor. Support ends on January 31, 2027.
To set up Duo Security:
- Review How Agentic SOC uses Duo data.
- Review Before you begin and complete any prerequisite steps.
- Configure Duo Security to send data to SIEM (InsightIDR).
- Configure SIEM (InsightIDR) to collect data from the event source.
- Test the configuration.
You can also:
How Agentic SOC uses Duo data
Agentic SOC uses Duo data in these ways:
- Duo authentication logs provide user identity telemetry, including who authenticated, from which device and location, with which factor, and whether access was granted or denied.
- Detection rules that match Duo logs produce Signals. The AI clustering engine groups those Signals into Alerts and extracts key entities.
- Full autonomous AI investigation applies only to Microsoft Cloud, CrowdStrike Falcon, and SentinelOne. Duo Alerts don’t show the AI Investigation overview or Playbook tabs.
Before you begin
To set up the event source, you need:
- A Duo account with access to the Admin API
- The Owner administrator role in Duo, which is required to create Admin API applications
- New Admin API credentials created for this event source
- A Duo plan that includes Trust Monitor, to collect Trust Monitor events (optional)
Configure Duo Security to send data to SIEM (InsightIDR)
Task 1: Create an Admin API application
Create a new Admin API application in Duo. SIEM (InsightIDR) uses the credentials of this application to collect logs.
To create the Admin API application:
- From the Duo Admin Panel, go to Applications > Protect an Application.
- Search for Admin API, then select Protect.
- Enter a recognizable name for the application, for example
Rapid7 SIEM.
Task 2: Grant API permissions
Grant the application permission to read logs. SIEM (InsightIDR) needs this permission for all 3 log types.
To grant the permission:
- From the Permissions section, select Grant read log.
- Select Save Changes.
Task 3: Copy the application credentials
Copy these values from the Admin API application:
- Integration key
- Secret key
- API hostname, for example
api-xxxxxxxx.duosecurity.com
You enter these values in SIEM (InsightIDR) in the next section.
Configure SIEM (InsightIDR) to collect data from the event source
Create the event source in SIEM (InsightIDR) and add a connection that uses the Duo credentials.
To add the Duo Security event source:
-
From Command Home, go to Data Connectors > Data Collectors.
-
Go to the Event Sources tab, then select Add Event Source.
-
Do one of the following:
- Search for Duo in the event sources search bar.
- In the Product Type filter, select Cloud Service.
-
Select the Duo event source tile.
-
Enter a name for the event source. Log Search uses this name for the log that contains the event data.
-
Select Add a New Connection. If no connections exist, select Create a New Connection. Then:
- Enter the API Hostname from Duo, for example
api-xxxxxxxx.duosecurity.com. - Enter the Integration Key.
- From the credential section, select Add Credential, enter a name and description, and enter the Duo Secret Key.
- For Product Access, select All Rapid7 Products.
- Select Save.
When you save the connection, SIEM (InsightIDR) runs a connection test:
- The test checks the credentials against the authentication logs endpoint and fails if the keys or hostname are incorrect.
- The test then checks the administrator activity and Trust Monitor endpoints and reports the result for each. A failure on either endpoint doesn’t fail the test. A Not available result for Trust Monitor is expected on most accounts.
- Enter the API Hostname from Duo, for example
-
From Resource Collection, select the logs to collect. All options are selected by default:
- Authentication Logs
- Administrator Activity Logs
- Trust Monitor Events
-
Select Save to complete the configuration.
Test the configuration
Confirm that Duo data reaches SIEM (InsightIDR) and appears in Agentic SOC.
To test the configuration:
- From the event source, check that each log type has its own healthy row: Authentication Logs, Administrator Activity Logs, and Trust Monitor Events. On accounts without Trust Monitor, the Trust Monitor row stays healthy and collects no data. This behavior is expected.
- Wait 5–10 minutes for the first poll to finish.
- In Log Search, select the log for the event source from the Ingress Authentication, SSO, and Cloud Service Activity log sets. Set the time range to Last 30 minutes, then select Run.
- On the Signals and Alerts pages, check that Signals from Duo detections show Duo as their Source.
Sample logs
user_marked_fraud authentication event
{
"accessDevice": {
"hostname": null,
"ip": "0.0.0.0",
"location": {
"city": null,
"country": null,
"state": null
}
},
"application": {
"key": "AAAAAAAAAA",
"name": "Okta"
},
"authDevice": {
"ip": "30.30.30.30",
"location": {
"city": "Belfast",
"country": "United Kingdom",
"state": "Northern Ireland"
},
"name": "555-555-5555"
},
"eventType": "authentication",
"factor": "duo_push",
"reason": "user_marked_fraud",
"result": "fraud",
"timestamp": 1553767890,
"txid": "a0148c14-WWWW-WWWW-acfe-ebe741cd1cfc",
"user": {
"key": "DUG78WWWWWXXXWWWJM21",
"name": "jane doe"
}
}user_approved authentication event
{
"ip": "0.0.0.0",
"result": "success",
"reason": "user_approved",
"timestamp": 1614132794,
"username": "jdoe",
"integration": "LDAP Proxy",
"factor": "duo_push",
"authIp": "123.123.123.123",
"eventType": "authentication",
"authDeviceName": "123-702-8042",
"user": {
"key": "DUG78WWWWWXXXWWWJM21",
"name": "John Doe"
}
}Troubleshoot common errors
Event source health prefixes each error message with the log type, such as AUTHENTICATION LOGS:.
To resolve an error, find the message in this table:
| Message shown | Cause | Fix |
|---|---|---|
| Duo rejected the request as unauthorized. Please verify the Integration Key, Secret Key and API hostname… | The keys are incorrect, or the keys and hostname come from different Duo applications or accounts. | Copy all 3 values from the same Admin API application, then update the connection. |
| Duo rejected this request as forbidden. Please verify the Integration Key belongs to a Duo Admin API application… and that the Grant read log permission is enabled on it. | The application isn’t an Admin API application (for example an Auth API permission), or it doesn’t have the Grant read log permission enabled. | HTTP 403. The application isn’t an Admin API application (for example an Auth API permission), or it doesn’t have the Grant read log permission enabled. |
| The Duo API hostname configured for this integration could not be resolved… | The hostname is blank, mistyped, or can’t be resolved. | Enter the API hostname exactly as Duo shows it, for example api-xxxxxxxx.duosecurity.com. |
| Rate limited by Duo while fetching data. No action is needed - we will retry automatically. | Duo rate-limited the requests, which is common during the first 8-day backfill. | No action is needed. Collection catches up automatically. |
| Trust Monitor row is healthy but shows no data | The Duo plan doesn’t include Trust Monitor, so Duo denies the request and Rapid7 treats the response as no data. | No action is needed. This behavior is expected. |
For more information, refer to Duo Admin API troubleshooting .
How collection works
SIEM (InsightIDR) collects Duo data on a fixed schedule.
Collection follows these rules:
| Behavior | Details |
|---|---|
| Polling frequency | Rapid7 polls each log type every 5 minutes. |
| First run | Rapid7 collects up to 8 days of history. |
| Event delay | Duo releases administrator activity and Trust Monitor events with a short delay. Rapid7 reads data up to 2 minutes behind the current time, so these events can arrive a few minutes after they occur in Duo. |
| Batch size | During high volume, a single run collects up to 100,000 records, and the next run continues where the previous run stopped. Large backlogs, such as the first 8 days of history, can take several polling cycles to catch up. |
| Rate limiting | If Duo rate-limits requests, Rapid7 retries automatically on the next poll. No data is lost. |
Migrate from the existing Duo Security event source
If you already collect Duo logs with the existing Duo Security event source, on a collector or in the cloud, you can migrate to this event source. Both event sources can run at the same time because Duo’s API uses read-only polling, so they don’t interfere with each other.
Duplicate events during migration
While both event sources run, Log Search shows duplicate Duo events. Keep the overlap short.
To migrate to the Expanded Cloud event source:
- Add the Expanded Cloud event source. For more information, refer to Configure SIEM to collect data from the event source.
- Check that data is flowing. For more information, refer to Test the configuration.
- Delete or disable the existing event source.
SIEM (InsightIDR) collects Trust Monitor data only if the Duo plan still includes Trust Monitor.
Limitations
This event source has these limitations:
- Collection runs in the Rapid7 cloud only. A collector option isn’t available.
- The event source collects logs only. It doesn’t sync alerts or provide Duo response actions.
- Event-type filtering isn’t available, and the first-run lookback is fixed at 8 days.
- Full autonomous AI investigation in Agentic SOC isn’t available for Duo.
- Trust Monitor support ends when the Duo API reaches end of support on January 31, 2027.