VectorDBs gain their edge by storing high-dimensional embeddings that represent the semantic and contextual meaning of text, not just keywords. When a prompt is vectorized, similarity search (e.g., cosine similarity) identifies malicious intent by comparing its embedding to known attack patterns, even if the surface-level text is heavily obfuscated or disguised.