discover

CrowdStrike FalconPy
CrowdStrike FalconPy

CrowdStrike Subreddit

Falcon Discover samples

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

List discovered hosts

Displays the hostname, local IP, external IP, OS platform and OS version for discovered hosts.

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

Discover

READ

Execution syntax

The following command will retrieve a list of discovered hosts.

Basic usage

Display all discovered hosts.

Reverse the sort using the -r argument.

Change your CrowdStrike region using the -b argument.

Change the table format using the -f argument.

Activate API debugging with the -d argument.

Available table formats

Tabular results may be formatted using any of the format options listed below.

  • plain

  • simple

  • github

  • grid

  • fancy_grid

  • pipe

  • orgtbl

  • jira

  • presto

  • pretty

  • psql

  • rst

  • mediawiki

  • moinmoin

  • youtrack

  • html

  • unsafehtml

  • latext

  • latex_raw

  • latex_booktabs

  • latex_longtable

  • textile

  • tsv

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.

Spyglass

Review Discover audit results for accounts, applications, hosts and logins. Supports output to standalone JSON files.

Dependencies

  • pyfiglet

  • termcolor

Installing dependencies

Dependencies 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

Discover

READ

Hosts

READ

Execution syntax

The following commands demonstrate different audit variations. Command line arguments may be mixed and provided to the application in any order.

Basic usage

Display all discovered accounts, applications, hosts and logins.

Change your CrowdStrike region using the -r argument.

Limit audit categories with the -c argument.

Output results to JSON dump files (as well as the terminal).

Disable dynamic screen updates (for automation / terminal output redirection).

Filter examples

Sort examples

Command-line help

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

Example results

Example results from each category.

Accounts

Results from a sample accounts audit.

Applications

Results from a sample applications audit.

Hosts

Results from a sample hosts audit.

Logins

Results from a sample logins audit.

Example source code

The source code for this example can be found here.

Last updated

Was this helpful?