HyperSec XDR Data Engine

Commands Reference

apply-schemas


    $ xdrcli apply-schemas --xdr_package_file_path /path/to/xdr_package.yaml --schema_filter_list logs_alerts --sub_schema_filter_list logs_nxlog_windows,logs_nxlog_windows_dns --schema_filter_wildchar logs_alerts* --sub_schema_filter_wildchar logs_alerts* --schema_update_flag YES --drop_replacement_table_flag YES --verbose

build-ingestion-pipelines


    $ xdrcli build-ingestion-pipelines --xdr_package_file_path /path/to/xdr_package.yaml --ingestion_pipeline_output_path /path/to/output --xdr_root_log_path /path/to/logs --target production --target_file_path /pathto/.xdr/xdr_targets.yaml

build-schemas


    $ xdrcli build-schemas --xdr_package_file_path /path/to/xdr_package.yaml --schema_directory /path/to/custom_schema --schema_filter_list logs_beats_filebeat,logs_alerts --derived_schema_filter_list logs_nxlog_windows,logs_nxlog_windows_dns --schema_filter_wildchar logs_alerts* --derived_schema_filter_wildchar logs_alerts* --no_cluster_declarations_needed --use_replicated_merge_tree --xdr_root_log_path /path/to/logs --target production --target_file_path /pathto/xdr_targets.yaml --verbose --opensearch_flag True

build-sigma


    $ xdrcli build-sigma --input_directory /path/to/yaml --output_directory /path/to/output --xdr_root_log_path /path/to/logs

describe-xdr-clickhouse-schema-types


    $ xdrcli describe_xdr_clickhouse_schema_types --xdr_root_log_path /path/to/logs -- xdr_package_file_path /path/to/logs

download-ingestion-pipeline-templates


    $ xdrcli download-ingestion-pipeline-templates --xdr_root_log_path /path/to/logs --output_zip vector_templates.zip

download-ingestion-pipeline-templates-all


    $ xdrcli download-ingestion-pipeline-templates-all --xdr_root_log_path /path/to/logs --output_zip vector_templates.zip

download-meta-schemas


    $ xdrcli download-meta-schemas --xdr_root_log_path /path/to/logs --output_zip meta_schemas.zip

init-target


    $ xdrcli init-target --target production --target_file_path /pathto/.xdr/xdr_targets.yaml

is-hunt-scheduler-healthy

xdrcli is-hunt-scheduler-healthy

kill-all-hunts


    $ xdrcli kill-all-hunts --xdr_root_log_path /path/to/logs --hunt_log_path /path/to/hunt_logs

kill-hunt


    $ xdrcli kill-hunt --xdr_package_file_path /path/to/xdr_package.yaml --kill_pid 12345 --xdr_root_log_path /path/to/logs

list-hunts


    $ xdrcli list-hunts --look_back_hours 24 --xdr_root_log_path /path/to/logs --hunt_log_path /path/to/hunt_logs

list-ingestion-templates


    $ xdrcli list-ingestion-templates --xdr_root_log_path /path/to/logs

list-meta-schemas


    $ xdrcli list-meta-schemas --xdr_root_log_path /path/to/logs

list-schema-fields


    $ xdrcli list-schema-fields --schema_name logs_alerts --template_version v100_000_000 --xdr_root_log_path /path/to/logs

list-targets


    $ xdrcli list-targets --xdr_root_log_path /path/to/logs --target_file_path /pathto/.xdr/xdr_targets.yaml

plan-schemas


    $ xdrcli plan-schemas --xdr_package_file_path /path/to/xdr_package.yaml --xdr_root_log_path /path/to/logs --target production --target_file_path /pathto/xdr_targets.yaml --schema_filter_list logs_alerts --derived_schema_filter_list logs_nxlog_windows* --schema_filter_wildchar logs_alerts* --derived_schema_filter_wildchar logs_nxlog_windows* --org_filter_list org321 --verbose

print-default-target


    $ xdrcli print-default-target --xdr_root_log_path /path/to/logs --target_file_path /pathto/.xdr/xdr_targets.yaml

print-hunt-parameters


    $ xdrcli print-hunt-parameters --xdr_package_file_path /path/to/xdr_package.yaml --xdr_root_log_path /path/to/logs --hunt_log_path /path/to/hunt_logs --target production --target_file_path /pathto/xdr_targets.yaml

run-hunt


    $ xdrcli run-hunt --xdr_package_file_path /path/to/xdr_package.yaml --hunt_dir /path/to/hunt_dir --hunt_rule_repo_dir /path/to/hunt_rules --hunt_timeout 60 --hunt_num_threads 4 --xdr_root_log_path /path/to/logs --hunt_log_path /path/to/hunt_logs --target production --target_file_path /path/to/xdr_targets.yaml

upload-ingestion-pipeline-core-config


    $ xdrcli upload-ingestion-pipeline-core-config --xdr_package_file_path /path/to/config.yaml --aws_profile my-aws-profile --xdr_root_log_path /path/to/logs --target production --target_file_path /pathto/.xdr/xdr_targets.yaml

upload-ingestion-pipeline-maxmind-mmdb


    $ xdrcli upload-ingestion-pipeline-maxmind-mmdb --aws_profile my-aws-profile --xdr_root_log_path /path/to/logs --target production --target_file_path /pathto/.xdr/xdr_targets.yaml ----upload_file_target local

upload-ingestion-pipeline-templates


    $ xdrcli upload-ingestion-pipeline-templates --aws_profile my-aws-profile --xdr_root_log_path /path/to/logs --target production --target_file_path /pathto/.xdr/xdr_targets.yaml

view-hunts


    $ xdrcli view-hunts --view_pid 12345 --xdr_root_log_path /path/to/logs --hunt_log_path /path/to/hunt_logs