Closing an Azure OpenAI assistant's retrieval gap didn't take a new identity platform. It took one filter and a narrower assistant.
An Azure OpenAI email assistant that auto‑resolved ~60% of inbound messages leaked privileged SharePoint content because its retrieval pipeline lacked document‑level ACL enforcement. Azure AI Search added native Entra‑based ACL trimming in a May 2025 preview and SharePoint ACL sync in a 2026‑05‑01‑preview API (spg: prefix), but the feature is not enabled by default and many custom pipelines still query with a highly privileged service account. Independent red‑team research showed 91% of successful attacks on production agents resulted in silent data exfiltration, underscoring the risk of missing entitlement checks.
⚡ Key Takeaways
- The assistant auto‑resolved about 60% of inbound customer email before the entitlement bug was discovered.
- Azure AI Search’s document‑level ACL trimming (Entra‑based tokens) shipped in a May 2025 preview; SharePoint ACL sync arrived in a 2026‑05‑01‑preview API using the `spg:` prefix.
- Default behavior for Azure OpenAI On Your Data is fail‑open (document‑level access disabled) when the `permitted‑groups` field is not mapped, leading to silent data leakage.
- Custom RAG pipelines that bypass Azure AI Search inherit a broadly privileged service account unless developers implement their own entitlement filter.
- Straiker’s STAR Labs Threat Report recorded 1,700+ successful exploit attempts, with 91% ending in undetected data exfiltration.
Engineers must explicitly enable and verify document‑level security filters in Azure AI Search or build equivalent checks, otherwise production agents can unintentionally expose sensitive data at scale.
✅ Practical Steps
- Ensure the Azure AI Search index maps the `permitted‑groups` field and enable Entra‑based token filtering for document‑level ACLs.
- When using Azure OpenAI On Your Data, configure the retrieval pipeline to reference the secured Azure AI Search index rather than a broad service‑account index.
- If building a custom RAG pipeline, add a query‑time entitlement filter that validates the requester’s Azure AD token against SharePoint ACLs before returning results.
Want the full story? Read the original article.
Read on VentureBeat AI ↗