investigating-agentforce-architecture
Warn
Audited by Snyk on Jun 12, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (high risk: 0.85). The skill’s runtime pipeline fetches outsider-authored free text from the target Salesforce org’s metadata—e.g., Flow
Metadata(complexvalue) and ApexBody/SymbolTable—via Tooling/Data API SOQL calls inscripts/fetch_soql.py(e.g.,fetch_flow_metadata()→Flow.Metadata,fetch_apex_bodies_by_*()→ApexClass.Body), and then renders/embeds that content into the LLM-visiblearchitecture.md/tree JSON context.
MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).
- Potentially malicious external URL detected (high risk: 0.80). The skill, at runtime, calls the org's Salesforce REST/Metadata endpoints (via the sf CLI / rest_client against the org instance URL, e.g. https://.salesforce.com) to retrieve GenAiPromptTemplate bodies which are injected into the metadata tree and therefore can directly control prompts/instructions.
Issues (2)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W012
MEDIUMUnverifiable external dependency detected (runtime URL that controls agent).
Audit Metadata