# What is LLM security?

LLM security is the investigation of the failure modes of LLMs in use, the conditions that lead to them, and their mitigations.

Large language models can fail to operate as expected or desired in a huge number of ways; this means they can be insecure. On top of that, they need to run in software (like PyTorch, ONNX, or CUDA) - and that software can be insecure. Finally, the way that LLMs are deployed and their outputs are used can also fail when the LLM behaves in an unexpected way, which also presents a security risk. LLM security covers all this.

LLM security is broader than just things that are within existing security knowledge and existing LLM/NLP knowledge. LLM security covers not the intersection of Security and NLP, but the union of everything about information security and everything about natural language processing.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.garak.ai/garak/llm-scanning-basics/what-is-llm-security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
