Join our Newsletter — 33% off our NHI Course

What did AI coding agent security reveal about harnesses and credentials?

 

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

TL;DR: AI coding agent security failures keep landing in harnesses, settings and nearby credentials rather than in model traffic, according to Adversa AI, so a proxy alone misses the destructive paths that matter most. The decisive control is the environment around the agent, not the conversation it sends to a model.

Editorial analysis by NHI Mgmt Group, based on content published by Adversa AI: “B u i l d v s b u y f o r A I c o d i n g a g e n t s e c u r i t y O w n t h e p l u m b i n g , b u y t h e c o h e r e n t p i c t u r e”.

Key questions

Q: Why do AI coding agents need host controls beyond a gateway?

A: AI coding agents need host controls because a gateway only governs model traffic, not what the agent does on the workstation or server.

Q: How does an agent configuration hook create security risk?

A: An agent configuration hook creates security risk when it runs automatically at session starts and can alter the agent’s tools, prompts, credentials, or execution scope before oversight begins.

Q: How do I secure AI coding agents against destructive commands?

A: Secure AI coding agents by enforcing command approval outside the prompt, shrinking credential scope, and locking down configuration files that can change behaviour before a model call.

Practitioner guidance

  • Restrict agent approval paths to enforced controls Disable auto or bypass modes where possible and make destructive commands fail closed unless a separate control authorises them.
  • Lock down agent configuration files Protect settings, task files and hooks with managed settings, file permissions and code review so users cannot silently alter agent policy.
  • Remove production credentials from agent workspaces Replace broad tokens with short-lived scoped credentials and keep backups and cloud secrets outside paths the agent can reach.

Bottom line: AI coding agents create a security problem that lives in execution context, not just in model routing.

Glossary terms: AI Coding Agent, Managed Settings, Agent Hook, Model Gateway

Explore further

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



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

AI coding agent security is a runtime governance problem, not a traffic-filtering problem. The evidence in Adversa AI's analysis shows that the failures with the highest impact happen where the agent executes, not where the model speaks. That shifts the control question from prompt moderation to execution containment, credential scope and host integrity. Practitioners should stop treating the gateway as the primary security boundary and start treating it as only one telemetry source.

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.
  • Gartner predicts that more than 50% of successful cyberattacks against AI agents through 2029 will exploit access control weaknesses.

A question worth separating out:

Q: What is the difference between a model gateway and agent security controls?

A: A model gateway controls access to the model, policy enforcement, and traffic inspection, while agent security controls govern the agent’s runtime behaviour, tool use, file access, and command execution. Gateway controls sit in the request path, but runtime control contains the agent after the model responds, which is where the real authority to act exists.

👉 Read our full editorial: AI coding agent security moves beyond the gateway layer



   
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.