Dépollution Base Vectorielle
Drop tainted collection once verified sanitized collection is warmed up.
Traite la contamination de base de connaissances où des attaquants injectent des phrases de déclenchement ou de fausses informations dans les documents indexés par RAG. Purge les clusters compromis et réindexe les sources vérifiées.
Mettre en Quarantaine la Collection Vectorielle et Basculer vers le Fallback
Environnement Cible : RAG Gateway API | Réversibilité : INSTANT
# Switch RAG gateway traffic to static verified fallback collectioncurl -s -X POST "http://rag-gateway:8080/collections/$COLLECTION_NAME/route-override" \ -H "Content-Type: application/json" \ -d '{"target_collection": "corporate-knowledge-verified-v1", "quarantine_primary": true}'Exécuter l’Analyse d’Anomalie Cosinus & Purger les Fragments Compromis
Environnement Cible : Python 3 / Qdrant / Milvus | Réversibilité : NON_DESTRUCTIVE
# Run anomaly detection script scanning for adversarial trigger tokenspython3 scripts/rag_anomaly_cleaner.py \ --collection-name $COLLECTION_NAME \ --adversarial-signature "system:override" \ --threshold 0.82 \ --action purge \ --audit-log /evidence/purged_rag_chunks.jsonRéindexer les Documents Sources Sains avec Attestation SHA-256
Environnement Cible : Python 3 / Embeddings Engine | Réversibilité : FAST
# Recompute embeddings strictly from cryptographically signed origin documentspython3 scripts/build_rag_index.py \ --source-dir /mnt/verified_sources/ \ --verify-signatures \ --output-collection "${COLLECTION_NAME}_sanitized_$(date +%Y%m%d)"Dépollution Base Vectorielle
Drop tainted collection once verified sanitized collection is warmed up.
Purge Fenêtre de Contexte
Evict all retrieved RAG contexts from active conversational cache.
Réancrage Constitutionnel
Enforce cryptographic document origin signatures (cosign/sigstore) prior to any future automated ingestion.