agentforce-architecture-analyze
Pass
Audited by Gen Agent Trust Hub on Aug 7, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface as it ingests and renders external metadata from Salesforce orgs. \n
- Ingestion points: Metadata is retrieved in
scripts/metadata_listing.py(via zip retrieve) andscripts/fetch_soql.py(via SOQL query results).\n - Boundary markers: Reporting logic in
render_architecture.pyutilizes fenced code blocks (e.g.,textblocks for prompt content) to prevent misinterpreted output.\n - Capability inventory: The skill performs subprocess execution of the
sfCLI and local file system writes to cache and data directories.\n - Sanitization: It implements
_md_escapefor markdown table formatting, usesshlex.quotefor shell safety, and enforces strict alphanumeric regex validation for all identifiers viafs_guard.py.\n- [COMMAND_EXECUTION]: Necessary interaction with thesfCLI is performed via subprocess calls to fetch and display org metadata.\n - Evidence:
scripts/sf_cli.py,scripts/resolve_bot.py, andscripts/metadata_listing.py.\n - Mitigations: The skill strictly uses list-based command arguments to avoid shell injection and validates all user-supplied and discovered parameters against a restrictive regex in
scripts/_shared/fs_guard.py.\n- [SAFE]: The skill implements advanced security controls for handling sensitive authentication tokens during its operation.\n - Evidence:
scripts/rest_client.pyincludes a customStripAuthOnCrossHostRedirecthandler to prevent token leakage on redirects and aredact_textutility to ensure tokens are scrubbed from all logging and error reporting output.\n - Subprocess execution in
sf_cli.pyandresolve_bot.pyincludes ownership and symlink checks to prevent file system attacks.
Audit Metadata