generating-clt-components
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a data pipeline where the Agentforce planner generates JSON payloads (the
Detailsinput) which are then processed by a Flow and rendered by an LWC. This architecture creates an ingestion surface for indirect prompt injection if user-supplied data influenced by the planner is not strictly sanitized.\n - Ingestion points:
Detailsinput in the GenAiFunction (templates/genai-function/input/schema.json) and thevalueproperty in the LWC (templates/clt-lwc-template.js).\n - Boundary markers: The skill advises using explicit JSON blocks in instructions and implementing validation logic within a
__normalizeViewModelfunction in the LWC.\n - Capability inventory: Metadata deployment via
sf project deployand permission modification viasf apex runusing an anonymous Apex script.\n - Sanitization: Uses a
SUBSTITUTEformula in the Flow (templates/clt-flow-meta.xml) to handle escaped characters and coercion logic in the LWC template.\n- [COMMAND_EXECUTION]: The skill provides instructions for executing command-line operations using the Salesforce CLI (sf), includingsf project deploy startfor pushing code andsf apex runfor executing server-side scripts.\n- [PRIVILEGE_ESCALATION]: Thegrant-guest-perms.apextemplate enables the programmatic insertion ofSetupEntityAccessrecords. This script is designed to grant the Site Guest User access to specific Apex classes, which expands the org's attack surface to facilitate guest chat capabilities.\n- [DYNAMIC_EXECUTION]: The LWC template (templates/clt-lwc-template.js) performsJSON.parse()on thevalueproperty at runtime. The skill also references an external 'CLT Builder' tool on Heroku that generates and deploys metadata to the Salesforce environment.\n- [EXTERNAL_DOWNLOADS]: The skill directs users to an external 'CLT Builder' accelerator hosted on Heroku (agentforce-clt-builder-e4e03ec84f1a.herokuapp.com). While Heroku is a well-known hosting service, the use of external code-generation tools introduces third-party dependencies into the development lifecycle.
Audit Metadata