The Rapid7 InsightVM integration imports vulnerable items from a Rapid7 deployment into Vulnerability Response on a schedule. Setup comes down to four jobs: connecting with a region and API key, narrowing the import by CVSS score, site or query parameter, rescanning items on demand, and removing duplicates left by an older data warehouse feed.
How the InsightVM link fits into Vulnerability Response
Rapid7 scanners collect findings and send them to the Rapid7 analysis product. The integration attaches those findings to configuration items and business services, which gives a vulnerability an impact and a priority. It runs as a scheduled job, so the instance stays in step with the scanner. For the wider concept, see Vulnerability Response integration patterns.
The Rapid7 Vulnerability Integration offers two integration types. The InsightVM type is cloud based and calls a REST API with an API key. The data warehouse type reads an on-premise warehouse through a MID Server. The InsightVM type supports several instances, one per deployment. Assets reported by more than one deployment are consolidated and reconciled against the CMDB, even when their scans overlap.
Preparing the instance
- Confirm that Vulnerability Response is installed and active under Subscription Management.
- Size the instance against the number of vulnerable items you expect. An undersized instance can lead to long load times.
- Disable vulnerability calculators you do not use, since they run on each create or update and can slow the first import.
- Leave the run-as user on its default, VR.System.
- Run the asset list integration before building rules that use host tags, because the tags come from that integration.
The app is listed in the ServiceNow Store as Rapid7 Integration for Security Operations and requires a subscription. Production instances request an entitlement first.
Connecting the InsightVM instance
Open the configuration page under the Rapid7 Vulnerability Integration menu, choose the InsightVM integration type, and select the instance. On the Integration Setup tab, enter the region server URL from Rapid7 and the API key from your Rapid7 Insight account. Run Test credentials, correct any error, and save once the test passes.
The Import Configuration tab controls what enters the instance.
| Field | What it controls |
|---|---|
| Min CVSS score | Lowest vulnerable item score kept on import |
| Max CVSS score | Highest vulnerable item score kept on import |
| Site filter | Limits the import to chosen sites; an empty field imports all sites |
| Auto-create CVE entry | Creates placeholder CVE records for CVEs not yet present; on by default |
| Reopen resolved by age | Returns items from Resolved to Open after a set number of days |
Auto-create is governed by the system property sn_vul_r7.create_cve_for_vulnerabilities. Deactivate it if you do not want placeholder records.
Reopening by age catches a quiet failure. An item marked Resolved that later scans do not close would otherwise stay in that state.
To add a second deployment, choose New from the Integration Instance lookup, name it, and test and save its credentials. The default instance cannot be deleted. Deleting another instance also removes its integrations, parameters, runs and processes, and the items it created keep their records with the Instance column cleared. Note which items belong to a deployment before you remove one.
Filtering what the import brings in
Start narrow, check the results, then widen the filters in later imports.
Site filters
A Rapid7 site is a group of assets that a scan targets. The site list fills after the site integration runs, which happens weekly, so run the InsightVM site integration before you open the Site filter field. Pick entries that belong to the instance you are configuring, since the lookup also shows data warehouse sites. Site filtering adds processing work, so keep the list short.
Query parameters in the request body
Since version 13.4 of the application, you can add JSON parameters to the request body of the vulnerable item and vulnerability API integrations, with no code. Use the exact parameter names that the InsightVM product itself exposes. Use the parameter names the InsightVM product defines to narrow the import to Critical and Severe items.
Open the InsightVM integration record under Administration, use the information icon beside the REST message to open it, and go to the HTTP Request tab. Enter the parameters in the HTTP Query Parameters content field under the HTTP method, enter the parameter values as the Rapid7 InsightVM product documents them, and select Update. The parameters apply at instance level, so they affect each run until you change them.
Import start dates
The Import since field sets how far back the first run reaches. The vulnerability and vulnerable item API integrations default to 31 December 1998 or 1 January 1999. Set a date when you want history. The exploit and malware kit integrations do not use the field, since they perform no delta updates.
With auto-close enabled on the comprehensive vulnerable item integration, a successful run must come first. If Import since is blank on that run, the days-ago value on the Auto-Close Stale Vulnerable Items form applies, which defaults to 90 days. The buffer parameter import_startime_buffer_comprehensive moves the start point back 24 hours by default, so assets scanned in that gap are still fetched.
Rescanning vulnerable items on demand
A targeted rescan lets a remediation owner or analyst ask the scanner to check one vulnerability on one asset between scan cycles. Rescans cover InsightVM items. Data warehouse items do not support them.
The Rescan button appears once the Rapid7 scanner product is set to Active under Vulnerability Scanning > Scanners, which takes the sn_vul.vulnerability_admin role because the product is deactivated by default. The record’s source must also be Rapid7.
| Record | Rescan is available when |
|---|---|
| Vulnerable item | Source is Rapid7 and state is not Closed |
| Remediation task | Task is not Closed and its linked items come from Rapid7 |
| Third-party entry | At least one linked Rapid7 item is not Closed |
| Discovered item | Linked item comes from Rapid7 and is not Closed |
Each rescan request covers up to 500 assets, and a larger request is split into child scans. Avoid sending the same source ID from two records at once, because the latest request fails. Tracking has a time limit, but the limit does not stop the scan. Items that Rapid7 moves to Closed/Fixed reach the instance with the next scheduled import.
Scheduled rescans and time windows
The scheduling settings sit on the Rapid7 InsightVM instance record. Setting scan_on_resolved to true triggers a rescan when a vulnerable item or remediation task is resolved; it defaults to false. The scan_start_time and scan_end_time parameters set a UTC window in 24-hour format, defaulting to 00:00 to 23:59. A request inside the window launches at once. A request outside it waits for the next window, so with a 00:00 to 10:00 window, a manual request at 11:00 waits until midnight.
Rescans from the workspaces
The IT Remediation workspace requires sn_vul.remediation_owner, and the records must be assigned to you. The Vulnerability Manager workspace requires sn_vul.vulnerability_analyst or sn_vul.vulnerability_admin. Rescanning a remediation task covers the vulnerable items attached to it.
Deduplicating records left by a data warehouse feed
Duplicate removal runs in one direction: from the Nexpose data warehouse to the InsightVM vulnerable item integration. It matches warehouse items that share source data with the InsightVM feed.
Set each Nexpose data warehouse integration to inactive first. Then open the system properties list, find sn_vul_r7.deduplicate_DW_vulnerable_item, and set it to true. The next InsightVM vulnerable item import checks incoming items against the warehouse records, and a match stops a duplicate from being created. Running both sources without this step risks duplicate vulnerability records.
Solutions, proof and site tags
With the Vulnerability Solution Management plugin active, Rapid7 solutions go to the shared solutions table. From version 21.0 of Vulnerability Response, InsightVM creates a solution from the scanner’s solution ID, so a blank summary or fix field does not block it.
Proof changes how items split. A vulnerable item key combines the vulnerability, the configuration item and the integration instance. Enable proof in that key under Configure VI granularity, and detections with different proof values become separate items.
Monitoring import runs
Check the run status dashboard under Rapid7 and then Integration Run Status to confirm that each run succeeded.
Each import queue entry must process its data within one hour. Heartbeat timestamps, introduced in version 19.0, update the Last Record Processed field as records are written, so a slow but moving import is left alone. Network interruptions and data corrupted in transfer are typical causes of a failed run. Use Execute now to rerun the integration.
Frequently asked questions
Can the import limit itself to serious findings?
Yes. Set the Min CVSS score so low scores are dropped, and use the Max CVSS score for an upper bound.
Why is the Rescan button missing?
The usual causes are an inactive Rapid7 scanner product, a source that is not Rapid7, or an item that is already Closed. A remediation task also needs all of its linked items to come from Rapid7.
Does a rescan close the item straight away?
No. Items that move to Closed/Fixed in Rapid7 reach the instance with the next scheduled import. If the instance stops tracking the scan, the scan itself keeps running.
What start date does the first import use?
The vulnerability and vulnerable item API integrations default to a date in 1998 or 1999. The comprehensive integration uses the auto-close days-ago value, which defaults to 90, when Import since is blank.