If your organization already runs CrowdStrike Falcon with Falcon Insight, you can start collecting media file signals for File Analysis without deploying any new endpoint software. This article describes how a reference workflow in Falcon Fusion SOAR uses Real Time Response (RTR) to hash media files with SHA-1 on Windows hosts, deliver the results to Falcon Next-Gen SIEM (NG-SIEM) and remove everything it created on the hosts afterwards. Submitting the hashes for analysis is covered in "Integrating CrowdStrike Falcon with the File Analysis API".
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 setup
Three RTR scripts run on the hosts in a host group you choose. One starts a background process that hashes media files with SHA-1 and uploads the rows to NG-SIEM through an HTTP Event Connector (HEC). One reports whether that process has finished, and one removes everything the process created. A Falcon Fusion SOAR workflow starts the scripts on all hosts at once and follows them until they finish. For every run, the workflow generates a new HEC key and passes it to the scripts, so no key is stored in them. From NG-SIEM, the hashes can be submitted to the NetClean File Analysis API, where they are analyzed and enriched against NetClean's file risk indicators.
CrowdStrike Falcon (RTR scripts, started by a Fusion workflow) → NG-SIEM (through HEC) → NetClean File Analysis API → match/no match → Case in Falcon
The files stay on the host. Only hash values are submitted to NetClean.
What this gives you
This approach surfaces file presence: media files found on a host at the time a run is started. It does not show that a file was opened or viewed, which is the layer Workstation Event Screening in ProActive is built to see. It is a standalone route for organizations that want to put NetClean's risk intelligence to work against data their CrowdStrike deployment can already collect, without introducing new endpoint software into their environment.
What setting this up generally involves
- Confirm that your Falcon environment meets the requirements below, and that legal, HR and your data protection officer have approved the inventory of files on users' computers
- Create an HEC connection in NG-SIEM and note its ingest URL and connection ID
- Review the three RTR scripts attached to this article, set your ingest URL and your collection scope in the Collect script, and upload the scripts as custom scripts shared with workflows. Give the Collect script the input schema attached to this article.
- Create a host group with the Windows hosts to cover, and confirm that the Response policy allows RTR for them
- Create an API client for CrowdStrike HTTP Request with Hosts: Read and NGSIEM: Read + Write. The workflow uses it to list hosts and to generate the HEC key for each run.
- Decide what the scripts should collect. See "Choosing what to analyze: files" for which file types, folders and size limits to start with, and "Configuration options" below for where to set them.
- Create the workflow by importing the exported workflow file attached to this article, or by building it in the Fusion editor. After an import, replace the placeholders, select your scripts again and connect the authentication (see "Importing the workflow" below). The workflow, scripts and Fusion actions are built and owned by you.
- Continue with the analysis part of the workflow. See "Integrating CrowdStrike Falcon with the File Analysis API".
Each of these steps has its own configuration options and trade-offs, particularly the collection scope and how long a run may wait for hosts to finish, covered below.
The workflow runs real RTR scripts on every online Windows host in the host group, and the inventory covers files on users' computers. Make sure the required approvals are in place, restrict who can read the collected rows in NG-SIEM, and test with a host group of one host before the first full run.
Details
At a glance
- Collection method: script-based collection (RTR scripts started by a Falcon Fusion SOAR workflow)
- Collection mode: on-demand (an analyst starts the workflow)
- Delivery path: via SIEM (CrowdStrike NG-SIEM, through an HEC connection)
- Visible signal: file presence
- OS coverage: Windows
- Hash algorithms: SHA-1
- Where credentials live: the workflow generates a new HEC key for every run and passes it to the Collect script as an input. The script hands it to the worker in an environment variable, and it is not written to disk on the host. When collection is over, the workflow generates the key again, so the key used in the run stops working. The NetClean access token is used by the analysis part of the workflow.
- After a run: files created on the hosts are overwritten and deleted
Requirements
- CrowdStrike Falcon with Falcon Insight (RTR), Falcon Fusion SOAR and NG-SIEM
- An HEC connection in NG-SIEM (under Data onboarding) that is used only for this workflow. The ingest URL goes into the Collect script. The workflow generates the key, so you do not copy it anywhere.
- Outbound HTTPS (TLS 1.2) from the hosts to your NG-SIEM ingest endpoint
- The three RTR scripts below and the input schema for the Collect script, attached to this article
- The exported workflow file attached to this article, unless you build the workflow yourself in the Fusion editor
- A host group with Windows hosts where RTR is allowed by the Response policy
- An API client for CrowdStrike HTTP Request with Hosts: Read and NGSIEM: Read + Write and no other scopes
- Permissions in Fusion to run the workflow
| Script | Function | Output the workflow reads |
|---|---|---|
| NetClean-FileAnalysis-CrowdStrike-Reference-Collect.ps1 | The Collect script. Starts a background process (worker) that SHA-1 hashes media files and uploads the rows to NG-SIEM over HEC | started, already_running or skipped no_hec_key |
| NetClean-FileAnalysis-CrowdStrike-Reference-Status.ps1 | The Status script. Reads the worker's log and process without changing anything | state=done, state=running or state=not_running |
| NetClean-FileAnalysis-CrowdStrike-Reference-Cleanup.ps1 | The Cleanup script. Stops the worker, overwrites and deletes the files it created and searches for remaining copies of the HEC key | state=cleaned or state=cleanup_incomplete, plus key_logs |
The scripts become Fusion actions when they are uploaded under Response scripts and files with Share script with workflows ticked. The attached input schema (NetClean-FileAnalysis-CrowdStrike-Reference-Collect-input-schema.json) gives the Collect script one required input, hec_key, which the workflow fills with the key it generated for the run. The Status and Cleanup scripts take no input. The workflow passes no other parameters, so the Collect script runs with the defaults set in the script.
Each uploaded row becomes one event in NG-SIEM with the fields below. Otherwise the analysis part of the workflow finds no hashes. The workflow limits a run with NG-SIEM's own ingest timestamp, so host clocks do not affect which rows are selected.
| Field | Content | Used for |
|---|---|---|
| pa_tool | A fixed identifier for this collection: pa_collect | Selecting the collection's rows |
| pa_sha1 | The file's SHA-1 (the workflow lowercases it) | Batching and the File Analysis API lookup |
| pa_host | Hostname | Case comment on a match |
| pa_user | The profile folder in the path (C:\Users\name), otherwise unknown. It is not the file owner. | Case comment on a match |
| pa_path | Full file path | Case comment on a match |
| pa_epoch, pa_size, pa_modified_utc | Upload time per the host, file size and last modified time | Not used by the workflow |
How the rows reach NG-SIEM
- Get a key. At the start of the run, the workflow generates a new HEC key for your HEC connection and passes it to the Collect script. The previous key stops working at the same moment.
- Start the worker. The Collect script writes a configuration file and the worker script to C:\Windows\Temp and launches a hidden PowerShell process. The HEC key is handed over in an environment variable, which the worker reads and removes at once.
- Hash the files. The worker runs at below-normal priority, skips reparse points and writes host, path, size, modified time and SHA-1 to an inventory CSV file on the host.
- Upload the rows, 500 per request, as JSON to your HEC ingest endpoint.
- Log the result. Failed requests go to an error log and count as rows_failed. A final line with the number of hashed, skipped, sent and failed rows is written to the worker log.
- Retire the key. When collection is over, the workflow generates the key again, so the key used in this run is no longer valid.
How collection works
The workflow is started by an analyst with two inputs: max_wait_hours (default 8), covered here, and the NetClean access token, covered in the integration guide. The collection part has six phases in a fixed order, and three of them can stop the run.
- Initialize. The run state is created and reset. A since value is set to the run's start time in epoch seconds, so only rows from this run are analyzed.
- Fetch target hosts. The workflow lists the Windows hosts in the host group (up to 5,000). If the call fails or the list is empty, the run stops.
- Generate the HEC key. The workflow generates a new key for the HEC connection. If that fails, the run stops before anything runs on a host.
- Start collection on all hosts at once. A host counts as online if it was last seen less than 2 hours ago. The Collect script runs on online hosts (timeout 120 seconds, not queued for offline hosts), and a host that answers started or already_running is added to the pending list. Each host writes its state to the log repository, and the workflow reads the states back. Offline hosts are skipped. If no host starts, the run stops.
- Poll and clean up. In each round, the Status script runs on all pending hosts at the same time (timeout 60 seconds). A round takes about 10 minutes. Polling ends when the list is empty or max_wait_hours has passed. When a host reports state=done, the workflow retrieves its inventory CSV file to the Falcon cloud, runs the Cleanup script and counts the host as done. If the worker has disappeared (state=not_running), cleanup runs and the host counts as failed. Any other answer, or an offline host, means the host is skipped for that round and polled again in the next.
- Clean up unfinished hosts and retire the key. Hosts still hashing when the wait is over get the Cleanup script, which stops the worker and deletes the files. Cleanup is queued for hosts that are offline and runs when they reconnect. The workflow then generates the HEC key again, so the key used in this run stops working.
Configuration options
The Collect script has these parameters. The workflow passes only the HEC key, so set your values as the defaults in the script's parameter block before you upload it. Replace the placeholder <HEC_INGEST_URL> in the script with the ingest URL of your HEC connection. Copy the whole URL from the connection, because it is specific to your tenant and region.
- Folders (Roots): a comma-separated list of folders to scan. Empty means all fixed drives.
- Exclusions (Exclude): a comma-separated list of folders to skip
- File types (Extensions): the file extensions to hash
- Size limits (MinSizeKB, MaxSizeMB): files outside the range are skipped. 0 means no limit.
The defaults in the attached script follow the guidance in "Choosing what to analyze: files", which also covers folders, file types, size limits and deduplication in more detail. Adjust them to your environment.
Limitations
- Windows only. The workflow does not cover macOS or Linux hosts.
- Results come from runs you start, not a continuous event stream. Each run re-hashes every host.
- Hosts not seen within 2 hours are not queued and are not covered by that run. Hosts still hashing when max_wait_hours is reached are not checked either.
- Upload errors are easy to miss. The worker reports done even when calls to HEC failed, so check rows_failed in each host's status line in the execution log.
- Do not run two runs at once, and do not use the HEC connection for anything else. Each run generates a new key, which makes the key of any other run invalid.
- The workflow has been tested with two hosts in one host group, and only in the EU-1 cloud. How many hosts Fusion and RTR run at the same time has not been tested.
Volume & limits
- The collection scope set in the script is the main lever for run time and volume. See "Choosing what to analyze: files".
- The script has no cache and no deduplication, so every run hashes and uploads every matching file again. "Choosing what to analyze: files" describes deduplication before analysis.
- max_wait_hours sets how long the workflow waits for hosts to finish. Raise it for large file volumes or slow hosts, but keep it well below 24 hours, because the analysis queries only search one day back.
- The worker uploads 500 rows per request. In testing, a row took about 350 bytes in NG-SIEM, for example 36,000 files and 12.5 MB for one laptop. Multiply by the number of hosts and compare with your daily NG-SIEM ingest allowance before a large run.
- A host counts as online if it was last seen less than 2 hours ago, and the host list is limited to 5,000 hosts.
Security considerations
Review these before deployment. They reduce risk but do not make the workflow tamper-proof.
- Credentials on the host: the HEC key is generated for each run and passed to the Collect script as an input. The worker gets it in an environment variable, which it reads and removes at once. It is not written to disk. The workflow generates the key again when collection is over, so the key used in the run stops working. Use a dedicated HEC connection.
- The key in logs: because the key is part of the script input, it can end up in PowerShell logs (script block logging, transcripts) and Falcon telemetry. The Cleanup script reports logs that hold the key (key_logs) but does not delete them. The key is already invalid when the run is over, so the finding is informational. Check that hec_key_revoked_status is 200.
- Cleanup: the Cleanup script stops the worker, overwrites the files the scripts created in C:\Windows\Temp with zeros and deletes them. It also removes any other small script, log or text file in that folder that holds a copy of the key. It never touches the media files. On SSDs the drive may still keep old blocks, which is why the key is made invalid after every run.
- Personal data: every row includes the full file path and a user name taken from the profile folder. Restrict who can read the rows in NG-SIEM, and make sure the approvals described above are in place.
- Least privilege: the API client used by the workflow has Hosts: Read and NGSIEM: Read + Write only. The write scope lets it generate keys, so use the client for this workflow only and keep the HEC connection dedicated to it.
Importing the workflow
The attached workflow export has placeholders instead of values that belong to your tenant. Replace each one before you import it:
- <FALCON_API_HOST>: the API host for your cloud, for example api.eu-1.crowdstrike.com, api.us-2.crowdstrike.com or api.crowdstrike.com (US-1). The host lookup and the three key steps use it, and so does the token URL of the authentication.
- <HOST_GROUP_ID>: the ID of the host group to check
- <HEC_CONNECTION_ID>: the ID of your HEC connection
- <FILE_ANALYSIS_API_URL>: the address of the File Analysis API verify hashes endpoint, covered in the integration guide
- <COLLECT_SCRIPT_ACTION_ID>, <STATUS_SCRIPT_ACTION_ID> and <CLEANUP_SCRIPT_ACTION_ID>: the action IDs of your uploaded scripts. Alternatively, import with any valid ID and select the scripts again in the five RTR steps (Collect, Status and three Cleanup steps).
After the import, connect the authentication on the four CrowdStrike HTTP Request steps (OAuth 2.0 with your API client and the token URL of your cloud) and publish the workflow. The steps find the scripts by ID, not by name, so the scripts in your tenant must be selected again after an import into another tenant. Until the authentication is connected, runs fail with the error "must be one of: 'CreateNew', 'UseExisting'".
Verifying collection
The run summary written at the end of every run contains these counters. On a successful collection:
- hosts_in_group is greater than 0 and hosts_started is close to it. The difference is offline hosts.
- hosts_collected equals hosts_started
- hosts_failed and hosts_still_hashing_at_deadline are 0
- hosts_cleaned covers every host, and hosts_cleanup_not_confirmed is 0
- hec_key_generated_status and hec_key_revoked_status are 200
- hosts_key_in_logs is 0, or, if it is above 0, hec_key_revoked_status is 200
Also check that each host's status line in the execution log shows rows_failed=0. How to read the full run summary, including the stop reason, is covered in "Integrating CrowdStrike Falcon with the File Analysis API".
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 summary | Likely cause | Action |
|---|---|---|
| A step shows as [Missing Activity] | The script is no longer shared with workflows. Editing and saving a script can switch sharing off. | Tick Share script with workflows and reconnect the step |
| A new HEC key could not be generated | The API client lacks NGSIEM: Read + Write, the connection ID is wrong, or the API host does not match your cloud region | Check the API client, the connection ID and the API host in the three key steps, then run again |
| skipped no_hec_key in a host's output | The Collect script has no input schema with hec_key, or the step does not pass the key | Add the attached input schema to the Collect script and check the input in the Collect step |
| Host group lookup failed, or the group has no Windows hosts | The API client lacks Hosts: Read, the group ID is wrong, or there are no Windows hosts in the group | Check the API client and group membership, then run again |
| No host was online, or the Collect script did not start | Hosts not seen for over 2 hours, RTR blocked by policy, or the script is not shared with workflows | Check Last seen, the Response policy and script sharing |
| hosts_failed greater than 0 | The worker crashed or was cleaned up, for example after a reboot | Run again. Escalate if it recurs. |
| hosts_still_hashing_at_deadline greater than 0 | Large file volumes or slow hosts | Raise max_wait_hours for the next run, or narrow the scope |
| hosts_cleanup_not_confirmed greater than 0 | The host was offline (cleanup is queued) or a file could not be deleted | Check the status line, and run the Cleanup script manually over RTR if needed |
| hosts_key_in_logs greater than 0 | The HEC key is in PowerShell logs (script block logging or transcripts) | The key is invalid after the run. Check that hec_key_revoked_status is 200. The workflow does not delete logs. |
Further reading
CrowdStrike's own documentation covers the platform features and APIs this workflow relies on:
This article refers to CrowdStrike Falcon as described by the workflow it documents. Other CrowdStrike configurations may work differently.