FlowRunner
Features Pricing
Theme
Start Free

Nightly fleet re-check in BreachSpider that acts only on change

Every night the inventory is compared against the last BreachSpider check, 200 devices per call. Only changed and never-checked devices are re-checked, rows updated, one summary posted to Slack.

The prompt

Every night, read our device inventory sheet in Google Sheets, including the result hash, status hash and status facts saved from the last BreachSpider check. Ask BreachSpider which devices changed, 200 at a time, without pulling their CVEs again. Run only the changed devices, and any row that has never been checked, back through Check Devices and update their rows with the new counts, top fix and hashes. A device BreachSpider can't resolve stays marked Needs review. Then post one summary to our OT channel in Slack listing what changed and why, or saying nothing changed.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Repeats for each item Check each changeddevice Repeats for each item Re-check each batch Code Write the nightlysummary Code Group the devices forthe re-check Action Post the summaryto Slack Action Read theinventory Action Start the changed list

Inside the loop: Re-check each batch

Code Collect the changeddevices Action Check devices forchanges Action Remember thechanged devices

Inside the loop: Check each changed device

Code Read the result Action Add it to thesummary Action Update the row Action Check the devicein BreachSpider

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. Read the inventory Reads every row of the inventory sheet in Google Sheets, with the result hash, status hash and status facts the device check wrote last time.
  2. Group the devices for the re-check Puts the checked devices in batches of 200 with their hashes. A row with no earlier result is set aside for a first check, and a row missing its vendor or product is listed as skipped.
  3. Check devices for changes Check Devices for Changes compares each batch against the kept hashes and says, per device, whether anything changed and why, such as a CVE that became known-exploited or a change in the device's firmware status, without returning the CVEs again.
  4. Collect the changed devices Keeps the devices BreachSpider lists as changed, with the reason, next to the rows that were never checked.
  5. Check the device in BreachSpider Runs each changed device back through Check Devices for its full result: the CVEs for its exact version ranked fix-first, the fix plan and fresh hashes.
  6. Update the row Writes the new status, CVE counts, top fix and hashes into the device's row. A device BreachSpider could not resolve, or one that carries a warning, is written as Needs review, never as clean.
  7. Post the summary to Slack One message to your OT channel lists each re-checked device with its new status, fix and the reason it changed, names first checks and skipped rows, or says nothing changed since the last check.

Before you turn it on

  • Enter your BreachSpider API key. A 14-day trial key runs Check Devices and Check Devices for Changes with up to 25 devices per check; production keys are issued by BreachSpider on request. Connect your Google and Slack accounts.
  • Pick the inventory spreadsheet and tab in Read the inventory and Update the row. It is the sheet the device check flow writes, with the headers Asset, Vendor, Product, Firmware, Status, CVEs, Confirmed, Exploited, Fix, Decision, ResultHash, StatusHash, StatusFacts, Checked.
  • Pick your OT channel in Post the summary to Slack.
  • Set the flow's schedule to once a night.