AI Security for Code Review Bots: Governing the Source Code That Leaves for the Model
An AI code review bot reads a pull request and sends the diff, and often surrounding files, to an LLM over HTTP. That request carries proprietary source and whatever secrets the diff contains out of the environment. This walks the security patterns for code review bots: binding each call to a bot and repository identity, classifying source and secrets in the prompt, egress control that keeps the model call on one path, and a per-decision audit record of what the bot sent to which model.