ml_exclusions

CrowdStrike FalconPy CrowdStrike FalconPy CrowdStrike Subreddit

ML Exclusions samples

The examples within this folder focus on leveraging CrowdStrike Falcon ML Exclusions collection.

MLE Audit

This program will output a list of ML exclusions and their details for either the current CID or in each Child CID (Flight Control scenarios). This can be used for regular audits of ML exclusions across multiple CIDs.

Running the program

In order to run this demonstration, you you will need access to CrowdStrike API keys with the following scopes:

Service Collection
Scope

ML Exclusions

READ

Flight Control

READ

Sensor Download

READ

[!NOTE] This program can be executed using an API key that is not scoped for the Flight Control (MSSP) and Sensor Download service collections, but will be unable to lookup the current CID (Sensor Download) or access child CIDs (Flight Control).

Execution syntax

This sample leverages simple command-line arguments to implement functionality.

Basic usage

Execute the default example. This will output results to a CSV file named ml_exclusions.txt.

This sample supports Environment Authentication, meaning you can execute any of the command lines shown below without providing credentials if you have the values FALCON_CLIENT_ID and FALCON_CLIENT_SECRET defined in your environment.

Change the output destination with the -o argument.

Enable MSSP mode and audit all Flight Control children with the -m argument.

Enable MSSP mode and audit a specific Flight Control child with the -c argument.

API debugging can be enabled using the -d argument.

Command-line help

Command-line help is available via the -h argument.

Example source code

The source code for this example can be found here.

Last updated

Was this helpful?