Panther Analysis Tool Commands
Use PAT to manage your Panther content
Overview
PAT commands
$ panther_analysis_tool -h
usage: panther_analysis_tool [-h] [--version] [--debug] [--skip-version-check] {release,test,publish,upload,delete,update-custom-schemas,test-lookup-table,validate,zip,check-connection,benchmark,enrich-test-data} ...
Panther Analysis Tool: A command line tool for managing Panther policies and rules.
positional arguments:
{release,test,publish,upload,delete,update-custom-schemas,test-lookup-table,validate,zip,check-connection,benchmark,enrich-test-data}
release Create release assets for repository containing panther detections. Generates a file called panther-analysis-all.zip and optionally generates panther-analysis-all.sig
test Validate analysis specifications and run policy and rule tests.
debug Run a single rule test in a debug environment, which allows you to see print statements and use breakpoints.
publish Publishes a new release, generates the release assets, and uploads them. Generates a file called panther-analysis-all.zip and optionally generates panther-analysis-all.sig
upload Upload specified policies and rules to a Panther deployment.
delete Delete policies, rules, or saved queries from a Panther deployment
update-custom-schemas
Update or create custom schemas on a Panther deployment.
test-lookup-table Validate a Lookup Table spec file.
validate Validate your bulk uploads against your panther instance
zip Create an archive of local policies and rules for uploading to Panther.
check-connection Check your Panther API connection
benchmark Performance test one rule against one of its log types. The rule must be the only item in the working directory or specified by --path, --ignore-files, and --filter. This feature is an extension
of Data Replay and is subject to the same limitations.
enrich-test-data Enrich test data with additional enrichments from the Panther API.
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--debug
--skip-version-checktest: Running unit tests
test: Running unit testsdebug: Debug a test using print statements and breakpoints
debug: Debug a test using print statements and breakpointsbenchmark: Evaluating rule performance
benchmark: Evaluating rule performanceenrich-test-data: Enriching test data with Enrichment content
enrich-test-data: Enriching test data with Enrichment contentvalidate: Ensuring detection content is ready to be uploaded
validate: Ensuring detection content is ready to be uploadedzip: Creating a package to upload to the Panther Console
zip: Creating a package to upload to the Panther ConsoleUploading content in the Panther Console
upload: Uploading packages to Panther directly
upload: Uploading packages to Panther directlyThe CreatedBy detection field
CreatedBy detection field
delete: Deleting Rules, Policies, or Saved Queries
delete: Deleting Rules, Policies, or Saved Queriesupdate-custom-schemas: Creating or updating custom schemas
update-custom-schemas: Creating or updating custom schemasPermissions required per command
Command
Required permission(s)
PAT command options
--filter: Filtering PAT commands
--filter: Filtering PAT commands--minimum-tests: Requiring a certain number of unit tests
--minimum-tests: Requiring a certain number of unit testsPreviousInstall, Configure, and Authenticate with the Panther Analysis ToolNextManaging Enrichment Providers with the Panther Analysis Tool
Last updated
Was this helpful?



