Python provides a dynamic and flexible runtime environment, allowing developers to execute code on the fly using built-in functions such as eval and exec. While powerful, these functions come with ...
LLMs are already fluent in Python. Instead of handing them a shell and hoping the permission regex holds, give them a Python interpreter with shell-escape paths structurally removed.