service-agentforce-human-escalation-configure
Pass
Audited by Gen Agent Trust Hub on Sep 6, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes local shell commands including the Salesforce CLI (sf), jq, and node to automate configuration tasks.
- Evidence: Use of
sf data query,sf project deploy, andsf api requestwithinscripts/verify-and-configure.shto manage organization state. - Evidence: Subprocess calls in
scripts/tests/_bootstrap.pyandscripts/tests/test_escalation_contracts.pyused exclusively for local contract testing. - [DYNAMIC_EXECUTION]: The skill generates and patches Salesforce XML metadata and Agent Script files at runtime based on user inputs.
- Evidence: Template substitution in
scripts/verify-and-configure.shusingsedto inject identifiers into flow metadata. - Evidence: Programmatic XML modification in
scripts/patch-escalation-surfaces.mjsto enable escalation flags. - Mitigation: All dynamic content is sanitized using
xml_escapeand validated against strict regex patterns (e.g.,DN_REfor DeveloperNames) to prevent injection. - [INDIRECT_PROMPT_INJECTION]: The skill ingests and processes potentially untrusted metadata (Agent Scripts) from the target organization.
- Evidence:
scripts/classify-nga-escalation.mjsscans.agentfiles to verify the presence of escalation actions. - Mitigation: The analysis logic is hardened by stripping comments (
stripComments) and utilizing structured section parsing to ensure reachability is proven per-block, reducing the risk of malicious instructions in comments or prose affecting the verdict. - [SAFE]: Implements a mandatory 'Phase 0' safety guard that blocks execution against production organizations.
- Evidence:
scripts/verify-and-configure.shqueriesOrganizationmetadata (IsSandbox,TrialExpirationDate,OrganizationType) and enforces asafe_to_writecheck before any DML or deployment occurs. - [SAFE]: The skill is authored by a recognized vendor (forcedotcom) and focuses on intended administrative functionality without any indicators of data exfiltration or credential theft.
Audit Metadata