Gandalf the Red: Adaptive Security for LLMs