Rapid7 InsightIDR - File Indicators Hunting

This playbook queries Rapid7 InsightIDR SIEM for file indicators, including MD5 hashes, SHA256 hashes, SHA1 hashes, file names, file types, and file paths. Note that multiple search values should be separated by commas only (without spaces or any special characters).

Rapid7 InsightIDR · 34 tasks · 18 inputs · 1 output

Inputs

  • FileType — A single or multiple file types to search for within Rapid7 InsightIDR logs. Separate multiple search values by commas only (without spaces or any special characters).
  • InsightIDRFileTypeField — The name of the fields, in Rapid7 InsightIDR, in which to find the file types.
  • FileName — A single or multiple file names to search for within Rapid7 InsightIDR logs. Separate multiple search values by commas only (without spaces or any special characters).
  • InsightIDRFileNameField — The name of the fields, in Rapid7 InsightIDR, in which to find the file names.
  • MD5 — A single or multiple MD5 file hashes to search for within Rapid7 InsightIDR logs. Separate multiple search values by commas only (without spaces or any special characters).
  • InsightIDRMD5Field — The name of the fields, in Rapid7 InsightIDR, in which to find the MD5 hashes.
  • SHA256 — A single or multiple SHA256 file hashes to search for within Rapid7 InsightIDR logs. Separate multiple search values by commas only (without spaces or any special characters).
  • InsightIDRSHA256Field — The name of the fields, in Rapid7 InsightIDR, in which to find the SHA256 hashes.
  • SHA1 — A single or multiple SHA1 file hashes to search for within Rapid7 InsightIDR logs. Separate multiple search values by commas only (without spaces or any special characters).
  • InsightIDRSHA1Field — The name of the fields, in Rapid7 InsightIDR, in which to find the SHA1 hashes.
  • FilePath — A single or multiple file paths to search for within Rapid7 InsightIDR logs. Separate multiple search values by commas only (without spaces or any special characters).
  • InsightIDRFilePathField — The name of the fields, in Rapid7 InsightIDR, in which to find the file paths.
  • LogSetId — An identifier for a Rapid7 InsightIDR log set to query.
  • time_range — Specify the timeframe in which the Rapid7 InsightIDR logs will be searched. Most start with 'last' (e.g., last 2 months, last 10 minutes). The 'start_time' and 'end_time' inputs should not be used if the time_range input is specified. Supported time units (case insensitive): min(s) or minute(s) hr(s) or hour(s) day(s) week(s) month(s) year(s)
  • logs_per_page — Specify the maximum number of log entries to return per page, up to 500 (the maximum allowed). By default, 50 is set.
  • sequence_number — The earliest sequence number of a log entry to start searching. If this query parameter is included, the query results will additionally include all log entries received in the 'start_time' millisecond which have sequence numbers larger than the one specified. Sequence numbers are identifiers used to distinguish between log entries received in the same millisecond. If a log entry was split up into several log entries during ingestion, then those chunks are ordered by sequence number.
  • start_time — Specify the query start time at which the Rapid7 InsightIDR logs will be searched, as a UNIX timestamp in milliseconds. For example, if you wish to begin searching 1 week ago, the UNIX timestamp value is 604800.
  • end_time — Specify the query end time at which the Rapid7 InsightIDR logs will be searched, as a UNIX timestamp in milliseconds. For example, to end searching a day ago, the UNIX timestamp value would be 86400.

Outputs

  • Rapid7InsightIDR.HuntingResults — Events log objects containing relevant fields.

Commands used

rapid7-insight-idr-query-log-set

Flowchart

yes yes yes yes yes yes yes yes yes yes yes yes Start Start File Type Indicators File Type Indicators File Name Indicators File Name Indicators MD5 Indicators MD5 Indicators Rapid7 InsightIDR query - file name - rapid7-insight-idr-query-log-set Rapid7 InsightIDR query -... rapid7-insight-idr-query-log-set Rapid7 InsightIDR query - file type - rapid7-insight-idr-query-log-set Rapid7 InsightIDR query -... rapid7-insight-idr-query-log-set Rapid7 InsightIDR query - MD5 - rapid7-insight-idr-query-log-set Rapid7 InsightIDR query -... rapid7-insight-idr-query-log-set Is Rapid7 InsightIDR enabled? - IsIntegrationAvailable Is Rapid7 InsightIDR enab... IsIntegrationAvailable SHA256 Indicators SHA256 Indicators Rapid7 InsightIDR query - SHA256 - rapid7-insight-idr-query-log-set Rapid7 InsightIDR query -... rapid7-insight-idr-query-log-set Rapid7 InsightIDR query - SHA1 - rapid7-insight-idr-query-log-set Rapid7 InsightIDR query -... rapid7-insight-idr-query-log-set SHA1 Indicators SHA1 Indicators Rapid7 InsightIDR query - file path - rapid7-insight-idr-query-log-set Rapid7 InsightIDR query -... rapid7-insight-idr-query-log-set File Path Indicators File Path Indicators File Name Hunting Done File Name Hunting Done File Type Hunting Done File Type Hunting Done File Path Hunting Done File Path Hunting Done SHA256 Hunting Done SHA256 Hunting Done SHA1 Hunting Done SHA1 Hunting Done MD5 Hunting Done MD5 Hunting Done Any file name to hunt for? Any file name to hunt for? Any file type to hunt for? Any file type to hunt for? Any file path to hunt for? Any file path to hunt for? Any SHA256 to hunt for? Any SHA256 to hunt for? Any SHA1 to hunt for? Any SHA1 to hunt for? Any MD5 to hunt for? Any MD5 to hunt for? Set file name search argument - SetAndHandleEmpty Set file name search argu... SetAndHandleEmpty Set file type search argument - SetAndHandleEmpty Set file type search argu... SetAndHandleEmpty Set file path search argument - SetAndHandleEmpty Set file path search argu... SetAndHandleEmpty Set SHA256 search argument - SetAndHandleEmpty Set SHA256 search argument SetAndHandleEmpty Set SHA1 search argument - SetAndHandleEmpty Set SHA1 search argument SetAndHandleEmpty Set MD5 search argument - SetAndHandleEmpty Set MD5 search argument SetAndHandleEmpty Done Done Save Queries Results - LoadJSON Save Queries Results LoadJSON