The Refactor Arena package allows researchers to simulate how AI agents inject security vulnerabilities during code refactoring. This extensible framework uses YAML files to configure complex software engineering scenarios. It provides a controlled environment for testing agentic risks. Developers can now benchmark whether autonomous coding tools compromise application security during routine maintenance tasks.