Integration Guides

Integrating CrowdStrike Falcon with the File Analysis API

This article is for anyone with file hashes already in CrowdStrike Falcon Next-Gen SIEM (NG-SIEM) who is exploring how to analyze and enrich them with NetClean's File Analysis API. It describes a reference Falcon Fusion SOAR workflow as a starting point and architectural inspiration rather than a fixed build, since the right implementation depends on your own Falcon setup. You build and own the integration. The workflow expects rows with the fields described in "Collecting file signals with CrowdStrike Falcon", which covers how the hashes get into NG-SIEM.

This workflow is provided as an example to illustrate the approach. NetClean does not provide support for implementing, modifying or operating it in your environment. Review, test and adapt it according to your own security and change management practices before deployment.

The idea in short

NG-SIEM (file hashes)
→ Falcon Fusion SOAR workflow
→ NetClean File Analysis API
→ match/no match
→ Case and log entry in Falcon

The workflow reads the unique SHA-1 values from NG-SIEM, submits them in batches to the File Analysis API, where they are analyzed and enriched against NetClean's file risk indicators, and acts on the result. A match is a verified event to act on. No match is a high-confidence clearance of the hashes that were checked.

How the reference workflow approaches it

The workflow is started by an analyst with the NetClean access token (without the word Bearer) as a required input. It runs as the second half of the same workflow that collects the hashes, and has three phases. The first two can stop the run.

  1. Wait for indexing and plan batches. The workflow waits 3 minutes so NG-SIEM can index the rows. An event query then counts unique SHA-1 values per three-character prefix (4,096 possible prefixes). A Python step packs the prefixes, in order, into batches of at most 500 unique hashes and expresses each batch as a regular expression, for example ^(?:000|001|002). A prefix holding more than 500 hashes is split into 16 sub-prefixes of four characters, and into further levels if needed, so every batch stays at about 500 hashes and none reaches the 1,000 cap. Split prefixes are logged in prefixes_split, for example a3f:734. If there are no hashes, the workflow goes straight to the summary.
  2. Check the batches. Batches are checked one at a time, for at most 55 minutes. For each batch, the workflow fetches its unique hashes from NG-SIEM (at most 1,000), builds the request body and submits it to the File Analysis API. If the response is not successful, the whole check stops and the error is logged. On a match, the workflow fetches host, user and file path for the matching hashes (at most 1,000 rows). The first match creates a Case named ProActive file match (severity 4, status new), and each batch with matches adds a comment to the Case and an entry to the log repository. If the match details were cut at 1,000 rows, the Case comment gets the line "NOTE: this list was cut at 1,000 rows." and the log entry gets match_rows_truncated: true.
  3. Write the run summary. Whatever the outcome, an entry with counters and the stop reason is written to the log repository.
Case comments and log entries contain usernames and paths to files that may be high-risk material. Restrict read access to the people who handle the case.

What integrating the API generally involves, at a high level

  • Building the query that identifies which hashes are candidates for analysis. Here, the unique, lowercase SHA-1 values from the current run. See "Choosing what to analyze: files" for filtering guidance.
  • Authenticating to the File Analysis API. The reference workflow takes the access token as an input for each run. A stored credential in a secrets store is the more robust design.
  • Submitting hashes in batches. The API accepts up to 2,000 hashes per request, and this workflow uses batches of about 500.
  • Handling the response and deciding what happens next. Here a match becomes a Case with host, user and file path, plus a log entry.

Worth keeping in mind

  • Only hash values are submitted. No file content, filenames or metadata are sent to or processed by the service.
  • If no submitted hash matches, the response is empty. If at least one matches, the response lists every submitted hash with a true or false result and, for matches, the sources that verified the content.
  • Access tokens are valid for one hour. The reference workflow therefore stops its check after 55 minutes.
  • The API has no per-tenant rate limit. Batching up to 2,000 hashes per request is still recommended.
  • See "File Analysis API" for authentication, request and response details, and the ProActive portal for credentials and the OpenAPI specification.

Details

Requirements

  • Rows in NG-SIEM with the fields described in "Collecting file signals with CrowdStrike Falcon"
  • NG-SIEM access that allows the workflow to search all views (view search-all)
  • Case management, and a log repository the workflow can write to
  • Permissions in Fusion to run the workflow, create Cases and write to the log repository
  • A valid access token for the NetClean File Analysis API
  • The exported workflow file attached to "Collecting file signals with CrowdStrike Falcon", if you import the workflow instead of building it

Limitations

  • The access token is entered as plain text and may be visible in the execution history. Use short-lived tokens and restrict who can view executions.
  • The match details are fetched with a limit of 1,000 rows. If they are cut, the Case comment ends with a note and the log entry says match_rows_truncated: true. Whoever handles the Case needs to read the comment in full, because a cut list is easy to overlook.
  • The event queries search one day back. With max_wait_hours close to 24, early rows may fall outside that window.
  • Batches are checked one at a time and for at most 55 minutes. If batches remain, start a new run.
  • A new run gets a new since value, so every host is hashed again.
  • Do not start two runs at once. Each run generates a new HEC key, which makes the key of any other run invalid.

Volume & limits

  • The File Analysis API accepts up to 2,000 SHA-1 hashes per request. This workflow sends batches of about 500.
  • The 55 minute limit is reached long before the 1,000 hash cap becomes relevant, so large scopes need several runs. In testing, roughly 80,000 unique hashes could be checked in one run.
  • SHA-1 values spread evenly over the 4,096 prefixes, so a prefix passes 500 hashes at roughly 2 million unique hashes. Splitting is rarely needed in practice.

Verifying a run

A successful run ends with the stop reason Finished. Every collected hash was checked. in the run summary (message: SHA-1 hash check run ended). The stop reason separates four outcomes:

  • Finished. Every collected hash was checked. Everything collected has been checked.
  • Finished with a gap: fewer hashes were checked than planned. See batches_truncated, and check whether rows are missing in NG-SIEM.
  • Stopped at the 55 minute limit. Not all batches could be checked.
  • No SHA-1 hashes were found in NG-SIEM for this run. No rows reached NG-SIEM.

On a successful run, these counters add up:

  • batches_total equals batches_sent and is greater than 0
  • hashes_sent is at least equal to hashes_planned
  • batches_truncated is 0. It counts batches that reached the 1,000 cap.
  • prefixes_split is informational. It shows which prefixes were split and how large they were.

Read the stop reason with one caveat. Finished only covers hashes that were actually collected, so offline hosts and hosts still hashing at the deadline were not checked.

To confirm that the number of unique hashes in NG-SIEM matches the planning, run this query. Replace the value in angle brackets with the start time of the run in epoch seconds:

pa_tool="pa_collect"
| test(@ingesttimestamp >= <SINCE_EPOCH> * 1000)
| sha1 := lower(pa_sha1)
| groupBy([sha1], limit=max)
| count()

On a match there should be a Case named ProActive file match and one log entry (message: ProActive file match) per batch with matches. The match_count in each entry equals the number of hashes in the Case comment.

Troubleshooting

Technical stops are diagnosed with the run summary and usually end in a new run. If the same stop repeats, escalate to your Falcon administrator and attach the Execution ID and the run summary.

Symptom in the summaryLikely causeAction
API did not return status 200Expired token, or a malformed request bodyStart a new run with a fresh token
Stopped at the 55 minute limitMore batches than fit in the check windowStart a new run, and consider a smaller scope
Finished with a gapA batch was truncated, or rows are missing in NG-SIEMCheck batches_truncated, and rows_failed per host as described in "Collecting file signals with CrowdStrike Falcon"
No SHA-1 hashes were found in NG-SIEMThe upload failed, or indexing took longer than 3 minutesCheck rows_failed per host and the HEC connection, and search for the rows manually

Responding to human insider risk matches and alerts

  • Treat the ProActive file match Case as an incident and escalate it immediately through your incident procedure, with the Case ID, Execution ID, matching SHA-1 values, host, user, file path and timestamp attached. All of these are in the match log entry.
  • Read the Case comment in full. If it ends with the note that the list was cut at 1,000 rows, fetch the remaining rows from NG-SIEM with the matching SHA-1 values.
  • Do not open, preview, copy or delete the files, and do not contact the user. Doing so can destroy evidence.
  • Leave decisions on isolating the host or disabling the account to the incident lead, not to the person running the workflow.
  • See "Responding to human insider risk matches and alerts" for how to handle matches, including why matching files should be preserved rather than deleted.

Further reading

CrowdStrike's own documentation covers the platform features this workflow relies on: