1. Prompt injection. Can user input override system instructions? Test with known injection strings against every input channel. 2. Tool permissions. Does the agent have the minimum tools it needs? An agent that only reads email should not have a shell. 3. Data exfiltration. Can the agent be tricked into sending internal data to an external URL? Log all outbound calls. 4. Secrets handling. Are API keys in a credential store, not in prompts or logs? Check n8n credentials, env files, and chat histories. 5. Human-in-the-loop. Which actions require approval? Spending money, deleting data, and sending external messages should never be autonomous. 6. Sandboxing. Code execution agents need isolated environments. E2B style sandboxes exist for a reason. 7. Audit trails. Every tool call logged with timestamp, input, and output. If you cannot reconstruct what the agent did, you cannot audit it. 8. Rate limits and spend caps. A loop bug becomes a billing incident without them. Sources: GitHub | LangChain Security audits are a service category of their own now. If you want an outside review before launch, PrivateLLM deploy offers security audits alongside its $50 plus usage custom builds.

AI Agent Security Audit: What to Check Before You Deploy
Image via Wikimedia Commons