Skip to main content

AGENTFORCE-26.3: Agent Audience or Preference Scope Without RLS

๐ŸŸก Medium ยท Broken Access Control

Detects agent-invoked Apex that reads standing / preference / audience / channel-scope records without with sharing and without USER_MODE. Audience gates described in agent instructions (for example Manager only / Meeting hosts) are then honored on trust rather than Salesforce record-level security.

Detailsโ€‹

FieldValue
Rule IDAGENTFORCE-26.3
SeverityMedium
CategoryBroken Access Control
ComplianceSOC2_CC6, HIPAA

Remediationโ€‹

Declare the Apex class with sharing (or inherited sharing), run preference / standing queries with AccessLevel.USER_MODE or WITH USER_MODE, and enforce audience membership in Apex against the running user (group / role / custom permission) rather than trusting a stored preference label alone.

See Alsoโ€‹