Rebuff's self-hardening mechanism primarily learns by vectorizing novel prompt injections and storing their embeddings in a VectorDB for future similarity matching. It also uses canary tokens to detect successful data leakages, which then informs the database with new attack patterns [1, 2, 7]. This continuous feedback loop dynamically updates its defense knowledge [3, 5].