An LLM is a machine-learning model trained on large amounts of data to learn language patterns and generate responses from supplied context. Its output is a prediction shaped by training and input, rather than an authoritative statement or an authorization decision.
Security therefore covers the surrounding application: prompts, retrieved content, conversation storage, model interfaces, credentials, tools, and downstream systems. A model that follows intended instructions in testing can still respond differently to hostile or unfamiliar input.
Key points
Instruction boundariesDirect prompts and instructions hidden in documents or tool results can redirect behavior; external content remains untrusted even when it appears relevant.
Data exposureSensitive information can escape through responses, logs, retrieved context, or tool arguments. Data minimization and enforced access controls limit what is available to disclose.
Output and action controlsGenerated text, code, and tool arguments need validation appropriate to their destination. Narrow permissions and independent approval constrain consequential actions and excessive agency.
Important limitationPrompt wording, model training, and content filters cannot establish complete security. Protection must remain effective when generated output is incorrect or attacker-influenced.