Back to controls

AI agents should not run with unrestricted tool permissions

AI agents can turn permissions into actions. If an agent has unrestricted tools, wildcard policies, or broad runtime tokens, prompt injection can become data access, infrastructure changes, or lateral movement.

Category

Controls

High

Applies to

KubernetesMicrosoft Azure

Coverage

1 queries

Asset types

4 covered

Overview

AI agents can turn permissions into actions. If an agent has unrestricted tools, wildcard policies, or broad runtime tokens, prompt injection can become data access, infrastructure changes, or lateral movement.

Remediation guidance

Remediation

Scope agent tools to the smallest action set needed by the use case. Disable default service account token mounting for Kubernetes AI workloads unless the token is required, and use dedicated service accounts with bounded permissions.

Rollout guidance

  1. Identify agent workloads and their enabled tools.
  2. Remove wildcard tools and administrative permissions.
  3. Add explicit allowlists, approval gates, and audit logging for high-impact tools.
  4. Re-scan after the agent configuration is updated.

Query logic

These are the stored checks tied to this control.

AI agents should not run with unrestricted tool permissions

Connectors

KubernetesMicrosoft Azure

Covered asset types

AI ServicesDeploymentPodService Account

Expected check: eq []

{
  azureAIFoundryProjects(where: { toolPermissions_INCLUDES: "*" }) { ...AssetFragment }
  azureMachineLearningEndpoints(where: { toolPermissions_INCLUDES: "*" }) { ...AssetFragment }
  pods(where: { annotations_SOME: { key: { eq: "cyscale.com/ai-signals" }, value_MATCHES: "(?i).*agent.*" }, OR: [ { automountServiceAccountToken: { eq: true } } { isAutomountServiceAccountTokenSet: { eq: false } } ] }) { ...AssetFragment }
  deployments(where: { podTemplate: { annotations_SOME: { key: { eq: "cyscale.com/ai-signals" }, value_MATCHES: "(?i).*agent.*" }, OR: [ { automountServiceAccountToken: { eq: true } } { isAutomountServiceAccountTokenSet: { eq: false } } ] } }) { ...AssetFragment }
  serviceAccounts(where: { annotations_SOME: { key: { eq: "cyscale.com/ai-service" }, value: { eq: "true" } }, OR: [ { automountServiceAccountToken: { eq: true } } { isAutomountServiceAccountTokenSet: { eq: false } } ] }) { ...AssetFragment }
}
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon