discover


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:
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
-rargument.
Change your CrowdStrike region using the
-bargument.
Change the table format using the
-fargument.
Activate API debugging with the
-dargument.
Available table formats
Tabular results may be formatted using any of the format options listed below.
plainsimplegithubgridfancy_gridpipeorgtbljiraprestoprettypsqlrstmediawikimoinmoinyoutrackhtmlunsafehtmllatextlatex_rawlatex_booktabslatex_longtabletextiletsv
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
pyfiglettermcolor
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:
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
-rargument.
Limit audit categories with the
-cargument.
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?