Join our Newsletter — 33% off our NHI Course

Why do AI-generated code controls lag behind assistant adoption?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: AI coding assistants now reach 84% of developers, and 46% say they do not trust AI-generated results, because visibility, logging, policy enforcement and data controls are not keeping pace, according to Knostic. CI/CD and repository guardrails are what keep assistant output auditable before it reaches production.

Editorial analysis by NHI Mgmt Group, based on content published by Knostic: “Governance for your AI Coding Assistant”.

By the numbers:

  • 84% of developers use or plan to use AI tools in their development workflows, according to Knostic.
  • 46% of developers do not trust the accuracy of AI-generated results, according to Knostic.
  • 58% of employees admitted they had pasted sensitive data into LLMs, according to Knostic.

Key questions

Q: Why do AI coding assistants create compliance and audit risk?

A: They create compliance and audit risk because they can generate code and process inputs outside traditional review paths.

Q: What are the signs that AI governance is failing in the enterprise?

A: Common warning signs include rapid growth in AI use without matching policy coverage, sensitive files being copied into personal accounts, and a large share of AI apps carrying high or critical risk.

Q: What breaks when AI-generated code and AI coding assistants are not governed like other SDLC risks?

A: What breaks is the review model.

Practitioner guidance

  • Define approved AI coding use cases Allow AI assistance for low-risk tasks such as boilerplate, documentation, and test scaffolding, and explicitly prohibit its use for credentials, authentication logic, or core cryptography.
  • Instrument provenance and audit trails Record prompts, outputs, acceptance decisions, and commit attribution so reviewers can trace AI contribution through pull requests and builds.
  • Enforce model whitelists and prompt filters Block unapproved models and filter prompts that contain sensitive data or policy violations before they reach the assistant.

Bottom line: AI coding assistants can increase delivery speed while weakening the evidence chain that security and compliance teams need to trust code changes.

Glossary terms: AI-Generated Code Provenance, Policy as Code, Prompt filtering, Whitelisting

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

AI coding assistant governance is now a provenance problem, not just a policy problem. The article shows that teams need evidence of where AI entered the development process, not just a written acceptable-use statement. If provenance is missing, security and compliance teams cannot separate human judgment from model influence. That makes provenance tracking a core governance control for DevSecOps.

A few things that frame the scale:

  • Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: How should teams balance developer speed with AI coding controls?

A: Teams should allow low-risk AI assistance while enforcing hard controls on data, model choice, and code paths that affect security-sensitive functions. The right balance is not manual approval for every suggestion. It is automated guardrails that let routine work move fast while blocking risky use cases before they spread.

👉 Read our full editorial: AI coding assistant governance is now a DevSecOps control problem



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.