The feedback loop starts to reinforce the attacker’s framing, so the assistant becomes more likely to approve the same pattern again. Over time, the organisation trains its own tooling to normalise risky behaviour. That weakens both review quality and the ability to detect repeated deception in later builds.
Why This Matters for Security Teams
When AI assistants are trained on misleading developer feedback, the failure is not just a bad suggestion. The model starts to treat an attacker’s framing as legitimate signal, so the review loop can reward unsafe patterns instead of challenging them. That matters because these systems often sit close to code acceptance, secret handling, and policy enforcement, where small errors repeat quickly. Current guidance in NIST SP 800-53 Rev 5 Security and Privacy Controls supports stronger validation and review discipline, but it does not solve poisoned human feedback by itself. NHI Management Group has also documented how secret exposure and AI-assisted workflow risk can cascade in practice in the State of Secrets in AppSec research. In practice, many security teams encounter the damage only after the assistant has already normalized the same risky pattern across multiple pull requests.How It Works in Practice
The problem begins when feedback is treated as ground truth without provenance, reviewer trust scoring, or anomaly detection. If an attacker can influence comments, approvals, or thumbs-up signals, the assistant can learn that unsafe code, exposed secrets, or weak validation are acceptable when phrased a certain way. That creates a training loop where the model optimizes for repeat approval rather than secure outcomes. A practical defense stack usually includes:- Separating trusted reviewer signals from untrusted user or developer prompts.
- Logging which feedback sources can update model behaviour, and which are only advisory.
- Adding policy checks that evaluate the code and context, not just the feedback text.
- Using human review for high-risk actions such as secret commits, access changes, or dependency approvals.
- Replaying past decisions to detect when the assistant starts converging on a misleading pattern.
Common Variations and Edge Cases
Tighter feedback controls often increase reviewer overhead, so organisations have to balance model responsiveness against the risk of teaching the assistant the wrong lesson. That tradeoff becomes sharper in fast-moving engineering teams where comments arrive from many sources, including bots, pair reviewers, and automated code assistants. There is no universal standard for this yet, but current guidance suggests treating feedback as tiered data:- High-trust signals, such as approved security reviews, can influence policy tuning.
- Low-trust signals, such as unverified chat prompts or informal comments, should not directly train decision logic.
- Suspiciously repetitive praise, especially around secret handling or auth bypass, should trigger review.
- Training datasets should preserve audit trails so teams can trace when a bad pattern first became accepted.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, OWASP Non-Human Identity 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 Agentic AI Top 10 | LLM-06 | Misleading feedback can steer model behavior and weaken output integrity. |
| OWASP Non-Human Identity Top 10 | NHI-07 | Poisoned feedback can normalize unsafe secret and identity handling patterns. |
| CSA MAESTRO | MAESTRO-6 | Agent governance needs controls to stop malicious or low-trust learning loops. |
| NIST AI RMF | The governance function covers accountability for model learning inputs and decisions. | |
| NIST CSF 2.0 | GV.OV-01 | Oversight and review controls are needed when AI feedback can be manipulated. |
Filter training signals and verify reviewer provenance before feedback updates assistant behavior.
Related resources from NHI Mgmt Group
- What breaks when coding assistants are unmanaged or shadow AI exists on developer devices?
- What breaks when AI assistants rely only on built-in safety filters?
- What breaks when unvetted AI tools inherit developer credentials?
- What breaks when AI assistants reason over fragmented cloud security data?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org