What Security Teams Should Ask Before Approving an AI Coding Agent

The right questions to ask before approving an AI coding agent cover seven control planes: account and tenant context, data handling, intentions, conversation context, tool-call governance, autonomous actions, and audit evidence. For enterprises, a top risk is that an approved agent reads source code, touches secrets, and executes actions no one can see or reverse. Security teams need control at the interaction layer, not just the network edge. Aurascape helps by discovering, classifying, and governing agent interactions and tool-execution paths where it is deployed.

Last updated: July 2026.

Approving an AI coding agent is not one yes-or-no sign-off. It is a review of seven distinct control planes, and a gap in any one of them undoes the rest. Use a concrete subject as you evaluate. Many coding agents read repository context, call tools, and act through developer workflows, but each one exposes those planes differently. If the agent can write code and push changes, the review has to cover behavior, not just output.

The supply-chain risk is real. In one published analysis, 95% of organizations now use AI tools for software development, yet only 24% conduct comprehensive intellectual property, license, security, and quality evaluations of the AI-generated code they ship. At least 80% of unauthorized AI transactions will be caused by internal policy violations rather than malicious attacks (Gartner, 2025). A structured evaluation cuts that risk before the agent touches production code.

The Consolidated Approval Checklist for AI Coding Agents

These questions map across every required control plane. Work through them in order before granting a coding agent access to production repositories, secrets, or external tools. Revisit the full list whenever someone adds a new model, a new permission, a new tool, or a new autonomous mode.

  1. Scope. Which repositories and directories may the agent read? Which branches may it write? Is write access restricted to a review stage, or can it push directly to protected branches?
  2. Model provenance. Who operates the underlying model? Is it hosted by the vendor, a third-party API, or a local runtime? Does the vendor use customer prompts or completions to train or fine-tune models? How long does it retain input context?
  3. Code and context flow. What leaves the developer environment, and when? Does the agent send whole files, selected snippets, or indexed embeddings? Does it transmit workspace indexes or file trees with every request?
  4. Retention, memory, and long-term context. How long do prompts, completions, embedded file content, conversation history, and workspace memory persist? Is conversation memory tied to a user account, a shared workspace, or the vendor’s infrastructure? Who can access it?
  5. Secrets and credentials. Can the agent read environment variables, .env files, cloud credential caches, or Git tokens? What does it inherit from the developer account when it takes action? Is there a control that stops it from forwarding a credential to an external endpoint?
  6. Permissions and least privilege. Does each capability (read, write, shell execution, external API call) require its own authorization and default to deny? What is the blast radius if a single instruction is malicious or wrong?
  7. Tool calls and integrations. Which external systems can the agent reach: Git hosting, package registries, cloud accounts, CI/CD pipelines, IDE extensions, marketplace plugins, Model Context Protocol (MCP) servers? Does each connection get approved individually?
  8. Human approval gates. Which actions require a human gate before execution: pushing to a protected branch, deleting infrastructure, publishing a package, invoking a cloud API? Does a control enforce the gate, or does it rely on the agent stopping itself?
  9. Prompt injection and context poisoning. What happens when the agent reads a malicious instruction hidden in a documentation file, an open issue, a package README, or a tool result? Does anything inspect that input inline before it influences the agent’s next action?
  10. Shadow discovery. Which coding agents and personal accounts already run on developer machines before this approval process began? Discovery has to come before policy.
  11. Audit evidence. What record does each agent action produce: which account acted, what data was shared, which tool was invoked, what the agent returned, and what policy decision occurred? Where is that record stored, and who can access it?
  12. Incident response. If the agent takes an unexpected action, what evidence is available immediately, who reviews it, and what control closes the execution path while the review runs?
  13. Re-approval cadence. When does the approval expire? What triggers an out-of-cycle review: a new model version, a new autonomous mode, a new MCP server, a new repository granted access?

What Must Be True Before Approval, and What Blocks It

A clean checklist still needs a decision rule. Grant approval only when the model operator is known, retention terms are documented, repository and branch scope is written down, each tool connection is authorized on its own, consequential actions sit behind a human gate, and a per-action evidence record is available. Miss any one of those and the agent is not ready for production access.

Several conditions block approval outright: an unknown or undisclosed model operator, unclear retention or training terms, unmanaged personal-account use, inherited credentials with no execution gate, unaudited tool calls, or no re-approval trigger at all. ISACA found that 90% of organizations say employees use AI tools, but only 38% have a formal, comprehensive AI policy and 25% have none (ISACA, 2026). A blocker list turns an aspirational policy into a decision anyone in AppSec, IT, or procurement can apply the same way every time.

Model Provenance, Supply Chain, Data Flow, and Retention

A coding agent is only as safe as the third-party model and supply chain it depends on. Ask procurement for specifics, not assurances: the model operator, any subprocessors, whether prompts or completions feed training or fine-tuning, retention terms for input context, the plugin and marketplace controls the vendor applies, and how the vendor notifies customers of model or capability updates. Each of those shifts the risk profile after approval.

For each coding agent, document whether repository context goes to a vendor service, a third-party model API, or a local runtime. The approval decision should name what leaves the developer environment, where it goes, and how long it persists. Retention, memory, and long-term context are among the most underevaluated dimensions in procurement, because prompts, completions, embedded file content, workspace indexes, and conversation memory each persist for different durations on different infrastructure. If the agent uses a personal account rather than an enterprise tenant, that context can fall outside the organization’s data agreements entirely. For detailed walks through code retention paths, see what an AI coding tool stores, retains, or trains on, how source code can leave a coding tool, and the broader guidance on securing AI coding assistants.

A policy that ignores retention and model provenance cannot govern the agent-to-cloud data path. Aurascape’s 600+ real-time data classifiers classify the code inside the AI exchange, so the review answers the sensitive-code question with an enforceable policy action: allow, coach, warn, block, or redact (Aurascape, 2026).

Secrets, Credentials, and Runtime Permission Escalation

Secrets create immediate runtime risk because they let a coding agent move from suggestion to action. Environment variables, .env files, cloud credential caches, and Git tokens all sit in the same workspace the agent reads. The question is not only whether the agent can see secrets, but what it inherits from the developer account when it acts. Treat the agent’s effective privilege as the developer account, Git token, and cloud credential set available at runtime until the vendor proves a narrower boundary.

Credential inheritance and runtime permission escalation are the blind spots most procurement guides name but cannot address. Controls tied to approved destinations allow traffic to an approved service while missing the action buried inside the AI exchange. An agent authorized to read a repository can, mid-conversation, get steered into using a cached cloud credential to reach a production bucket. The control has to act at the moment of the tool call, in the account and tenant context where the agent runs, not only at the network edge.

Context poisoning compounds this. A malicious instruction hidden in a documentation file, an open issue, a package README, or a tool result can redirect an otherwise well-governed agent. OWASP ranks Prompt Injection (LLM01) and Excessive Agency (LLM06) among the top risks for AI coding applications (OWASP, 2025). Ask whether the agent inspects untrusted content before letting it influence the next action, not only whether it monitors the agent’s own prompts. For the risks specific to Claude Code in a source-code context, see risks of using Claude Code with company source code.

Tool-Call Authorization and Plugin Governance

A modern coding agent does more than write text. It calls Git, package registries, shell, cloud APIs, CI/CD pipelines, and any MCP server a developer wires up. IDE extensions and marketplace plugins widen that surface further. Each tool call is an action with real-world effect, so the review has to establish which tools the agent can reach, which connections are approved on their own, and which actions require a human gate before execution.

The exposure is concrete. Researchers found more than 12,520 internet-accessible MCP services, mostly unauthenticated, because the protocol does not require authentication by default (Censys, 2026). A coding agent that can reach unauthenticated endpoints acts in ways the approval document cannot predict. MCP is one common tool-execution pattern in agentic coding workflows, not the whole agent access-control problem, so evaluate every path the agent can act through: shell, Git, cloud connectors, and registered plugins.

In governed MCP workflows, Aurascape’s Zero-Bypass MCP Gateway cryptographically signs approved tool calls and blocks unsigned ones before execution, governing the agent-to-tool execution path inline rather than observing it after the fact (Aurascape, 2026). Security teams get a circuit breaker at the exact moment an agent tries to act on an unauthorized connection, which is where the cross-platform permissions problem is hardest to close by policy alone.

Shadow Discovery, Audit Evidence, and Incident Response

The hardest question in any approval process is the one about tools no one submitted for review. Individual engineers install coding agents, connect personal accounts, and wire up MCP servers before a formal process exists. Controls that watch approved destinations miss local agents, personal accounts, and tool paths that surface only when an agent acts.

Aurascape discovers AI apps, accounts, and agents across the network, endpoint, and API planes. The endpoint agent is required for local AI agent discovery and for real-time coaching of non-browser activity such as a terminal session or a desktop coding agent (Aurascape, 2026). The approval checklist then applies retroactively to tools already running on developer machines, not only to the ones that filed a ticket. The National Cybersecurity Alliance found that 43% of employees admit sharing sensitive workplace information with AI tools without employer knowledge (National Cybersecurity Alliance, 2025). Discovery closes that gap before the audit.

Vendor audit answers often stop at traffic logs or generated-output logs. Ask instead for interaction-level records that connect account, data, tool, result, and policy decision. That record is what AppSec and compliance teams reach for during an incident-response review, and it is what turns cross-platform audit logs into usable evidence. Where Aurascape is deployed, it produces interaction records for audit and effectiveness, governed by role-based access control (RBAC) for privacy, capturing the actions that traverse the proxy and the governed tool-execution paths it enforces (Aurascape, 2026). The incident-response workflow then runs on that evidence: the reviewer sees which account acted and which tool was invoked, and the governed execution path closes while the review runs.

How Each Approval Question Maps to an Enforceable Answer

Capability Destination-level control model Aurascape
Sensitive-code classification Allows or blocks by destination; content inside the AI exchange may not be classified 600+ real-time data classifiers on the interaction itself
Tool-call authorization Action context inside the exchange may not be visible at the network layer In governed MCP workflows, unsigned tool calls blocked before execution
Shadow agent inventory Unsanctioned local agents may not appear in traffic until they act Local discovery of agents and accounts on developer machines
Per-action audit record Traffic-layer or output-layer logs may not capture account, tool, or policy decision Interaction-layer record of account, data, tool, result, and policy decision
Real-time policy actions Typically allow or block at the destination level Allow, coach, warn, block, redact on the interaction

An Operating Model for Re-Approval

Approval is not permanent. A coding agent that passes review today can change materially with the next model update or a newly wired MCP server. Run three review types on a defined cadence:

  1. Initial approval. The full checklist and blocker list, completed before the agent can reach any production repository, secret, or external tool.
  2. Event-triggered review. Re-run the affected planes when the vendor ships a new model version, enables a new autonomous mode, adds an MCP server or plugin, or grants the agent a new repository.
  3. Scheduled re-approval and revocation. A fixed expiry (for example, quarterly) that forces a fresh sign-off. When a scheduled or event-triggered review fails, revoke access and close the execution path until the gap is fixed.

Continuous inline monitoring between reviews makes this cadence enforceable instead of aspirational. Gartner predicts over 40% of agentic AI projects will be canceled by the end of 2027 due to escalating costs, unclear business value, or inadequate risk controls (Gartner, 2025). A repeatable re-approval model keeps a coding-agent program on the right side of that number.

Frequently Asked Questions

What questions should security teams ask before approving an AI coding agent?

Cover seven control planes: scope and operational boundary, model provenance and data flow, retention and memory, secrets and credentials, tool-call authorization, autonomous actions with human gates, and audit evidence per action. For each plane, require an enforceable answer tied to a specific control, not a policy document that trusts the agent to behave.

What is a top risk when a coding agent touches source code?

A top risk is that proprietary code, embedded secrets, and workspace context leave the developer environment without classification or control. OWASP also identifies Sensitive Information Disclosure (LLM02) as a top risk for AI coding applications. Real-time data classification at the interaction layer governs which code travels to a model while keeping the tool productive.

How do you control which tools an AI coding agent can invoke?

Authorize each tool call on its own and default to deny. Require human approval gates for consequential actions such as pushing to a protected branch, publishing a package, or invoking a cloud API. In governed MCP workflows, unsigned tool calls are blocked before execution, including calls triggered mid-conversation.

What is context poisoning and why does it matter for coding agents?

Context poisoning hides a malicious instruction inside content the agent treats as trusted: a documentation file, an open issue, a package README, or a tool result. The agent reads the content as context and acts on the embedded instruction without recognizing it as an attack. This is the mechanism behind indirect prompt injection, and it is why inline inspection of untrusted content is a distinct requirement from monitoring the agent’s own prompts.

What about coding agents engineers already installed without approval?

Discover them before writing policy. Aurascape’s local agent discovery surfaces agents, accounts, and integrations already running on developer machines, so the approval checklist reaches tools that predate the formal review process. Discovery across the network, endpoint, and API planes is the prerequisite for any shadow AI governance program.

What audit evidence should an approved coding agent produce?

Evidence at the interaction layer for the agent actions the platform governs: which account acted, what data was shared, which tool was invoked, what the agent returned, and what policy decision occurred. Where Aurascape is deployed, it captures this record under RBAC for privacy. For cross-platform compliance and incident response, that per-action record is what AppSec teams need to demonstrate control after the fact.

How often should an approved AI coding agent be re-evaluated?

On a fixed cadence and on event triggers. Re-run the full checklist when the vendor updates the underlying model, adds a new autonomous mode, expands the tool list, or grants access to a new repository. Continuous inline monitoring between scheduled reviews catches changes a periodic sign-off would miss.


Aurascape turns AI coding agent approval from a paper checklist into enforceable control, with local discovery of agents and accounts, real-time data classification on the code they touch, signed tool-call governance in governed MCP workflows, and interaction-layer evidence for the actions it governs.

See how Aurascape governs AI coding agents →

Aurascape Solutions