Rapid7 InsightIDR API: Investigation Reporting & AD Enrichment
Built and tested a PowerShell integration with the Rapid7 InsightIDR REST API to retrieve investigation and linked-alert data, enrich account context through AD/LDAP, and generate priority-aware CSV reports.
Completed · Tested · In use
Reusable CSV reports combine data retrieved through the Rapid7 REST API with AD context and traceable priority values.
The task
Recurring investigation reporting requires information spread across investigation records, linked alerts, account identifiers and directory data. Priority values and missing identity context also need to be handled consistently when preparing reusable reports.
My contribution
Designed, developed and successfully tested PowerShell scripts that query Rapid7 InsightIDR REST API endpoints, correlate investigation and alert data, resolve account context in Active Directory and produce detailed and investigation-level summary CSV exports.
Implementation
- Queried the Rapid7 InsightIDR REST API for investigations in a configurable lookback period, retrieved associated alerts and extracted account identifiers from available actor and evidence responses.
- Normalised account identifiers and enriched matching records with directory context such as display name, job title, department and account state.
- Implemented a separate LDAP/.NET DirectorySearcher enrichment step that can process exported CSVs without requiring the ActiveDirectory PowerShell module.
- Retrieved investigation priority where available, used the highest linked-alert priority as a labelled fallback and retained priority source information or an Unspecified value when no priority was returned.
- Generated detail and investigation-level summary CSVs with alert and account counts, retained investigations without recognised or matched users and checked summary completeness.
- Produced diagnostic outputs and documented the export, enrichment and priority steps, including configuration of reporting windows and output files.
Result
Completed, successfully tested and in operational use. The Rapid7 REST API integration produces reusable detail and summary CSVs combining investigation records, related alerts, available AD context and traceable priority data. Completeness checks and extraction-status fields help keep missing user context visible during recurring security reporting and downstream analysis.
Project scope
Reporting coverage depends on API permissions, available historical data and directory matching. Large lookback windows can involve many API calls and throttling. Priority provenance distinguishes an investigation-sourced value from a linked-alert roll-up, while unresolved values remain explicit.