Skip to main content

StartAgenticValidation

This Script is part of the Tenzai Pack.#

Supported versions

Available on Cortex XSIAM.

Ad-hoc entry point for Tenzai exposure validation, invoked from the Start Tenzai Validation button on the Tenzai issue layout (the Validate tab).

On the first click it gathers the exposure context (optionally enriching from the ASM service via asm-get-external-service, or parsing the host:port from the exposure name), triggers a Tenzai validation assessment with tenzai-trigger-validation-check, and sets Tenzai Assessment Status to Running. It then drives the whole loop itself: a self-scheduling ScheduledCommand polls tenzai-fetch-validation-check until the assessment reaches a terminal status, then writes the verdict โ€” status, exploit validation, assessment details, reproduction, fix guidance, credit usage, and reference URL โ€” back onto the issue. It does not change the issue severity.

Transient fetch failures are retried on the next poll; if the polling window (MAX_POLLS) is exhausted without a verdict the status is set to Error rather than left on Running. A second click while a validation is already Running on the issue is a no-op (no duplicate assessment).

When run from the Tenzai Agentic Issue Validation playbook, the playbook passes poll=false: the script then only triggers and marks the issue Running, and the playbook owns the poll + write-back so the loop is not run twice.

Inputs#

ArgumentDescription
service_idASM ExternalService id; used to enrich the target when target is not provided.
targetThe exposure target (IP or FQDN). If omitted, derived from the ASM service or parsed from exposure_name.
exposure_nameHuman-readable exposure name (typically the issue name).
supporting_dataFree-text context (CVEs, rule, classification).
alert_internal_idThe Cortex issue/alert id for result correlation.
application_type / port / protocol / service_classificationOptional raw fields forwarded to Tenzai.
pollWhether the script polls to completion and writes the verdict itself. Defaults to true (the button); the playbook passes false.

Outputs#

PathDescription
Tenzai.ValidationCheck.checkIdThe Tenzai validation assessment id.
Tenzai.ValidationCheck.statusThe assessment status (Running while polling; Complete/Error when terminal).
Tenzai.ValidationCheck.validatedWhether the exposure was validated as exploitable (on terminal completion).
Tenzai.ValidationCheck.evidenceMarkdown assessment details (on terminal completion).
Tenzai.ValidationCheck.reproductionMarkdown reproduction steps (on terminal completion).
Tenzai.ValidationCheck.guidanceRemediation or mitigation guidance (on terminal completion).
Tenzai.ValidationCheck.creditUsageApproximate Tenzai credit/ACU cost of the assessment (on terminal completion).
Tenzai.ValidationCheck.referenceUrlDeep link to the assessment results in Tenzai (on terminal completion).