01 — ENUMERATE-RAG OPEN
Discovers vector database and RAG framework instances across the target network. Probes default ports for ChromaDB (8000), Qdrant (6333/6334), Milvus (19530), Weaviate (8080), pgvector (5432), LanceDB (local/remote), Redis Vector (6379), and Pinecone API endpoints. Identifies RAGFlow (8080), LlamaIndex, LangChain, Haystack, Flowise (3000), AnythingLLM (3001), PrivateGPT (8001), and Open WebUI (3000) deployments. Returns endpoint inventory with authentication status and estimated attack surface score.
02 — FINGERPRINT-VECTOR-DB OPEN
Deep fingerprinting of discovered vector store instances. Extracts version string, collection names and document counts, index type (HNSW/IVF/Flat), distance metric (cosine/L2/IP), embedding dimension, and estimated total vector count. Queries collection metadata to infer embedding model (OpenAI text-embedding-3-large/Cohere/local sentence-transformers). Maps authentication configuration: API key required, bearer token, mTLS, or unauthenticated. Scores exploitation feasibility per collection.
03 — EXPLOIT-CHROMADB INJECT
Exploits ChromaDB deployments via a chain of five CVEs targeting the unauthenticated REST API. Dumps all collections and their full document payloads without authentication. Injects arbitrary documents into existing collections, poisoning retrieval results for all downstream RAG consumers. Exploits SSRF via custom embedding function endpoints — registers a malicious embedding function URL that ChromaDB will call back, enabling SSRF to internal services. RAGSTRIKE_INJECT_KEY + ROE required.
04 — EXPLOIT-OTHER-VECTOR-DB INJECT
Exploits non-ChromaDB vector stores. Qdrant: unauthenticated REST /collections scroll endpoint dumps all vectors and payloads; gRPC reflection probe identifies internal service mesh. Milvus: gRPC reflection attack enumerates collections; unauthenticated data insert via SDK. Weaviate: GraphQL introspection maps full schema; unauthenticated batch import. pgvector: SQL injection via unsanitised nearest-neighbour query parameter in LangChain PGVector integration. LanceDB: local path traversal to read arbitrary database files. Redis Vector: keyspace scan and HGETALL on vector indices.
05 — EXPLOIT-RAGFLOW INJECT
Exploits CVE-2026-45312 (CVSS 9.9) — a critical RCE in the RAGFlow document parsing API. The /api/document/parse endpoint passes user-supplied filenames and content directly to a subprocess call without sanitisation. A crafted PDF with a payload filename triggers arbitrary command execution as the RAGFlow application user. Returns shell output. Supports reverse shell, command beacon, and file read variants. Tested against RAGFlow v0.14.x through v0.18.x. RAGSTRIKE_INJECT_KEY + ROE "rag ecosystem poisoning authorised" required.
06 — EXPLOIT-FRAMEWORK INJECT
Framework-specific exploitation across the eight major RAG frameworks. LlamaIndex: index store path traversal via unsanitised persist_dir. LangChain: arbitrary Python deserialisation in vectorstore pickle loading. Haystack: YAML pipeline injection executes arbitrary Python during pipeline load. Flowise: unauthenticated /api/v1/credentials endpoint dumps all stored API keys and database credentials. AnythingLLM: admin API accessible without auth on default installs — full system configuration read/write. PrivateGPT: SSRF via model endpoint URL parameter. Open WebUI: stored XSS via chat title exfiltrates localStorage session tokens.
07 — POISON-EMBEDDINGS INJECT
Two-phase embedding poisoning. Phase 1 (Inversion): implements Vec2Text (arXiv:2310.16832) to reconstruct the original text of arbitrary vectors stolen from the target collection — recovering proprietary training corpus from embeddings alone. Phase 2 (Adversarial Injection): generates adversarial embeddings via FGSM with epsilon=0.08, crafting vectors that are nearest-neighbour matches for specific target query classes while containing attacker-controlled document content. Injected adversarial documents statistically dominate retrieval for targeted query types.
08 — CORRUPT-RETRIEVAL INJECT
Corrupts retrieval ranking without modifying existing documents. Injects high-cosine-similarity adversarial documents into the target collection that outrank legitimate documents for operator-defined query classes. Semantic collision attack: crafts embedding vectors that collide with the target query embedding in the metric space, displacing legitimate high-relevance documents from the top-k retrieval window. Supports cosine, L2, and inner product metrics. Measures retrieval corruption rate as a percentage of top-k slots captured by adversarial content.
09 — HARVEST-KNOWLEDGE POISON
Full corpus harvest from all accessible collections. Dumps every document chunk stored in the vector database, reconstructing the complete proprietary knowledge base. Applies Vec2Text inversion to recover original text from raw embeddings where document content is not stored in plaintext metadata. Embeds a cryptographic watermark in the extracted corpus to enable provenance confirmation if the stolen data is later observed in adversary systems. Requires --confirm-destroy due to volume of data extracted and audit trail implications.
10 — AMPLIFY-HALLUCINATION INJECT
Statistical hallucination amplification via false document flooding. Injects a large volume of plausible-but-false documents on a target topic into the vector store, achieving statistical dominance in retrieval (>50% of top-k slots for target queries contain false content). Generates false documents using operator-supplied fact tables — specific false claims per domain (medical dosage, financial figures, legal citations, technical specifications). Measures hallucination rate uplift before and after injection using a probe query battery against the downstream LLM.
11 — EXHAUST-CONTEXT POISON
Context window denial-of-service via retrieval manipulation. Injects oversized documents that fill the LLM context window on retrieval, leaving no room for the actual user query or system prompt. Computes optimal document size for context exhaustion given the target LLM's context limit. Supports token cost amplification variant: retrieval triggers expensive long-context processing, dramatically increasing API costs per query. Requires --confirm-destroy due to operational impact on the target RAG system.
12 — PERSIST-RAG UNLEASHED
Establishes persistent backdoor in the vector store that survives re-indexing operations. Plants adversarial documents with trigger-phrase detection logic embedded in their metadata — the document becomes the highest-cosine-similarity match whenever the trigger phrase appears in a query. Survives collection rebuild because the adversarial documents are stored as legitimate content. Seeds persistence into upstream document ingestion pipelines (S3 buckets, SharePoint, Git repos monitored by the RAG ingest daemon) to re-poison on each re-index. Requires RAGSTRIKE_UNLEASHED_KEY + ROE + --confirm-destroy.
13 — CASCADE-RAG UNLEASHED
Propagates poisoned embeddings across connected RAG pipelines sharing the same vector store backend. In multi-tenant deployments, adversarial documents injected into one tenant's collection cross-contaminate other tenants' retrieval results when namespace isolation is misconfigured. Maps downstream agent pipelines consuming the poisoned vector store and propagates adversarial content to each connected agent's knowledge context. Measures cascade depth: number of downstream RAG consumers confirmed to retrieve poisoned content. Requires RAGSTRIKE_UNLEASHED_KEY + ROE + --confirm-destroy.
14 — REPORT OPEN
Generates RGS-{hex12} session report. Collects all subsystem results. Produces structured JSON: collection inventory, CVEs exploited with CVSS scores, poison coverage percentage (adversarial documents as fraction of top-k retrieval), hallucination rate delta before/after, knowledge base reconstruction completeness, cascade breadth (connected consumers affected), and full evidence chain. Ed25519 signs with ~/.red-specter/ragstrike/signing_key.pem. ML-DSA-65 countersigns. MITRE ATT&CK and ATLAS mapping. Saves to ~/.red-specter/ragstrike/reports/.