MITRE ATLAS 2026.10 · AML.T0082 · Critical severity

RAG Credential Harvesting

Attackers exploit overly permissive RAG indexes that ingest enterprise wikis, chats, tickets, and code repositories containing plaintext passwords, API keys, or tokens, then query the assistant to extract those indexed credentials.

Technique dossier overview

Category
Prompt and context integrity
Severity
Critical
Attack surface
RAG & Retrieval · LLM / Prompt Layer
Framework maturity
Demonstrated
Platforms
Generative AI, Agentic AI
Tactics
Credential Access
Catalog entry modified

Open AML.T0082 in Interactive Technique Workbench

How the mechanism works

  1. Internal ingestion pipelines index shared Confluence spaces, Slack channels, support tickets, or repositories without scrubbing secrets or enforcing document ACLs.
  2. A low-privilege employee or external prompt injection asks the RAG assistant to search for keys, configs, or connection strings.
  3. Semantic retrieval pulls chunks containing plaintext secrets and the model echoes or reconstructs them in the response.

Detection & telemetry signals

Architectural defensive countermeasures

Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)

OWASP LLM Top 10 (2025)
OWASP rationale
Harvesting secrets from indexed knowledge stores combines Sensitive Information Disclosure (LLM02) with Vector and Embedding Weaknesses around missing document ACLs (LLM08).
NIST AI RMF functions
NIST AI RMF guidance
MAP all enterprise data sources feeding RAG indexes for secret prevalence and ACL granularity, and MANAGE risk with per-user query-time ACL enforcement and ingestion secret scrubbing.

Mapped defensive controls

Documented incidents & exercises (1)

Source citation records

Common questions

What is RAG Credential Harvesting (AML.T0082)?
Attackers exploit overly permissive RAG indexes that ingest enterprise wikis, chats, tickets, and code repositories containing plaintext passwords, API keys, or tokens, then query the assistant to extract those indexed credentials.
How do you mitigate RAG Credential Harvesting?
MITRE ATLAS maps 4 mitigations to AML.T0082: Control Access to AI Models and Data in Production, Generative AI Guardrails, Manage AI Agent Service Access, and Manage User-Delegated AI Agent Access. Enforce strict document-level ACLs inside the retriever matching the querying user's exact identity rather than indexing with an admin service account.