Skip to main content

SNOW-AF-06: Inline Agent Tool Script Without Record ACL

๐Ÿ”ด High ยท ServiceNow Action Fabric

Detects inline sn_aia_tool scripts that query or change business records with plain GlideRecord (which skips ACLs) instead of GlideRecordSecure, so the agent can read or change rows the user should not see. Static sys_choice / sys_dictionary lookups and the AI Agent Studio CRUD template (GlideRecordSecure + canRead/canWrite) are not reported. High; critical when the script deletes, writes a sensitive table, or writes server code or configuration. This is the agent-tool rule; SNOW-28.2 stays the generic check.

Detailsโ€‹

FieldValue
Rule IDSNOW-AF-06
SeverityHigh
CategoryServiceNow Action Fabric

Remediationโ€‹

Use GlideRecordSecure (or an explicit canRead/canWrite/gs.hasRole check) for business tables in the sn_aia_tool script, do not take the record key only from the model, and return only fields the caller is allowed to see.

See Alsoโ€‹