investigating-agentforce-architecture
Pass
Audited by Gen Agent Trust Hub on Jun 12, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill documents Agentforce agent architecture by querying Salesforce metadata (Flows, Apex, Prompts) via the official Salesforce CLI (
sf). Analysis of the skill reveals a security-first design with multiple defensive layers: - [CREDENTIALS_UNSAFE]: No hardcoded credentials were found. The skill retrieves temporary access tokens via the
sfCLI. Both the REST client and the CLI wrapper include automated redaction logic (using regular expressions) to ensure tokens never appear in logs, error messages, or tracebacks. - [EXTERNAL_DOWNLOADS]: Network operations are restricted to Salesforce's official APIs (Tooling and Data REST APIs) and metadata retrieval via the
sfCLI. These are standard operations for Salesforce development tools and target well-known, trusted domains. - [COMMAND_EXECUTION]: Command execution is handled securely through the
sf_cli.pywrapper, which usessubprocess.runwith list-based arguments to prevent shell injection. All parameters are validated at the skill boundary. - [DATA_EXFILTRATION]: No data exfiltration patterns were detected. The skill processes metadata to generate local documentation files. It includes a custom redirect handler that strips authorization headers if a request is redirected to a different host, preventing token leakage.
- [PROMPT_INJECTION]: The skill instructions in
SKILL.mdfocus on pipeline orchestration and input validation. No instructions attempting to bypass AI safety guidelines or override system prompts were identified. - [DYNAMIC_EXECUTION]: The skill uses
yaml.safe_loadfor parsing configuration and SOQL templates with strict substitution validation, effectively mitigating injection and dynamic execution risks.
Audit Metadata