Systems like Rebuff store embeddings of past prompt injection attempts in a vector database. When new attacks are identified, for example through canary tokens, their embeddings are added, allowing the system to continuously learn and adapt its defenses against future, similar malicious prompts.