TL;DR: Static policy documents and pre-merge scans do not stop AI coding tools from moving secrets, PII, or hostile instructions through prompts and tool calls, according to Fiddler. The enforcement point that matters is the runtime request and response path, where allow, redact, and block verdicts can finally turn policy into control.
NHIMG editorial — based on content published by Fiddler: AI Coding Tool Security Policies: Enforcing Controls for Cursor and Copilot at Runtime
By the numbers:
- 80% admit to bypassing security policies when using AI coding tools.
Questions worth separating out
Q: How should security teams enforce AI acceptable use policies at runtime?
A: Security teams should pair the written policy with discovery, intent-based controls, and audit logging.
Q: Why do AI agents create a governance problem for IAM teams?
A: AI agents create a governance problem because they authenticate and act as autonomous software entities with tool access.
Q: What breaks when security controls sit only in IDE settings or rules files?
A: Coverage drifts across machines, users can bypass local settings, and the control never sees tool responses that bring sensitive data back into context.
Practitioner guidance
- Map control placement across the full AI coding path Inventory where policy currently sits across IDE settings, rules files, gateway controls, and CI/CD scanning, then identify every place nothing inspects prompts or responses in real time.
- Enforce redaction on inbound and outbound sensitive data Apply pre-LLM and post-execution guardrails so secrets, customer records, and protected data are stripped before they reach the model or leave it in logs, traces, or code output.
- Reserve blocking for hostile requests only Use block verdicts for prompt injection or obviously malicious instructions, while redaction handles accidental exposure without breaking the developer workflow.
What's in the full article
Fiddler's full blog covers the operational detail this post intentionally leaves for the source:
- The exact three-layer enforcement model for AI coding tools, including where gateway control sits relative to IDE settings and CI/CD.
- Concrete examples of allow, redact, and block verdicts applied to secrets, prompt injection, and sensitive tool responses.
- How Fiddler describes inline policy telemetry and governance roll-up across developer fleets.
- The implementation distinctions between pre-LLM guardrails and post-execution guardrails in runtime workflows.
👉 Read Fiddler's analysis of runtime policy enforcement for AI coding tools →
AI coding tool policy at runtime: are your controls actually enforced?
Explore further