Salesforce Agentforce is Salesforce's platform for building and deploying AI agents that act on CRM data and business workflows. Each agent operates with granted access, so over-permissioned agents or prompt injection through customer-supplied content, such as emails or case text, can expose records or trigger unintended actions. Defenders review agent permissions, scope actions narrowly and audit agent activity.
What Agentforce Is in Practice
Salesforce Agentforce is not just an AI feature, it is an operational layer that can read CRM context and carry out business tasks with whatever authority it is given. That makes the platform useful for automation, but it also means security posture depends on how tightly the agent’s role, data access and action scope are defined.
Because the agent is acting inside a live business workflow, the important distinction is not whether it can help, but whether its permissions match the task. A broad agent can become a broad decision-maker, which is why Agentforce should be treated as an access-bearing component rather than a passive chatbot.
Why Permissions and Scope Matter
Agentforce agents can touch customer records, support cases and downstream workflows, so over-permissioning has the same basic failure mode as any excessive-access system: the agent can see or change more than it needs. Narrow scoping reduces the blast radius if a prompt, connector, or workflow step behaves unexpectedly.
Salesforce administrators should think in terms of task-bound authority. If an agent only needs to summarize a case or draft a reply, it should not also be able to expose records, modify approvals, or invoke unrelated actions. The security goal is to align the agent’s effective privilege with the smallest meaningful workflow slice.
Prompt Injection and Untrusted Content Paths
Agentforce is especially sensitive to indirect prompt injection when customer-supplied content is fed into the agent’s context. Emails, case notes, web form text and other untrusted inputs can carry instructions that compete with the intended workflow, which is why content boundaries matter as much as model quality.
This risk is most dangerous when the agent can both read sensitive CRM data and trigger actions on that same data. A crafted message may not just influence the wording of a response, it can redirect the agent toward disclosure, escalation or unintended business actions if the surrounding guardrails are weak.
Defensive design should assume that some inbound text is adversarial, even when it arrives through legitimate customer channels. That means separating instructions from content, constraining tool use and treating externally supplied text as data unless it has been explicitly validated for action.
Monitoring, Auditability and Recovery
Agent activity needs a clear audit trail so teams can tell what the agent saw, what it attempted, and what it completed. Without traceability, it becomes difficult to distinguish a valid automation outcome from a compromised or misdirected one, especially when the agent operates at scale.
Post-incident review should focus on the agent’s permissions, the inputs it processed, and any records or actions it touched outside the expected workflow. Where the platform or connected workflows expose identity-bearing material such as tokens or service credentials, those should be reviewed and rotated if compromise is suspected.
For background on platform hardening, the Securing Salesforce Agentforce Guide covers the practical control points around permissions, Trusted URLs and tracing, while the Low-Code Agent Platform Security Guide explains the broader governance pattern for low-code agents and their connectors.
Risk and Threat Considerations
Agentforce concentrates business data access and action execution in one place, which means a single mis-scoped agent can create both confidentiality and integrity exposure. The main threat is not merely model error, but an attacker steering the agent through trusted CRM workflows to leak records or trigger actions the user never intended.
Failure mechanism: Over-permissioned agents, weak tool boundaries, and prompt injection through untrusted customer content can let malicious instructions override the intended workflow and abuse the agent’s granted authority.
Impact: The result can be CRM data exposure, unauthorized workflow execution, phishing sent under the agent’s identity, or broader trust loss in automated customer interactions.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP API Security Top 10 define the specific risk controls and attack patterns relevant to this term.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agentforce agents act with delegated authority over data and workflows. |
| ASI02 — Tool Misuse | Agentforce can invoke actions and workflows that must be tightly bounded. | |
| ASI06 — Memory & Context Poisoning | Prompt injection through customer content can poison the agent’s context. | |
| Recommendation — Restrict agent privileges and action scope to prevent delegated authority abuse. Constrain tool access and validate every high-impact agent action. Separate untrusted content from instructions and harden context handling. | ||
| OWASP API Security Top 10 | API5 — Broken Function Level Authorization | Agent actions and workflow calls need function-level authorization checks. |
| API1 — Broken Object Level Authorization | CRM records must not be exposed beyond the agent’s intended object scope. | |
| Recommendation — Enforce function-level authorization on every agent-triggered operation. Verify object-level access checks for every record the agent can reach. | ||
Practitioner Guidance
Why practitioners should care: Agentforce is only safe when the business process behind it is explicit. If the agent can take actions that a human reviewer would not approve without context, the permission model is too broad for production use.
Governance implication: Treat agent permissions, allowed actions, and approved data sources as part of the control design, not as post-launch tuning. Review them as you would any other privileged workflow, because the agent’s authority is real even when the interface feels conversational.
Practitioner takeaway: The safest Agentforce deployments are the ones where the agent is useful without being trusted to improvise.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org