cspm_registration

CrowdStrike FalconPy
CrowdStrike FalconPy

CrowdStrike Subreddit

Falcon CSPM Registration samples

The examples within this folder focus on leveraging CrowdStrike's Falcon CSPM Registration API.

Get all CSPM policies

Retrieves all CSPM policies for your environment and displays the associated benchmarks.

Dependencies

This sample is dependent upon the python-tabulate library.

Installing tabulate

Tabulate can be installed using the Python Package Index:

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

CSPM Registration

READ

Execution syntax

The following command will retrieve a list of hosts matching the specified CVE.

Basic usage

Display all policies and their associated benchmarks.

Instead of displaying to the console, you can instead export results to a file in CSV format using the -o argument.

To limit your results to a specific cloud provider, use the -c argument.

To activate debugging, use 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?