Defending LLM Applications and Agents