Panther Analysis Tool Commands
Use PAT to manage your Panther content
Overview
PAT commands
$ pat --help
Usage: pat [OPTIONS] COMMAND [ARGS]...
Panther Analysis Tool: A command line tool for managing Panther policies and rules.
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version Show the version and exit │
│ --debug Enable debug mode │
│ --skip-version-check Skip Panther version check │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 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. │
│ check-packs Ensure that packs don't have missing detections. │
│ init Initialize a new panther project │
│ update Update and merge the latest content from Panther Analysis with your own. Rerun this every time you want to │
│ update your content. Items with the same ID as a Panther Analysis Item and a BaseVersion field will be │
│ merged with the latest Panther Analysis Item. Items that have merge conflicts will be skipped to be │
│ resolved manually with the `merge` command. Use the --write-merge-conflicts flag to write all merge │
│ conflicts to their respective files instead of skipping them. │
│ install Install and enable an analysis item from Panther Analysis into your local repository. │
│ explore Explore the latest Panther Analysis content │
│ merge Merge an analysis item with the latest Panther Analysis content │
│ migrate Migrate all analysis items that are based off Panther Analysis content by adding a BaseVersion field and │
│ getting them up to date. │
│ fmt Format and standardize the code in the current directory to help with making less changes in other │
│ commands. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯init: Preparing your Panther directory
init: Preparing your Panther directorymigrate: Transitioning content from a legacy management flow
migrate: Transitioning content from a legacy management flowupdate: Fetching and merging the latest panther-analysis content
update: Fetching and merging the latest panther-analysis contentexplore: Viewing available panther-analysis content
explore: Viewing available panther-analysis content

install: Copy and enable a panther-analysis item
install: Copy and enable a panther-analysis itemfmt: Format and standardize the code
fmt: Format and standardize the codemerge: Merge an analysis item with the latest Panther Analysis version of the item
merge: Merge an analysis item with the latest Panther Analysis version of the itemtest: 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?




