agentforce-d360-analyze
Audited by Socket on Aug 17, 2026
1 alert found:
AnomalyThis module is primarily an internal integration utility for Salesforce data querying: it loads local SQL templates, resolves a Salesforce org alias via the local `sf` CLI, retrieves an OAuth access token, and sends the SQL to a Salesforce endpoint using an authenticated HTTPS POST. There is no strong indicator of overt malware in the snippet, but it is security-sensitive: it explicitly forces the CLI to expose secrets (`SF_TEMP_SHOW_SECRETS=true`), handles bearer tokens directly, and can leak sensitive material via thrown exceptions (HTTP error body and SQL prefix). Additional concerns are the PATH/supply-chain trust of the external `sf` binary and the use of naive string substitution for SQL templating if any template parameters are untrusted.