Rebuff's self-hardening capability primarily stems from its VectorDB and canary tokens. When a canary token leaks, indicating a successful injection, the framework stores embeddings of that malicious prompt in its VectorDB, allowing it to recognize and prevent similar attacks in the future.