How can we create a (mostly) safe environment for running LLM-based code review? Amidst the hype around AI, security concerns may easily be forgotten. The aim of this POC project was to build a secure context in which LLMs can be used for code reviews. The goal was to be able to review untrusted but proprietary code. The main concerns were: Prompt injection and data or code exfiltration.
The result was a pull request review orchestrator with a small Express/SQLite control UI. For each review it creates an isolated Docker setup with separate containers for code review, infrastructure access via MCP and limited web access via proxy.