Your First AI Agent is a Security Nightmare. Heres How to Fix It.