Skip to main content

SOCFWPackManager

This Script is part of the SOC Framework Pack Manager Pack.#

SOC Framework Pack Manager โ€” bootloader script for the SOC Framework on XSIAM. Lists the SOC Framework pack catalog, installs and configures packs, re-runs configuration only, and synchronizes the value_tags lookup against the catalog version metadata.

Architecture#

This script is the user-facing entry point. It depends on the SOC Framework Pack Manager integration, also shipped in this pack, for credential storage and the actual pack-install HTTP. Configure an instance of that integration before running action=apply. End users should never call the integration's socfw-install-pack command directly โ€” invoke it through this script.

Script Data#

NameDescription
Script Typepython3
Tagsconfiguration, Content Management, SOC, SOC_Framework, SOC_Framework_Unified, SOCFWBootloader
Cortex XSIAM Version5.0.0 and later

Inputs#

Argument NameDescription
actionOne of list, apply, configure, or sync-tags. list shows the catalog. apply installs and configures a pack. configure re-runs configuration only (no pack install). sync-tags is a backward-compat action that updates the legacy value_tags lookup; modern SOC Framework deployments use SOCActionTimeMap_V3 and do not need it.
pack_idThe pack ID from pack_catalog.json (for example, soc-optimization-unified). Required for action=apply and action=configure.
catalog_urlOverride the catalog URL without modifying the integration instance parameters.
usingIntegration instance name to route core-api commands through. Defaults to the active instance.
include_hiddenAllow installing packs where visible=false in the catalog.
dry_runShow what would happen without installing or configuring.
install_marketplaceWhether to install marketplace_packs from xsoar_config.json.
skip_verifyPass-through to core-api-install-packs for ZIP installs.
skip_validationPass-through to core-api-install-packs for ZIP installs.
apply_configureWhether to apply the config sections from xsoar_config.json (instances, jobs, lookups).
overwrite_lookupOverwrite the SOC Framework lookup table. Save your customizations first.
configure_jobsWhen action=apply, run job configuration from xsoar_config.json. Ignored if apply_configure=false.
configure_integrationsWhen action=apply, create or update integration instances from xsoar_config.json. Ignored if apply_configure=false.
configure_lookupsWhen action=apply, create or update lookup datasets from xsoar_config.json. Ignored if apply_configure=false.
retry_countNumber of retry attempts for install or configure operations that fail transiently.
retry_sleep_secondsSeconds to wait between retry attempts.
execution_timeoutTimeout in seconds for individual core-api commands invoked during configure.
install_timeoutTimeout in seconds for the full custom-pack install command before falling back to polling.
post_install_poll_secondsAfter an install timeout, total seconds to poll the tenant for the pack to appear installed.
post_install_poll_interval_secondsInterval in seconds between install completion polls.
continue_on_install_timeoutContinue with configuration steps if a custom-pack install times out and polling does not confirm installation.
fail_on_marketplace_errorsRaise on marketplace install errors instead of recording them and continuing.
debugVerbose War Room logging and additional install detail.
filteraction=list only. Case-insensitive free-text filter applied to id, display_name, and path.
limitaction=list only. Maximum number of rows to display per page.
offsetaction=list only. Row offset for paging.
sort_byaction=list only. Column to sort by. One of id, display_name, version, visible, path.
sort_diraction=list only. Sort direction. asc or desc.
visible_onlyaction=list only. Hide packs marked visible=false. Implied false when include_hidden=true.
fieldsaction=list only. Comma-separated list of columns to show. Unknown fields are ignored.
show_totalaction=list only. Display "showing X-Y of Z" paging information.
include_doc_contentWhen printing pre and post config docs, also fetch a truncated preview of the README content into the War Room output.
doc_content_max_charsMaximum characters per doc preview when include_doc_content=true.
doc_content_max_linesMaximum lines per doc preview when include_doc_content=true.
pre_config_doneSet to true to acknowledge pre-config docs have been completed and continue with install or configure.
pre_config_gateWhen true, the script prints pre_config_docs and stops until pre_config_done=true.
forceaction=sync-tags only. Update value_tags even if the content hash matches the current version.
tags_urlaction=sync-tags only. Override the value_tags.json source URL. Defaults to the soc-optimization-unified pack on main.

Outputs#

PathDescriptionType
SOCFramework.PackManager.pack_idPack ID acted on for action=apply or action=configure.String
SOCFramework.PackManager.xsoar_config_urlURL of the xsoar_config.json fetched for the pack.String
SOCFramework.PackManager.catalog_urlURL of the pack catalog used to resolve the manifest.String
SOCFramework.PackManager.marketplace_errorsMarketplace install errors recorded during action=apply.Unknown
SOCFramework.PackManager.configure_summary.integrationsIntegration instance configuration summary.Unknown
SOCFramework.PackManager.configure_summary.jobsJob configuration summary.Unknown
SOCFramework.PackManager.configure_summary.lookupsLookup dataset configuration summary.Unknown
SOCFramework.PackManager.SyncTags.statusaction=sync-tags result. up_to_date or updated.String
SOCFramework.PackManager.SyncTags.datasetDataset name updated (value_tags).String
SOCFramework.PackManager.SyncTags.versionShort hash of the value_tags content currently installed.String
SOCFramework.PackManager.SyncTags.hashFull content hash of the value_tags content currently installed.String
SOCFramework.PackManager.SyncTags.rowsNumber of value_tags rows uploaded to the dataset.Number
SOCFramework.PackManager.SyncTags.updatedWhether the dataset was updated on this run.Boolean
SOCFramework.PackManager.SyncTags.previous_hashPrevious content hash before this run, when applicable.String
SOCFramework.PackManager.SyncTags.updated_atISO 8601 timestamp the value_tags dataset was last updated.String

Command examples#

action=list#

!SOCFWPackManager action=list

Human Readable Output#

Renders a paged table of available SOC Framework packs (id, display_name, version, visible, path).

action=apply#

!SOCFWPackManager action=apply pack_id=soc-optimization-unified

Human Readable Output#

Streams progress to the war room as the marketplace dependencies install, the custom pack ZIP is uploaded as system content, and xsoar_config.json is applied.

action=configure#

!SOCFWPackManager action=configure pack_id=SocFrameworkTrendMicroVisionOne

Human Readable Output#

Re-runs configuration only โ€” integration instances, jobs, and lookup datasets โ€” without reinstalling the pack.

action=sync-tags#

!SOCFWPackManager action=sync-tags

Human Readable Output#

Backward-compat action. Updates the legacy value_tags lookup dataset for older deployments. Modern SOC Framework deployments use SOCActionTimeMap_V3 and do not need this command.