Skip to main content

AGENTFORCE-1.4: Agent Write Without User Identity Binding

๐Ÿ”ด High ยท Excessive Agency

Detects Agentforce write/delete actions whose Apex/Flow target runs outside the end-user identity (without sharing or SYSTEM_MODE / system-mode Flow). Prompt injection can then change records the chatting user could not reach.

Detailsโ€‹

FieldValue
Rule IDAGENTFORCE-1.4
SeverityHigh
CategoryExcessive Agency
ComplianceSOC2_CC6, NIST_AI_RMF, EU_AI_ACT_HIGH_RISK

Remediationโ€‹

Bind the action to the end-user: use 'with sharing' / 'inherited sharing' on Apex, AccessLevel.USER_MODE (or WITH USER_MODE) for dynamic SOQL/DML, and DefaultMode / user-context Flows. Also set isConfirmationRequired / require_user_confirmation to true for write and delete actions.

See Alsoโ€‹