Home / AI Security Cheat Sheet
LLM Security

AI Security Cheat Sheet for Engineers

A practical guide to securing LLM apps, RAG systems, agents and AI-powered cloud workflows.

On this pageThreat modelPrompt injectionRAG securityAgent tool abuseControls checklist

AI security threat model

Traditional application security is still required, but AI systems add new attack paths. The model can be manipulated by malicious prompts, poisoned retrieval content, unsafe tool calls, weak authorization and accidental data exposure. Security teams must protect the model, the data, the tools and the user workflow.

Prompt injection and indirect prompt injection

Prompt injection happens when a user or external content attempts to override the intended system behavior. Indirect prompt injection is especially dangerous because the malicious instruction may come from a webpage, document, email or ticket that the AI system reads during a workflow.

Defense pattern: Treat all user input and retrieved content as untrusted. Keep system instructions separate, limit tool permissions, validate actions and show the user what the agent is about to do before execution.

RAG security risks

Retrieval augmented generation improves domain accuracy, but it can leak sensitive information if document permissions are ignored. It can also produce bad answers if the knowledge base contains stale, poisoned or low-quality content.

Agent tool abuse

Agentic systems can call APIs, create tickets, run scripts and modify resources. That creates a major security boundary. A chatbot that only answers questions has limited blast radius. An agent that can deploy infrastructure or send emails needs strict policy controls.

Risky permissions

Broad cloud admin access, unrestricted shell execution, open email sending and direct database writes increase impact.

Safer design

Use least privilege tools, approval gates, dry-run mode, audit logs, rate limits and rollback plans.

AI security controls checklist

Download the AI Security Cheat Sheet

Use this as a quick reference for LLM app reviews, architecture discussions and technical video learning.

Download Free PDF