Join our Newsletter — 33% off our NHI Course

How do security teams decide which AI coding tools and models should be approved or blocked?

Security teams should evaluate AI coding tools using policy, reputation, access scope, and compliance fit. A practical approach is to inventory every assistant, model, and connected context source, then block anything that is unapproved, overly permissive, or likely to expose sensitive data. Approval decisions should be based on measurable control coverage, not developer convenience alone.

Why This Matters for Security Teams

AI coding tools are no longer simple autocomplete add-ons. They can read source code, ingest repository context, call external services, and sometimes act on behalf of a developer. That means an approved tool can become a data exfiltration path, a secrets exposure path, or a supply chain risk if its permissions, model behavior, or connected plugins are not tightly governed. Security teams need to evaluate the full trust chain, not just the vendor name.

The practical standard is closer to application and identity risk review than to a normal software request. A tool that has broad repo access, persistent memory, or weak tenant isolation should be treated differently from a local assistant with narrowly scoped context. Guidance from the NIST Cybersecurity Framework 2.0 supports this kind of inventory and risk-based decision-making, while NHIMG research shows how quickly exposed tooling becomes real compromise, as seen in JetBrains GitHub plugin token exposure and the JetBrains Marketplace AI Plugin Campaign.

Approval decisions should therefore reflect what the tool can access, where its outputs flow, and whether the organization can prove control over prompts, secrets, and downstream actions. In practice, many security teams discover the risky parts only after a plugin or model has already been wired into developer workflows.

How It Works in Practice

A workable approval process starts with an inventory of every AI coding assistant, IDE plugin, hosted model, on-prem model endpoint, and connected context source. Security teams then classify each one by data access, execution privilege, network reach, retention behavior, and whether it can write code, open pull requests, or trigger actions. Current guidance suggests treating embedded context sources, plugins, and model connectors as part of the trust boundary, not as harmless extras.

From there, approval is usually based on measurable controls:

  • Identity and access scope: does the tool authenticate with least privilege and separate user, service, and tenant identities?
  • Data handling: does it store prompts, code, embeddings, or completions, and for how long?
  • Model governance: is the model source known, versioned, and covered by acceptable use policy?
  • Plugin and connector risk: can it reach GitHub, ticketing systems, secret stores, or cloud APIs?
  • Logging and review: can security teams see who used it, what it accessed, and what it changed?

For implementations that matter at scale, the best practice is to pair policy with technical enforcement. That includes allowlists, tenant restrictions, secret scanning, DLP where appropriate, and periodic reassessment of model and plugin changes. NHIMG’s State of Secrets in AppSec is especially relevant here because AI coding tools frequently surface secrets already present in code, and the Code Formatting Tools Credential Leaks case shows how productivity tools can quietly become credential exposure channels. These controls tend to break down in fast-moving engineering environments where teams can install new extensions or swap models without central review because the approval workflow cannot keep pace.

Common Variations and Edge Cases

Tighter approval controls often increase friction for developers, so organisations must balance speed against exposure. That tradeoff becomes more pronounced when teams use multiple models for different tasks, when contractors need temporary access, or when regulated codebases require stricter handling than general application work.

There is no universal standard for this yet, but current guidance suggests using different approval tiers rather than a single allow-or-block decision. For example, a tool may be approved for non-sensitive public code but blocked for repositories containing customer data, production infrastructure, or regulated workloads. A model may also be approved only through a brokered environment where prompts are filtered and outputs are logged.

Edge cases often involve indirect risk rather than the model itself. An assistant with no training retention may still be unsafe if it can query a retrieval system containing secrets. A local coding tool may still be risky if it can install extensions or sync telemetry to an unmanaged cloud tenant. NHIMG research on the Replit AI Tool Database Deletion and the Amazon Q AI Coding Agent Compromised incident shows why the approval question must include runtime authority, not just model reputation. Security teams should block anything they cannot scope, observe, or revoke quickly.

Standards & Framework Alignment

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

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

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Controls credential lifecycle risk for AI tools and connected services.
OWASP Agentic AI Top 10 A-05 Addresses unsafe agent or tool execution when coding assistants act autonomously.
CSA MAESTRO M1 Covers governance and trust requirements for AI systems and tools.
NIST AI RMF Supports governing AI risk through inventory, measurement, and ongoing oversight.
NIST CSF 2.0 PR.AC-3 Relevant to access enforcement for tools that reach code and secrets.

Approve only tools with constrained actions, clear boundaries, and monitored execution.