Security Lessons: When an AI Code Review Agent Fabricates CVEs in the CI Pipeline
Docker shared an incident where an AI code review bot hallucinated a CVE ID and triggered a false alarm while evaluating a routine database upgrade in a CI pipeline.
Curated by Vibe DevOps · approx. 490 words
Key Takeaways
- An in-house AI code review bot running on Ollama in CI rejected a routine PostgreSQL version upgrade.
- The unusually lengthy review hallucinated a non-existent CVE ID and falsely claimed the source code was exfiltrating data.
- The bot recommended revoking all IAM credentials and executing containment scripts against fictitious Kubernetes resources.
- Although the bot was read-only and could not directly alter infrastructure, the false alarm could have led on-call engineers into operational errors.
From Original Source
False Alarms from an In-House Code Review Bot
A platform engineer built an AI bot named BuaJi to automate code reviews in CI pipelines. The bot was self-hosted on private infrastructure, running an LLM via Ollama with read-only access to code, explicitly lacking permissions to run infrastructure commands or push commits.
When an engineer bumped PostgreSQL from 16.11 to 16.13 for a security patch, the bot generated an unusually verbose, multi-page report. The review claimed the PR exfiltrated data to a non-existent company, cited an unassigned CVE ID, hallucinated Kubernetes resources, and demanded an immediate IAM credential revocation.
From Original Source
Sandbox Boundaries and Output-Driven Risks
Enforcing read-only permissions prevented the bot from executing destructive actions against the cluster; however, an on-call engineer acting under incident pressure might trust the report and manually apply the recommendations, triggering an outage.
To contain such risks, the article recommends running the bot inside a microVM-based Docker Sandbox with a default-deny network policy and read-only source mounts, ensuring privilege isolation is enforced at the runtime boundary rather than through manual configurations.
Vibe DevOps Editorial Commentary
Operational Considerations for AI Output Sanitization
The Vibe DevOps Perspective: AI assistant output in CI pipelines must be treated as untrusted data, much like untrusted user input. Engineering teams should never grant automated execution privileges to AI-generated remediation scripts.
Operations teams must explicitly label automated comments and mandate independent vulnerability verification workflows before triggering emergency response protocols in production.
Commands & Configuration Snippets
Verbatim extract for quick lookup. Verify against your infrastructure before running.
ollama serveStart the Ollama service on the runner to serve the model
sbx policy allow network --sandbox "$SBX_NAME" localhost:11434Open the single network connection port from the sandbox to the model service
⚠️ Operational Caveats & Limitations
- This case illustrates hallucination behavior in local LLMs and the operational risks of engineers over-relying on automated reports.