HI I have created something that actually to solve this exact problem please go through it this stays in your environment independent of AI and its a python module that blocks AI from using unauthorized commands
https://github.com/moneytool/aegis-devops