Subscribe to the Non-Human & AI Identity Journal

Why do agentic apps need both tool controls and data controls?

Because tool controls only limit what the agent can attempt, while data controls determine what the agent can actually read or change. If the database or service account remains broad, a restricted tool can still become a route to unauthorized access. The two layers need to agree, or the weaker one defines the real privilege boundary.

Why This Matters for Security Teams

Agentic apps do not fail like ordinary applications because they are not bound to one fixed workflow. An agent can chain tools, change plans mid-task, and reach data through whichever path is still open. That means a well-restricted tool does not guarantee a well-restricted outcome if the backing data store, service account, or API scope remains broad. Current guidance from OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point toward layered controls, because one control plane cannot safely stand in for another.

NHI Management Group research on AI Agents: The New Attack Surface shows how quickly this becomes operational: 80% of organisations say their AI agents have already acted beyond intended scope, and 33% report access to inappropriate or sensitive data. That is why tool permissions and data permissions have to be treated as separate enforcement layers, not interchangeable settings. In practice, many security teams encounter the gap only after an agent has already copied, queried, or exfiltrated data through a path no one expected.

How It Works in Practice

Tool controls govern what the agent can invoke. Data controls govern what the invoked service can return, change, or disclose. For agentic apps, both are necessary because runtime behaviour is dynamic: an agent may start with one tool, then call another tool that reaches the same backend through a different route. If the underlying database role still allows broad reads, the agent can often retrieve more than the tool designer intended.

A workable pattern is to pair least-privilege tool scopes with equally narrow data entitlements. That usually includes:

  • Tool allowlists for approved actions only, with explicit deny rules for high-risk operations.
  • Ephemeral credentials or JIT access so the agent receives only the access needed for the current task.
  • Data-layer controls such as row-level security, field filtering, scoped API queries, and redaction.
  • Request-time policy decisions so the system checks the agent’s intent, context, and target data before each action.
  • Separate identities for the agent, the tool broker, and the downstream data service, so compromise does not collapse all boundaries at once.

This is also where workload identity matters. Standards such as SPIFFE and policy engines aligned to NIST AI RMF help teams prove which workload is acting, while CSA MAESTRO agentic AI threat modeling framework is useful for mapping how tools, data stores, and orchestration layers combine into one attack path. NHI Management Group’s OWASP NHI Top 10 guidance is especially relevant where a service account or token outlives the task it was meant to support.

These controls tend to break down when legacy backends share one overprivileged service account across multiple tools because the data layer becomes the real privilege boundary, regardless of what the agent UI says.

Common Variations and Edge Cases

Tighter control often increases integration overhead, so organisations have to balance safety against deployment speed and operational complexity. That tradeoff is real, especially when multiple agents, legacy APIs, and human override paths all touch the same data.

There is no universal standard for this yet, but current guidance suggests three common edge cases matter most. First, read-only tools are not automatically safe if the data source exposes sensitive records through broad search or export functions. Second, write-limited tools can still cause harm if they can trigger workflows that indirectly alter privileged records. Third, analytics or retrieval agents may never “edit” data, yet still need strict data filters because exposure alone can be a security incident.

Security teams should also watch for agents that operate across environments. A tool may be safe in development but unsafe in production if the production database holds broader records or the service account has wider scopes. This is where the distinction between tool authority and data authority becomes operational, not theoretical. For examples of how fast exposed credentials can be abused in agentic environments, NHI Management Group’s LLMjacking research and Moltbook AI agent keys breach analysis show why short-lived access and data minimisation need to travel together.

Where teams rely on one broad backend identity for convenience, the app usually fails the moment an agent finds an alternate path to the same data.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A2 Agent tools and data scopes both affect prompt-to-action abuse.
CSA MAESTRO GOV-01 MAESTRO covers governance across tools, data, and orchestration paths.
NIST AI RMF AI RMF addresses risk management for autonomous systems using runtime context.

Use AI RMF to govern agent intent, access decisions, and monitoring across the full lifecycle.