Learning · AI Security & Compliance

    Connector & Data-Boundary Security for AI Agents

    Why 'assumed access' ≠ 'effective access', how AgentDojo / VPI-Bench / ToolPrivacyBench inform your test harness, and the 8–14 week program that replaces one-off connector reviews.

    AI Security & Compliance23 min readPublished July 8, 2026

    Why connectors are the sharpest edge

    In the 2024–2025 wave, most AI security posture was model-centric: which foundation model, which retention policy, which region. In 2026 the sharp edge has moved to connectors. Every OAuth scope granted to a Copilot / Claude / ChatGPT Enterprise connector is a potential exfiltration channel and an amplifier of pre-existing SharePoint / OneDrive oversharing.

    The public practitioner conversation reflects this. An April 2026 r/sysadmin thread on the Claude–Microsoft 365 connector focused entirely on delegated permissions, subprocessors, and data-residency implications. The model was not the concern; the boundary was.

    Effective access vs assumed access

    Every AI-connector rollout begins with an effective-access audit — real access surfaced across users, groups, sharing links, guest access, and orphaned permissions. In every engagement we've run, this audit surfaces at least an order of magnitude more accessible data than the security team assumed.

    The reason is structural: SharePoint's 'anyone with link' pattern, group nesting, and legacy guest access accumulate silently. AI connectors do not create the oversharing — they operationalize it. The remediation window is before enablement, not after.

    OAuth scope minimization

    Vendor connectors default to broad scopes. A scope-minimization pass — done per connector with the vendor's documentation and your data-boundary owner — routinely reduces granted scopes by 40–70% without loss of functionality.

    The registry captures the minimum required scope, the granted scope, the subprocessor chain, the residency posture, the logging behavior, and the model-training behavior. Every scope increase requires a re-review.

    Prompt-injection and exfiltration defense

    Any document, ticket, email, or comment reaching a model is potentially injection-bearing. The engagement installs a sanitization + provenance-tagging layer between retrieval and model, classifies every retrieved chunk by trust source, and separates system + trusted from user + untrusted content in the context window.

    The test harness — an AgentDojo-style adversarial suite adapted to your tools — runs continuously against staging. Attack success rate is a first-class metric.

    Residency, subprocessors, and flex-routing

    May 2026's public conversation about Microsoft Copilot flex routing was a reminder that residency posture can change silently. The program includes weekly monitoring of provider status pages and subprocessor lists, with named-owner alerts on change.

    Where flex routing or subprocessor drift creates residency risk, the design accommodates it — regional routing, on-tenant inference, or scope-limited connectors — rather than waiting for an audit finding.

    8–14 week implementation sequence

    • Weeks 1–3: effective-access audit; connector registry v1.
    • Weeks 4–6: scope-minimization pass; provenance tagging + injection sanitization.
    • Weeks 7–10: injection + exfiltration test suite; residency-change monitoring.
    • Weeks 11–14: SharePoint / OneDrive remediation; handoff + on-call rehearsal.

    Failure modes to avoid

    • Treating connectors as one-time reviews. The registry + tests + monitoring must keep running.
    • Overconfidence in 'read-only' connectors — read is still exfiltration surface.
    • Time-unbounded scope exceptions. Every exception carries an expiry date.
    • Ignoring multimodal / visual injection. Images and PDFs get the same sanitization pass.
    • Silent vendor changes. Weekly monitoring is not optional.

    Standards this maps to

    NIST AI RMF

    Map + Measure functions cover the connector registry + injection-testing dimensions.

    OWASP Agentic Top 10

    Injection, tool misuse, and identity categories map directly.

    MITRE ATLAS

    Adversary tactics inform the injection + exfiltration test suite.

    ISO/IEC 27001 + 42001

    Access control (27001) and AI-specific management (42001) both apply.

    Research base

    • AgentDojo

      Realistic prompt-injection evaluation for tool-using agents.

    • VPI-Bench

      Visual prompt injection against computer-use agents.

    • AutoDojo

      Adaptive-attack evaluation exposes overstated robustness of static defenses.

    • ToolPrivacyBench

      Need-to-know disclosure boundaries across multi-tool trajectories.

    Frequently asked questions

    What is a connector risk and data-boundary program?+

    A continuous program — not a one-time review — that maintains an AI-connector registry (scopes, subprocessors, residency, logging, training), enforces minimum required scopes, sanitizes and provenance-tags retrieved content, and continuously tests connectors against prompt-injection and exfiltration attacks.

    How is this different from a DLP program?+

    DLP tools broadly detect data movement. A connector program specifically covers the AI-agent surface — scope grants, injection defense, residency posture, subprocessor drift — that most DLP programs don't yet address well.

    Do we need to clean up SharePoint before enabling Copilot?+

    Yes — because 'assumed access' is not 'effective access'. AI connectors amplify pre-existing oversharing overnight. The effective-access audit is the first deliverable.

    How do you test prompt injection?+

    AgentDojo-style adversarial tasks adapted to your tools + connectors, run against staging with pass/fail thresholds owned by security.

    How often should this re-run?+

    Registry + monitoring is continuous. Deep effective-access audit is quarterly for high-risk tenants and semi-annual otherwise.