quick_scan

CrowdStrike FalconPy
CrowdStrike FalconPy

CrowdStrike Subreddit

Quick Scan examples

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

Quota Check

Displays your current Quick Scan quota.

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

Quick Scan

READ

Execution syntax

You may provide your API keys to this application via the command line (-k and -s) or by setting the FALCON_CLIENT_ID and FALCON_CLIENT_SECRET environment variables.

Basic usage

Display your current scan quota usage.

Retrieving keys using environment variables

Providing keys at runtime using the command line

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.

Sandbox / Quick Scan demo

This is a proof of concept example. Extensive performance testing has not been performed against this code example.

Dependencies

  • boto3

  • crowdstrike-falconpy 0.4.5+

Example config.json file:

Notes

  • A VOLUME is a collection of files that are uploaded and then scanned as a singular batch.

  • The log file rotates to prevent file system bloat.

Local Directory scanning

  • The folder is inventoried and then files are uploaded to the API in a linear fashion.

  • This method is impacted by data transfer speeds from the source file system location to CrowdStrike's cloud.

  • Supports pattern matching to filter objects scanned using the "--pattern" or "-p" command line parameter.

S3 Bucket scanning

  • The bucket contents are inventoried, and then the contents are downloaded to local memory and uploaded to the Sandbox API in a linear fashion.

  • This method does NOT store the files on the local file system.

  • Due to the nature of this solution, the method is heavily impacted by data transfer speeds.

    • Recommended deployment pattern involves running in AWS within a container, an EC2 instance or as a serverless lambda.

  • Currently scans the entire bucket only.

  • You must specify a target that includes the string "s3://" in order to scan a bucket.

Alpha testing

This solution has been tested on Python 3.7 / 3.9 running under Amazon Linux 2 and MacOS 10.15.

Example source code

The source code for this example can be found here.

Last updated

Was this helpful?